/* Toktopus · design system for the public pages, login and the customer dashboard.
   (The operator page keeps site.css.) No inline styles anywhere: the CSP refuses them, so every look lives here. */

:root {
  --paper: #f6f4ef; --paper-2: #efece5; --card: #ffffff; --ink: #121113; --ink-2: #2a282c;
  --soft: #66625d; --faint: #9a958e; --line: #e4e0d8; --line-2: #d6d1c7;
  --accent: #ff4f2b; --accent-2: #ff7a3d; --accent-wash: #fff0ea; --accent-ink: #ffffff;
  --violet: #6b4bff; --violet-wash: #efebff;
  --wash: linear-gradient(150deg, #ffffff 0%, #fff6f1 52%, #f3efff 100%); --wash-line: #f1e3da;
  --good: #138a52; --good-wash: #e3f5ea; --info: #2f5bea; --info-wash: #e8eeff;
  --warn: #a66300; --warn-wash: #fdf1d9; --bad: #c62f22; --bad-wash: #fde9e6;
  --r-sm: 8px; --r: 14px; --r-lg: 22px; --r-xl: 30px;
  --sh-1: 0 1px 2px rgba(18, 17, 19, .05), 0 1px 1px rgba(18, 17, 19, .03);
  --sh-2: 0 1px 2px rgba(18, 17, 19, .05), 0 10px 30px -8px rgba(18, 17, 19, .12);
  --sh-3: 0 2px 6px rgba(18, 17, 19, .06), 0 30px 60px -20px rgba(18, 17, 19, .28);
  --f-sans: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --f-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15.5px/1.55 var(--f-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { margin: 0 0 .45em; line-height: 1.08; letter-spacing: -.025em; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); letter-spacing: -.045em; font-weight: 600; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.035em; }
h3 { font-size: 1.12rem; letter-spacing: -.015em; }
h4 { font-size: .98rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; }
em.serif, .serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.mono { font-family: var(--f-mono); }
.kicker { font: 500 .72rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); display: inline-flex; align-items: center; gap: 8px; }
.kicker.accent { color: var(--accent); }
.kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
.soft { color: var(--soft); } .faint { color: var(--faint); } .small { font-size: .86rem; } .tiny { font-size: .76rem; }
.num { font-variant-numeric: tabular-nums; }
.center { text-align: center; }
[hidden] { display: none !important; }
::selection { background: #ffd9cf; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row.nowrap { flex-wrap: nowrap; }
.row.top { align-items: flex-start; }
.row.between { justify-content: space-between; }
.grow { flex: 1 1 0; min-width: 0; }
.right { margin-left: auto; }
.stack > * + * { margin-top: 14px; }
.stack.tight > * + * { margin-top: 8px; }
.stack.loose > * + * { margin-top: 26px; }
.grid { display: grid; gap: 16px; }
.mt { margin-top: 16px; } .mt-l { margin-top: 32px; } .mb0 { margin-bottom: 0; }

/* ---------- buttons & inputs ---------- */
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font: 550 .92rem/1 var(--f-sans); letter-spacing: -.005em; text-decoration: none;
  cursor: pointer; white-space: nowrap; transition: transform .15s var(--ease), background .15s, border-color .15s, box-shadow .15s; user-select: none; }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.main { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset, 0 6px 16px -6px rgba(18, 17, 19, .5); }
.btn.main:hover { background: #000; }
.btn.hot { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px rgba(255, 79, 43, .7); }
.btn.hot:hover { background: #f2421f; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: rgba(18, 17, 19, .05); }
.btn.big { height: 50px; padding: 0 24px; font-size: 1rem; }
.btn.sm { height: 32px; padding: 0 12px; font-size: .84rem; }
.btn.xs { height: 26px; padding: 0 10px; font-size: .78rem; }
.btn.block { width: 100%; }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); }
.btn.icon { width: 40px; padding: 0; }
.btn.icon.sm { width: 32px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.linkbtn { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

label, .label { display: block; font-weight: 550; font-size: .86rem; margin-bottom: 6px; color: var(--ink-2); }
.hint { font-size: .8rem; color: var(--faint); margin-top: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=datetime-local], select, textarea {
  width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); color: var(--ink);
  font: 15px/1.4 var(--f-sans); transition: border-color .15s, box-shadow .15s; }
textarea { height: auto; min-height: 104px; padding: 12px 14px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--soft) 50%), linear-gradient(135deg, var(--soft) 50%, transparent 50%);
  background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(18, 17, 19, .07); }
input::placeholder, textarea::placeholder { color: #b3ada5; }
.field + .field { margin-top: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 450; font-size: .9rem; color: var(--soft); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.err { color: var(--bad); font-size: .88rem; min-height: 1px; }
.err:empty { display: none; }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--ink) var(--fill, 50%), var(--line) var(--fill, 50%)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 99px; background: var(--line); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--ink); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-shadow: var(--sh-2); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); padding: 4px; gap: 2px; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; font: 500 1.2rem/1 var(--f-sans); cursor: pointer; color: var(--ink); }
.stepper button:hover { background: var(--paper-2); }
.stepper button:disabled { opacity: .3; cursor: default; background: none; }
.stepper input { width: 56px; height: 36px; border: 0; text-align: center; font: 600 1.15rem/1 var(--f-sans); padding: 0; background: transparent; box-shadow: none; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { box-shadow: none; }
.stepper.big button { width: 44px; height: 44px; font-size: 1.4rem; }
.stepper.big input { width: 72px; height: 44px; font-size: 1.5rem; }

.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); gap: 2px; }
.seg button { appearance: none; border: 0; background: transparent; height: 32px; padding: 0 14px; border-radius: 999px; font: 550 .86rem/1 var(--f-sans); color: var(--soft); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.seg button[aria-pressed=true] { background: var(--card); color: var(--ink); box-shadow: var(--sh-1); }
.seg button svg { width: 15px; height: 15px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { appearance: none; border: 1px solid var(--line-2); background: var(--card); border-radius: 999px; height: 32px; padding: 0 13px; font: 500 .85rem/1 var(--f-sans); color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all .15s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- pills, badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font: 550 .76rem/1 var(--f-sans); background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.pill.plain::before { display: none; }
.pill.good { background: var(--good-wash); color: var(--good); }
.pill.info { background: var(--info-wash); color: var(--info); }
.pill.warn { background: var(--warn-wash); color: var(--warn); }
.pill.bad { background: var(--bad-wash); color: var(--bad); }
.pill.hot { background: var(--accent-wash); color: var(--accent); }
.pill.live::before { animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font: 600 .7rem/1 var(--f-sans); }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-1); }
.card.pad-l { padding: 32px; }
.card.flat { box-shadow: none; }
.card.lift { box-shadow: var(--sh-3); border-color: transparent; }
.card h3 { margin-bottom: 6px; }
.note { border-radius: var(--r); padding: 12px 16px; background: var(--paper-2); font-size: .9rem; display: flex; gap: 12px; align-items: center; }
.note.warn { background: var(--warn-wash); color: #5d3a00; }
.note.bad { background: var(--bad-wash); color: #7a1c14; }
.note.good { background: var(--good-wash); color: #0b5233; }
.note.info { background: var(--info-wash); color: #1d3a99; }
.note svg { width: 18px; height: 18px; flex: none; }

/* ---------- logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 650; font-size: 1.05rem; letter-spacing: -.03em; }
.mark { width: 30px; height: 30px; flex: none; }
.brand.light { color: #fff; }

/* ---------- public header ---------- */
.topbar { position: sticky; top: 0; z-index: 30; transition: background .2s, box-shadow .2s, border-color .2s; border-bottom: 1px solid transparent; }
.topbar.scrolled { background: rgba(246, 244, 239, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom-color: var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.topbar nav { display: flex; gap: 4px; align-items: center; }
.topbar nav a { text-decoration: none; color: var(--soft); font-size: .92rem; padding: 8px 12px; border-radius: 999px; transition: color .15s, background .15s; }
.topbar nav a:hover { color: var(--ink); background: rgba(18, 17, 19, .05); }
.topbar .cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 44px 0 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto -10%; height: 760px; z-index: -1;
  background: radial-gradient(40% 50% at 78% 38%, rgba(255, 122, 61, .18), transparent 70%), radial-gradient(35% 45% at 92% 70%, rgba(107, 75, 255, .13), transparent 70%); }
.hero .grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; }
.hero h1 { margin: 18px 0 20px; }
.hero h1 .serif { color: var(--accent); }
.hero .lead { font-size: 1.16rem; color: var(--soft); max-width: 520px; margin-bottom: 30px; }
.hero .ctas { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hero .assure { margin-top: 18px; display: flex; gap: 18px; flex-wrap: wrap; color: var(--soft); font-size: .86rem; }
.hero .assure span { display: inline-flex; gap: 7px; align-items: center; }
.hero .assure svg { width: 16px; height: 16px; color: var(--good); }

/* phone mock-ups (pure CSS) */
.stage { position: relative; height: 600px; perspective: 1600px; }
.phone { position: absolute; width: 238px; height: 494px; border-radius: 40px; background: #0d0d0f; padding: 9px; box-shadow: var(--sh-3), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  transition: transform .8s var(--ease); }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #222; isolation: isolate; }
.phone .screen::after { content: ""; position: absolute; top: 9px; left: 50%; width: 76px; height: 22px; border-radius: 99px; background: #0d0d0f; transform: translateX(-50%); z-index: 3; }
.phone.p1 { left: 4%; top: 70px; transform: rotate(-8deg); z-index: 1; }
.phone.p2 { left: 31%; top: 18px; transform: rotate(1deg); z-index: 3; width: 252px; height: 524px; }
.phone.p3 { left: 60%; top: 92px; transform: rotate(9deg); z-index: 2; }
.stage:hover .phone.p1 { transform: rotate(-10deg) translateX(-10px); }
.stage:hover .phone.p3 { transform: rotate(11deg) translateX(10px); }
.vid { position: absolute; inset: 0; }
.vid.v1 { background: radial-gradient(70% 50% at 30% 30%, #ffb38a 0, transparent 60%), radial-gradient(60% 60% at 80% 80%, #7c4dff 0, transparent 60%), linear-gradient(160deg, #ff6a3d, #b42fd1 60%, #2c1c6b); }
.vid.v2 { background: radial-gradient(60% 40% at 60% 30%, #fff1c9 0, transparent 60%), radial-gradient(70% 60% at 20% 90%, #1fb38a 0, transparent 60%), linear-gradient(200deg, #f6c453, #e46b5a 55%, #3a2453); }
.vid.v3 { background: radial-gradient(60% 50% at 70% 25%, #9fe3ff 0, transparent 60%), radial-gradient(60% 60% at 10% 70%, #ff7ab8 0, transparent 60%), linear-gradient(170deg, #4361ee, #3a0ca3 60%, #10002b); }
.vid::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25), transparent 22%, transparent 55%, rgba(0, 0, 0, .55)); }
.vid .figure { position: absolute; left: 50%; bottom: 0; width: 70%; height: 62%; transform: translateX(-50%); border-radius: 50% 50% 0 0 / 38% 38% 0 0; background: rgba(255, 255, 255, .16); backdrop-filter: blur(2px); }
.vid .figure::before { content: ""; position: absolute; left: 50%; top: -30%; width: 46%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: rgba(255, 255, 255, .22); }
.tt { position: absolute; inset: 0; z-index: 2; color: #fff; padding: 46px 14px 16px; display: flex; flex-direction: column; font-size: .72rem; }
.tt .tabs { display: flex; justify-content: center; gap: 14px; font-weight: 600; opacity: .9; }
.tt .tabs b { border-bottom: 2px solid #fff; padding-bottom: 3px; }
.tt .side { position: absolute; right: 10px; bottom: 90px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.tt .side i { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: block; }
.tt .side i:first-child { border: 2px solid #fff; background: rgba(255, 255, 255, .5); }
.tt .meta { margin-top: auto; padding-right: 46px; }
.tt:not(:has(.side)) .meta { padding-right: 0; }
@media (max-width: 600px) { .tt:not(:has(.side)) .meta b { font-size: .62rem; } }
.tt .meta b { display: block; font-size: .8rem; margin-bottom: 3px; }
.tt .meta span { opacity: .92; line-height: 1.35; display: block; }
.tt .bar { height: 2px; background: rgba(255, 255, 255, .3); border-radius: 2px; margin-top: 10px; overflow: hidden; }
.tt .bar::after { content: ""; display: block; height: 100%; width: 40%; background: #fff; animation: play 6s linear infinite; }
@keyframes play { from { width: 0; } to { width: 100%; } }
.float { position: absolute; z-index: 5; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 16px; padding: 10px 14px; box-shadow: var(--sh-3); font-size: .8rem; display: flex; gap: 10px; align-items: center; animation: bob 6s ease-in-out infinite; }
.float b { display: block; font-size: .84rem; letter-spacing: -.01em; }
.float small { color: var(--soft); font-size: .74rem; }
.float .ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float .ico svg { width: 16px; height: 16px; }
.float.f1 { left: -2%; top: 40px; }
.float.f2 { right: -2%; top: 250px; animation-delay: -2s; }
.float.f3 { left: 14%; bottom: 10px; animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.ring { --p: 60; width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--paper-2) 0); display: grid; place-items: center; flex: none; }
.ring::after { content: ""; width: 22px; height: 22px; border-radius: 50%; background: #fff; }

/* ---------- marquee strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--card); overflow: hidden; }
.strip .track { display: flex; gap: 48px; padding: 18px 0; width: max-content; animation: slide 40s linear infinite; }
.strip span { display: inline-flex; align-items: center; gap: 10px; color: var(--soft); font: 500 .8rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.strip span::before { content: "✦"; color: var(--accent); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section.block { padding: 110px 0; }
section.block.tight { padding: 70px 0; }
.sec-head { max-width: 720px; margin-bottom: 52px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head p { font-size: 1.08rem; color: var(--soft); margin-top: 14px; }
.sec-head h2 { margin-top: 14px; }
.sec-head h2 .serif { color: var(--accent); }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 14px 22px; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.step .art { height: 170px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 18px; position: relative; overflow: hidden; display: grid; place-items: center; padding: 14px; }
.step .n { font: 500 .72rem/1 var(--f-mono); color: var(--accent); letter-spacing: .1em; margin: 0 8px 10px; }
.step h3, .step p { margin-left: 8px; margin-right: 8px; }
.step p { color: var(--soft); font-size: .92rem; margin-bottom: 0; }
.mini { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-1); padding: 10px 12px; font-size: .74rem; width: 100%; }
.mini + .mini { margin-top: 6px; }
.mini .row { gap: 8px; }
.mini .t { font-weight: 600; font-size: .78rem; }
.mini .bar-track { margin-top: 7px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font: 650 .8rem/1 var(--f-sans); letter-spacing: -.02em; position: relative; }
.avatar.sm { width: 26px; height: 26px; font-size: .66rem; }
.avatar.lg { width: 46px; height: 46px; font-size: 1rem; }
.avatar .tk { position: absolute; right: -3px; bottom: -3px; width: 15px; height: 15px; border-radius: 50%; background: #000; border: 2px solid #fff; display: grid; place-items: center; }
.avatar .tk svg { width: 7px; height: 7px; color: #fff; }
.g0 { background: linear-gradient(135deg, #ff7a3d, #ff3d71); } .g1 { background: linear-gradient(135deg, #6b4bff, #2fb6ff); } .g2 { background: linear-gradient(135deg, #13b07a, #a8e05f); }
.g3 { background: linear-gradient(135deg, #ff9f1c, #ff4f2b); } .g4 { background: linear-gradient(135deg, #2f5bea, #8e44ff); } .g5 { background: linear-gradient(135deg, #e0368b, #ff8a5c); }
.g6 { background: linear-gradient(135deg, #0f9b8e, #2fb6ff); } .g7 { background: linear-gradient(135deg, #3c3b45, #8a8798); }
.bar-track { height: 6px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width .6s var(--ease); }
.bar-fill.good { background: var(--good); }
.cal-mini { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; width: 100%; }
.cal-mini i { aspect-ratio: 1; border-radius: 6px; background: var(--paper-2); display: block; position: relative; }
.cal-mini i.on { background: var(--ink); }
.cal-mini i.hot { background: var(--accent); }
.cal-mini b { font: 500 .62rem/1 var(--f-mono); color: var(--faint); text-align: center; }

/* bento of features */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; grid-column: span 2; position: relative; overflow: hidden; min-height: 210px; display: flex; flex-direction: column; }
.tile.wide { grid-column: span 3; }
.tile.dark { background: linear-gradient(140deg, #fff4ee 0%, #ffe9df 48%, #f1ecff 100%); border-color: var(--wash-line); }
.tile .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: auto; }
.tile.dark .ico { background: #fff; border-color: var(--wash-line); color: var(--accent); }
.tile .ico svg { width: 20px; height: 20px; }
.tile h3 { margin-top: 24px; }
.tile p { color: var(--soft); font-size: .93rem; margin: 0; }
.tile .big-num { font: 600 3.4rem/1 var(--f-sans); letter-spacing: -.05em; margin-top: auto; }
.tile .big-num small { font-size: 1rem; letter-spacing: 0; color: var(--soft); font-weight: 500; }

/* product showcase */
.showcase { background: var(--wash); border: 1px solid var(--wash-line); border-radius: var(--r-xl); padding: 64px; position: relative; overflow: hidden; }
.showcase::before { content: ""; position: absolute; inset: 0; background: radial-gradient(45% 55% at 90% 0%, rgba(255, 122, 61, .2), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(107, 75, 255, .14), transparent 70%); }
.showcase > * { position: relative; }
.showcase .kicker { color: var(--accent); }
.window { background: #fbfaf7; color: var(--ink); border-radius: 18px; box-shadow: 0 40px 80px -34px rgba(120, 60, 30, .35), var(--sh-1); overflow: hidden; border: 1px solid var(--line); }
.window .chrome { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #fff; }
.window .chrome i { width: 10px; height: 10px; border-radius: 50%; background: #e2ded6; display: block; }
.window .chrome span { margin: 0 auto; font: 500 .72rem/1 var(--f-mono); color: var(--faint); }
.window .body { display: grid; grid-template-columns: 190px 1fr; min-height: 380px; }
.window .side { border-right: 1px solid var(--line); padding: 16px 12px; background: #fff; display: flex; flex-direction: column; gap: 3px; font-size: .8rem; }
.window .side span { padding: 7px 10px; border-radius: 8px; color: var(--soft); display: flex; gap: 8px; align-items: center; }
.window .side span.on { background: var(--paper-2); color: var(--ink); font-weight: 600; }
.window .side svg { width: 14px; height: 14px; }
.window .main { padding: 20px; overflow: hidden; }
.wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.wk .d { background: #fff; border: 1px solid var(--line); border-radius: 12px; min-height: 230px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.wk .d.today { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.wk .d > b { font: 500 .66rem/1 var(--f-mono); color: var(--faint); letter-spacing: .06em; display: flex; justify-content: space-between; margin-bottom: 4px; }
.wk .d > b em { font-style: normal; color: var(--ink); font-family: var(--f-sans); font-size: .82rem; font-weight: 600; }
.ev { border-radius: 9px; padding: 6px 7px; font-size: .68rem; line-height: 1.25; background: var(--paper); border: 1px solid var(--line); display: flex; gap: 6px; align-items: center; }
.ev .th { width: 18px; height: 26px; border-radius: 4px; flex: none; }
.ev b { display: block; font-size: .7rem; }
.ev.done { opacity: .6; }
.ev.hot { background: var(--accent-wash); border-color: #ffd2c4; }

/* pricing */
.pricing { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: stretch; }
.price-card { background: var(--card); border-radius: var(--r-xl); border: 1px solid var(--line); padding: 38px; box-shadow: var(--sh-3); position: relative; }
.price-card .tag { position: absolute; top: -12px; left: 38px; }
.price-tag { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 4px; }
.price-tag b { font: 600 4.2rem/1 var(--f-sans); letter-spacing: -.055em; }
.price-tag span { color: var(--soft); }
.sumline { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.sumline:last-child { border-bottom: 0; }
.sumline.total { font-weight: 650; font-size: 1.05rem; border-bottom: 0; padding-top: 14px; }
.sumline .k { color: var(--soft); }
.included { background: var(--wash); border: 1px solid var(--wash-line); border-radius: var(--r-xl); padding: 38px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.included::after { content: ""; position: absolute; width: 340px; height: 340px; right: -140px; bottom: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 122, 61, .22), transparent 65%); }
.included .kicker { color: var(--accent); }
.included ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 13px; position: relative; z-index: 1; }
.included li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); }
.included li svg { width: 22px; height: 22px; flex: none; margin-top: -1px; padding: 4px; border-radius: 50%; background: #fff; color: var(--accent); box-shadow: var(--sh-1); }
.inc-foot { margin-top: auto; padding-top: 26px; position: relative; z-index: 1; }
.inc-foot .box { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .8); border: 1px solid var(--wash-line); backdrop-filter: blur(6px); }
.inc-foot .ph5 { display: flex; }
.inc-foot .ph5 img { width: 28px; height: 44px; object-fit: cover; border-radius: 7px; border: 2px solid #fff; box-shadow: var(--sh-1); }
.inc-foot .ph5 img + img { margin-left: -9px; }
.inc-foot b { display: block; font-size: .95rem; letter-spacing: -.01em; }
.inc-foot small { color: var(--soft); font-size: .8rem; }
.calc-row { display: flex; align-items: center; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.calc-row + .calc-row { margin-top: 22px; }
.calc .ticks { display: flex; justify-content: space-between; font: 500 .7rem/1 var(--f-mono); color: var(--faint); margin-top: 4px; }
.reco { font: 500 .72rem/1 var(--f-mono); letter-spacing: .04em; padding: 5px 8px; border-radius: 6px; background: var(--good-wash); color: var(--good); }
.reco.slow { background: var(--info-wash); color: var(--info); } .reco.fast { background: var(--warn-wash); color: var(--warn); }

/* guarantees */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promise { padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, var(--card), var(--paper)); }
.promise .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent); margin-bottom: 20px; }
.promise .ico svg { width: 22px; height: 22px; }
.promise p { color: var(--soft); font-size: .93rem; margin: 0; }

/* faq */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; }
details.q { border-bottom: 1px solid var(--line); }
details.q summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; font-weight: 550; font-size: 1.02rem; letter-spacing: -.01em; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: "+"; font: 300 1.5rem/1 var(--f-sans); color: var(--soft); transition: transform .25s var(--ease); }
details.q[open] summary::after { transform: rotate(45deg); }
details.q p { color: var(--soft); padding-bottom: 20px; margin: 0; max-width: 640px; }

/* final CTA */
.final { background: var(--accent); color: #fff; border-radius: var(--r-xl); padding: 72px 56px; text-align: center; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 50% 120%, rgba(255, 255, 255, .35), transparent 60%), repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 64px); }
.final > * { position: relative; }
.final h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.final p { color: rgba(255, 255, 255, .85); font-size: 1.1rem; }
.final .btn.main { background: #fff; color: var(--ink); border-color: #fff; }

/* footer */
.foot { padding: 60px 0 40px; color: var(--soft); font-size: .88rem; }
.foot .row { gap: 24px; }
.foot a { text-decoration: none; color: var(--soft); }
.foot a:hover { color: var(--ink); }
.foot .legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--faint); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- prose pages (rules, terms) ---------- */
.prose { padding: 40px 0 80px; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-top: 20px; }
.prose h2 { font-size: 1.35rem; letter-spacing: -.02em; margin-top: 2.2em; }
.prose li { margin-bottom: .5em; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose a { color: var(--accent); }
.prose .lede { font-size: 1.12rem; color: var(--soft); }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth .pane { display: flex; flex-direction: column; padding: 28px 40px; }
.auth .form-box { width: 100%; max-width: 400px; margin: auto; padding: 40px 0; }
.auth h1 { font-size: 2.2rem; letter-spacing: -.04em; margin-bottom: 8px; }
.auth .sub { color: var(--soft); margin-bottom: 28px; }
.gbtn { width: 100%; height: 48px; justify-content: center; }
.or { display: flex; align-items: center; gap: 14px; color: var(--faint); font-size: .8rem; margin: 20px 0; }
.or::before, .or::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.auth .art { background: var(--wash); border: 1px solid var(--wash-line); color: var(--ink); position: relative; overflow: hidden; margin: 12px; border-radius: var(--r-xl); display: flex; flex-direction: column; justify-content: flex-end; padding: 48px; }
.auth .art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 80% 10%, rgba(255, 122, 61, .24), transparent 70%), radial-gradient(50% 50% at 10% 60%, rgba(107, 75, 255, .14), transparent 70%); }
.auth .art > * { position: relative; }
.auth .art h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); max-width: 460px; }
.auth .art .serif { color: var(--accent); }
.auth .art ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; color: var(--ink-2); }
.auth .art li { display: flex; gap: 10px; align-items: center; }
.auth .art li svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.auth .art .stage-s { position: absolute; top: 60px; right: 50px; left: 50px; height: 340px; }
.auth .art .phone { width: 170px; height: 350px; border-radius: 30px; padding: 7px; }
.auth .art .phone .screen { border-radius: 24px; }
.auth .art .phone.p1 { left: 8%; top: 30px; }
.auth .art .phone.p2 { left: 36%; top: 0; width: 180px; height: 370px; }
.auth .art .phone.p3 { left: 64%; top: 40px; }

/* ---------- toast & dialog (common.js) ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px;
  box-shadow: var(--sh-3); font-size: .92rem; max-width: min(92vw, 520px); animation: rise .35s var(--ease); display: flex; gap: 10px; align-items: center; }
.toast.bad { background: var(--bad); }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 12px); } }
dialog { border: 0; border-radius: var(--r-lg); padding: 28px; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 40px); box-shadow: var(--sh-3); color: var(--ink); background: var(--card); }
dialog::backdrop { background: rgba(18, 17, 19, .45); backdrop-filter: blur(3px); }
dialog[open] { animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
dialog h3 { font-size: 1.3rem; letter-spacing: -.025em; }
dialog .dialog-btns { justify-content: flex-end; margin-top: 22px; }
dialog .btn.main, dialog .btn.danger { min-width: 110px; }
dialog .btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }

/* ================= dashboard ================= */
body.app { background: var(--paper); }
.shell { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); background: #fbfaf7; }
.sidebar .brand { padding: 4px 10px 18px; }
.sidebar .new { margin: 0 4px 16px; }
.nav-item { appearance: none; border: 0; background: transparent; width: 100%; display: flex; align-items: center; gap: 11px; padding: 0 12px; height: 40px; border-radius: 11px;
  font: 500 .92rem/1 var(--f-sans); color: var(--soft); cursor: pointer; text-decoration: none; text-align: left; transition: background .15s, color .15s; }
.nav-item svg { width: 18px; height: 18px; flex: none; }
.nav-item:hover { background: rgba(18, 17, 19, .045); color: var(--ink); }
.nav-item[aria-current=page] { background: var(--card); color: var(--ink); box-shadow: var(--sh-1); border: 1px solid var(--line); }
.nav-item .count { margin-left: auto; }
.nav-item .count.todo { padding: 0 8px; white-space: nowrap; font-size: .68rem; }
.nav-group { font: 500 .66rem/1 var(--f-mono); letter-spacing: .14em; color: var(--faint); text-transform: uppercase; padding: 18px 12px 8px; }
.sidebar .bottom { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.me { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.me .who { min-width: 0; flex: 1; }
.me .who b { display: block; font-size: .84rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me .who span { display: block; font-size: .74rem; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-box { border-radius: 14px; padding: 14px; background: var(--wash); border: 1px solid var(--wash-line); color: var(--ink); font-size: .82rem; position: relative; overflow: hidden; }
.plan-box::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 122, 61, .3), transparent 65%); }
.plan-box b { font-size: 1.4rem; letter-spacing: -.03em; display: block; margin: 4px 0 2px; }
.plan-box span { color: var(--soft); }
.plan-box > * { position: relative; z-index: 1; }

.content { min-width: 0; padding: 0 40px 80px; }
.pagebar { display: flex; align-items: center; gap: 14px; padding: 26px 0 26px; flex-wrap: wrap; }
.pagebar h1 { font-size: 1.9rem; letter-spacing: -.04em; margin: 0; }
.pagebar .sub { color: var(--soft); font-size: .92rem; margin-top: 4px; }
.pagebar .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.mobile-top { display: none; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; position: relative; overflow: hidden; }
.stat .k { font-size: .82rem; color: var(--soft); display: flex; gap: 8px; align-items: center; }
.stat .k svg { width: 15px; height: 15px; }
.stat .v { font: 600 2.1rem/1 var(--f-sans); letter-spacing: -.045em; margin: 14px 0 6px; }
.stat .s { font-size: .78rem; color: var(--faint); }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.panel > .head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel > .head h3 { margin: 0; font-size: 1rem; }
.panel > .head .right { display: flex; gap: 8px; }
.panel > .body { padding: 20px; }
.panel > .body.flush { padding: 0; }
.cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: start; }

.empty { text-align: center; padding: 56px 24px; }
.empty .ico { width: 56px; height: 56px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; margin: 0 auto 18px; }
.empty .ico svg { width: 24px; height: 24px; }
.empty h3 { font-size: 1.15rem; }
.empty p { color: var(--soft); max-width: 420px; margin: 0 auto 20px; }

/* welcome hero for a new customer */
.welcome { background: var(--wash); border: 1px solid var(--wash-line); color: var(--ink); border-radius: var(--r-xl); padding: 44px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; position: relative; overflow: hidden; }
.welcome::before { content: ""; position: absolute; inset: 0; background: radial-gradient(45% 70% at 90% 10%, rgba(255, 122, 61, .22), transparent 70%), radial-gradient(40% 60% at 60% 120%, rgba(107, 75, 255, .14), transparent 70%); }
.welcome > * { position: relative; }
.welcome h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.welcome h2 .serif { color: var(--accent); }
.welcome p { color: var(--soft); max-width: 520px; }
.welcome .facts { display: grid; gap: 10px; align-content: center; }
.welcome .fact { background: rgba(255, 255, 255, .8); border: 1px solid var(--wash-line); box-shadow: var(--sh-1); border-radius: 16px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; font-size: .9rem; }
.welcome .fact svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.welcome .fact b { display: block; }
.welcome .fact span { color: var(--soft); font-size: .82rem; }

.checklist { display: grid; gap: 4px; }
.check-item { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; }
.check-item .tick { width: 26px; height: 26px; border-radius: 50%; border: 1.5px dashed var(--line-2); display: grid; place-items: center; flex: none; }
.check-item.done .tick { background: var(--good); border: 0; color: #fff; }
.check-item.done .tick svg { width: 14px; height: 14px; }
.check-item.now { background: var(--paper); }
.check-item.now .tick { border: 1.5px solid var(--ink); }
.check-item .txt { flex: 1; min-width: 0; }
.check-item .txt b { display: block; font-size: .92rem; font-weight: 600; }
.check-item.done .txt b { color: var(--soft); text-decoration: line-through; text-decoration-color: var(--line-2); }
.check-item .txt span { font-size: .8rem; color: var(--soft); }

/* accounts grid */
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.acc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 14px; transition: box-shadow .2s, transform .2s var(--ease), border-color .2s; position: relative; }
.acc:hover { box-shadow: var(--sh-2); border-color: var(--line-2); }
.acc .top { display: flex; gap: 12px; align-items: center; }
.acc .name { min-width: 0; flex: 1; }
.acc .name b { display: block; font-size: 1rem; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc .name span { font-size: .8rem; color: var(--soft); }
.acc .kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: .8rem; }
.acc .kv div { background: var(--paper); border-radius: 10px; padding: 9px 11px; }
.acc .kv span { display: block; color: var(--faint); font-size: .72rem; margin-bottom: 3px; }
.acc .kv b { font-weight: 600; font-size: .84rem; }
.acc .foot-a { display: flex; gap: 6px; margin-top: auto; }
.acc.ended { opacity: .62; }
.warm { display: flex; flex-direction: column; gap: 7px; }
.warm .row { font-size: .8rem; color: var(--soft); justify-content: space-between; }
.warm .dots { display: flex; gap: 4px; }
.warm .dots i { flex: 1; height: 6px; border-radius: 99px; background: var(--paper-2); display: block; }
.warm .dots i.on { background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.warm .dots i.now { background: var(--accent-wash); box-shadow: inset 0 0 0 1px #ffc2b0; }
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-3); padding: 6px; min-width: 210px; z-index: 20; animation: pop .2s var(--ease); }
.menu button { appearance: none; border: 0; background: none; width: 100%; text-align: left; padding: 10px 12px; border-radius: 9px; font: 500 .88rem/1.2 var(--f-sans); cursor: pointer; color: var(--ink); display: flex; gap: 10px; align-items: center; }
.menu button:hover { background: var(--paper); }
.menu button.danger { color: var(--bad); }
.menu button svg { width: 16px; height: 16px; }
.order-strip { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--r-lg); background: var(--warn-wash); border: 1px solid #f6dcaa; flex-wrap: wrap; }
.order-strip .ico { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--warn); }
.order-strip .ico svg { width: 20px; height: 20px; }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--faint); }
.search input { padding-left: 36px; height: 38px; border-radius: 999px; width: 240px; }
.toolbar select { height: 38px; border-radius: 999px; width: auto; min-width: 160px; }

/* calendar */
.cal-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cal-head h3 { margin: 0 8px 0 4px; font-size: 1.15rem; min-width: 190px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.day { background: var(--card); border: 1px solid var(--line); border-radius: 16px; min-height: 420px; display: flex; flex-direction: column; overflow: hidden; }
.day.today { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.day.past { background: #fbfaf8; }
.day .dh { padding: 12px 12px 10px; display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--line); }
.day .dh span { font: 500 .68rem/1 var(--f-mono); letter-spacing: .1em; color: var(--faint); text-transform: uppercase; }
.day .dh b { font-size: 1.25rem; letter-spacing: -.03em; font-weight: 600; }
.day.today .dh b { background: var(--ink); color: #fff; border-radius: 999px; padding: 2px 9px; font-size: 1rem; }
.day .evs { padding: 8px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.day .add { appearance: none; border: 1px dashed var(--line-2); background: transparent; border-radius: 10px; height: 34px; color: var(--faint); font: 500 .8rem/1 var(--f-sans); cursor: pointer; margin-top: auto;
  opacity: 0; transition: opacity .15s, border-color .15s, color .15s; display: flex; align-items: center; justify-content: center; gap: 6px; }
.day:hover .add, .day .add:focus-visible { opacity: 1; }
.day .add:hover { border-color: var(--ink); color: var(--ink); }
.day .add svg { width: 14px; height: 14px; }
.event { appearance: none; text-align: left; width: 100%; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 7px; display: flex; gap: 8px; align-items: center; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, transform .15s var(--ease); }
.event:hover { border-color: var(--ink); transform: translateY(-1px); }
.event .th { width: 26px; height: 36px; border-radius: 6px; flex: none; background: var(--paper-2) center / cover no-repeat; overflow: hidden; display: grid; place-items: center; }
.event .th img, .event .th video { width: 100%; height: 100%; object-fit: cover; }
.event .th svg { width: 12px; height: 12px; color: var(--faint); }
.event .tx { min-width: 0; flex: 1; }
.event .tx b { display: block; font-size: .76rem; font-weight: 600; }
.event .tx span { display: block; font-size: .7rem; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event.s-approved { background: var(--card); }
.event.s-posted { background: var(--good-wash); border-color: #c6ead5; }
.event.s-rejected, .event.s-failed { background: var(--bad-wash); border-color: #f6c9c2; }
.event.s-reviewing, .event.s-needs_review { background: var(--info-wash); border-color: #cdd9ff; }
.event.s-posting { background: var(--accent-wash); border-color: #ffd2c4; }

/* posts list */
.plist { display: flex; flex-direction: column; }
.prow { display: grid; grid-template-columns: 56px minmax(0, 1.6fr) minmax(0, 1fr) 150px 150px auto; gap: 16px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.prow:last-child { border-bottom: 0; }
.prow:hover { background: #fcfbf9; }
.prow .th { width: 48px; height: 64px; border-radius: 9px; background: var(--paper-2); overflow: hidden; display: grid; place-items: center; position: relative; }
.prow .th img, .prow .th video { width: 100%; height: 100%; object-fit: cover; }
.prow .th svg { width: 16px; height: 16px; color: var(--faint); }
.prow .th .n { position: absolute; right: 3px; bottom: 3px; background: rgba(0, 0, 0, .65); color: #fff; font-size: .62rem; padding: 1px 5px; border-radius: 6px; }
.prow .cap { font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prow .why { font-size: .78rem; color: var(--soft); margin-top: 3px; }
.prow .who { display: flex; gap: 8px; align-items: center; font-size: .86rem; min-width: 0; }
.prow .who span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .when { font-size: .84rem; }
.prow .when span { display: block; color: var(--faint); font-size: .76rem; }
.prow .acts { display: flex; gap: 6px; justify-content: flex-end; }

/* tables (billing) */
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font: 500 .7rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 12px 20px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl .lines { font-size: .8rem; color: var(--soft); }

/* drawer (composer, wizard) */
.drawer { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: flex-end; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(18, 17, 19, .4); backdrop-filter: blur(3px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.drawer .sheet { position: relative; width: min(980px, 100vw); height: 100%; background: var(--paper); box-shadow: var(--sh-3); display: flex; flex-direction: column; animation: slidein .35s var(--ease); }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } }
.drawer .sheet-head { display: flex; align-items: center; gap: 12px; padding: 18px 26px; border-bottom: 1px solid var(--line); background: var(--card); }
.drawer .sheet-head h2 { font-size: 1.3rem; margin: 0; letter-spacing: -.03em; }
.drawer .sheet-body { flex: 1; overflow: auto; display: grid; grid-template-columns: 1fr 340px; }
.drawer .sheet-main { padding: 26px; min-width: 0; }
.drawer .sheet-side { padding: 26px; border-left: 1px solid var(--line); background: #fbfaf7; position: relative; }
.drawer .sheet-foot { display: flex; align-items: center; gap: 10px; padding: 16px 26px; border-top: 1px solid var(--line); background: var(--card); }
.section-t { font: 500 .7rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin: 0 0 10px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.box + .box { margin-top: 14px; }

.acc-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.acc-opt { appearance: none; border: 1px solid var(--line-2); background: var(--card); border-radius: 14px; padding: 10px; display: flex; gap: 10px; align-items: center; cursor: pointer; text-align: left; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s; }
.acc-opt:hover { border-color: var(--ink); }
.acc-opt[aria-pressed=true] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.acc-opt b { font-size: .85rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-opt span { font-size: .74rem; color: var(--soft); }
.acc-opt .tx { min-width: 0; }

.drop { border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); padding: 30px 20px; text-align: center; cursor: pointer; background: var(--card); transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--ink); background: #fffdf9; }
.drop .ico { width: 48px; height: 48px; border-radius: 16px; background: var(--paper); display: grid; place-items: center; margin: 0 auto 12px; }
.drop .ico svg { width: 22px; height: 22px; }
.drop b { display: block; font-size: .98rem; }
.drop span { font-size: .82rem; color: var(--soft); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.thumbs img, .thumbs video { width: 64px; height: 86px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.counter { font: 500 .74rem/1 var(--f-mono); color: var(--faint); }
progress { width: 100%; height: 6px; border-radius: 99px; overflow: hidden; -webkit-appearance: none; appearance: none; border: 0; background: var(--paper-2); }
progress::-webkit-progress-bar { background: var(--paper-2); }
progress::-webkit-progress-value { background: var(--accent); border-radius: 99px; }
progress::-moz-progress-bar { background: var(--accent); }

/* preview phone in the composer */
.preview { position: sticky; top: 0; }
.preview .phone { position: relative; left: auto; top: auto; transform: none; margin: 6px auto 0; width: 248px; height: 516px; }
.preview .phone .screen { background: linear-gradient(170deg, #2a2730, #121113); }
.preview .media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.preview .empty-media { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .45); font-size: .78rem; text-align: center; padding: 30px; }
.preview .tt .meta span { white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.preview .dots-s { position: absolute; top: 40px; left: 0; right: 0; display: flex; justify-content: center; gap: 3px; z-index: 3; }
.preview .dots-s i { width: 16px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .4); }
.preview .dots-s i:first-child { background: #fff; }

/* order wizard */
.wiz-steps { display: flex; gap: 6px; align-items: center; }
.wiz-steps span { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--faint); font-weight: 500; }
.wiz-steps span i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 600 .72rem/1 var(--f-sans); font-style: normal; border: 1px solid var(--line-2); background: var(--card); }
.wiz-steps span.on { color: var(--ink); }
.wiz-steps span.on i { background: var(--ink); color: #fff; border-color: var(--ink); }
.wiz-steps span.done i { background: var(--good); color: #fff; border-color: var(--good); }
.wiz-steps b { width: 22px; height: 1px; background: var(--line-2); display: block; }
.big-count { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.presets { display: flex; gap: 8px; flex-wrap: wrap; }
.summary { position: sticky; top: 0; }
.summary .sumline .k { font-size: .88rem; }
.summary .due { font: 600 2.4rem/1 var(--f-sans); letter-spacing: -.05em; margin: 4px 0; }
.trust { display: grid; gap: 10px; margin-top: 18px; font-size: .82rem; color: var(--soft); }
.trust div { display: flex; gap: 10px; align-items: flex-start; }
.trust svg { width: 16px; height: 16px; flex: none; color: var(--good); margin-top: 1px; }
.paybadges { display: flex; gap: 6px; align-items: center; margin-top: 14px; color: var(--faint); font-size: .74rem; }
.timeline { display: grid; gap: 0; margin-top: 6px; }
.timeline > div { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding-bottom: 14px; position: relative; font-size: .86rem; }
.timeline > div::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2px solid var(--ink); margin: 4px 0 0 4px; }
.timeline > div::after { content: ""; position: absolute; left: 10px; top: 18px; bottom: 0; width: 1px; background: var(--line-2); }
.timeline > div:last-child::after { display: none; }
.timeline b { display: block; }
.timeline span { color: var(--soft); font-size: .8rem; }

/* success state after paying */
.celebrate { text-align: center; padding: 30px 20px 10px; }
.celebrate .ok { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--good); color: #fff; display: grid; place-items: center; animation: pop .5s var(--ease); }
.celebrate .ok svg { width: 30px; height: 30px; }

/* ---------- responsive ---------- */
/* ---------- API docs ---------- */
.docs { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 48px; align-items: start; }
.docs-toc { position: sticky; top: 84px; padding: 40px 0; display: flex; flex-direction: column; gap: 2px; font-size: .88rem; max-height: calc(100vh - 84px); overflow: auto; }
.docs-toc b { font: 500 .68rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin: 18px 0 8px; }
.docs-toc b:first-child { margin-top: 0; }
.docs-toc a { color: var(--soft); text-decoration: none; padding: 5px 10px; border-radius: 8px; }
.docs-toc a:hover { color: var(--ink); background: var(--paper-2); }
.docs-toc a.on { color: var(--ink); background: var(--card); box-shadow: var(--sh-1); }
.docs-main { max-width: 800px; min-width: 0; }
.docs-main h2 { scroll-margin-top: 90px; }
.docs-main h3 { scroll-margin-top: 90px; font: 600 1.02rem/1.4 var(--f-mono); margin-top: 2em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.prose code { font: .86em/1.5 var(--f-mono); background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.prose pre { background: #17161a; color: #ece9e2; border-radius: var(--r); padding: 16px 18px; overflow-x: auto; font-size: .84rem; line-height: 1.6; margin: 14px 0 20px; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; overflow-wrap: normal; white-space: pre; }
.prose pre .b { color: #9fd5ff; }
.verb { font: 600 .7rem/1 var(--f-mono); letter-spacing: .06em; padding: 5px 8px; border-radius: 6px; }
.verb.get { background: var(--info-wash); color: #1d3a99; }
.verb.post { background: var(--good-wash); color: #0b5233; }
.verb.del { background: var(--bad-wash); color: #7a1c14; }
.docs-main h2 .verb { font-size: .8rem; vertical-align: middle; margin-right: 6px; }
.tbl.api { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); border-collapse: separate; border-spacing: 0; margin: 14px 0 20px; overflow: hidden; }
.tbl.api td, .tbl.api th { padding: 10px 14px; vertical-align: top; }
.tbl.api td:first-child { white-space: nowrap; }
.tbl.api td:nth-child(2), .tbl.api th:nth-child(2) { display: table-cell; }
@media (max-width: 860px) {
  .docs { grid-template-columns: 1fr; gap: 0; }
  .docs-toc { display: none; }
  .tbl.api td:first-child { white-space: normal; }
}

@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cols { grid-template-columns: 1fr; }
  .week { grid-template-columns: repeat(7, minmax(120px, 1fr)); overflow-x: auto; padding-bottom: 8px; }
  .prow { grid-template-columns: 56px minmax(0, 1fr) 130px auto; }
  .prow .who, .prow .st { display: none; }
}
@media (max-width: 980px) {
  .hero .grid, .pricing, .faq, .welcome { grid-template-columns: 1fr; }
  .stage { height: 520px; max-width: 560px; margin: 0 auto; width: 100%; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.wide { grid-column: span 1; }
  .promises { grid-template-columns: 1fr; }
  .showcase { padding: 36px 22px; }
  .window .body { grid-template-columns: 1fr; }
  .window .side { display: none; }
  .wk { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wk .d:nth-child(n+5) { display: none; }
  .auth { grid-template-columns: 1fr; }
  .auth .art { display: none; }
  .topbar nav { display: none; }
  .drawer .sheet-body { grid-template-columns: 1fr; }
  .drawer .sheet-side { border-left: 0; border-top: 1px solid var(--line); }
  .preview { position: static; }
  .summary { position: static; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 50; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .3s var(--ease); }
  .sidebar.open { transform: none; box-shadow: var(--sh-3); }
  .mobile-top { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 16px; border-bottom: 1px solid var(--line); background: rgba(246, 244, 239, .9); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 40; }
  .content { padding: 0 16px 60px; }
  .pagebar h1 { font-size: 1.6rem; }
  .welcome { padding: 28px; }
  .wiz-steps span:not(.on) em { display: none; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  section.block { padding: 72px 0; }
  .hero { padding-top: 20px; }
  .stage { height: 440px; transform: scale(.82); transform-origin: top center; margin-bottom: -70px; }
  .float.f1 { left: 0; } .float.f2 { right: 0; }
  .steps, .bento { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat .v { font-size: 1.7rem; }
  .price-card, .included { padding: 26px; }
  .price-tag b { font-size: 3.2rem; }
  .final { padding: 52px 24px; }
  .topbar .cta .btn:not(.main) { display: none; }
  .prow { grid-template-columns: 48px minmax(0, 1fr) auto; padding: 12px 14px; }
  .prow .when { display: none; }
  .acc-grid { grid-template-columns: 1fr; }
  .drawer .sheet-main, .drawer .sheet-side { padding: 18px; }
  .drawer .sheet-head, .drawer .sheet-foot { padding: 14px 18px; }
  .search input { width: 100%; }
  .search { flex: 1; }
  .tbl th:nth-child(2), .tbl td:nth-child(2) { display: none; }
  .tbl td, .tbl th { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.bar-fill.w66 { width: 66%; } .bar-fill.w83 { width: 83%; }
.good { color: var(--good); }
.ticks { display: flex; justify-content: space-between; font: 500 .7rem/1 var(--f-mono); color: var(--faint); margin-top: 4px; }
.event.s-held { background: var(--warn-wash); border-color: #f6dcaa; }
.prow .st { display: flex; }
.box .price-tag { margin: 0; }
.box .price-tag b { font-size: 3rem; }
.sheet .stepper.big input { width: 80px; }
dialog .thumbs img, dialog .thumbs video { width: 120px; height: 160px; }
.paybadges svg { width: 14px; height: 14px; flex: none; }
.wiz-steps em { font-style: normal; }
.plat { width: 34px; height: 34px; border-radius: 10px; background: #000; color: #fff; display: grid; place-items: center; flex: none; }
.plat svg { width: 18px; height: 18px; }
.plat.lg { width: 46px; height: 46px; border-radius: 14px; }
.plat.lg svg { width: 24px; height: 24px; }
.plist.compact .prow { grid-template-columns: 48px minmax(0, 1fr) 110px auto auto; padding: 12px 18px; }
.plist.compact .prow .who { display: none; }
.plist.compact .prow .cap { -webkit-line-clamp: 1; }
@media (max-width: 620px) { .plist.compact .prow { grid-template-columns: 48px minmax(0, 1fr) auto; } .plist.compact .prow .st { display: none; } }
dialog video:focus, dialog img:focus { outline: none; }
.cal-head select { width: auto; min-width: 170px; height: 36px; border-radius: 999px; }
.calc .presets + .calc-row { margin-top: 26px; }
.seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg button { white-space: nowrap; flex: none; }
.phones-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.mini-phone { width: 34px; height: 60px; border-radius: 9px; background: var(--ink); padding: 8px 6px; display: grid; grid-template-columns: 1fr; gap: 3px; align-content: start; animation: pop .4s var(--ease) both; box-shadow: var(--sh-2); }
.mini-phone i { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); display: block; }
.wordmark { font: 650 1.12rem/1 var(--f-sans); letter-spacing: -.045em; display: inline-flex; align-items: baseline; gap: .18em; }
.wordmark em { font: italic 400 1.22em/1 var(--f-serif); letter-spacing: -.01em; color: var(--accent); transform: translateY(.02em); }
.brand .mark { border-radius: 9px; transition: transform .5s var(--ease); }
.brand:hover .mark { transform: rotate(-8deg) scale(1.06); }
@media (max-width: 860px) {
  .drawer .sheet-head { flex-wrap: wrap; row-gap: 10px; }
  .drawer .sheet-head .wiz-steps { order: 3; width: 100%; justify-content: space-between; }
  .wiz-steps b { flex: 1; width: auto; }
  .drawer .sheet-head h2 { font-size: 1.15rem; }
}

/* ---------- profile request (customer) ---------- */
.prof-strip { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); }
.prof-strip .grow { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.prof-strip b { font-size: .86rem; }
.prof-strip .grow span { font-size: .76rem; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prof-strip img, .prof-strip .ico { width: 34px; height: 34px; border-radius: 50%; flex: none; object-fit: cover; }
.prof-strip .ico { display: grid; place-items: center; background: #fff; color: var(--accent); border: 1px solid var(--line); }
.prof-strip .ico svg { width: 16px; height: 16px; }
.prof-strip.todo { background: var(--wash); border-color: var(--wash-line); }
.prof-strip.done .ico { color: var(--good); }
.prof-head { display: flex; align-items: center; gap: 16px; }
.prof-photo { position: relative; width: 84px; height: 84px; border-radius: 50%; flex: none; overflow: hidden; border: 1px dashed var(--line-2, #d9d4cc); background: var(--wash); display: grid; place-items: center; cursor: pointer; padding: 0; }
.prof-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prof-photo .ico { color: var(--accent); } .prof-photo .ico svg { width: 22px; height: 22px; }
.prof-photo-t { position: absolute; left: 0; right: 0; bottom: 0; font-size: .64rem; font-weight: 600; color: #fff; background: rgba(18, 17, 19, .55); padding: 3px 0 5px; text-align: center; }
.prof-photo:not(:has(img)) .prof-photo-t { position: static; background: none; color: var(--accent); padding: 0; margin-top: -18px; }
.at-in { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding-left: 12px; }
.at-in > span { color: var(--soft); font-weight: 500; }
.at-in input { border: 0 !important; box-shadow: none !important; padding-left: 4px; background: transparent; min-width: 0; flex: 1; }
.at-in:focus-within { border-color: var(--ink); }
.prof-note .grow, .verify-note .grow { min-width: 0; }
@media (max-width: 620px) { .prof-note, .verify-note { flex-wrap: wrap; } }
@media (max-width: 620px) { .verify-note .grow { flex-basis: calc(100% - 44px); } }
.at-backups { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
@media (max-width: 420px) { .at-backups { grid-template-columns: 1fr; } }

/* ---------- phones and touch screens ---------- */
/* Nothing may widen the page: a wider layout makes phones zoom out or scroll sideways. */
html, body { overflow-x: clip; }
/* iOS zooms into any field under 16px when it is tapped, and stays zoomed. */
@media (pointer: coarse) {
  input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input[type=search], input:not([type]), select, textarea { font-size: 16px; }
}
/* The visible screen height (100vh is taller than the screen while the browser bars show). */
@supports (height: 100dvh) {
  .auth { min-height: 100dvh; }
  .shell { min-height: 100dvh; }
  .sidebar { height: 100dvh; }
  dialog { max-height: calc(100dvh - 32px); }
  .drawer { height: 100dvh; }
}
dialog { overflow: auto; overscroll-behavior: contain; }
.drawer .sheet-body { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.drawer .sheet-foot { padding-bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
/* Grids of cards may shrink to the screen instead of to their longest word. */
.acc-grid { grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); }
.acc, .cols > *, .stats > *, .bento > *, .steps > * { min-width: 0; }
/* Wide tables scroll inside their panel instead of stretching the page. */
.panel > .body.flush { overflow-x: auto; }
/* The unpaid-order strip: text keeps a readable width, the buttons drop below it. */
.order-strip .grow { flex: 1 1 200px; min-width: 0; }
/* No hover on touch screens: show what hover would reveal, and don't leave cards lifted after a tap. */
@media (hover: none) {
  .day .add { opacity: 1; }
  .acc:hover, .event:hover, .tile:hover, .card:hover { transform: none; }
}
/* The open phone menu dims the page behind it; a tap on the dimmed part closes it. */
@media (max-width: 860px) {
  .shell:has(.sidebar.open)::after { content: ""; position: fixed; inset: 0; background: rgba(18, 17, 19, .35); z-index: 45; animation: fade .2s; }
  .sidebar { overflow-y: auto; overscroll-behavior: contain; }
}
/* Public pages: a menu button replaces the hidden section links on small screens. */
.nav-toggle { display: none; }
@media (max-width: 980px) {
  .topbar .nav-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); cursor: pointer; flex: none; }
  .topbar .nav-toggle svg { width: 18px; height: 18px; }
  .topbar.menu-open { background: var(--card); box-shadow: var(--sh-2); }
  .topbar.menu-open nav { display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 16px; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--sh-2); }
  .topbar.menu-open nav a { padding: 12px 14px; font-size: 1rem; color: var(--ink); }
  .topbar .wrap { gap: 12px; }
}
@media (max-width: 620px) {
  .topbar .cta .btn:not(.main) { display: none; }
  .topbar .cta .btn { height: 40px; padding: 0 14px; font-size: .88rem; }
}
.topbar nav .nav-login { display: none; }
@media (max-width: 620px) { .topbar.menu-open nav .nav-login { display: block; } }

/* ---------- the octopus ---------- */
.mark { width: 34px; height: 34px; object-fit: contain; }
.brand .mark { border-radius: 0; filter: drop-shadow(0 2px 3px rgba(180, 60, 20, .18)); }
/* Phones: the week reads top to bottom, one day per row, instead of seven columns scrolled sideways. */
@media (max-width: 620px) {
  .week { grid-template-columns: minmax(0, 1fr); overflow: visible; padding-bottom: 0; }
  .day { min-height: 0; }
  .day .dh { padding: 10px 12px; }
  .day .evs { padding: 8px; }
  .day.past:not(:has(.event)) { display: none; }
}
/* Touch screens: chips and small controls get a fingertip-sized target. */
@media (pointer: coarse) {
  .chip { height: 40px; padding: 0 16px; }
  .btn.sm { min-height: 38px; }
  input[type=range] { height: 32px; }
}

/* ---- custom dropdown (no native select) ---- */
.dd { position: relative; display: inline-block; min-width: 190px; }
.dd-btn { appearance: none; width: 100%; height: 36px; border: 1px solid var(--line-2); background: var(--card); border-radius: 999px; padding: 0 12px 0 6px; display: flex; align-items: center; gap: 8px; font: 500 .88rem/1 var(--f-sans); color: var(--ink); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.dd-btn:hover { border-color: var(--ink); }
.dd-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); border-color: var(--ink); }
.dd-btn > .dd-l { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-btn > .dd-l:first-child { padding-left: 8px; }
.dd-c { width: 16px; height: 16px; color: var(--soft); flex: none; transition: transform .2s var(--ease); }
.dd.open .dd-c { transform: rotate(180deg); }
.dd-list { position: absolute; right: 0; top: calc(100% + 6px); min-width: 100%; width: max-content; max-width: min(340px, calc(100vw - 32px)); max-height: 320px; overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-3); padding: 6px; z-index: 40; animation: pop .18s var(--ease); }
.dd.up .dd-list { top: auto; bottom: calc(100% + 6px); }
.dd-o { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; cursor: pointer; }
.dd-o.hi { background: var(--paper); }
.dd-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.dd-t b { font: 550 .88rem/1.2 var(--f-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-t span { font-size: .76rem; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-k { width: 15px; height: 15px; color: var(--accent); flex: none; }
.dd-all { width: 26px; height: 26px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; flex: none; color: var(--ink-2); }
.dd-all svg { width: 14px; height: 14px; }
.avatar.has-photo { overflow: visible; }
.avatar.has-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
@media (pointer: coarse) { .dd-btn { height: 40px; } .dd-o { padding: 11px 10px; } }
@media (max-width: 560px) { .dd { min-width: 0; width: 100%; } .cal-head .dd { flex: 1 1 100%; } }

/* ---- keywords input ---- */
.kw { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; background: var(--card); min-height: 44px; cursor: text; }
.kw:focus-within { border-color: var(--ink); }
.kw .kw-t { display: inline-flex; align-items: center; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 10px; font: 500 .82rem/1 var(--f-sans); }
.kw .kw-t button { appearance: none; border: 0; background: none; padding: 2px; cursor: pointer; color: var(--soft); display: grid; place-items: center; border-radius: 50%; }
.kw .kw-t button:hover { color: var(--ink); background: var(--line); }
.kw .kw-t svg { width: 12px; height: 12px; }
.kw input { border: 0 !important; box-shadow: none !important; flex: 1 1 140px; min-width: 120px; height: 30px; padding: 0 6px; background: transparent; }
.nav-bottom-wrap { margin-bottom: 4px; }
.settings-billing { margin-top: 28px; scroll-margin-top: 20px; }
.settings-billing .sec-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); }
.settings-billing .sec-head h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.02em; }

/* ---- analytics & warm-up (insights.js) ---- */
.an-bar { margin-bottom: 0; }
.an-bar .right { margin-left: auto; gap: 10px; align-items: center; }
.stats.minor .stat { padding: 14px 18px; }
.stats.minor .stat .v { font-size: 1.35rem; margin: 10px 0 4px; }
.cols.even { grid-template-columns: 1fr 1fr; }
.ch { position: relative; width: 100%; min-height: 220px; touch-action: pan-y; }
.ch svg { display: block; overflow: visible; }
.ch .grid { stroke: var(--line); stroke-width: 1; }
.ch .base { stroke: var(--line-2); stroke-width: 1; }
.ch .axis { font: 500 11px var(--f-sans); fill: var(--faint); }
.ch .bar { transition: opacity .12s; }
.ch .bar.dim { opacity: .35; }
.ch .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch .dot { stroke: var(--card); stroke-width: 2; }
.ch .cross { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.ch .cross.on { opacity: .5; }
.ch-tip { position: absolute; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .1s, transform .1s; background: var(--ink); color: #fff;
  border-radius: 10px; padding: 8px 10px; font-size: .78rem; line-height: 1.4; min-width: 120px; max-width: 240px; box-shadow: var(--sh-2); z-index: 2; }
.ch-tip.on { opacity: 1; transform: none; }
.ch-tip .ch-date { color: rgba(255, 255, 255, .7); margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-tip .tr { display: flex; align-items: center; gap: 6px; }
.ch-tip .tr span { flex: 1; }
.ch-tip .tr i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: .8rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i, .sw { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.scroll-x { overflow-x: auto; }
.an-tbl td, .an-tbl th { white-space: nowrap; }
.an-tbl tr.click { cursor: pointer; }
.an-tbl tr.click:hover td { background: var(--paper); }
.an-tbl td.good { color: var(--good); }
.an-post { min-width: 240px; max-width: 380px; }
.an-post .cap { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px; font-size: .88rem; }
.an-cover { width: 36px; height: 48px; border-radius: 7px; background: var(--paper-2); overflow: hidden; display: grid; place-items: center; flex: none; }
.an-cover img { width: 100%; height: 100%; object-fit: cover; }
.an-cover svg { width: 14px; height: 14px; color: var(--faint); }
.seg.sm button { height: 28px; padding: 0 11px; font-size: .8rem; }
.dd-all { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); }
.warm-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dots.big { display: flex; gap: 5px; flex: 1; min-width: 160px; }
.dots.big i { flex: 1; height: 8px; border-radius: 99px; background: var(--paper-2); display: block; }
.dots.big i.on { background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.dots.big i.now { background: var(--accent-wash); box-shadow: inset 0 0 0 1px #ffc2b0; }
.warm-kv { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.warm-kv > div { display: flex; flex-direction: column; gap: 2px; background: var(--paper); border-radius: 12px; padding: 10px 12px; }
.warm-kv span { font-size: .76rem; color: var(--soft); }
.warm-kv b { font: 600 1.15rem/1.2 var(--f-sans); letter-spacing: -.02em; }
.warm-kv small { font-size: .72rem; color: var(--faint); }
.kw-row { flex-wrap: wrap; gap: 6px; }
.meter-cell { display: inline-flex; align-items: center; gap: 8px; }
.meter { width: 56px; height: 6px; border-radius: 99px; background: var(--paper-2); overflow: hidden; display: inline-block; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
pre.code { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-family: var(--f-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 980px) { .cols.even { grid-template-columns: 1fr; } .warm-kv { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .an-bar .right { margin-left: 0; width: 100%; justify-content: space-between; } .warm-kv { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats.minor .stat .v { font-size: 1.1rem; } }

/* overview performance block + API Docs page */
.ov-h { font-size: 1.15rem; margin: 0 6px 0 0; }
.stats.ov-stats { grid-template-columns: repeat(5, 1fr); }
.ov-stats .k .sw { margin-right: 2px; }
.api-tbl td { padding-top: 9px; padding-bottom: 9px; vertical-align: middle; }
.api-tbl .verb { display: inline-block; min-width: 44px; text-align: center; }
@media (max-width: 1100px) { .stats.ov-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .stats.ov-stats { grid-template-columns: 1fr 1fr; } .ov-stats > :last-child { grid-column: 1 / -1; } }
.sumline .free { color: var(--good); font-weight: 600; }
/* API Docs page: webhooks + the embedded reference */
.check-row { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; font-size: .9rem; }
.check-row input { width: auto; height: auto; margin-top: 3px; flex: none; }
.hook-events { max-height: 300px; overflow: auto; padding: 4px 2px; }
.hook-url { display: block; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.api-ref { margin-top: 36px; }
.api-ref .sec-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); margin-bottom: 8px; }
.api-ref .sec-row h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.02em; }
.docs.in-app { grid-template-columns: 190px minmax(0, 1fr); gap: 36px; padding: 0; width: auto; max-width: none; }
.docs.in-app .docs-toc { top: 16px; padding: 20px 0; max-height: calc(100vh - 32px); }
.docs.in-app .docs-main { padding-top: 6px; }
.docs.in-app .docs-main > h2:first-child { margin-top: 12px; }
@media (max-width: 860px) { .docs.in-app { grid-template-columns: 1fr; } .hook-url { max-width: 200px; } }
.docs.in-app { margin: 0; }

/* overview: metric colours (classes, the CSP blocks inline styles) and the show/hide tiles */
.c-views { background: #ff4f2b; } .c-likes { background: #e87ba4; } .c-comments { background: #2a78d6; } .c-shares { background: #1baf7a; } .c-er { background: #6250d6; }
.ch-tip .tr i.sw { width: 8px; height: 8px; }
.stat.tog { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .15s, background .15s, opacity .15s; }
.stat.tog .k .eye { margin-left: auto; width: 16px; height: 16px; color: var(--faint); }
.stat.tog[aria-pressed="true"] .k .eye { color: var(--ink-2); }
.stat.tog[aria-pressed="false"] .v, .stat.tog[aria-pressed="false"] .s { opacity: .55; }
.stat.tog:hover { border-color: var(--line-2); }
.stat.tog:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ov-extra > :only-child { grid-column: 1 / -1; }
.ov-extra > :nth-child(3):last-child { grid-column: 1 / -1; }
.nav-item.soon { cursor: default; opacity: .45; }
.nav-item.soon:hover { background: transparent; color: inherit; }
.nav-item.soon em { margin-left: auto; font-style: normal; font-size: .68rem; font-weight: 600; letter-spacing: .02em; padding: 2px 7px; border-radius: 99px; background: var(--paper-2); white-space: nowrap; }
.prow .th .play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.prow .th .play svg { width: 14px; height: 14px; color: #fff; fill: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.codebox { position: relative; }
.codebox > pre.code { padding-right: 76px; }
.codebox > .btn { position: absolute; top: 6px; right: 6px; }
.note.stock { background: var(--accent-wash, #fff1ec); color: #8a2a12; font-weight: 600; }
.note.stock.out { background: var(--paper-2); color: var(--ink-2, #555); }
.summary .note.stock { margin: 12px 0 0; }
.preview .warmup-media { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: rgba(255, 255, 255, .8); }
.preview .warmup-media svg { width: 34px; height: 34px; color: var(--accent-2); }
.preview .warmup-media b { color: #fff; font-size: .95rem; }
.preview .media-box { position: absolute; inset: 0; }
.chip:disabled { opacity: .4; cursor: not-allowed; }
@media (max-width: 560px) {
  .seg.kinds { display: flex; width: 100%; }
  .seg.kinds button { flex: 1 1 auto; justify-content: center; padding: 0 8px; gap: 5px; font-size: .82rem; }
}

/* blog */
.blog-post, .blog-index { padding-top: 32px; }
.blog-post article { font-size: 1.06rem; line-height: 1.7; }
.blog-post h1 { font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.08; letter-spacing: -.035em; margin: 14px 0 10px; text-wrap: balance; }
.blog-post h2 { font-size: 1.5rem; margin-top: 1.9em; }
.blog-post h3 { font-size: 1.12rem; margin: 1.5em 0 .4em; letter-spacing: -.01em; }
.blog-post .lede { font-size: 1.2rem; line-height: 1.55; }
.post-meta { color: var(--faint, #8f8c99); font-size: .86rem; margin: 0 0 22px; }
.crumbs { display: flex; gap: 8px; font-size: .86rem; color: var(--soft); }
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.blog-post details { border-bottom: 1px solid var(--line); }
.blog-post details summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.blog-post details summary::-webkit-details-marker { display: none; }
.blog-post details summary::after { content: "+"; color: var(--soft); font-weight: 300; font-size: 1.4rem; line-height: 1; transition: transform .25s; }
.blog-post details[open] summary::after { transform: rotate(45deg); }
.blog-post details p { margin-top: 0; color: var(--soft); }
.blog-cta { margin: 56px 0 8px; padding: 32px; border-radius: 24px; background: var(--ink); color: #fff; }
.blog-cta h2 { margin: 0 0 10px; font-size: 1.6rem; color: #fff; letter-spacing: -.03em; }
.blog-cta p { color: rgba(255, 255, 255, .75); margin: 0 0 20px; }
.related { margin-top: 56px; }
.related h2 { font-size: 1.3rem; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 20px; }
.blog-index .post-grid { margin-top: 36px; }
.blog-index .lede { max-width: 640px; }
.post-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.prose .post-card h2, .post-card h2 { font-size: 1.15rem; line-height: 1.25; margin: 4px 0 0; letter-spacing: -.02em; }
.post-card p { margin: 0; color: var(--soft); font-size: .93rem; line-height: 1.5; }
.post-card .post-meta { margin: auto 0 0; padding-top: 8px; }
@media (max-width: 560px) { .blog-cta { padding: 24px 20px; } .post-grid { grid-template-columns: 1fr; } }
.prose a.post-card { color: var(--ink); }
.post-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.related .post-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.related .post-card p { -webkit-line-clamp: 2; }
.blog-post .kicker { margin-top: 18px; }

/* platforms */
.plats { display: inline-flex; flex: none; }
.plats .plat + .plat { margin-left: -10px; box-shadow: 0 0 0 2px var(--card); }
.plat.ig, .avatar .tk.ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.plat-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.plat-pick .acc-opt { position: relative; }
.plat-pick .tick { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: transparent; flex: none; }
.plat-pick .tick svg { width: 13px; height: 13px; }
.plat-pick .acc-opt[aria-pressed=true] .tick { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 560px) { .plat-pick { grid-template-columns: 1fr; } }

.plat.yt { background: #ff0033; color: #fff; }
.plat.yt svg { width: 20px; height: 20px; }
.plat-pick .acc-opt.soon { opacity: .65; cursor: not-allowed; filter: grayscale(1); background: transparent; }
.plat-pick .acc-opt.soon .tx span { font-weight: 600; }

.wiz-prof { display: grid; gap: 10px; }
.wiz-prof-top { display: flex; gap: 14px; align-items: flex-start; }
.wiz-prof-top .prof-photo { width: 72px; height: 72px; }
.contact-panel { max-width: 720px; }
.wiz-prof textarea { min-height: 64px; }

/* Discord invite */
.btn.discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn.discord:hover { background: #4752c4; border-color: #4752c4; }
.btn.discord svg, .nav-item.discord svg { width: 18px; height: 18px; flex: none; }
.foot-discord { margin: 18px 0 4px; }
.grow.clip { min-width: 0; } .grow.clip > * { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Set-up wizard: a warmup length per account */
.wiz-warm { display: grid; gap: 8px; }
.wiz-warm-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px dashed var(--line); }
.wiz-warm-row b { font-size: .92rem; }
.wiz-warm-row.own .wiz-warm-n b { color: var(--accent); }
.stepper.sm { padding: 2px; flex: none; }
.stepper.sm button { width: 32px; height: 32px; font-size: 1.05rem; }
.wiz-warm-n { min-width: 74px; text-align: center; font-size: .86rem; color: var(--soft); white-space: nowrap; }
.wiz-warm-n b { font-size: 1rem; color: var(--ink); }
/* The owner's account viewer: the customer's dashboard, view only (nothing here can be sent; the entry points to actions are put away) */
.viewonly #new-accounts, .viewonly #pagebar .actions, .viewonly #me .btn { display: none; }
.view-note { position: sticky; top: 0; z-index: 6; }
