/* Thankyouly. One stylesheet: tokens, components, the gift, the landing pages. */

/* ---------- Tokens ---------- */
:root {
  --bg: #F5F5F7; --card: #FFFFFF; --ink: #1D1D1F; --ink2: #424245; --muted: #6E6E73; --line: rgba(0, 0, 0, .08); --fill: rgba(118, 118, 128, .12);
  --brand: #1E2A38; --gold: #E4C98F; --accent: var(--brand); --ok: #1F9D55; --okbg: rgba(31, 157, 85, .12); --bad: #D70015;
  --r: 22px; --r-sm: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 28px rgba(0, 0, 0, .06);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .05), 0 24px 60px rgba(0, 0, 0, .12);
  --ios: cubic-bezier(.32, .72, 0, 1); --spring: cubic-bezier(.34, 1.56, .64, 1); --out: cubic-bezier(.22, 1, .36, 1);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #000000; --card: #1C1C1E; --ink: #F5F5F7; --ink2: #D1D1D6; --muted: #98989D; --line: rgba(255, 255, 255, .1); --fill: rgba(118, 118, 128, .24);
    --accent: #F5F5F7; --okbg: rgba(48, 209, 88, .16); --ok: #30D158; --shadow: 0 0 0 1px rgba(255, 255, 255, .06); --shadow-lg: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 60px rgba(0, 0, 0, .5); }
}
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .22s var(--out) both vt-out; }
::view-transition-new(root) { animation: .38s var(--ios) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: scale(.985); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* hidden always wins over display: flex/grid on a component */
html { -webkit-text-size-adjust: 100%; interpolate-size: allow-keywords; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.47 var(--sans); letter-spacing: -.012em; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; min-height: 100vh; }
a { color: inherit; }
p a, .small a, .muted a, li a { color: var(--ink); text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, #0071E3 60%, transparent); outline-offset: 2px; border-radius: 10px; }
.i { width: 20px; height: 20px; flex: none; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); } .small { font-size: 14px; line-height: 1.45; } .center { text-align: center; } .full { width: 100%; }
code { font: 13px var(--mono); background: var(--fill); padding: 1px 5px; border-radius: 6px; }

/* ---------- Layout ---------- */
.card, .tool form { min-width: 0; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 24px 20px 120px; }
.wrap.narrow { max-width: 560px; } .wrap.wide { max-width: 1200px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 10px; align-items: center; } .wrap-row { flex-wrap: wrap; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card { background: var(--card); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.card.center { align-items: center; text-align: center; }
.glass { background: color-mix(in srgb, var(--card) 72%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.h1 { font: 700 30px/1.12 var(--display); letter-spacing: -.028em; margin: 0; }
.h2 { font: 600 19px/1.25 var(--display); letter-spacing: -.02em; margin: 0; display: flex; align-items: center; gap: 9px; }
.h2 .i { color: var(--muted); }
.h3 { font: 600 17px/1.3 var(--display); margin: 0; }
.lead { font-size: 19px; line-height: 1.5; color: var(--ink2); margin: 0; }
@media (max-width: 600px) { .row2 { grid-template-columns: minmax(0, 1fr); } .h1 { font-size: 26px; } .card { padding: 18px; } .stats strong { font-size: 24px; } }

/* ---------- Buttons ---------- */
.btn { --b: var(--accent); appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; background: var(--b); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .35s var(--spring), background .2s, opacity .2s, box-shadow .2s; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
@media (prefers-color-scheme: dark) { .btn { color: #000; } }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.96); transition-duration: .08s; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: var(--fill); color: var(--ink); box-shadow: none; }
.btn.big { min-height: 54px; font-size: 17px; padding: 0 28px; }
.btn.small { min-height: 38px; font-size: 14px; padding: 0 16px; }
.btn.danger, .ib.danger:hover { color: var(--bad); } .btn.danger:not(.ghost) { background: var(--bad); color: #fff; }
.btn.busy { pointer-events: none; }
.spin { width: 18px; height: 18px; border: 2.2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.busy .i { animation: pulse 1s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } } @keyframes pulse { 50% { opacity: .35; transform: scale(.85); } }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--fill); border: 0; cursor: pointer; font-size: 14px; font-weight: 500; text-decoration: none; transition: transform .3s var(--spring), background .2s; }
.pill:active { transform: scale(.95); } .pill .i { width: 17px; height: 17px; }
.ib { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--ink2); cursor: pointer; transition: background .2s, transform .3s var(--spring), color .2s; text-decoration: none; }
.ib:hover { background: var(--fill); } .ib:active { transform: scale(.88); } .ib .i { width: 19px; height: 19px; }
.ib.done { color: var(--ok); background: var(--okbg); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: 15px; margin-bottom: 8px; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--fill); }
.chip.gold { background: color-mix(in srgb, var(--gold) 35%, transparent); color: color-mix(in srgb, var(--brand) 80%, #000); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.lbl { font-size: 14px; font-weight: 600; color: var(--ink2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lbl em { font-style: normal; font-weight: 400; color: var(--muted); } .lbl .i { width: 16px; height: 16px; }
.input { width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--fill); border: 1px solid transparent; border-radius: 12px; padding: 12px 14px; outline: none;
  transition: background .2s, border-color .2s, box-shadow .25s var(--out); appearance: none; }
.input:focus { background: var(--card); border-color: color-mix(in srgb, #0071E3 55%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, #0071E3 18%, transparent); }
textarea.input { resize: vertical; min-height: 96px; line-height: 1.45; } .input.mono { font: 15px/1.6 var(--mono); }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6E73' stroke-width='2'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.code-input { text-align: center; font: 600 28px var(--mono); letter-spacing: .3em; }
.filepick { position: relative; overflow: hidden; } .filepick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.error { color: var(--bad); background: color-mix(in srgb, var(--bad) 9%, transparent); border-radius: 12px; padding: 10px 14px; margin: 0; font-size: 15px; }
.error a { color: var(--bad); font-weight: 600; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 51px; height: 31px; border-radius: 999px; background: var(--fill); position: relative; flex: none; transition: background .25s; }
.switch .thumb { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .16); transition: transform .35s var(--spring); }
.switch input:checked + .track { background: #34C759; } .switch input:checked + .track .thumb { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 3px solid color-mix(in srgb, #0071E3 60%, transparent); outline-offset: 2px; }

/* Segmented control with a gliding thumb */
.segctl { position: relative; display: flex; background: var(--fill); border-radius: 11px; padding: 2px; overflow-x: auto; scrollbar-width: none; }
.segctl label { position: relative; z-index: 1; flex: 1 0 auto; cursor: pointer; }
.segctl input { position: absolute; opacity: 0; pointer-events: none; }
.segctl span { display: block; text-align: center; padding: 7px 14px; font-size: 14px; font-weight: 500; border-radius: 9px; white-space: nowrap; transition: color .2s; }
.segctl input:checked + span { font-weight: 600; }
.segctl input:focus-visible + span { outline: 2px solid color-mix(in srgb, #0071E3 60%, transparent); }
.segctl-thumb { position: absolute; z-index: 0; top: 2px; bottom: 2px; left: 0; border-radius: 9px; background: var(--card); box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04); transition: transform .45s var(--spring), width .45s var(--spring); }
.segctl.small span { padding: 5px 11px; font-size: 13px; }

/* Disclosure rows that open smoothly */
.disclose { border-radius: var(--r-sm); }
.disclose summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 2px; font-weight: 600; font-size: 15px; color: var(--ink2); }
.disclose summary::-webkit-details-marker { display: none; }
.disclose summary .chev { margin-left: auto; width: 18px; height: 18px; color: var(--muted); transition: transform .4s var(--spring); }
.disclose[open] summary .chev { transform: rotate(90deg); } .disclose[open] summary .chev.plus { transform: rotate(45deg); }
.disclose::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ios), content-visibility .45s allow-discrete; }
.disclose[open]::details-content { block-size: auto; }
.disclose > :not(summary) { padding-bottom: 8px; }
.card.disclose.plain { padding: 6px 22px; } .card.disclose.plain summary { color: var(--muted); font-weight: 500; }

/* ---------- Feedback ---------- */
.toast { display: flex; align-items: center; gap: 10px; background: var(--okbg); color: var(--ink); border-radius: 14px; padding: 12px 16px; margin: 0 0 14px; font-size: 15px; }
.toast .i { color: var(--ok); }
.toastbox { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toastpop { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: color-mix(in srgb, #1D1D1F 88%, transparent); color: #fff; font-size: 15px; font-weight: 500;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(16px) scale(.94); transition: opacity .3s, transform .5s var(--spring); }
.toastpop.in { opacity: 1; transform: none; } .toastpop .i { color: #30D158; }
.sheet-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0); display: flex; align-items: flex-end; justify-content: center; padding: 12px; transition: background .3s; }
.sheet-wrap.in { background: rgba(0, 0, 0, .32); }
.sheet { width: 100%; max-width: 420px; background: var(--card); border-radius: 26px; padding: 22px; display: flex; flex-direction: column; gap: 10px; text-align: center; box-shadow: var(--shadow-lg);
  transform: translateY(110%); transition: transform .5s var(--ios); margin-bottom: env(safe-area-inset-bottom); }
.sheet-wrap.in .sheet { transform: none; } .sheet p { margin: 0 0 8px; font-size: 16px; color: var(--ink2); }
@media (min-width: 700px) { .sheet-wrap { align-items: center; } .sheet { transform: scale(.9); opacity: 0; transition: transform .45s var(--spring), opacity .25s; } .sheet-wrap.in .sheet { transform: none; opacity: 1; } }
.pop-in { animation: popin .6s var(--spring) both; }
@keyframes popin { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.win svg { width: 76px; height: 76px; } .win circle { fill: var(--okbg); stroke: var(--ok); stroke-width: 2; }
.win path { fill: none; stroke: var(--ok); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .25s var(--out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.mono-mark { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 14%, var(--card)); color: var(--brand); font-weight: 700; font-size: 16px; transition: background .3s, color .3s; }
@media (prefers-color-scheme: dark) { .mono-mark { color: var(--gold); background: color-mix(in srgb, var(--gold) 16%, var(--card)); } }
.mono-mark.on { background: var(--okbg); color: var(--ok); } .mono-mark.big { width: 72px; height: 72px; font-size: 30px; }

/* ---------- App chrome ---------- */
.appbar, .topnav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; padding-top: max(10px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--bg) 76%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -.02em; color: var(--ink); }
.brand .logo { width: 28px; height: 28px; color: var(--brand); }
@media (prefers-color-scheme: dark) { .brand .logo { color: var(--ink); } }
.segs { display: flex; gap: 2px; background: var(--fill); padding: 3px; border-radius: 999px; }
.seg { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink2); transition: background .25s, color .25s, transform .3s var(--spring); }
.seg .i { width: 17px; height: 17px; } .seg.on { background: var(--card); color: var(--ink); box-shadow: 0 2px 6px rgba(0, 0, 0, .1); font-weight: 600; } .seg:active { transform: scale(.95); }
@media (max-width: 480px) { .brand span { display: none; } }
.banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 10px 16px; font-size: 14px; background: color-mix(in srgb, var(--gold) 26%, var(--bg)); color: var(--ink); text-align: center; }
.banner a { font-weight: 700; white-space: nowrap; } .banner .i { width: 17px; height: 17px; }

/* ---------- The gift tool ---------- */
.tool-head { display: flex; flex-direction: column; gap: 14px; margin: 8px 0 20px; }
.progress { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.progress li { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--fill); font-size: 14px; font-weight: 500; color: var(--muted); transition: background .35s, color .35s; }
.progress b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--card); font-size: 13px; transition: background .35s var(--out), color .35s, transform .45s var(--spring); }
.progress li.on { color: var(--ink); } .progress li.on b { background: var(--accent); color: var(--bg); transform: scale(1.06); }
.progress li.done b { background: var(--ok); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; margin: 0 0 18px; }
.tool .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats > div { background: var(--card); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; animation: popin .5s var(--spring) both; }
.stats strong { font: 700 28px/1.1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; } .stats span { font-size: 13px; color: var(--muted); }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; margin-bottom: 24px; }
@media (max-width: 900px) { .tool-grid { grid-template-columns: minmax(0, 1fr); } .phone-wrap { display: none; } }
.count { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--fill); color: var(--muted); transition: background .3s, color .3s, transform .4s var(--spring); }
.count.on { background: var(--okbg); color: var(--ok); animation: bump .45s var(--spring); }
@keyframes bump { 40% { transform: scale(1.12); } }
.dock { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 5; }
.dock .btn { width: 100%; box-shadow: var(--shadow-lg); }
.tip { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--gold) 18%, var(--card)); font-size: 14px; line-height: 1.45; }
.tip .i { flex: none; margin-top: 1px; color: var(--brand); }
.nudge { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: color-mix(in srgb, var(--gold) 20%, var(--card)); border-radius: 16px; padding: 14px 16px; }
.nudge > span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--card); flex: none; }
.nudge p { margin: 0; flex: 1 1 240px; font-size: 15px; }

/* Phone preview */
.phone-wrap { position: sticky; top: 84px; }
.phone { position: relative; width: 300px; height: 600px; border-radius: 48px; background: linear-gradient(180deg, color-mix(in srgb, var(--box) 10%, #fff), #fff); border: 11px solid #1D1D1F;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .1); padding: 54px 18px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; overflow: hidden; color: #1D1D1F; transition: background .5s; }
.phone-notch { position: absolute; top: 10px; left: 50%; width: 92px; height: 26px; border-radius: 999px; background: #1D1D1F; transform: translateX(-50%); }
.phone-from { margin: 0; font-size: 13px; color: #6E6E73; font-weight: 500; text-align: center; }
.phone-note { width: 100%; background: #fff; border-radius: 18px; padding: 14px 16px; box-shadow: 0 6px 20px rgba(0, 0, 0, .08); font-size: 13px; }
.phone-note span { font: 600 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-box, color-mix(in srgb, var(--box) 75%, #000)); }
.phone-note p { font: 14px/1.45 var(--serif); margin: 8px 0 10px; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.phone-note strong { display: block; text-align: center; background: var(--box); color: #fff; border-radius: 999px; padding: 8px; font-size: 12px; }
.phone-note strong:empty { display: none; }
.phone-note strong.warn { background: #D70015; }
.vfield .lbl { display: flex; align-items: center; gap: 6px; }
.vrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 4px; }
.pill.rec { font-weight: 600; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #FF3B30; box-shadow: 0 0 0 3px rgba(255, 59, 48, .2); animation: rec-blink 1.6s ease-in-out infinite; }
@keyframes rec-blink { 50% { opacity: .35; } }
.vsteps { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--fill); font-size: 13px; line-height: 1.5; animation: pv-in .4s var(--spring, ease) both; }
.nudge-pulse { animation: pulse-ring 1.2s ease-out 3; }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
.vstatus { margin: 2px 0 0; font-size: 13px; color: var(--ok, #248A3D); }
.vstatus.bad { color: var(--bad); }
.pv-video { position: relative; margin: 0 0 10px; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: #1D1D1F; display: grid; place-items: center; color: #fff; animation: pv-in .5s var(--spring, ease) both; }
.pv-video.tall { aspect-ratio: 4 / 5; }
.pv-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pv-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0, 0, 0, .55)); }
.pv-video i { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pv-video i .i { width: 18px; height: 18px; margin-left: 2px; }
.pv-video b { position: absolute; z-index: 1; left: 10px; bottom: 8px; font: 600 11px/1.2 var(--sans); }
@keyframes pv-in { from { opacity: 0; transform: scale(.94); } }
.link-warn { margin: -4px 0 0; color: var(--bad); font-size: 13px; }

/* Gift list rows */
.glist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.grow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 4px; border-top: 1px solid var(--line); text-decoration: none; transition: opacity .25s, transform .3s var(--out); }
.glist li:first-child, .glist li:first-child .grow { border-top: 0; }
.glist a.grow { grid-template-columns: auto 1fr auto; border-radius: 14px; padding: 12px; } .glist a.grow:hover { background: var(--fill); }
.grow-main { display: flex; flex-direction: column; min-width: 0; } .grow-main strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grow-main small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; color: var(--muted); padding: 4px 10px; border-radius: 999px; background: var(--fill); white-space: nowrap; }
.status.on { color: var(--ok); background: var(--okbg); } .status .i { width: 14px; height: 14px; }
.acts { display: flex; gap: 0; }
.grow.fresh { animation: slidein .6s var(--spring) both; } .grow.leaving { opacity: 0; transform: translateX(30px); }
.glist .grow.fresh:nth-child(2) { animation-delay: .04s; } .glist .grow.fresh:nth-child(3) { animation-delay: .08s; } .glist .grow.fresh:nth-child(n+4) { animation-delay: .12s; }
@keyframes slidein { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.empty { padding: 20px; text-align: center; }
@media (max-width: 680px) {
  .grow { grid-template-columns: auto minmax(0, 1fr) auto; }
  .grow .acts { grid-column: 1 / -1; justify-content: flex-end; margin-top: -4px; }
}

/* Unlock */
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; } .ticks .i { color: var(--ok); margin-top: 3px; }
.ticks.inline { flex-direction: row; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; color: var(--ink2); }
.ticks.inline .i { width: 17px; height: 17px; margin-top: 3px; }
.plans { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.plan { position: relative; display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; background: var(--fill); cursor: pointer; border: 2px solid transparent; transition: border-color .25s, background .25s, transform .35s var(--spring); }
.plan:active { transform: scale(.985); } .plan input { position: absolute; opacity: 0; }
.plan-in { flex: 1; display: flex; flex-direction: column; gap: 3px; } .plan-top { display: flex; justify-content: space-between; gap: 10px; }
.plan-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.plan .radio { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--muted); flex: none; transition: border .3s var(--spring), border-color .2s; }
.plan:has(input:checked) { border-color: var(--accent); background: var(--card); box-shadow: var(--shadow); }
.plan input:checked ~ .radio { border: 7px solid var(--accent); }
.plan input:focus-visible ~ .radio { outline: 3px solid color-mix(in srgb, #0071E3 60%, transparent); outline-offset: 2px; }
.guarantee { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; background: var(--okbg); border-radius: 14px; font-size: 15px; } .guarantee .i { color: var(--ok); margin-top: 2px; }

/* Admin */
.data { width: 100%; border-collapse: collapse; font-size: 14px; } .data th, .data td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); } .scroll-x { overflow-x: auto; }
.mailframe { width: 100%; height: 640px; border: 0; margin-top: 12px; border-radius: 12px; background: #fff; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; width: 100%; } .or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.signin .card { margin-top: 6vh; }

/* ---------- The gift box ---------- */
.box3d { position: relative; width: 220px; margin: 0 auto; }
.box3d.big { width: min(74vw, 300px); } .box3d.small { width: 170px; }
.box-svg { width: 100%; height: auto; overflow: visible; }
.f-box { fill: var(--box, #1E2A38); transition: fill .5s; } .f-rib { fill: var(--rib, #E4C98F); transition: fill .5s; }
.box-shadow { fill: #000; opacity: .14; transform-box: fill-box; transform-origin: center; transition: transform .6s var(--out), opacity .6s; }
.box-lid, .box-body { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .8s var(--spring), opacity .5s var(--out); }
.box-tag { position: absolute; left: 50%; top: 69%; transform: translate(-50%, -50%) rotate(-3deg); max-width: 76%; padding: 7px 14px; border-radius: 10px; background: #FFFDF8; color: #1D1D1F;
  font-weight: 650; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); transition: transform .6s var(--spring), opacity .4s; }
.box3d.small .box-tag { font-size: 12px; padding: 5px 10px; }
.float { animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-1deg); } }

/* The envelope */
.env3d { position: relative; width: 230px; margin: 0 auto; perspective: 900px; }
.env3d.big { width: min(78vw, 320px); } .env3d.small { width: 176px; }
.env-svg { width: 100%; height: auto; overflow: visible; }
.env-flap { transform-box: fill-box; transform-origin: 50% 0%; transition: transform .55s var(--ios); }
.env-letter { transform-box: fill-box; transform-origin: 50% 100%; transform: translateY(18%); transition: transform .8s var(--spring) .35s; }
.env-tag { top: 74%; font-family: var(--serif); font-style: italic; font-weight: 600; }
.gift-tap:hover .env-flap { transform: scaleY(.94); }
.gift.shake .env3d { animation: wiggle .38s cubic-bezier(.36, .07, .19, .97) both; }
.gift.lift .env-flap { transform: scaleY(-1); }
.gift.lift .env-letter { transform: translateY(-44%); }
.gift.lift .env3d { transition: transform .5s var(--out) .85s, opacity .4s .9s; transform: translateY(10%) scale(.94); opacity: 0; }
.gift.lift .env-tag { opacity: 0; transform: translate(-50%, -40%) scale(.9); }
.pv-box[hidden], .pv-env[hidden] { display: none; }
.wrapstyle span { display: inline-flex; align-items: center; gap: 6px; justify-content: center; } .wrapstyle .i { width: 16px; height: 16px; }

/* ---------- The gift page ---------- */
.giftbody { background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--brand) 16%, var(--bg)), var(--bg) 70%); }
.gift { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 72px 20px calc(40px + env(safe-area-inset-bottom)); text-align: center; position: relative; overflow-x: hidden; }
.gift-from { margin: 0; font: 600 20px/1.3 var(--display); letter-spacing: -.02em; transition: opacity .4s, transform .5s var(--out); animation: popin .7s .1s var(--spring) both; }
.gift-tap { appearance: none; background: none; border: 0; padding: 18px; cursor: pointer; border-radius: 32px; animation: popin .8s .2s var(--spring) both; }
.gift.ready:not(.lift):not(.shake) .box3d, .gift.ready:not(.lift):not(.shake) .env3d { animation: breathe 3.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translateY(-6px) scale(1.012); } }
.gift-tap:hover .box-lid { transform: translateY(-6px) rotate(-1.5deg); }
.gift-hint { margin: 0; transition: opacity .3s; }
.gift-hint span { display: inline-block; padding: 8px 18px; border-radius: 999px; background: color-mix(in srgb, var(--card) 70%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-weight: 600; font-size: 15px; box-shadow: var(--shadow); animation: nudge 2.4s 1.4s ease-in-out infinite; }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-3px); } 90% { transform: translateY(1px); } }
.gift.shake .box3d { animation: wiggle .62s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes wiggle { 10%, 90% { transform: rotate(-2deg); } 20%, 80% { transform: rotate(3deg) scale(1.02); } 30%, 50%, 70% { transform: rotate(-5deg) scale(1.04); } 40%, 60% { transform: rotate(5deg) scale(1.04); } }
.gift.lift .box-lid { transform: translate(-6%, -150%) rotate(-16deg); opacity: 0; transition-duration: .9s, .6s; }
.gift.lift .box-body { transform: translateY(8%) scale(.92); opacity: 0; transition-delay: .18s; }
.gift.lift .box-tag { transform: translate(-50%, -10%) scale(.8) rotate(4deg); opacity: 0; }
.gift.lift .box-shadow { transform: scaleX(.6); opacity: 0; }
.gift.lift .gift-from, .gift.lift .gift-hint { opacity: 0; transform: translateY(-8px); }
.gift.open .gift-tap, .gift.open [data-hide-open] { display: none; }
.reveal { display: none; width: 100%; max-width: 460px; }
.gift.open .reveal { display: flex; flex-direction: column; gap: 16px; align-items: stretch; animation: noteup .9s var(--spring) both; }
@keyframes noteup { from { opacity: 0; transform: translateY(80px) scale(.86) rotate(1.5deg); } }
.note { position: relative; background: #FFFDF8; color: #1D1D1F; border-radius: 24px; padding: 28px 26px 22px; text-align: left; box-shadow: var(--shadow-lg); overflow: hidden; }
.note::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--box), var(--rib), var(--box)); }
.note-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 700 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-box, color-mix(in srgb, var(--box) 70%, #6E6E73)); }
.note-amt { font: 700 15px var(--sans); letter-spacing: 0; color: #1D1D1F; background: color-mix(in srgb, var(--rib) 35%, #fff); padding: 5px 12px; border-radius: 999px; }
.note-msg { font: 21px/1.5 var(--serif); margin: 18px 0 20px; white-space: pre-line; letter-spacing: -.005em; }
.note-sig { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid rgba(0, 0, 0, .08); }
.note-sig .mono-mark { background: var(--mark-bg, var(--box)); color: var(--mark-fg, var(--rib)); }
.note-sig strong { display: block; } .note-sig small { display: block; color: #5F5F64; font-size: 14px; }
.note-sponsor { margin: 14px 0 0; text-align: center; font-size: 12px; letter-spacing: .02em; color: #8A8A90; }
.note-video { margin: 0 0 18px; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: #1D1D1F; }
.note-video.tall { aspect-ratio: 9 / 16; max-width: 320px; margin-inline: auto; }
.note-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.play { width: 100%; height: 100%; border: 0; cursor: pointer; background: #1D1D1F center / cover; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 15px; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); position: relative; }
.play::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .08), transparent 35%, rgba(0, 0, 0, .7)); }
.play-label { position: absolute; left: 16px; right: 16px; bottom: 14px; text-align: left; font-size: 15px; font-weight: 600; z-index: 1; }
.play > * , .play { z-index: 0; } .play span { position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .25); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: transform .35s var(--spring); }
.play:hover span { transform: scale(1.08); } .play .i { width: 28px; height: 28px; margin-left: 4px; }
.note-card { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--rib) 28%, #fff); color: #1D1D1F; text-decoration: none; font-size: 16px; transition: transform .35s var(--spring); }
.note-card:active { transform: scale(.98); } .note-card .i:last-child { margin-left: auto; color: #6E6E73; }
.note-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; padding: 12px 12px 12px 16px; border-radius: 16px; border: 1.5px dashed color-mix(in srgb, var(--box) 40%, transparent); background: color-mix(in srgb, var(--rib) 14%, #fff); }
.note-code small { display: block; font-size: 12px; color: #6E6E73; } .note-code strong { font: 700 20px var(--mono); letter-spacing: .06em; color: #1D1D1F; }
.note-code .btn { --b: var(--box); color: #fff; flex: none; } .note-code .btn.done { --b: #1F9D55; }
.review .stars { color: #F5A623; letter-spacing: 1px; font-size: 15px; }
.note-acts { display: flex; flex-direction: column; gap: 10px; }
.note-acts .btn { width: 100%; --b: var(--box); color: #fff; }
.note-acts .btn.ghost { background: color-mix(in srgb, var(--card) 70%, transparent); color: var(--ink); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.socials { display: flex; justify-content: center; gap: 6px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--card) 70%, transparent); color: var(--ink2); transition: transform .3s var(--spring); }
.socials a:active { transform: scale(.9); }
.react { text-align: center; } .react p { margin: 0 0 8px; font-size: 14px; color: var(--muted); font-weight: 500; }
.react div { display: inline-flex; gap: 10px; }
.react button { width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer; font-size: 26px; background: color-mix(in srgb, var(--card) 75%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow); transition: transform .45s var(--spring), opacity .3s; }
.react button:active { transform: scale(.86); } .react.sent button:not(.picked) { opacity: .3; transform: scale(.85); } .react button.picked { transform: scale(1.18); animation: bump .5s var(--spring); }
.rx { font-weight: 400; margin-right: 2px; }
.gift-foot { margin: 4px 0 0; font-size: 14px; color: var(--muted); } .gift-foot a { color: var(--muted); }
.fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 20; }
.sample-pill { position: absolute; top: max(14px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; background: color-mix(in srgb, var(--card) 80%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); white-space: nowrap; }
.sample-pill .i { width: 15px; height: 15px; }
.make { text-align: left; box-shadow: var(--shadow-lg); animation: noteup .9s .25s var(--spring) both; }
.sender .card { margin-top: 4vh; } .sender .lead { font-size: 17px; }

/* ---------- Landing pages ---------- */
.site { background: var(--bg); }
.topnav { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.topnav-links { display: flex; gap: 24px; font-size: 14px; } .topnav-links a { text-decoration: none; color: var(--ink2); transition: color .2s; } .topnav-links a:hover { color: var(--ink); }
.topnav-right { display: flex; align-items: center; gap: 14px; } a.signin { font-size: 14px; text-decoration: none; color: var(--ink2); }
@media (max-width: 820px) { .topnav-links { display: none; } }
.landing { overflow-x: hidden; }
.hero { max-width: 1160px; margin: 0 auto; padding: 56px 24px 40px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; animation: popin .8s var(--spring) both; }
.display { font: 700 clamp(40px, 6vw, 68px)/1.04 var(--display); letter-spacing: -.045em; margin: 0; text-wrap: balance; }
.landing .lead { font-size: clamp(18px, 2vw, 21px); text-wrap: pretty; }
.motto { margin: 0; font: italic 600 20px var(--serif); letter-spacing: .01em; color: color-mix(in srgb, var(--brand) 70%, var(--muted)); }
@media (prefers-color-scheme: dark) { .motto { color: var(--gold); } }
.eyebrow-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; background: color-mix(in srgb, var(--gold) 30%, var(--card)); color: var(--ink); }
.eyebrow-pill .i { width: 16px; height: 16px; }
.hero-demo { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0; padding: 30px 0 0; animation: popin 1s .15s var(--spring) both; }
.hero-demo::before { content: ""; position: absolute; inset: 0 5% 25%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--rib) 40%, transparent), transparent); filter: blur(30px); z-index: -1; }
.demo-form { width: 100%; max-width: 440px; margin-top: -10px; box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 32px; gap: 28px; } }
.section { max-width: 1160px; margin: 0 auto; padding: 72px 24px; }
.section.narrow { max-width: 680px; }
.section.rise { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--out), transform 1s var(--ios); } .section.rise.in { opacity: 1; transform: none; }
.eyebrow { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: color-mix(in srgb, var(--brand) 60%, var(--muted)); }
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--gold); } }
.h2xl { font: 700 clamp(30px, 4.4vw, 48px)/1.08 var(--display); letter-spacing: -.035em; margin: 0 0 28px; text-wrap: balance; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; } @media (max-width: 820px) { .cards3 { grid-template-columns: 1fr; } }
.feature { background: var(--card); border-radius: 26px; padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: transform .5s var(--spring), box-shadow .3s; }
.feature > .i { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: color-mix(in srgb, var(--brand) 10%, var(--card)); color: var(--brand); }
@media (prefers-color-scheme: dark) { .feature > .i { color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, var(--card)); } }
.feature h3 { font: 600 21px/1.2 var(--display); letter-spacing: -.02em; margin: 6px 0 0; } .feature p { margin: 0; color: var(--ink2); }
.feature.link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); } .feature.link:active { transform: scale(.98); }
.feature-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 15px; }
.quote { text-align: center; max-width: 820px; } .quote .lead { max-width: 640px; margin: 0 auto; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; } @media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.mocklist { display: flex; flex-direction: column; padding: 10px 18px; }
.mockrow { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-weight: 600; }
.mockrow:first-child { border-top: 0; }
.rise.in .mockrow { animation: slidein .7s var(--spring) both; } .rise.in .mockrow:nth-child(2) { animation-delay: .1s; } .rise.in .mockrow:nth-child(3) { animation-delay: .2s; } .rise.in .mockrow:nth-child(4) { animation-delay: .3s; }
.price-card { position: relative; background: var(--card); border-radius: 26px; padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.price-card.hi { box-shadow: var(--shadow-lg), 0 0 0 2px var(--brand); }
@media (prefers-color-scheme: dark) { .price-card.hi { box-shadow: var(--shadow-lg), 0 0 0 2px var(--gold); } }
.price-card .chip { position: absolute; top: -11px; left: 24px; } .price-card h3 { margin: 0; font: 600 19px var(--display); }
.price { font: 700 44px/1 var(--display); letter-spacing: -.04em; margin: 4px 0; } .price small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-card p.muted { margin: 0 0 10px; flex: 1; font-size: 15px; }
.plans-row { margin-bottom: 18px; }
.signup { padding: 32px; box-shadow: var(--shadow-lg); } .signup .h2xl { margin: 0; }
.faq { display: flex; flex-direction: column; } .faq .disclose { border-top: 1px solid var(--line); border-radius: 0; }
.faq summary { font-size: 18px; color: var(--ink); padding: 20px 0; } .faq p { margin: 0 0 18px; color: var(--ink2); }
.foot { max-width: 1160px; margin: 0 auto; padding: 40px 24px 60px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; } .foot nav a { color: var(--muted); text-decoration: none; }
.landing.green { --brand: #2E3B2F; --gold: #F0D9A4; }
@media (prefers-color-scheme: light) { .landing.green { --accent: #2E3B2F; } .landing.tinted { --accent: var(--brand); } }

/* ---------- Note generator ---------- */
.gen .section.narrow:first-child { padding-bottom: 12px; } .small-display { font-size: clamp(36px, 5vw, 56px); }
.gen-tool { display: flex; flex-direction: column; gap: 18px; padding-top: 12px; }
.gen-note { animation: none; } .gen-note .note-msg { margin-top: 4px; min-height: 4.5em; }
.center-row { justify-content: center; }
.gen-cta { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; }
.gen-cta .box3d.small { width: 150px; } @media (max-width: 560px) { .gen-cta { grid-template-columns: 1fr; text-align: center; } }

/* ---------- Legal pages ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 32px 20px 80px; } .legal h1 { font: 700 36px/1.1 var(--display); letter-spacing: -.03em; }
.legal h2 { font: 600 21px var(--display); margin: 32px 0 8px; } .legal-nav { display: flex; gap: 16px; margin-top: 40px; }

/* ---------- Link-in-bio page ---------- */
.lbody { --lbg: #F6F2EA; --lcard: rgba(255, 255, 255, .72); --link: #1D1D1F; --lmuted: #6E6E73; --lline: rgba(0, 0, 0, .06); --lacc: var(--brand); background: var(--lbg); color: var(--link); color-scheme: light; }
.lbody.style-midnight { --lbg: #0B0C0F; --lcard: rgba(255, 255, 255, .06); --link: #F5F5F7; --lmuted: #A1A1A6; --lline: rgba(255, 255, 255, .08); --lacc: var(--gold); color-scheme: dark; }
.lbody.style-brand { --lbg: var(--brand); --lcard: rgba(255, 255, 255, .1); --link: #FFFFFF; --lmuted: rgba(255, 255, 255, .72); --lline: rgba(255, 255, 255, .12); --lacc: var(--gold); color-scheme: dark;
  background: radial-gradient(120% 900px at 50% 0%, color-mix(in srgb, var(--gold) 30%, var(--brand)), var(--brand) 60%) no-repeat var(--brand); }
.lbody.style-midnight { background: radial-gradient(90% 600px at 50% 0%, color-mix(in srgb, var(--gold) 14%, #0B0C0F), #0B0C0F 70%) no-repeat #0B0C0F; }
html:has(.lbody.style-paper) { background: #F6F2EA; } html:has(.lbody.style-midnight) { background: #0B0C0F; } html:has(.lbody.style-brand) { background: var(--brand); }
.lpage { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100svh; padding: calc(56px + env(safe-area-inset-top)) 22px calc(36px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.lhead { display: flex; flex-direction: column; align-items: center; gap: 4px; animation: popin .8s var(--spring) both; }
.lavatar { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: color-mix(in srgb, var(--lacc, var(--brand)) 18%, var(--card)); margin-bottom: 14px;
  box-shadow: 0 0 0 4px var(--lbg, var(--card)), 0 0 0 5px var(--lline, var(--line)), 0 14px 40px rgba(0, 0, 0, .16); }
.lavatar img { width: 100%; height: 100%; object-fit: cover; } .lavatar span { font: 700 44px var(--display); color: var(--lacc, var(--brand)); }
.lavatar.small { width: 72px; height: 72px; margin: 0; box-shadow: 0 0 0 1px var(--line); } .lavatar.small span { font-size: 28px; }
.lhead h1 { font: 700 30px/1.1 var(--display); letter-spacing: -.03em; margin: 0; }
.lsub { margin: 2px 0 0; color: var(--lmuted); font-size: 16px; } .lcity { margin: 0; color: var(--lmuted); font-size: 14px; }
.lline { margin: 4px 0 0; font: italic 22px/1.4 var(--serif); letter-spacing: -.01em; max-width: 26ch; text-wrap: balance; animation: popin .8s .08s var(--spring) both; }
.lbio { margin: 0; color: var(--lmuted); font-size: 16px; max-width: 34ch; text-wrap: pretty; animation: popin .8s .12s var(--spring) both; }
.lquick { display: flex; gap: 10px; margin-top: 6px; animation: popin .8s .16s var(--spring) both; }
.lq { width: 76px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0 10px; border-radius: 20px; background: var(--lcard); color: var(--link); text-decoration: none; font-size: 13px; font-weight: 600;
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); box-shadow: 0 0 0 1px var(--lline); transition: transform .4s var(--spring); }
.lq .i { width: 22px; height: 22px; color: var(--lacc); } .lq:active { transform: scale(.92); }
.llinks { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.lrow { display: grid; grid-template-columns: 40px 1fr 20px; align-items: center; gap: 10px; min-height: 62px; padding: 8px 14px 8px 10px; border-radius: 20px; text-decoration: none; color: var(--link); font-weight: 600; font-size: 17px; letter-spacing: -.01em;
  background: var(--lcard); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); box-shadow: 0 0 0 1px var(--lline), 0 6px 20px rgba(0, 0, 0, .04);
  transition: transform .45s var(--spring), box-shadow .3s; animation: rowin .7s var(--spring) both; }
.lrow:nth-child(1) { animation-delay: .18s; } .lrow:nth-child(2) { animation-delay: .23s; } .lrow:nth-child(3) { animation-delay: .28s; } .lrow:nth-child(4) { animation-delay: .33s; } .lrow:nth-child(n+5) { animation-delay: .38s; }
@keyframes rowin { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.lrow:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--lline), 0 12px 30px rgba(0, 0, 0, .08); } .lrow:active { transform: scale(.97); transition-duration: .1s; }
.lrow-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--lacc) 14%, transparent); }
.lrow-ic .i { width: 20px; height: 20px; color: var(--lacc); } .lrow-t { text-align: center; } .lrow-go { width: 18px; height: 18px; color: var(--lmuted); }
.lrow .stars { color: #F5A623; font-size: 13px; letter-spacing: 1px; margin-left: 4px; }
.lpage .socials a { background: var(--lcard); color: var(--link); box-shadow: 0 0 0 1px var(--lline); }
.lfoot { margin-top: auto; padding-top: 24px; } .lfoot a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--lmuted); text-decoration: none; }
.lfoot .logo { width: 18px; height: 18px; color: var(--lmuted); }
/* The form on the page */
.lform { width: 100%; margin-top: 10px; scroll-margin-top: 20px; }
.lcard { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 24px; background: var(--lcard); box-shadow: 0 0 0 1px var(--lline); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); text-align: left; animation: rowin .7s .4s var(--spring) both; }
.lcard h2 { margin: 0 0 4px; font: 700 20px var(--display); letter-spacing: -.02em; text-align: center; }
.lkinds { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; } .lkinds input { position: absolute; opacity: 0; }
.lkinds span { display: block; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; box-shadow: 0 0 0 1px var(--lline); cursor: pointer; transition: background .25s, color .25s, transform .35s var(--spring); }
.lkinds input:checked + span { background: var(--lacc); color: var(--lbg); box-shadow: none; } .lkinds input:focus-visible + span { outline: 2px solid var(--lacc); outline-offset: 2px; } .lkinds label:active span { transform: scale(.94); }
.linput { width: 100%; font: inherit; font-size: 16px; color: var(--link); background: color-mix(in srgb, var(--link) 6%, transparent); border: 1px solid transparent; border-radius: 14px; padding: 12px 14px; outline: none; resize: vertical; transition: border-color .2s, box-shadow .25s; }
.linput::placeholder { color: var(--lmuted); } .linput:focus { border-color: color-mix(in srgb, var(--lacc) 60%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lacc) 18%, transparent); }
.lsubmit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border: 0; border-radius: 999px; background: var(--lacc); color: var(--lbg); font: 600 16px var(--sans); cursor: pointer; transition: transform .35s var(--spring); }
.lsubmit:active { transform: scale(.96); } .lsubmit .i { width: 18px; height: 18px; }
.style-paper .lsubmit, .style-paper .lkinds input:checked + span { color: #fff; }
.lerr { margin: 0; color: #D70015; font-size: 14px; text-align: center; }
.lsent { display: flex; gap: 12px; align-items: center; padding: 18px; border-radius: 22px; background: var(--lcard); box-shadow: 0 0 0 1px var(--lline); text-align: left; }
.lsent .i { width: 28px; height: 28px; color: #30D158; flex: none; } .lsent p { margin: 0; }
.qr-row { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 16px; background: var(--fill); } .qr-row img { border-radius: 12px; flex: none; }
/* Settings for the page */
.photo-row { display: flex; align-items: center; gap: 16px; } .check { display: flex; gap: 6px; align-items: center; }
.styles { border: 0; padding: 0; margin: 0; display: flex; gap: 12px; flex-wrap: wrap; } .styles legend { margin-bottom: 8px; }
.style-pick { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; cursor: pointer; } .style-pick input { position: absolute; opacity: 0; }
.swatch { width: 86px; height: 110px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 2px solid transparent; box-shadow: 0 0 0 1px var(--line); transition: border-color .25s, transform .4s var(--spring); }
.swatch i { display: block; width: 60%; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .7); } .swatch i:first-child { width: 22px; height: 22px; border-radius: 50%; }
.sw-paper { background: #F6F2EA; } .sw-paper i { background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); } .sw-paper i:first-child { background: var(--brand); }
.sw-midnight { background: #0B0C0F; } .sw-midnight i { background: rgba(255, 255, 255, .12); } .sw-midnight i:first-child { background: var(--gold); }
.sw-brand { background: var(--brand); } .sw-brand i { background: rgba(255, 255, 255, .18); } .sw-brand i:first-child { background: var(--gold); }
.style-pick input:checked + .swatch { border-color: var(--accent); transform: scale(1.04); } .style-pick input:focus-visible + .swatch { outline: 3px solid color-mix(in srgb, #0071E3 60%, transparent); }
.linkrow-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 8px; align-items: center; } .linkrow-edit.fresh { animation: slidein .5s var(--spring); }
@media (max-width: 560px) { .linkrow-edit { grid-template-columns: minmax(0, 1fr) auto; } .linkrow-edit input[name=link_u] { grid-column: 1; } .linkrow-edit .ib { grid-row: 1 / span 2; grid-column: 2; } }

.moment select { width: auto; max-width: 240px; padding: 8px 36px 8px 12px; font-size: 16px; border-radius: 999px; }

/* ---------- Graphics ---------- */
.tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.tpl { cursor: pointer; display: flex; flex-direction: column; gap: 6px; } .tpl input { position: absolute; opacity: 0; }
.tpl-img { display: flex; align-items: center; justify-content: center; background: var(--fill); border-radius: 14px; overflow: hidden; border: 2px solid transparent; max-height: 180px; transition: border-color .25s, transform .4s var(--spring); }
.tpl-img img { width: 100%; height: 100%; object-fit: cover; } .tpl:active .tpl-img { transform: scale(.96); }
.tpl input:checked + .tpl-img { border-color: var(--accent); box-shadow: var(--shadow); } .tpl input:focus-visible + .tpl-img { outline: 3px solid color-mix(in srgb, #0071E3 60%, transparent); }
.tpl-name { font-size: 13px; font-weight: 600; text-align: center; }
.gfx-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.gfx-preview { background: var(--fill); border-radius: 18px; padding: 16px; display: grid; place-items: center; }
.gfx-preview img { max-width: 100%; max-height: 520px; border-radius: 10px; box-shadow: var(--shadow-lg); }
@media (max-width: 700px) { .gfx-row { grid-template-columns: minmax(0, 1fr); } }

.swatches { display: flex; gap: 10px; } .swatches input { position: absolute; opacity: 0; }
.swatches span { display: block; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: transform .35s var(--spring), box-shadow .2s; }
.swatches input:checked + span { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent); transform: scale(1.08); } .swatches input:focus-visible + span { outline: 3px solid color-mix(in srgb, #0071E3 60%, transparent); outline-offset: 3px; }

/* ---------- Printable cards ---------- */
.printbody .appbar .row { gap: 8px; } .pill.on { background: var(--accent); color: var(--bg); }
.sheet-grid { display: grid; grid-template-columns: repeat(2, 4.25in); justify-content: center; gap: 16px; padding: 16px 16px 80px; }
.pcard { width: 4.25in; height: 5.5in; background: #fff; color: #1D1D1F; border-radius: 12px; box-shadow: var(--shadow); padding: .35in .32in .3in; display: flex; flex-direction: column; gap: .12in; position: relative; overflow: hidden; break-inside: avoid; }
.pcard::before { content: ""; position: absolute; inset: 0 0 auto; height: .12in; background: linear-gradient(90deg, var(--box), var(--rib), var(--box)); }
.pcard header { display: flex; justify-content: space-between; align-items: center; font: 700 9pt var(--sans); letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--box) 75%, #555); }
.pcard header .logo { width: .28in; height: .28in; color: var(--box); }
.pcard h2 { font: 700 20pt/1.1 var(--display); letter-spacing: -.02em; margin: 0; }
.pnote { font: 11.5pt/1.45 var(--serif); margin: 0; flex: 1; overflow: hidden; }
.pqr { display: flex; align-items: center; gap: .16in; padding: .12in; border-radius: 10px; background: color-mix(in srgb, var(--rib) 16%, #fff); }
.pqr .qr { width: 1.35in; height: 1.35in; flex: none; border-radius: 6px; }
.pqr strong { display: block; font: 700 12pt var(--sans); } .pqr small { display: block; font: 8pt var(--mono); color: #555; word-break: break-all; margin-top: 4px; }
.pcard footer { font: 600 10.5pt var(--sans); color: #444; }
@media print {
  @page { size: letter; margin: 0; }
  body.printbody { background: #fff; } .noprint, .appbar { display: none !important; }
  .sheet-grid { gap: 0; padding: 0; grid-template-columns: repeat(2, 4.25in); grid-auto-rows: 5.5in; }
  .pcard { border-radius: 0; box-shadow: none; outline: 1px dashed #bbb; outline-offset: -1px; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .pcard:nth-child(4n) { break-after: page; }
}

/* ---------- Less motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .section.rise { opacity: 1; transform: none; }
}

.follow .grow { grid-template-columns: auto minmax(0, 1fr) auto auto; } .follow .pill .i { color: var(--ok); }
.follow { box-shadow: var(--shadow), 0 0 0 2px var(--okbg); margin-bottom: 18px; }

/* ---------- Nonprofit tools ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font: 600 11px/1 var(--sans); padding: 5px 8px; border-radius: 999px; background: var(--fill); color: var(--ink2); }
.tag .i { width: 12px; height: 12px; }
.tag.new { background: color-mix(in srgb, #F2C14E 30%, transparent); color: #7A5600; }
.tag.ok { background: var(--okbg); color: var(--ok); }
.tag.clock { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--ink); }
.outcomes .res-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.outcomes .res-grid > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--fill); }
.outcomes .res-grid strong { font: 700 26px/1.1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.outcomes .res-grid span { font-size: 13px; line-height: 1.3; color: var(--muted); }
.why { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; margin: 0 0 12px; padding: 12px 16px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.why b { color: var(--ink); }
.survey { text-align: center; margin: 22px 0 6px; animation: pv-in .5s var(--spring, ease) both; }
.survey p { margin: 0 0 12px; font-weight: 600; }
.survey div { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.survey .pill { transition: transform .3s var(--spring), background .2s, opacity .2s; }
.survey .pill.picked { background: var(--box, var(--brand)); color: #fff; transform: scale(1.04); }
.survey.sent .pill:not(.picked) { opacity: .5; }
.note-update { margin: 0 0 14px; padding: 16px 18px; border-radius: 18px; background: color-mix(in srgb, var(--rib, #E4C98F) 22%, var(--card)); box-shadow: var(--shadow); animation: pv-in .6s var(--spring, ease) both; }
.note-update span { display: flex; align-items: center; gap: 6px; font: 700 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); }
.note-update p { margin: 8px 0 0; font: 17px/1.5 var(--serif); white-space: pre-line; }
.impact-row { display: grid; grid-template-columns: auto 80px auto 80px 1fr; gap: 8px; align-items: center; font-weight: 600; }
@media (max-width: 520px) { .impact-row { grid-template-columns: auto 1fr auto 1fr; } .impact-row input[name=impact_unit] { grid-column: 1 / -1; } }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.5; color: var(--ink2); }
.team .script { margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--fill); font: 17px/1.5 var(--serif); }
.grow.was { opacity: .55; }
.grow form { margin: 0; }
.pill.go { background: var(--ink); color: var(--card); }
[data-copy].done { background: var(--okbg); color: var(--ok); }
.team .grow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 12px; align-items: start; }
.team .grow .acts { grid-column: 3; grid-row: 1; align-self: start; margin: 0; }
.team .grow form { grid-column: 2 / -1; }
.team .grow form .pill { width: 100%; justify-content: center; }
.note-update span { text-align: left; }
.np-settings { margin: 16px 0; }

/* ---------- Share cards ---------- */
.wrap.share { max-width: 980px; }
.share-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 760px) { .share-grid { grid-template-columns: 1fr; } }
.share-canvas { position: sticky; top: 16px; }
.share-canvas canvas { width: 100%; height: auto; display: block; border-radius: 22px; box-shadow: var(--shadow-lg, 0 24px 60px rgba(0, 0, 0, .18)); animation: pv-in .6s var(--spring, ease) both; }
@media (max-width: 760px) { .share-canvas { position: static; max-width: 420px; margin: 0 auto; } }
.share-links { margin: 22px 0 8px; gap: 10px; }
.btn.done { background: var(--ok); }
.sharecta { width: 100%; margin: 14px 0 0; }
.share header .lbl { align-self: center; }
.share-links { justify-content: center; }

/* Insert buttons: "+ First name" */
.inserts { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.ins { appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font: 600 13px/1 var(--sans); padding: 7px 11px 7px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, var(--card)); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transition: transform .2s var(--spring), background .2s; }
.ins:hover { background: color-mix(in srgb, var(--accent) 16%, var(--card)); } .ins:active { transform: scale(.96); }
.ins .i { width: 14px; height: 14px; }
.showcode summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink2); }
.showcode[open] { display: grid; gap: 8px; }
.setup-help { padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--gold) 18%, var(--card)); font-size: 14px; line-height: 1.5; }
.setup-help p { margin: 0; }
.setup-help .input { flex: 1; min-width: 200px; background: var(--card); }

/* Native share buttons show only where the browser can open the share menu. */
html:not(.can-share) [data-share] { display: none !important; }

/* ---------- Calm layout: getting started, welcome, row menu ---------- */
.start { padding: 18px 20px; }
.start .h3 { margin: 0; font-size: 17px; } .start .h3 .muted { font-weight: 500; font-size: 14px; margin-left: 6px; }
.start-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; }
.start-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 8px 0; }
.start-list strong { display: block; font-weight: 600; font-size: 15px; } .start-list small { color: var(--muted); font-size: 13px; }
.start-list .tick { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); display: grid; place-items: center; color: transparent; transition: background .3s, color .3s; }
.start-list .tick .i { width: 14px; height: 14px; }
.start-list li.done .tick { background: var(--ok); color: #fff; box-shadow: none; }
.start-list li.done strong { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.start-list li.done .pill { display: none; }
.start [data-start-hide] .i { transform: rotate(90deg); }
.welcome .sheet { gap: 14px; padding: 28px 24px 18px; }
.welcome .wl-step { display: grid; gap: 12px; justify-items: center; }
.welcome .wl-step[hidden] { display: none; }
.welcome .h2 { margin: 0; justify-content: center; } .welcome p { margin: 0; }
.wl-box { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 35%, var(--card)); color: var(--brand); animation: pv-in .5s var(--spring) both; }
.wl-box .i { width: 30px; height: 30px; } .wl-box.done { background: var(--ok); color: #fff; }
.wl-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.welcome .btn.big { width: 100%; }
.grow .more-acts { display: none; grid-column: 2 / -1; flex-wrap: wrap; gap: 6px; padding-top: 2px; }
.grow.open .more-acts { display: flex; animation: pv-in .25s var(--out, ease) both; }
.more-btn span { font-size: 9px; letter-spacing: 1px; line-height: 1; }
.grow.open .more-btn { background: var(--fill); }
.pill.small { padding: 6px 11px; font-size: 13px; min-height: 0; }
.pill.danger { color: var(--bad); }
.can-share .acts .copy-main { display: none; }
.disclose.more > summary { color: var(--ink2); }
.tool-head { margin-bottom: 4px; }

/* Settings tabs */
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 4px 0 16px; padding: 3px; background: var(--fill); border-radius: 12px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 8px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink2); text-decoration: none; transition: background .2s, color .2s; }
.tabs a.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.tabbed [data-tab]:not(.on) { display: none !important; }
.tag.warn { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.mail-on { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; } .mail-on strong { display: block; } .mail-on small { color: var(--muted); }
/* Phones and tablets: every tap target at least ~40px tall, so thumbs hit them (Apple and Google suggest 44–48px). */
@media (pointer: coarse) {
  .segctl span { padding-top: 11px; padding-bottom: 11px; }
  .segctl.small span { padding-top: 10px; padding-bottom: 10px; }
  .brand, a.signin, .legal-nav a, .legal a.small { min-height: 44px; display: inline-flex; align-items: center; }
  .brand { min-width: 44px; }
  a.signin { padding: 0 6px; }
}
.problems { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; } .problems pre { white-space: pre-wrap; font-size: 12px; background: var(--fill); padding: 10px; border-radius: 8px; max-height: 220px; overflow: auto; }
/* Gift receipt on a donor's note: quiet, printable on its own. */
.receipt { margin: 18px auto 0; max-width: 460px; width: 100%; background: var(--card); border: 1px solid var(--line, rgba(0,0,0,.08)); border-radius: 16px; padding: 16px 18px; text-align: left; color: var(--ink); }
.receipt header { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-weight: 600; font-size: 15px; }
.receipt header > span { display: inline-flex; align-items: center; gap: 6px; }
.receipt dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 14px 0 10px; }
.receipt dt { font-size: 12px; color: var(--muted); } .receipt dd { margin: 2px 0 0; font-size: 15px; font-weight: 500; word-break: break-word; }
.receipt-text { font-size: 14px; margin: 6px 0; } .receipt-sign { font-size: 14px; font-style: italic; margin: 6px 0; } .receipt-keep { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
@media (max-width: 360px) { .receipt dl { grid-template-columns: 1fr; } }
@media print {
  body * { visibility: hidden !important; }
  .receipt, .receipt * { visibility: visible !important; }
  html, body { background: #fff !important; }
  body *:has(.receipt) { transform: none !important; animation: none !important; filter: none !important; }
  .receipt { position: fixed; inset: 0 0 auto 0; margin: 0; max-width: none; border: 0; padding: 24px; color: #000; background: #fff; }
  .receipt [data-print] { display: none !important; }
}
/* Coming up: dates to remember */
.date-row { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: center; }
.date-row .grow strong { display: block; } .date-row .grow small { color: var(--muted); }
.date-when { font-size: 13px; font-weight: 600; color: var(--muted); } .date-when.now { color: var(--accent, #0071E3); }
@media (max-width: 420px) { .date-row { grid-template-columns: 1fr auto; } .date-when { grid-column: 1 / -1; } }
.example-form { text-align: left; } .example-form .h2xl { margin: 0; }

.plans-row.one { grid-template-columns: minmax(0, 380px); justify-content: center; }
.sendmore { display: grid; gap: 10px; justify-items: center; text-align: center; }
.sendmore summary { list-style: none; cursor: pointer; } .sendmore summary::-webkit-details-marker { display: none; }
.sendmore .row { justify-content: center; }
.goalbar { height: 8px; border-radius: 99px; background: var(--fill); overflow: hidden; margin: -4px 0 16px; } .goalbar i { display: block; height: 100%; background: var(--ok); border-radius: 99px; transition: width .4s; }
tr.sent { opacity: .38; transition: opacity .3s; }
.tabs .count { font-size: 12px; color: var(--muted); }
.toast.bad { background: color-mix(in srgb, #FF3B30 12%, transparent); }
.ordertrack { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 4px 0 18px; }
.ordertrack li { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--fill); color: var(--muted); font-size: 14px; }
.ordertrack li.on { background: var(--okbg); color: var(--ink); } .ordertrack li.on .i { color: var(--ok); }
.stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } @media (min-width: 720px) { .stats.two { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plinks { gap: 10px; } .plink { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plink > span { display: flex; flex-direction: column; min-width: 0; } .plink .mono { overflow-wrap: anywhere; } .plink .pill { flex: none; }

/* ---------- Video recorder (/admin/prospects/<code>/record) ---------- */
.rec-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; margin-top: 18px; }
.rec-stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; box-shadow: var(--shadow-lg); }
.rec-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--bg); }
.rec-cam { position: absolute; left: 3%; bottom: 4%; width: 23%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; transform: scaleX(-1); border: 3px solid #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .3); background: #222; }
.rec-count { position: absolute; inset: 0; display: grid; place-items: center; font: 700 120px/1 var(--display); color: #fff; background: rgba(0, 0, 0, .35); }
.rec-script { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 15px; line-height: 1.4; }
.rec-script small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: #FF3B30; }
.rec-sq { width: 12px; height: 12px; border-radius: 3px; background: #fff; }
.is-recording .rec-side { box-shadow: 0 0 0 2px #FF3B30, var(--shadow); }
.rec-preview { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-sm); background: #000; }
.rec-done, [data-saved] { margin-top: 18px; }
.rec-saved { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items: start; }
.rec-saved img { width: 100%; height: auto; border-radius: var(--r-sm); }
@media (max-width: 860px) { .rec-grid, .rec-saved { grid-template-columns: minmax(0, 1fr); } }

/* Phones: the Wrap button sits at the end of the form instead of floating over “Add me”. */
@media (max-width: 900px) { .dock { position: static; } }
.note-pv { margin: 8px 2px 0; font-size: 14px; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 901px) { .note-pv { display: none; } }

.acts { align-items: center; gap: 2px; } .acts .pill.send { margin-right: 4px; }
/* An icon inside a sentence stays in the sentence. */
p .i, .small .i, li small .i { display: inline-block; vertical-align: -4px; }

/* Guides and the generator's examples: quiet cards, two across on wide screens. */
.howto { margin: 0; padding-left: 22px; display: grid; gap: 12px; font-size: 17px; line-height: 1.5; color: var(--ink2); } .howto strong { color: var(--ink); }
.examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.example { background: var(--card); border-radius: var(--r-sm); padding: 18px 20px; box-shadow: var(--shadow); } .example p { margin: 8px 0 0; font: 17px/1.55 var(--serif); } .example .h3 + p { margin-top: 8px; } .example > p:first-child { margin-top: 0; }
.example p.muted { font-size: 15px; } a.example.link { text-decoration: none; color: inherit; display: block; transition: transform .3s var(--spring); } a.example.link:active { transform: scale(.98); } a.example.link p { font-family: var(--sans); }
.guide .section.narrow + .section.narrow { padding-top: 0; } .guide h2.h2 { margin-bottom: 14px; }
.guide .display, .gen .display { margin: 0; } .guide .lead, .gen .lead { margin: 16px 0 0; } .guide .lead + .row { margin-top: 22px; }
.note-community { display: flex; gap: 8px; align-items: flex-start; justify-content: center; margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; color: #6B6B73; text-align: left; }
.note-community .i { width: 14px; height: 14px; flex: none; margin-top: 2px; color: #C0546B; }
/* A banker's or board member's 20-second thank-you, recorded on their phone */
.clipper { max-width: 460px; }
.clip-stage { position: relative; border-radius: 22px; overflow: hidden; background: #111; aspect-ratio: 3 / 4; }
.clip-cam { display: block; width: 100%; height: 100%; object-fit: cover; }
.clip-cam[data-cam] { transform: scaleX(-1); }
.clip-time { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(200, 40, 40, .92); color: #fff; font: 600 13px/1.2 inherit; font-variant-numeric: tabular-nums; }
.clip-script { margin: 0; padding: 14px 18px 14px 34px; border-radius: 16px; background: var(--card, #fff); box-shadow: 0 1px 2px rgba(20, 24, 32, .06); font-size: 17px; line-height: 1.5; }
.clip-script li + li { margin-top: 4px; }
/* Write back: a few words from the person to the sender */
.writeback { margin: 14px auto 0; max-width: 420px; text-align: left; }
.writeback > summary { display: flex; align-items: center; justify-content: center; gap: 8px; list-style: none; cursor: pointer; font-size: 14.5px; color: #4A4A52; padding: 10px; border-radius: 999px; }
.writeback > summary::-webkit-details-marker { display: none; }
.writeback > summary .i { width: 16px; height: 16px; }
.writeback[open] > summary { color: #1B2230; }
.writeback form { display: grid; gap: 10px; margin-top: 6px; }
.writeback textarea { min-height: 84px; resize: vertical; }
.writeback .row { align-items: center; gap: 12px; }
.tag.reply { max-width: 100%; white-space: normal; text-align: left; background: #F4EFE3; color: #4A3D1E; }
.quiet-h { display: flex; align-items: center; gap: 6px; margin: 14px 0 4px; }
.rule-form { padding-top: 12px; border-top: 1px solid rgba(20, 24, 32, .08); }
/* A line only this person gets, under the shared message */
.note-line { font: italic 19px/1.5 var(--serif); margin: -8px 0 20px; opacity: .9; }
/* Their real signature, in ink, at the bottom of every note */
.note-sig.signed { flex-direction: column; align-items: flex-start; gap: 2px; }
.note-signature { display: block; max-width: min(230px, 70%); max-height: 74px; height: auto; mix-blend-mode: multiply; opacity: .92; margin: 0 0 -4px -2px; }
.note-sig.signed strong { font-size: 13px; font-weight: 600; opacity: .8; }
.sig-pad { position: relative; height: 170px; border-radius: 16px; background: #FBFAF7; border: 1.5px dashed rgba(20, 24, 32, .18); touch-action: none; overflow: hidden; }
.sig-pad::after { content: ''; position: absolute; left: 22px; right: 22px; bottom: 38px; border-bottom: 1px solid rgba(20, 24, 32, .14); pointer-events: none; }
.sig-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.sig-hint { position: absolute; left: 24px; bottom: 12px; font-size: 13px; color: rgba(20, 24, 32, .38); pointer-events: none; }
.sig-now { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 80%; max-height: 120px; pointer-events: none; }
.pv-personal { margin: 6px 0 0; font-style: italic; font-size: .92em; opacity: .85; }
.list-tip { margin: 2px 0 0; line-height: 1.45; }
.list-tip i { font-style: normal; color: var(--ink, #1B2230); opacity: .75; }
.sheet.ask textarea { width: 100%; margin: 4px 0 6px; font-size: 16px; }

/* ---------- Card designs (src/cards.js). The art sits behind the words; the occasion's colours flow through. ---------- */
.note > :not(.art), .dmini > :not(.art) { position: relative; z-index: 1; }
.art { position: absolute; z-index: 0; pointer-events: none; display: block; }
svg.art { height: auto; overflow: visible; }
.note:not(.d-classic)::before { display: none; }
.note-photo { margin: 0 0 18px; }
.note-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
/* Botanical */
.d-botanical { background: #FFFDF7; }
.note.d-botanical { padding-top: 32px; }
.d-botanical .note-top { font: italic 400 28px/1.15 var(--serif); letter-spacing: 0; text-transform: none; color: #3E5C4A; padding-right: 92px; }
.d-botanical .note-msg { margin-top: 26px; }
.d-botanical .note-sig { border-top-color: rgba(62, 92, 74, .18); }
/* Gilded */
.d-gilded { background: #FFFEFA; text-align: center; }
.note.d-gilded { padding: 46px 40px 38px; }
.art-frame { inset: 14px; border: 1px solid color-mix(in srgb, var(--rib) 75%, transparent); border-radius: 12px; }
.d-gilded .art-frame { position: absolute; }
.d-gilded .note-top { flex-direction: column; justify-content: center; gap: 12px; font: 600 12px/1 var(--sans); letter-spacing: .32em; color: var(--ink-rib, color-mix(in srgb, var(--rib) 55%, #3A3A3C)); }
.d-gilded .note-msg { font-size: 20px; }
.d-gilded .note-line { text-align: center; }
.d-gilded .note-sig { flex-direction: column; text-align: center; border-top: 0; padding-top: 6px; }
/* Minimal */
.d-minimal { background: #FFFFFF; }
.note.d-minimal { padding: 40px 34px 30px; }
.d-minimal .note-top { font: 400 34px/1.1 var(--serif); letter-spacing: -.015em; text-transform: none; color: #1D1D1F; padding-bottom: 20px; border-bottom: 1px solid rgba(0, 0, 0, .1); }
.d-minimal .note-msg { font-size: 19px; margin-top: 22px; }
.d-minimal .note-sig { border-top: 0; }
/* Arch */
.d-arch { background: var(--tint, color-mix(in srgb, var(--rib) 14%, #FFFDF8)); border-radius: 220px 220px 24px 24px; text-align: center; }
.note.d-arch { padding: 84px 32px 30px; }
.d-arch .note-top { flex-direction: column; justify-content: center; gap: 10px; font: italic 400 30px/1.15 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink-rib, color-mix(in srgb, var(--rib) 40%, #2B2B2E)); }
.d-arch .note-sig { flex-direction: column; text-align: center; border-top-color: color-mix(in srgb, var(--rib) 40%, transparent); }
/* Letterhead */
.d-letterhead { background: #FFFFFF; border-bottom: 5px solid var(--band, var(--box)); }
.note.d-letterhead { padding-top: 112px; }
.art-band { top: 0; left: 0; right: 0; height: 66px; background: var(--band, var(--box)); }
.art-seal { top: 36px; left: 24px; width: 58px; height: 58px; border-radius: 50%; background: var(--rib); color: var(--seal-fg, var(--box)); border: 3px solid #FFFFFF; display: flex; align-items: center; justify-content: center; font: 600 26px/1 var(--serif); }
.d-letterhead .note-top { color: var(--ink-box, color-mix(in srgb, var(--box) 80%, #6E6E73)); }
/* Hearts */
.d-hearts { background: #FFFBFA; }
.d-hearts .note-top { font: italic 400 28px/1.15 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink-box, color-mix(in srgb, var(--box) 85%, #1D1D1F)); padding-right: 96px; }
.note.d-hearts { padding-top: 34px; }
.d-hearts .note-msg { margin-top: 22px; }
/* Festive */
.d-festive { background: #FFFDF8; }
.note.d-festive { padding-top: 76px; }
.a-strip { top: 0; left: 0; width: 100%; height: 64px !important; }
.a-strip.thin { height: 8px !important; }
.d-festive .note-top { font: 800 26px/1.1 var(--sans); letter-spacing: -.02em; text-transform: none; color: #1D1D1F; }
/* Post */
.d-post { background: #FFFCF5; }
.note.d-post { padding-top: 36px; }
.d-post .note-top { font: italic 400 28px/1.15 var(--serif); letter-spacing: 0; text-transform: none; color: #2B2B2E; padding-right: 104px; min-height: 66px; align-items: flex-start; }
.d-post .note-sig { border-top-style: dashed; }

/* Initials stay readable on the light designs, whatever the box colour */
.d-botanical .note-sig .mono-mark { background: #3E5C4A; color: #fff; }
.d-arch .note-sig .mono-mark, .d-gilded .note-sig .mono-mark { background: var(--mark-bg, #3A3A3C); color: var(--mark-fg, #fff); }

/* The design picker: a row of small cards */
.designs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin: 0 -2px; scroll-snap-type: x proximity; }
.designs::-webkit-scrollbar { display: none; }
.dpick { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; scroll-snap-align: start; }
.dpick input { position: absolute; opacity: 0; pointer-events: none; }
.dpick > span:last-child { font-size: 12px; font-weight: 500; color: var(--muted, #6E6E73); }
.dpick input:checked ~ span:last-child { color: var(--ink); font-weight: 600; }
.dthumb { position: relative; display: block; width: 66px; height: 88px; border-radius: 12px; overflow: hidden; background: var(--fill); box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); transition: transform .35s var(--spring), box-shadow .2s; }
.dpick input:checked + .dthumb { box-shadow: 0 0 0 2px var(--ink); transform: translateY(-2px); }
.dpick input:focus-visible + .dthumb { box-shadow: 0 0 0 3px color-mix(in srgb, #0071E3 60%, transparent); }
.dmini { position: absolute; top: 0; left: 0; width: 300px; height: 400px; transform: scale(.22); transform-origin: 0 0; background: #FFFDF8; border-radius: 34px; padding: 70px 34px 0; box-sizing: border-box; overflow: hidden; display: flex; flex-direction: column; gap: 18px; }
.dmini.d-classic { box-shadow: inset 0 10px 0 var(--box); }
.dmini.d-letterhead, .dmini.d-festive { padding-top: 110px; }
.dmini.d-arch, .dmini.d-gilded { align-items: center; padding-top: 96px; }
.dmini b { font: italic 400 40px/1 var(--serif); color: #1D1D1F; }
.dmini.d-classic b, .dmini.d-letterhead b { font: 700 26px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.dmini i { display: block; height: 14px; width: 100%; border-radius: 7px; background: rgba(0, 0, 0, .1); }
.dmini i.short { width: 62%; }
.dmini u { display: block; margin-top: auto; margin-bottom: 40px; height: 3px; width: 46%; background: rgba(0, 0, 0, .25); border-radius: 2px; }
.designs-field { gap: 8px; }
.photo-row { gap: 10px; align-items: center; flex-wrap: wrap; }
.photo-thumb { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
/* The preview phone shows the design too */
.phone-note { position: relative; overflow: hidden; }
.phone-note > :not(.pv-art) { position: relative; z-index: 1; }
.pv-art { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.pv-art .art { zoom: .5; }
.pv-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; margin: 0 0 8px; }
.phone-note.d-arch { border-radius: 120px 120px 14px 14px; padding-top: 44px; text-align: center; }
.phone-note.d-letterhead { padding-top: 58px; }
.phone-note.d-festive { padding-top: 40px; }
.phone-note.d-gilded { text-align: center; }
.phone-note.d-botanical span[data-pv-line], .phone-note.d-hearts span[data-pv-line], .phone-note.d-post span[data-pv-line], .phone-note.d-arch span[data-pv-line] { font: italic 400 17px/1.2 var(--serif); letter-spacing: 0; text-transform: none; }
.phone-note.d-minimal span[data-pv-line] { font: 400 20px/1.1 var(--serif); letter-spacing: 0; text-transform: none; color: #1D1D1F; }

/* Save as video */
.cv-host { position: fixed; left: -10000px; top: 0; width: 400px; pointer-events: none; }
.cardvideo { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 14px 0 0; }
.cardvideo canvas { width: 180px; height: 320px; border-radius: 16px; box-shadow: var(--shadow-lg); background: #000; }
.cardvideo .row { gap: 10px; justify-content: center; flex-wrap: wrap; }

/* After they read it: what happens next, under the note */
.note-next { margin: 14px 0 0; padding: 14px 18px; border-radius: 18px; background: rgba(255, 255, 255, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(0, 0, 0, .04); color: #1D1D1F; text-align: left; }
.note-next-h { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6E6E73; }
.note-next-h .i { width: 15px; height: 15px; }
.note-next p { margin: 6px 0 0; font-size: 16px; line-height: 1.45; }
.tag.booked { background: #E6F2EA; color: #1F5133; }
.stats > div[hidden] { display: none; }

/* Compose: when to send a moment, and the nudge toward one personal detail */
.moment-when { margin: -4px 0 0; }
.detail-nudge { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; background: #FFF8E6; color: #5C4A1A; }
.detail-nudge .i { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.detail-nudge[hidden] { display: none; }
.light-box .note-acts .btn:not(.ghost) { --b: var(--mark-bg, color-mix(in srgb, var(--rib) 45%, #1D1D1F)); color: #fff; }
.d-arch .note-sig small { color: #4E4E53; }

/* Older browsers without color-mix() (iOS 15, Safari ≤ 16.1, Chrome ≤ 110): plain colours, so nothing turns
   transparent. White text on the toast and buttons on gift pages keep a solid background. */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .toastpop { background: rgba(29, 29, 31, .9); }
  .appbar, .topnav { background: var(--bg); }
  .glass, .gift-hint span, .note-acts .btn.ghost, .socials a, .react button { background: rgba(255, 255, 255, .78); }
  .note-amt, .pqr { background: #F5EBD6; }
  .note-card, .note-update { background: #F7EFDF; }
  .error { background: #FDECEC; }
  .banner, .tip, .nudge, .tag.new { background: #FFF4DC; }
  .mono-mark, .lavatar, .feature > .i, .tag.clock, .lrow-ic, .linput, .ins:hover { background: #ECEEF2; }
  .chip.gold { background: #F6E9C8; color: #1D1D1F; }
  .light-box .note-acts .btn:not(.ghost) { --b: var(--mark-bg, #1D1D1F); }
  .art-frame { border-color: var(--rib); }
  .d-arch { background: var(--tint, #FBF6EE); }
}
@media (prefers-color-scheme: dark) { @supports not (color: color-mix(in srgb, red 50%, blue)) {
  .glass, .note-acts .btn.ghost, .socials a, .react button { background: rgba(28, 28, 30, .78); }
  .mono-mark, .feature > .i { background: #2C2C2E; }
} }
@media (prefers-color-scheme: dark) { .note-next { background: #FFFDF8; } }
