/* spayot — public pages: the site chrome, the temporary inbox, the product page, sign-in and the text pages */

.site { background: var(--bg); min-height: 100dvh; display: flex; flex-direction: column; }
.site > main { flex: 1; }

/* ---------- top navigation ---------- */
.site-nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.site-nav-in { display: flex; align-items: center; gap: 4px; width: min(1160px, 100% - 32px); height: 48px; margin-inline: auto; }
.site-links { display: flex; gap: 2px; margin-inline-start: 20px; }
.site-links a, .site-link { display: inline-flex; align-items: center; height: 28px; padding: 0 8px; border-radius: var(--r-2); color: var(--muted); font-size: 13px; font-weight: 500; transition: background var(--t-fast), color var(--t-fast); }
.site-links a:hover, .site-link:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.site-links a.is-active, .site-link.is-active { color: var(--text); background: var(--surface-2); }
.site-nav .btn-sm { margin-inline-start: 4px; }
.site-foot { border-top: 1px solid var(--border); }
.site-foot-in { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; width: min(1160px, 100% - 32px); margin-inline: auto; padding: 16px 0; font-size: 12px; color: var(--muted); }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--text); }

/* ---------- temporary inbox ---------- */
.temp { width: min(1160px, 100% - 32px); margin-inline: auto; padding: 32px 0 64px; }
.temp-head h1 { font-size: 24px; font-weight: 600; letter-spacing: -.025em; }
.temp-head p { margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.addr-bar { display: flex; align-items: center; gap: 8px; margin-top: 24px; height: 48px; padding-inline: 16px 8px; border: 1px solid var(--border); border-radius: var(--r-2); background: var(--surface); }
.addr-text { min-width: 0; font-size: 16px; font-weight: 500; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: all; }
.addr-domain { color: var(--muted); font-weight: 450; }
.life { margin-top: 8px; border: 1px solid var(--border); border-radius: var(--r-2); background: var(--side-bg); }
.life-row { display: flex; align-items: center; gap: 16px; min-height: 44px; padding: 6px 16px 6px 16px; flex-wrap: wrap; }
.life-pick { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.life-pick .select { width: auto; height: 28px; font-size: 12.5px; padding-inline-start: 8px; }
.life-left { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.life-clock { min-width: 44px; font-size: 13px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.life-meter { width: 120px; height: 3px; border-radius: 3px; background: var(--border); overflow: hidden; }
.life-meter i { display: block; height: 100%; border-radius: 3px; background: var(--brand-text); transition: width 1s linear; }
.life-times { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.life-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--ok); }
.life-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.life.is-ending .life-status, .life.is-ending .life-clock { color: var(--danger); }
.life.is-ending .life-meter i { background: var(--danger); }
.tbox { margin-top: 16px; border: 1px solid var(--border); border-radius: var(--r-2); background: var(--surface); overflow: hidden; }
.tbox-head { display: flex; align-items: center; gap: 8px; height: 44px; padding-inline: 16px 8px; border-bottom: 1px solid var(--border); }
.tbox-head h2 { font-size: 13.5px; }
.tbox-head.is-bulk { background: var(--brand-soft); font-size: 12.5px; }
.tbox-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tbox-auto { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: 8px; font-size: 12px; color: var(--muted); }
.tbox-auto i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: live 2s ease-in-out infinite; }
@keyframes live { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.tbox-search { position: relative; width: 220px; }
.tbox-search .icon { position: absolute; inset-inline-start: 8px; top: 7px; width: 14px; height: 14px; color: var(--faint); pointer-events: none; }
.tbox-search .input { height: 28px; padding-inline-start: 28px; font-size: 12.5px; }
.icon-btn.is-busy .icon { animation: spin .8s linear infinite; }
.trows { list-style: none; margin: 0; padding: 0; }
.trow { display: flex; align-items: center; gap: 12px; height: 40px; padding-inline: 16px 8px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 13px; transition: background var(--t-fast); }
.trow:last-child { border-bottom: 0; }
.trow:hover { background: var(--hover); }
.trow:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.trow.is-selected { background: var(--brand-soft); }
.trow.is-new { animation: arrive 1.2s var(--ease); }
@keyframes arrive { from { background: var(--brand-soft); } }
.trow.is-skeleton { cursor: default; gap: 24px; }
.trow-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.trow.is-unread .trow-dot { background: var(--brand-text); }
.trow-from { flex: 0 0 200px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.trow-line { flex: 1; min-width: 0; display: flex; align-items: baseline; white-space: nowrap; }
.trow-subject { flex: 0 1 auto; min-width: 0; max-width: 72%; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.trow-sep { flex: none; margin-inline: 8px; color: var(--faint); }
.trow-preview { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.trow.is-unread .trow-from, .trow.is-unread .trow-subject { color: var(--text); font-weight: 600; }
.trow-clip { width: 14px; height: 14px; color: var(--faint); }
.trow-time { flex: none; min-width: 64px; text-align: end; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.trow-actions { flex: none; display: flex; opacity: 0; transition: opacity var(--t-fast); }
.trow:hover .trow-actions, .trow:focus-within .trow-actions { opacity: 1; }
.tbox-empty { min-height: 280px; }
.tbox-wait { position: relative; display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 50%; background: var(--surface-2); color: var(--muted); }
.tbox-wait::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--border-strong); animation: ripple 2.4s ease-out infinite; }
@keyframes ripple { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.tread { max-width: 760px; margin-inline: auto; padding: 24px 24px 40px; }
.tread-subject { font-size: 18px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.tread-meta { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 13px; }
.tread-who { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tread-who span, .tread-to, .tread-meta time { color: var(--muted); font-size: 12.5px; }
.tread-meta time { white-space: nowrap; align-self: flex-start; font-variant-numeric: tabular-nums; }
.tstate { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: 24px; padding: 48px 24px; border: 1px solid var(--border); border-radius: var(--r-2); background: var(--surface); }
.tstate-icon { width: 20px; height: 20px; color: var(--muted); }
.tstate h2 { margin-top: 12px; font-size: 16px; }
.tstate > p { margin-top: 4px; max-width: 36em; color: var(--muted); }
.tstate-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.tstate-controls .select { width: auto; }
.tstate-captcha { margin-top: 16px; min-height: 65px; }
.tstate-note { margin-top: 16px !important; font-size: 12px; }

/* ---------- product page ---------- */
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.hero { padding: 72px 0 56px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--muted); }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.hero h1 { max-width: 16em; margin: 20px auto 0; font-size: clamp(34px, 5vw, 52px); line-height: 1.06; letter-spacing: -.04em; font-weight: 600; text-wrap: balance; }
.lede { max-width: 36em; margin: 16px auto 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.lede b { color: var(--text); font-weight: 500; }
.claim { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.claim-box { display: flex; align-items: center; width: min(320px, 100%); height: 36px; padding: 0 12px; border-radius: var(--r-2); border: 1px solid var(--border-strong); background: var(--surface); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.claim-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--focus); }
.claim-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 13.5px; }
.claim-box span { color: var(--muted); white-space: nowrap; font-size: 13.5px; }
.hero-note { margin-top: 12px; font-size: 12px; color: var(--muted); }
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-bottom: 72px; }
.product { display: flex; flex-direction: column; gap: 8px; padding: 24px; border: 1px solid var(--border); border-radius: var(--r-4); background: var(--surface); color: var(--text); transition: border-color var(--t), background var(--t); }
.product:hover { border-color: var(--border-strong); background: var(--side-bg); text-decoration: none; }
.product-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.product-tag i { font-style: normal; font-weight: 450; color: var(--muted); }
.product h2 { font-size: 20px; letter-spacing: -.02em; }
.product p { color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.product ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--text-2); }
.product li { display: flex; align-items: center; gap: 8px; }
.product li .icon { width: 14px; height: 14px; color: var(--brand-text); }
.product-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 500; color: var(--brand-text); }
.section { padding: 64px 0; border-top: 1px solid var(--border); }
.section-title { font-size: 24px; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; }
.section-sub { margin-top: 8px; max-width: 40em; color: var(--muted); font-size: 14px; line-height: 1.6; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; margin-top: 40px; }
.features .icon { width: 16px; height: 16px; color: var(--brand-text); }
.features h3 { margin-top: 12px; font-size: 13.5px; }
.features p { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding: 24px; border: 1px solid var(--border); border-radius: var(--r-4); background: var(--side-bg); }
.cta h2 { font-size: 16px; }
.cta p { margin-top: 2px; color: var(--muted); }

/* ---------- text pages (help, terms, privacy, acceptable use, abuse) ---------- */
.legal { width: min(720px, 100% - 32px); margin-inline: auto; padding: 48px 0 80px; }
.legal h1 { font-size: 26px; letter-spacing: -.03em; font-weight: 600; margin-bottom: 8px; }
.legal .legal-sub { color: var(--muted); margin-bottom: 24px; }
.legal h2 { font-size: 15px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--text-2); line-height: 1.7; font-size: 14px; }
.legal p { margin-bottom: 12px; }
.legal ul { padding-inline-start: 20px; margin: 0 0 12px; }
.legal details { border-top: 1px solid var(--border); }
.legal details:last-of-type { border-bottom: 1px solid var(--border); }
.legal summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-size: 14px; font-weight: 500; list-style: none; }
.legal summary::-webkit-details-marker { display: none; }
.legal summary::after { content: "+"; margin-inline-start: auto; color: var(--muted); font-size: 16px; font-weight: 400; }
.legal details[open] summary::after { content: "–"; }
.legal details p { padding-bottom: 8px; }
.legal form { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.legal .textarea { min-height: 120px; font-size: 13px; }

/* ---------- sign-in pages ---------- */
.auth-body { min-height: 100dvh; background: var(--side-bg); }
.auth { width: min(360px, 100% - 32px); min-height: 100dvh; margin-inline: auto; padding: 40px 0; display: flex; flex-direction: column; align-items: stretch; justify-content: center; }
.auth-brand { align-self: center; margin-bottom: 24px; font-size: 15px; }
.auth-brand .brand-mark { width: 20px; height: 20px; }
.auth-card { width: 100%; padding: 24px; border-radius: var(--r-4); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 8px; }
.auth-card h1 { font-size: 18px; letter-spacing: -.02em; }
.auth-sub { color: var(--muted); margin-bottom: 12px; }
.auth-card .btn-lg { margin-top: 4px; }
.auth-alt { margin-top: 12px; text-align: center; color: var(--muted); font-size: 12.5px; }
.auth-foot { align-self: center; margin-top: 20px; display: flex; gap: 8px; font-size: 12px; color: var(--faint); }
.auth-foot a { color: var(--muted); }
.center { text-align: center; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-inline-end: 56px; }
.pw-toggle { position: absolute; inset-inline-end: 4px; top: 4px; height: 24px; padding: 0 8px; border: 0; border-radius: var(--r-1); background: transparent; color: var(--muted); font-size: 12px; font-weight: 500; transition: background var(--t-fast), color var(--t-fast); }
.pw-toggle:hover { background: var(--hover); color: var(--text); }
.code-input { font-family: var(--mono); font-size: 18px !important; letter-spacing: .3em; text-align: center; height: 40px !important; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.strength { height: 3px; border-radius: 99px; background: var(--border); overflow: hidden; }
.strength i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--danger); transition: width .2s, background .2s; }
.strength[data-level="2"] i { background: var(--warn); }
.strength[data-level="3"] i, .strength[data-level="4"] i { background: var(--ok); }
.hint.is-ok { color: var(--ok); }
.hint.is-bad { color: var(--danger); }
.state-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.state-icon.is-ok { background: var(--ok-soft); color: var(--ok); }
.state-icon.is-warn { background: var(--warn-soft); color: var(--warn); }
.error-code { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .08em; }
.debug { margin: 4px 0 12px; padding: 8px 12px; border-radius: var(--r-2); background: var(--surface-2); font-size: 12px; white-space: pre-wrap; word-break: break-word; }

@media (max-width: 860px) {
  .products { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .hero { padding: 48px 0 40px; }
  .life-times { display: none; }
}
@media (max-width: 640px) {
  .site-nav-in { width: calc(100% - 24px); }
  .site-links { margin-inline-start: 8px; }
  .site-link, .site-cta { display: none; }
  .features { grid-template-columns: 1fr; }
  .temp { width: calc(100% - 24px); padding: 20px 0 48px; }
  .temp-head h1 { font-size: 22px; }
  .addr-bar { flex-wrap: wrap; height: auto; padding: 12px; gap: 8px; }
  .addr-text { flex: 1 1 100%; font-size: 15px; white-space: normal; overflow-wrap: anywhere; }
  .addr-bar .spacer { display: none; }
  .addr-bar .btn { flex: 1; height: 36px; padding: 0 8px; }
  .life-row { gap: 8px 12px; padding: 8px 12px; }
  .life-pick { flex: 1 1 100%; }
  .life-pick .select { flex: 1; height: 36px; font-size: 14px; }
  .life-left { flex: 1; }
  .life-meter { flex: 1; width: auto; }
  .life-row .btn { height: 36px; }
  .life-row .spacer { display: none; }
  .life-status { flex: 1 1 100%; }
  .tbox-head { padding-inline: 12px 4px; flex-wrap: wrap; height: auto; min-height: 44px; padding-block: 4px; }
  .tbox-head .icon-btn { width: 40px; height: 40px; }
  .tbox-auto span { display: none; }
  .tbox-search { order: 5; flex: 1 1 100%; width: auto; margin-bottom: 8px; }
  .tbox-search .input { height: 36px; font-size: 16px; }
  .tbox-search .icon { top: 11px; }
  .trow { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 8px; row-gap: 2px; height: auto; padding: 10px 12px; }
  .trow > .check { grid-row: 1 / 3; }
  .trow-dot { grid-row: 1 / 3; }
  .trow-from { grid-column: 3; flex: none; font-size: 14px; }
  .trow-time { grid-column: 4; grid-row: 1; min-width: 0; }
  .trow-line { grid-column: 3 / 5; grid-row: 2; }
  .trow-clip, .trow-actions { display: none; }
  .tread { padding: 16px 12px 32px; }
  .tread-meta { flex-wrap: wrap; }
  .tstate { padding: 32px 16px; }
  .tstate-controls .select, .tstate-controls .btn { height: 40px; font-size: 14px; }
  .att-grid { grid-template-columns: 1fr; }
}
