/* veer.io Nudge — from the Claude Design handoff "veer.io Nudge.dc.html" (2026-10-07). */

@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 700; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-700-normal.woff2') format('woff2'); }

:root {
  --teal: #336680;
  --teal-700: #28536a;
  --teal-900: #1f4255;
  --tint: #eef3f6;
  --tint-2: #f7fafb;
  --rule: #c9d7e0;
  --ink: #1d2327;
  --ink-2: #3d4a52;
  --ink-read: #4a5860;
  --muted: #5b6870;
  --scan-bg: #0f1a20;
  --font: 'IBM Plex Sans', system-ui, sans-serif;
  color-scheme: light;
}

/* Text follows the phone's font-size setting: iOS Dynamic Type via -apple-system-body. */
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
@supports (font: -apple-system-body) { html { font: -apple-system-body; } }

* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100dvh; background: #fff; color: var(--ink);
  font-family: var(--font); font-size: 1rem; -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--teal-700); }
button { font-family: inherit; cursor: pointer; color: inherit; }
h1, p { margin: 0; }
svg { display: block; flex: none; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#app {
  min-height: 100dvh; display: flex; flex-direction: column; max-width: 40rem; margin: 0 auto;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
}
.screen { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.spacer { flex: 1; min-height: 2rem; }

/* ---- Shared pieces ---- */
.eyebrow { font: 600 .6875rem/1.3 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.site-label { font: 600 .6875rem/1.3 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--teal-700); }
.page-title { font: 600 1.875rem/1.1 var(--font); color: var(--teal); }
.title-bar { padding: 1.25rem 1.25rem .75rem; border-bottom: 2px solid var(--teal); }
.topbar { display: flex; align-items: center; gap: .25rem; padding: .25rem .5rem; border-bottom: 1px solid var(--rule); }
.topbar-title { font: 600 1.0625rem var(--font); }
.back {
  min-height: 44px; border: 0; background: none; display: flex; align-items: center; gap: .25rem;
  color: var(--teal-700); font: 500 .9375rem var(--font); padding: 0 .5rem 0 0;
}
.icon-btn { width: 44px; height: 44px; border: 0; background: none; display: flex; align-items: center; justify-content: center; padding: 0; }

.btn {
  min-height: 3rem; border: 0; font: 600 1rem var(--font); padding: .75rem 1.25rem;
  display: flex; align-items: center; justify-content: center; gap: .5rem; text-decoration: none;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover, .btn-primary:active { background: var(--teal-700); color: #fff; }
.btn-secondary { border: 1.5px solid var(--teal); background: #fff; color: var(--teal-700); }
.btn-secondary:hover, .btn-secondary:active { background: var(--tint-2); }
.btn-quiet { border: 1.5px solid var(--rule); background: #fff; color: var(--ink); font-weight: 500; }
.btn-quiet:hover, .btn-quiet:active { background: var(--tint-2); }
.btn-stack { display: flex; flex-direction: column; gap: .625rem; }
.btn-start { align-self: flex-start; padding: 0 1.5rem; }

.message-block { border-top: 2px solid var(--teal); padding-top: 1rem; }
.message-block p { font: 500 1.375rem/1.35 var(--font); text-wrap: pretty; }

/* ---- 1 Invite landing / 7 result ---- */
.invite { flex: 1; display: flex; flex-direction: column; padding: 1.5rem 1.5rem calc(2rem + env(safe-area-inset-bottom)); }
.invite-logo { width: 104px; display: block; margin-bottom: 2.5rem; }
.invite h1 { margin: 0 0 .75rem; font: 600 2rem/1.15 var(--font); color: var(--teal); }
.invite h1.long { margin: 0; font-size: 1.75rem; line-height: 1.2; text-wrap: pretty; }
.invite .lead { font-size: 1.0625rem; line-height: 1.5; text-wrap: pretty; }
.install-box { margin-top: 1.75rem; background: var(--tint); border: 1px solid var(--rule); padding: 1.125rem 1.125rem 1.25rem; display: flex; gap: .875rem; }
.install-box svg { margin-top: 2px; }
.install-box p { font-size: 1rem; line-height: 1.5; }
.result { flex: 1; display: flex; flex-direction: column; padding: 2rem 1.5rem calc(2rem + env(safe-area-inset-bottom)); }
.result h1 { margin: 0 0 .75rem; font: 600 2rem/1.15 var(--font); color: var(--teal); }
.result .message-block p { font-size: 1.25rem; line-height: 1.4; }

/* ---- 2 Install guide ---- */
.install-body { padding: 1.25rem 1.25rem 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.lanes { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--teal); }
.lane { min-height: 2.875rem; border: 0; background: #fff; color: var(--teal-700); font: 600 1rem var(--font); }
.lane[aria-selected="true"] { background: var(--teal); color: #fff; }
.lane-note { font: 600 .6875rem/1.3 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.steps li { display: grid; grid-template-columns: 2.5rem 1fr; gap: .875rem; padding: .875rem 0; border-top: 1px solid var(--rule); align-items: start; }
.step-n { width: 2.5rem; height: 2.5rem; background: var(--tint); color: var(--teal-700); font: 600 1.125rem var(--font); display: flex; align-items: center; justify-content: center; }
.step-text { font-size: 1rem; line-height: 1.45; padding-top: .5rem; text-wrap: pretty; }
.step-text strong { font-weight: 600; }

/* ---- 3 Inbox ---- */
.inbox-head { padding: .5rem 1rem 0 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.brand { display: flex; align-items: center; gap: .5rem; }
.brand img { height: 22px; width: auto; display: block; }
.brand span { font: 600 .875rem/1 var(--font); letter-spacing: .04em; color: var(--teal-700); }
.head-actions { display: flex; align-items: center; gap: .25rem; }
.eye { width: 44px; height: 44px; border: 1.5px solid transparent; background: none; display: flex; align-items: center; justify-content: center; padding: 0; }
.eye[aria-pressed="true"] { border-color: var(--teal); background: var(--tint); }
.sites-link { min-height: 44px; border: 0; background: none; color: var(--teal-700); font: 600 .9375rem var(--font); padding: 0 .5rem; display: flex; align-items: center; gap: .375rem; }
.inbox-title { padding: 1rem 1.25rem .75rem; border-bottom: 2px solid var(--teal); display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.unread-count { font: 500 .875rem var(--font); color: var(--muted); }

.banner { background: var(--tint); border-bottom: 1px solid var(--rule); padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: .75rem; }
.banner-row { display: flex; gap: .75rem; }
.banner-row svg { margin-top: 2px; }
.banner-row p { font-size: 1rem; line-height: 1.45; }
.banner .btn { align-self: flex-start; min-height: 44px; font-size: .9375rem; padding: 0 1.25rem; }
.note { border-bottom: 1px solid var(--rule); background: var(--tint-2); display: flex; align-items: center; gap: .5rem; }
.note p { flex: 1; font-size: .875rem; line-height: 1.4; color: var(--ink-2); }
.note-dismiss { padding: .375rem .25rem .375rem 1.25rem; }
.note-offline { padding: .75rem 1.25rem; gap: .625rem; }
.offline-mark { width: 8px; height: 8px; border: 1.5px solid var(--muted); flex: none; transform: rotate(45deg); }

.empty { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 2rem 1.5rem; gap: 1.25rem; }
.empty-lead { font: 500 1.25rem/1.4 var(--font); text-wrap: pretty; }
.empty.quiet { gap: .75rem; }
.empty-rule { width: 2.5rem; height: 2px; background: var(--teal); }
.empty-text { font: 400 1.1875rem/1.45 var(--font); color: var(--ink-2); text-wrap: pretty; }
.hint { font-size: .875rem; line-height: 1.4; color: var(--muted); }
.empty .hint { margin-top: .5rem; }
.list-hint { padding: 1rem 1.25rem; }

.rows { display: flex; flex-direction: column; }
.row {
  display: grid; grid-template-columns: 1.25rem minmax(0, 1fr) auto; gap: .25rem .5rem; text-align: left;
  border: 0; border-bottom: 1px solid var(--rule); background: #fff; padding: 1rem 1.25rem 1rem .875rem; min-height: 4.5rem; width: 100%;
}
.row:hover, .row:active { background: var(--tint-2); }
.row-dot { width: 9px; height: 9px; background: var(--teal); margin-top: .3rem; justify-self: center; }
.row-main { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.row-site { font: 600 .6875rem/1.3 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--teal-700); }
.row-subject { font: 600 1.0625rem/1.3 var(--font); color: var(--ink); overflow-wrap: anywhere; }
.row-time { font: 600 .8125rem/1.3 var(--font); color: var(--ink); white-space: nowrap; }
.row.is-read { background: var(--tint-2); }
.row.is-read:hover, .row.is-read:active { background: var(--tint); }
.row.is-read .row-site { font-weight: 500; color: var(--muted); }
.row.is-read .row-subject { font-weight: 400; color: var(--ink-read); }
.row.is-read .row-time { font-weight: 400; color: var(--muted); }

/* ---- 4 Nudge ---- */
.nudge-body-wrap { padding: 1.5rem 1.5rem 1.25rem; flex: 1; }
.nudge-title { margin: .5rem 0; font: 600 1.625rem/1.2 var(--font); color: var(--teal); text-wrap: pretty; overflow-wrap: anywhere; }
.nudge-meta { display: flex; gap: .75rem; align-items: center; font-size: .875rem; color: var(--muted); padding-bottom: 1rem; border-bottom: 2px solid var(--teal); }
.nudge-unread { display: flex; align-items: center; gap: .375rem; color: var(--teal-700); font-weight: 600; }
.nudge-unread i { width: 8px; height: 8px; background: var(--teal); display: block; }
.nudge-text { white-space: pre-wrap; font-size: 1.0625rem; line-height: 1.55; padding-top: 1.25rem; overflow-wrap: anywhere; user-select: text; }
.nudge-text a { color: var(--teal-700); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
.nudge-actions {
  position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--rule);
  padding: .875rem 1.25rem calc(1.75rem + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: .5rem;
}
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.pair .btn { padding: .5rem; }

/* ---- 5 My sites ---- */
.site { padding: 1rem 1.25rem; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: .75rem; }
.site-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.site-info { display: flex; flex-direction: column; gap: .25rem; min-width: 0; padding-top: .5rem; }
.site-name { font: 600 1.0625rem/1.3 var(--font); overflow-wrap: anywhere; }
.site-expired { font-size: .875rem; line-height: 1.4; color: var(--ink-read); }
.site .icon-btn:hover, .site .icon-btn:active { background: var(--tint); }
.copy {
  align-self: flex-start; min-height: 44px; border: 1.5px solid var(--teal); background: #fff; color: var(--teal-700);
  font: 600 .9375rem var(--font); padding: 0 1rem; display: flex; align-items: center; gap: .5rem;
}
.copy:hover, .copy:active { background: var(--tint-2); }
.copy.is-copied { background: var(--teal); color: #fff; }
.sites-empty { padding: 1.25rem; font-size: 1rem; color: var(--ink-read); }
.add-wrap { padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom)); }
.add-wrap .btn { width: 100%; padding: 0; }

/* ---- 6 Unsubscribe dialog ---- */
.scrim { position: fixed; inset: 0; background: rgba(18, 32, 40, .55); display: flex; align-items: flex-end; justify-content: center; z-index: 5; }
.sheet {
  width: 100%; max-width: 40rem; background: #fff; border-top: 3px solid var(--teal);
  padding: 1.5rem 1.25rem calc(2.25rem + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 1rem;
}
.sheet-q { font: 600 1.25rem/1.35 var(--font); text-wrap: pretty; }
.sheet .btn-stack { gap: .5rem; margin-top: .5rem; }
.btn-confirm { border: 1.5px solid var(--teal-700); background: var(--teal-700); color: #fff; }
.btn-confirm:hover, .btn-confirm:active { background: var(--teal-900); }

/* ---- 7 Add a site ---- */
.add-intro { padding: 1.25rem 1.25rem .5rem; font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
.add-choices { padding: .75rem 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.choice {
  aspect-ratio: 1 / 1.05; border: 1.5px solid var(--teal); background: #fff; display: flex; flex-direction: column;
  justify-content: space-between; align-items: flex-start; padding: 1rem; text-align: left;
}
.choice:hover, .choice:active { background: var(--tint); }
.choice span { font: 600 1.0625rem/1.25 var(--font); color: var(--ink); }

.scan { position: fixed; inset: 0; z-index: 4; background: var(--scan-bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; padding: 0 2rem; }
.scan video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-frame { width: 240px; height: 240px; position: relative; z-index: 1; }
.scan-frame i { position: absolute; width: 40px; height: 40px; border: 0 solid #fff; }
.scan-frame .tl { left: 0; top: 0; border-left-width: 4px; border-top-width: 4px; }
.scan-frame .tr { right: 0; top: 0; border-right-width: 4px; border-top-width: 4px; }
.scan-frame .bl { left: 0; bottom: 0; border-left-width: 4px; border-bottom-width: 4px; }
.scan-frame .br { right: 0; bottom: 0; border-right-width: 4px; border-bottom-width: 4px; }
.scan-frame .line { left: 16px; right: 16px; top: 50%; width: auto; height: 2px; border: 0; background: rgba(255, 255, 255, .8); }
.scan p { position: relative; z-index: 1; color: #fff; font-size: 1.0625rem; line-height: 1.45; text-align: center; text-wrap: pretty; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.scan-cancel {
  position: absolute; z-index: 1; bottom: calc(2.5rem + env(safe-area-inset-bottom)); min-height: 3rem; min-width: 9rem;
  border: 1.5px solid #fff; background: rgba(15, 26, 32, .35); color: #fff; font: 600 1rem var(--font); padding: 0 1.5rem;
}
