/* Rounds product site. Tokens mirror shared/product.ts. */
:root {
  --paper: #F5F2EC;
  --paper-2: #EDE8DF;
  --card: #FBFAF7;
  --ink: #13212E;
  --ink-2: #3D4954;
  --muted: #6B7178;
  --line: #E2DCD1;
  --accent: #D9472B;
  --accent-ink: #B93A21;
  --pine: #1F4D45;
  --pine-2: #173B35;
  --on-pine: #EAF1EE;
  --on-pine-muted: #A9C2BB;
  --radius: 10px;
  --radius-lg: 16px;
  --display: "Zodiak", Georgia, "Times New Roman", serif;
  --body: "Switzer", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1160px;
  --text-sm: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --text-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem);
  --text-xl: clamp(1.625rem, 1.3rem + 1.4vw, 2.5rem);
  --text-2xl: clamp(2.375rem, 1.6rem + 3.4vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: var(--text-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; line-height: 1.05; letter-spacing: -0.015em; text-wrap: balance; }
h1 em, h2 em { font-style: italic; font-weight: 400; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 6px; z-index: 50; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand svg { width: 26px; height: 26px; }
.brand span { font-family: var(--display); font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1; padding-bottom: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: var(--text-sm); }
.nav-links a { text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 820px) { .nav-links { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-size: var(--text-sm); font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #0B151E; }
.btn-small { min-height: 38px; padding: 0 16px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.text-link { font-size: var(--text-sm); font-weight: 600; color: var(--ink-2); text-decoration: none; }
.text-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--pine); }
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: currentColor; }
.hero h1 { font-size: var(--text-2xl); max-width: 14ch; margin-top: 18px; }
.hero-lede { margin-top: 22px; max-width: 46ch; font-size: var(--text-lg); color: var(--ink-2); line-height: 1.5; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; }
.hero-note { margin-top: 14px; font-size: var(--text-sm); color: var(--muted); }
.hero-shot { margin-top: clamp(40px, 6vw, 72px); position: relative; }
.hero-shot::before { content: ""; position: absolute; inset: 14% -6vw 0; background: var(--pine); border-radius: var(--radius-lg) var(--radius-lg) 0 0; z-index: -1; }

/* Product frames */
.frame { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(19,33,46,.06), 0 24px 60px -24px rgba(19,33,46,.35); }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #F1EEE8; }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #D8D2C7; }
.frame-bar b { margin-left: 12px; font-weight: 500; font-size: 0.75rem; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 2px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame img { width: 100%; height: auto; }
.phone { width: 100%; max-width: 300px; border-radius: 34px; border: 8px solid var(--ink); overflow: hidden; background: var(--ink); box-shadow: 0 30px 60px -24px rgba(19,33,46,.5); }
.phone img { width: 100%; height: auto; border-radius: 26px; }

/* Sections */
section { scroll-margin-top: 80px; }
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section-head { max-width: 640px; }
.section-head h2 { font-size: var(--text-xl); margin-top: 14px; }
.section-head p { margin-top: 16px; color: var(--ink-2); font-size: var(--text-lg); line-height: 1.5; }

.who { padding: 28px 0; border-bottom: 1px solid var(--line); background: var(--pine); color: var(--on-pine-muted); }
.who .wrap { display: flex; flex-wrap: wrap; gap: 10px 32px; align-items: center; justify-content: center; font-size: var(--text-sm); }
.who strong { color: var(--on-pine); font-weight: 600; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 56px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.feature { background: var(--paper); padding: 32px 28px 36px; }
.feature svg { width: 28px; height: 28px; color: var(--pine); }
.feature h3 { font-size: 1.375rem; margin-top: 20px; }
.feature p { margin-top: 10px; color: var(--ink-2); font-size: var(--text-sm); line-height: 1.6; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } .feature { padding: 26px 22px 28px; } }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-media { display: flex; justify-content: center; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-2); }
.checks svg { width: 22px; height: 22px; color: var(--pine); margin-top: 2px; }
.checks strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

/* Dark */
.dark { background: var(--pine); color: var(--on-pine); }
.dark .eyebrow { color: var(--on-pine-muted); }
.dark .section-head p { color: var(--on-pine-muted); }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 56px; }
.pillar { border-top: 1px solid rgba(234,241,238,.22); padding-top: 22px; }
.pillar h3 { font-size: 1.25rem; }
.pillar p { margin-top: 10px; font-size: var(--text-sm); color: var(--on-pine-muted); }
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; counter-reset: step; list-style: none; padding: 0; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--display); font-style: italic; font-size: 2rem; color: var(--accent); line-height: 1; }
.steps h3 { font-size: 1.3rem; margin-top: 18px; }
.steps p { margin-top: 8px; color: var(--ink-2); font-size: var(--text-sm); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Forms */
.request { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .request { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 36px); }
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-size: var(--text-sm); font-weight: 600; color: var(--ink); }
.field .hint { font-size: 0.8125rem; color: var(--muted); font-weight: 400; }
.input, select.input, textarea.input { width: 100%; min-height: 46px; padding: 10px 14px; background: #fff; border: 1px solid #D4CDC0; border-radius: var(--radius); font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
textarea.input { min-height: 104px; resize: vertical; }
.input:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px rgba(31,77,69,.15); }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: var(--text-sm); min-height: 1.4em; }
.form-status.error { color: var(--accent-ink); }
.form-status.ok { color: var(--pine); }
.success { text-align: left; }
.success h3 { font-size: 1.75rem; }
.success p { margin-top: 10px; color: var(--ink-2); }
.legal { font-size: 0.8125rem; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: var(--text-sm); color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }

/* Narrow auth pages */
.auth { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; }
.auth main { display: grid; place-items: center; padding: 32px 20px 64px; }
.auth .card { width: min(100%, 440px); }
.auth h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.6rem); }
.auth .sub { margin-top: 10px; color: var(--ink-2); }
.auth .form { margin-top: 26px; }
.code-input { display: flex; align-items: stretch; border: 1px solid #D4CDC0; border-radius: var(--radius); background: #fff; overflow: hidden; }
.code-input:focus-within { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(31,77,69,.15); }
.code-input span { display: flex; align-items: center; padding: 0 2px 0 14px; color: var(--muted); font-size: .95rem; white-space: nowrap; }
.code-input input { border: 0; box-shadow: none; min-width: 0; flex: 1; padding-left: 2px; }
.code-input input:focus { box-shadow: none; }

/* Console */
.console-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; padding: 40px 0 24px; }
.console-head h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); }
.console-head p { color: var(--muted); font-size: var(--text-sm); margin-top: 6px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tab { background: none; border: 0; padding: 12px 14px; font-size: var(--text-sm); font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tab .count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .75rem; line-height: 20px; text-align: center; }
.list { display: grid; gap: 14px; padding-bottom: 64px; }
.item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.item-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: start; }
.item h2 { font-family: var(--body); font-size: 1.125rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.item .meta { color: var(--muted); font-size: var(--text-sm); margin-top: 4px; word-break: break-word; }
.item .msg { margin-top: 12px; color: var(--ink-2); font-size: var(--text-sm); white-space: pre-wrap; word-break: break-word; }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--paper-2); color: var(--ink-2); text-transform: capitalize; }
.pill.pending { background: #FBE6DF; color: var(--accent-ink); }
.pill.approved, .pill.active { background: #DCEAE5; color: var(--pine); }
.pill.suspended, .pill.declined { background: #ECE8E1; color: var(--muted); }
.item-form { display: grid; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.item-form .form-row { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .item-form .form-row { grid-template-columns: 1fr; } }
.item-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.check { display: flex; gap: 10px; align-items: center; font-size: var(--text-sm); color: var(--ink-2); }
.check input { width: 18px; height: 18px; accent-color: var(--pine); }
.company-logo { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff center/contain no-repeat; flex: none; display: grid; place-items: center; font-family: var(--display); font-size: 1.25rem; color: var(--muted); overflow: hidden; }
.company-logo img { width: 100%; height: 100%; object-fit: contain; }
.company-id { display: flex; gap: 14px; align-items: center; min-width: 0; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; border: 1px solid rgba(0,0,0,.1); }
.linkbox { margin-top: 14px; padding: 14px; border-radius: var(--radius); background: #EEF4F1; border: 1px solid #CFE0D9; font-size: var(--text-sm); }
.linkbox code { display: block; margin-top: 6px; word-break: break-all; font-size: .8125rem; color: var(--ink); }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.color-row { display: flex; gap: 8px; align-items: center; }
.color-row input[type="color"] { width: 46px; height: 46px; padding: 4px; border: 1px solid #D4CDC0; border-radius: var(--radius); background: #fff; flex: none; }

.hidden { display: none !important; }
.section-title-lg { font-size: var(--text-xl); margin-top: 14px; }
.item-actions-top { margin-top: 16px; }
.auth-foot { padding: 24px 20px 32px; text-align: center; font-size: var(--text-sm); color: var(--muted); }
.auth-foot a { color: var(--ink-2); }
.auth-notice { max-width: 440px; margin: 0 auto 10px; font-size: var(--text-xs, .75rem); line-height: 1.5; }
.data-notice { margin-top: 40px; padding: 18px 20px; border: 1px solid rgba(234,241,238,.28); border-radius: 10px; font-size: var(--text-sm); color: var(--on-pine-muted); max-width: 820px; }
.data-notice strong { color: inherit; font-weight: 600; }
.footer-notice { margin-top: 18px; font-size: var(--text-xs, .75rem); color: var(--muted); }
.problem p { margin-top: 10px; color: var(--ink-2); }
.problem .btn { margin-top: 22px; }
.split-media .frame { width: 100%; }
html { overflow-x: clip; }
.text-link { white-space: nowrap; }
@media (max-width: 400px) { .nav-actions { gap: 14px; } .brand span { font-size: 1.35rem; } }
