/* The Sellly website, sign-in pages and status pages. Tokens and shared
   components are in sellly.css. */

:root { --gutter: clamp(16px, 5vw, 56px); }
body.site, body.auth { background: var(--paper); }

/* ── Header and footer ───────────────────────────────────────────────────── */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); max-width: var(--w-site); margin: 0 auto; padding: var(--s-5) var(--gutter); }
.site-head .wordmark img { height: 24px; }
.site-head nav { display: flex; gap: var(--s-6); align-items: center; }
.site-head nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font: 500 15px/1 var(--sans); }
.site-head nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); }
@media (max-width: 640px) { .site-head nav { gap: var(--s-4); } .hide-sm { display: none; } .site-head .wordmark img { height: 22px; } }

.site-foot { max-width: var(--w-site); margin: var(--s-16) auto 0; padding: var(--s-10) var(--gutter) var(--s-8); display: grid; grid-template-columns: 1.2fr 2fr; gap: var(--s-8); position: relative; }
.site-foot::after { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--rule); }
.site-foot::before { content: ""; position: absolute; top: -1px; left: var(--gutter); width: 48px; height: 2px; background: var(--red); z-index: 1; }
.foot-brand p { margin: var(--s-3) 0 0; color: var(--muted); font: var(--t-body-sm); }
.site-foot nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
.site-foot nav div { display: flex; flex-direction: column; gap: var(--s-2); }
.site-foot .foot-h { font: var(--t-h4); color: var(--muted); margin-bottom: var(--s-1); }
.site-foot nav a { color: var(--ink-2); text-decoration: none; font: var(--t-body-sm); font-size: 14.5px; }
.site-foot nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); }
.foot-legal { grid-column: 1 / -1; margin: 0; color: var(--faint); font: var(--t-caption); }
@media (max-width: 760px) { .site-foot { grid-template-columns: 1fr; gap: var(--s-6); } }

/* ── Page sections ───────────────────────────────────────────────────────── */
.site main > section, .site main > form, .site main > article { max-width: var(--w-site); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--s-12); align-items: center; padding-top: clamp(32px, 7vw, 96px); padding-bottom: clamp(48px, 8vw, 112px); }
.hero .display { max-width: 11ch; }
.hero .lead { margin: var(--s-6) 0 0; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-6); margin: var(--s-8) 0 var(--s-4); }
.arrow-link { display: inline-flex; align-items: center; gap: 4px; font: 600 15px/1 var(--sans); text-decoration: none; min-height: 44px; }
.arrow-link:hover { text-decoration: underline; text-decoration-color: var(--red); }
.fine { color: var(--muted); font: var(--t-body-sm); margin: 0; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: var(--s-10); } .hero .display { max-width: 13ch; } }

.band { padding-top: var(--s-12); padding-bottom: var(--s-12); }
.band > * { position: relative; }
.band-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s-2) var(--s-12); align-items: baseline; padding-top: var(--s-5); margin-bottom: var(--s-8); border-top: 1px solid var(--rule); position: relative; }
.band-head::before { content: ""; position: absolute; left: 0; top: -1px; width: 48px; height: 2px; background: var(--red); }
.band-head h2 { font: 500 clamp(26px, 3.2vw, 36px)/1.12 var(--serif); letter-spacing: -.01em; }
.band-head p { margin: 0; color: var(--muted); font: var(--t-body-lg); }
@media (max-width: 760px) { .band-head { grid-template-columns: 1fr; } .band { padding-top: var(--s-8); padding-bottom: var(--s-8); } }

.steps-3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-8); counter-reset: step; }
.steps-3 li { counter-increment: step; display: flex; flex-direction: column; gap: var(--s-2); }
.steps-3 li::before { content: counter(step); font: 500 40px/1 var(--serif); color: var(--red); margin-bottom: var(--s-2); font-variant-numeric: lining-nums; }
.steps-3 b { font: var(--t-h3); font-size: 17px; }
.steps-3 span { color: var(--muted); }
@media (max-width: 760px) { .steps-3 { grid-template-columns: 1fr; gap: var(--s-6); } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 0 var(--s-12); }
.split .band-head { grid-template-columns: 1fr; align-self: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.outcomes { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-12); }
.outcomes > div { padding: var(--s-5) 0; border-bottom: 1px solid var(--rule); }
.outcomes dt { font: var(--t-h3); font-size: 17px; margin-bottom: var(--s-1); }
.outcomes dd { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .outcomes { grid-template-columns: 1fr; } }

.who-list { font: 400 clamp(19px, 2.2vw, 24px)/1.5 var(--serif); color: var(--ink-2); max-width: 44em; margin: 0; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); }
.facts li { display: flex; flex-direction: column; gap: var(--s-1); }
.facts b { font: var(--t-h3); }
.facts span { color: var(--muted); font: var(--t-body-sm); font-size: 14.5px; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

.price-band { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-6) var(--s-12); flex-wrap: wrap; }
.price-band > div { flex: 1 1 420px; max-width: 46em; }
.price-band h2 { font: 500 clamp(28px, 3.6vw, 40px)/1.1 var(--serif); margin-bottom: var(--s-3); }
.price-band p { color: var(--muted); margin: 0; }
.final { text-align: left; padding-top: var(--s-12); padding-bottom: var(--s-8); }
.display-sm { font: 500 clamp(30px, 4.4vw, 48px)/1.08 var(--serif); letter-spacing: -.015em; }
.final p { color: var(--muted); margin: var(--s-2) 0 var(--s-6); font: var(--t-body-lg); }

/* The product, drawn with its own parts */
.desk { margin: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-md); box-shadow: 0 30px 60px -30px rgba(22, 25, 43, .25); overflow: hidden; font-size: 14px; }
.desk-bar { display: flex; align-items: center; gap: 6px; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--rule); }
.desk-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--wash-2); }
.desk-bar b { margin-left: var(--s-3); font: 500 20px/1 var(--serif); }
.desk-tabs { display: flex; gap: var(--s-5); padding: 0 var(--s-4); border-bottom: 1px solid var(--rule); color: var(--muted); font: 600 13px/1 var(--sans); }
.desk-tabs span { padding: var(--s-3) 0; margin-bottom: -1px; }
.desk-tabs .on { color: var(--ink); box-shadow: inset 0 -2px var(--ink); }
.desk-tabs i { font-style: normal; display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 4px; border-radius: 9px; background: var(--wash-2); font-size: 11px; }
.desk-tabs .on i { background: var(--ink); color: var(--paper); }
.desk-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 64px; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--rule); }
.desk-row > div { display: flex; flex-direction: column; min-width: 0; }
.desk-row > div span { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk-row .stage { font-size: 12.5px; }
.desk-row .money { text-align: right; }
.desk-action { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-4); background: var(--wash); font-size: 13px; }
@media (max-width: 520px) { .desk-row { grid-template-columns: minmax(0, 1fr) auto; } .desk-row .pay { display: none; } .desk-row .money { grid-row: 1; grid-column: 2; } .desk-row .stage { grid-column: 1; } }

.chat { margin: 0; padding: var(--s-5); border-radius: var(--r-md); background: #efe7de; display: flex; flex-direction: column; gap: var(--s-2); font-size: 14px; line-height: 1.45; }
.chat p { margin: 0; max-width: 88%; padding: 8px 10px; border-radius: 8px; background: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.chat .out { align-self: flex-end; background: #dcf7c5; }
.chat .choices { display: flex; gap: 6px; flex-wrap: wrap; background: none; box-shadow: none; padding: 0; }
.chat .choices span { background: #fff; color: #0a6c8f; font-weight: 600; padding: 6px 12px; border-radius: 8px; font-size: 13px; }

/* ── Pricing, demo, prose ────────────────────────────────────────────────── */
.page-hero { padding-top: clamp(32px, 6vw, 80px); padding-bottom: var(--s-8); }
.page-hero .lead { max-width: 38em; margin: var(--s-4) 0 0; }
.plan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s-12); padding-top: var(--s-8) !important; border-top: 1px solid var(--rule); position: relative; }
.plan::before { content: ""; position: absolute; top: -1px; left: var(--gutter); width: 48px; height: 2px; background: var(--red); }
.plan-figure { display: flex; flex-direction: column; margin: 0 0 var(--s-3); }
.plan-figure .money { font: 500 clamp(56px, 8vw, 80px)/1 var(--serif); letter-spacing: -.02em; }
.plan-figure small { font: 500 16px/1.4 var(--sans); color: var(--muted); margin-top: var(--s-2); }
.plan-main .btn { margin-top: var(--s-4); }
.included { list-style: none; margin: 0; padding: 0; }
.included li { display: flex; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); }
.included li .icon { color: var(--success); margin-top: 2px; }
@media (max-width: 800px) { .plan { grid-template-columns: 1fr; gap: var(--s-8); } }
.faq { max-width: 760px !important; margin-top: var(--s-12) !important; }
.faq h2 { font: 500 28px/1.2 var(--serif); margin-bottom: var(--s-4); }
.faq details { border-top: 1px solid var(--rule); padding: var(--s-4) 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font: var(--t-h3); font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: var(--s-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--sans); color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: var(--s-3) 0 0; color: var(--muted); max-width: 60ch; }
.demo-list { max-width: 720px !important; margin: 0 0 0 max(0px, calc((100vw - var(--w-site)) / 2)) !important; display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.demo-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-5) 0; border: 0; border-bottom: 1px solid var(--rule); background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.demo-row span { display: flex; flex-direction: column; gap: 2px; }
.demo-row b { font: 500 22px/1.2 var(--serif); }
.demo-row small { color: var(--muted); font: var(--t-body-sm); }
.demo-row:hover b { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.demo-row:hover .icon { transform: translateX(3px); }
.demo-row .icon { transition: transform var(--fast); }
.prose { max-width: 760px !important; padding-top: clamp(32px, 6vw, 72px); }
.prose h1 { font: var(--t-display); font-size: clamp(36px, 5vw, 52px); margin-bottom: var(--s-8); }
.prose h2 { font: var(--t-h3); font-size: 17px; margin: var(--s-8) 0 var(--s-2); }
.prose p, .prose li { color: var(--ink-2); max-width: 65ch; }

/* ── Sign-in pages and status pages ──────────────────────────────────────── */
body.auth { min-height: 100vh; display: flex; flex-direction: column; }
.auth-head { padding: var(--s-5) var(--gutter); }
.auth-head .wordmark img { height: 24px; }
.auth-grid { flex: 1; display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: var(--s-16); align-items: center; width: 100%; max-width: var(--w-site); margin: 0 auto; padding: var(--s-8) var(--gutter) var(--s-12); }
.auth-grid.solo { grid-template-columns: minmax(0, 560px); }
.auth-main h1 { font: var(--t-h1); font-size: clamp(30px, 4vw, 38px); margin-bottom: var(--s-2); }
.auth-main .auth-sub { color: var(--muted); margin: 0 0 var(--s-6); }
.auth-main form { margin-top: var(--s-6); }
.auth-main .ruled { padding-top: var(--s-6); margin-top: var(--s-6); }
.auth-main .ref { margin-top: var(--s-6); }
.auth-main .terms { margin-top: var(--s-3); }
.auth-main > p { color: var(--ink-2); }
.auth-switch { margin-top: var(--s-6); color: var(--muted); font: var(--t-body-sm); font-size: 14.5px; }
.auth-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.auth-row a { font: var(--t-body-sm); }
.auth-aside { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding-left: var(--s-12); border-left: 1px solid var(--rule); position: relative; }
.auth-aside::before { content: ""; position: absolute; left: -1px; top: 20%; height: 48px; width: 2px; background: var(--red); }
.auth-quote { font: 500 clamp(36px, 4.4vw, 56px)/1.05 var(--serif); letter-spacing: -.015em; max-width: 10ch; margin: 0; }
.auth-aside ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: var(--s-5); max-width: 30em; }
.auth-aside ol li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 2px var(--s-2); }
.auth-aside ol li::before { content: counter(s); grid-row: span 2; font: 500 26px/1 var(--serif); color: var(--red); }
.auth-aside ol b { font: var(--t-h3); }
.auth-aside ol span { color: var(--muted); font: var(--t-body-sm); font-size: 14.5px; }
.auth-aside h2 { font: 500 28px/1.15 var(--serif); margin-bottom: var(--s-6); }
.auth-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3); padding: var(--s-5) var(--gutter); color: var(--faint); font: var(--t-caption); }
.auth-foot nav { display: flex; gap: var(--s-4); }
.auth-foot a { color: var(--muted); }
@media (max-width: 900px) {
  .auth-grid { grid-template-columns: 1fr; padding-top: var(--s-4); gap: 0; align-items: start; }
  .auth-aside { display: none; }
}
/* Onboarding's store form is wider and lives in the same shell */
.auth-main .wide-card { max-width: 640px; }
.auth-grid:has(.wide-card) { grid-template-columns: minmax(0, 640px) minmax(0, 1fr); }
@media (max-width: 1100px) { .auth-grid:has(.wide-card) { grid-template-columns: 1fr; } .auth-grid:has(.wide-card) .auth-aside { display: none; } }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--s-2); }
.type-card { position: relative; display: flex; flex-direction: column; gap: 2px; padding: var(--s-3); border: 1px solid var(--rule-strong); border-radius: var(--r-sm); background: var(--sheet); cursor: pointer; transition: border-color var(--fast); }
.type-card:hover { border-color: var(--field-line); }
.type-card input { position: absolute; top: -1px; right: -1px; bottom: -1px; left: -1px; width: auto; height: auto; margin: 0; -webkit-appearance: none; appearance: none; border: 0; border-radius: inherit; background: none; cursor: pointer; }
.type-card b { font: 600 14.5px/1.3 var(--sans); }
.type-card span { font: var(--t-body-sm); font-size: 12.5px; color: var(--muted); }
.type-card input:checked { box-shadow: inset 0 0 0 2px var(--ink); }
.type-card input:focus, .type-card input:focus-visible { box-shadow: none; outline: 0; }
.type-card input:checked:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.type-card input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wide-card .switch.lg { margin: var(--s-2) 0 var(--s-6); }
