/* Brightpage: one stylesheet for the front door. Tokens first; dark mode follows the system. */
:root {
  --ground: #FFFCF5;
  --raised: #FFFFFF;
  --sunk: #F4EFE3;
  --ink: #17181C;
  --ink-2: #45464D;
  --muted: #55565C;
  --line: #E8E3D6;
  --sun: #FFC83D;
  --sun-ink: #17181C;
  --sun-soft: #FFF3CF;
  --sun-soft-ink: #5C4400;
  --blue: #2450D8;
  --blue-soft: #EAF0FF;
  --good: #1C6B3A;
  --bad: #A3360A;
  --dark: #17181C;
  --dark-ink: #FFFFFF;
  --shadow: 0 20px 50px rgba(23, 24, 28, 0.10);
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #121316;
    --raised: #1B1C21;
    --sunk: #23242A;
    --ink: #F3F2EE;
    --ink-2: #CFCFD4;
    --muted: #A9AAB1;
    --line: #2F3037;
    --sun-soft: #3A2F0E;
    --sun-soft-ink: #FFE29A;
    --blue: #8FA9FF;
    --blue-soft: #1E2745;
    --good: #6FD39A;
    --bad: #FF9B70;
    --dark: #F3F2EE;
    --dark-ink: #17181C;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 17px/1.55 var(--body); }
a { color: var(--blue); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.015em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header and footer */
.top { display: flex; align-items: center; gap: 20px; padding: 18px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 22px; }
.top nav { display: flex; gap: 20px; flex: 1 1 auto; flex-wrap: wrap; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.top nav a:hover { text-decoration: underline; }
.foot { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; padding: 36px 0 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 24px; }
.foot a { color: var(--muted); }
.foot .grow { flex: 1; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 18px; border-radius: 11px; font: inherit; font-weight: 650; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn-dark { background: var(--dark); color: var(--dark-ink); }
.btn-sun { background: var(--sun); color: var(--sun-ink); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn:disabled { opacity: 0.6; cursor: progress; }

/* Home: hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px; align-items: center; padding: 48px 0 40px; }
.pill { display: inline-flex; align-self: flex-start; background: var(--sun-soft); color: var(--sun-soft-ink); font-weight: 650; font-size: 14px; padding: 6px 12px; border-radius: 999px; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); }
.lead { font-size: 19px; color: var(--ink-2); max-width: 540px; }
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.door { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); background: var(--raised); border: 1.5px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.door b { font-size: 18px; }
.door span { color: var(--muted); font-size: 15px; line-height: 1.45; }
.door.sun { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); }
.door.sun span { color: #3D2E00; }
.door:hover { transform: translateY(-1px); }

.stage { position: relative; min-height: 430px; }
.browser { position: absolute; inset: 0 56px 40px 0; background: var(--raised); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.chrome { display: flex; gap: 6px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--sunk); }
.chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.chrome span { margin-left: 10px; font-size: 13px; color: var(--muted); background: var(--raised); border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; }
.demo-hero { background: #23352B; color: #FFFFFF; padding: 32px 26px; display: flex; flex-direction: column; gap: 10px; }
.demo-hero small { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #CFE3D5; }
.demo-hero strong { font-family: var(--display); font-size: 28px; line-height: 1.1; }
.demo-hero em { font-style: normal; align-self: flex-start; background: #F2C14E; color: #23352B; font-weight: 650; font-size: 13px; padding: 9px 14px; border-radius: 8px; margin-top: 4px; }
.demo-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 16px; }
.demo-tiles i { height: 84px; border-radius: 8px; background: #C9B79C; }
.demo-tiles i:nth-child(2) { background: #8FA394; }
.demo-tiles i:nth-child(3) { background: #D9CDB8; }
.phone { position: absolute; right: 0; bottom: 0; width: 210px; height: 330px; background: var(--raised); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; }
.phone .cover { width: 100%; height: 66px; border-radius: 14px; background: var(--blue-soft); }
.phone .face { width: 62px; height: 62px; border-radius: 50%; background: var(--sun); margin-top: -40px; border: 4px solid var(--raised); }
.phone b { font-size: 15px; }
.phone small { font-size: 12px; color: var(--muted); }
.phone .link { width: 100%; padding: 8px 0; border-radius: 10px; border: 1px solid var(--line); font-size: 12px; font-weight: 650; }
.phone .link.dark { background: var(--dark); color: var(--dark-ink); border-color: var(--dark); }
.phone .addr { margin-top: auto; font-size: 11px; color: var(--muted); }
@media (max-width: 560px) { .stage { min-height: 380px; } .browser { inset: 0 0 90px 0; } .phone { width: 170px; height: 270px; } }

/* Home: claim box */
.claim { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: var(--dark); color: var(--dark-ink); border-radius: 18px; padding: 20px 22px; }
.claim label { font-weight: 650; font-size: 17px; flex: 1 1 200px; }
.claim .field { display: flex; align-items: center; background: #FFFFFF; border-radius: 10px; padding-left: 14px; flex: 3 1 320px; min-width: 0; }
.claim .field span { color: #55565C; white-space: nowrap; }
.claim input { border: 0; outline: none; font: inherit; padding: 13px 8px; flex: 1; min-width: 60px; color: #17181C; background: transparent; }
.claim output { font-weight: 650; font-size: 14px; padding-right: 14px; white-space: nowrap; color: #1C6B3A; }
.claim output.no { color: #A3360A; }

/* Sections */
.section { padding: 64px 0; display: flex; flex-direction: column; gap: 26px; }
.section h2 { font-size: clamp(30px, 4vw, 42px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.section-head p { color: var(--ink-2); margin-top: 8px; }
.band { background: var(--raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-sun { background: var(--sun-soft); }

.tabs { display: flex; background: var(--sunk); border-radius: 12px; padding: 4px; gap: 4px; }
.tabs button { border: 0; font: inherit; font-weight: 650; font-size: 15px; padding: 10px 16px; border-radius: 9px; cursor: pointer; background: transparent; color: var(--ink-2); min-height: 44px; }
.tabs button[aria-pressed='true'] { background: var(--raised); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.tabs button:focus-visible { outline-offset: -3px; border-radius: 9px; }
/* At most three across, so cards keep one size whichever tab is showing. */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(min(100%, 260px), calc((100% - 40px) / 3)), 1fr)); gap: 20px; }
.card { position: relative; background: var(--raised); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.15s, transform 0.15s; }
.card:hover { border-color: var(--ink-2); transform: translateY(-2px); }
/* The whole card asks to join with this template; "See it" sits above that and opens the sample site. */
.card-use { color: var(--ink); text-decoration: none; }
.card-use::after { content: ''; position: absolute; inset: 0; border-radius: 16px; }
.card-use:focus-visible { outline: none; }
.card-use:focus-visible::after { outline: 3px solid var(--blue); outline-offset: -3px; }
.card-see { position: relative; z-index: 1; align-self: flex-start; margin-top: 6px; font-weight: 650; font-size: 15px; text-decoration: none; }
.card-see:hover { text-decoration: underline; }
/* The template's real home page, drawn three times the card’s size and shrunk to fit. */
.card .thumb { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); }
.card .thumb iframe { display: block; width: 300%; height: 300%; border: 0; transform: scale(calc(1 / 3)); transform-origin: 0 0; pointer-events: none; }
.card div:last-child { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.card b { font-size: 17px; }
.card span { color: var(--muted); font-size: 15px; }
[hidden] { display: none !important; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 30px 32px; }
.feature { display: flex; flex-direction: column; gap: 8px; }
.feature svg { color: var(--blue); }
.feature h3 { font-family: var(--body); font-size: 18px; letter-spacing: 0; }
.feature p { color: var(--ink-2); }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 44px; align-items: center; }
.split > div:first-child { display: flex; flex-direction: column; gap: 16px; }
.split p { color: var(--ink-2); font-size: 18px; }
.chat { background: var(--raised); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.chat .me { align-self: flex-end; max-width: 82%; background: var(--blue-soft); padding: 12px 16px; border-radius: 14px 14px 4px 14px; }
.chat .ai { align-self: flex-start; max-width: 88%; background: var(--sunk); padding: 12px 16px; border-radius: 14px 14px 14px 4px; display: flex; flex-direction: column; gap: 10px; }
.chat .ai span { display: flex; gap: 8px; flex-wrap: wrap; }
.chat .ai em { font-style: normal; font-weight: 650; font-size: 14px; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); }
.chat .ai em:first-child { background: var(--dark); color: var(--dark-ink); border-color: var(--dark); }
.chat small { color: var(--muted); }

.seo { background: var(--raised); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.seo .g { display: flex; flex-direction: column; gap: 2px; }
.seo .g small { color: var(--good); font-size: 13px; }
.seo .g b { color: #1A0DAB; font-weight: 500; font-size: 19px; }
@media (prefers-color-scheme: dark) { .seo .g b { color: #A8C7FA; } }
.seo .g span { color: var(--ink-2); font-size: 14px; }
.seo .share { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.seo .share i { display: block; height: 120px; background: #23352B; }
.seo .share div { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.seo .share small { color: var(--muted); text-transform: uppercase; font-size: 11px; letter-spacing: 0.06em; }

.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.price { background: var(--raised); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.price.dark { background: var(--dark); color: var(--dark-ink); }
.price .amount { font-family: var(--display); font-size: 48px; font-weight: 700; }
.price ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.price .row { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.price .row b { white-space: nowrap; }

/* Forms */
.form-page { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding: 24px 0 56px; }
.form-page form { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.form-page aside { flex: 1 1 380px; min-width: 0; position: sticky; top: 20px; display: flex; flex-direction: column; gap: 12px; }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
legend, .label { font-weight: 700; font-size: 17px; margin-bottom: 4px; padding: 0; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.choice { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 14px; background: var(--raised); border: 2px solid var(--line); cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice:has(input:checked) { background: var(--sun-soft); border-color: var(--ink); }
.choice:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.choice b { font-size: 17px; }
.choice span { color: var(--muted); font-size: 14px; }
.input { font: inherit; font-size: 17px; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--raised); color: var(--ink); width: 100%; }
.input:focus { border-color: var(--blue); outline: none; }
textarea.input { min-height: 96px; resize: vertical; }
.hint { color: var(--muted); font-size: 14px; }
.addr { display: flex; align-items: center; background: var(--raised); border: 1.5px solid var(--line); border-radius: 12px; padding-left: 15px; }
.addr span { color: var(--muted); white-space: nowrap; }
.addr input { border: 0; padding-left: 4px; background: transparent; }
.addr:focus-within { border-color: var(--blue); }
.status { font-size: 14px; font-weight: 650; min-height: 20px; }
.status.ok { color: var(--good); }
.status.no { color: var(--bad); }
.error { background: #FDE4D6; color: #7A2606; border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.done { background: var(--raised); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.preview { background: var(--raised); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.preview .p-hero { display: flex; flex-direction: column; gap: 10px; padding: 32px 24px; }
.preview .p-hero small { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
.preview .p-hero strong { font-family: var(--display); font-size: 30px; line-height: 1.1; overflow-wrap: anywhere; }
.preview .p-hero em { font-style: normal; align-self: flex-start; font-weight: 650; font-size: 14px; padding: 10px 14px; border-radius: 8px; margin-top: 6px; }
.preview .p-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 16px; }
.preview .p-tiles i { height: 66px; border-radius: 8px; background: var(--sunk); }

/* Legal pages */
.legal { max-width: 760px; padding: 32px 0 56px; display: flex; flex-direction: column; gap: 16px; }
.legal h1 { font-size: 40px; }
.legal h2 { font-size: 22px; margin-top: 18px; font-family: var(--body); letter-spacing: 0; }
.legal p, .legal li { color: var(--ink-2); }
.legal .caps { text-transform: uppercase; font-size: 15px; }

/* Admin */
.admin { padding: 24px 0 56px; display: flex; flex-direction: column; gap: 16px; }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--dark); color: var(--dark-ink); border-radius: 12px; padding: 10px 14px; }
.bar b { flex: 1 1 auto; }
.bar .btn { min-height: 38px; padding: 7px 14px; }
.bar .btn-line { color: var(--dark-ink); border-color: #4A4B52; }
.toast { display: flex; align-items: center; gap: 12px; background: #E3F3E8; color: #134D29; border-radius: 12px; padding: 10px 14px; font-weight: 600; }
.toast span { flex: 1; }
.toast button { font: inherit; font-weight: 700; border: 0; background: transparent; color: inherit; text-decoration: underline; cursor: pointer; min-height: 32px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters .input { flex: 1 1 280px; width: auto; font-size: 15px; padding: 10px 12px; }
.filters button { font: inherit; font-size: 14px; font-weight: 650; padding: 9px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); cursor: pointer; min-height: 40px; }
.filters button[aria-pressed='true'] { background: var(--dark); color: var(--dark-ink); border-color: var(--dark); }
.table-box { background: var(--raised); border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 820px; }
th { text-align: left; color: var(--muted); font-weight: 600; background: var(--sunk); padding: 11px 10px; }
td { padding: 11px 10px; border-top: 1px solid var(--line); vertical-align: top; }
tr.on td { background: var(--sun-soft); }
td small { display: block; color: var(--muted); font-size: 13px; }
input[type='checkbox'] { width: 18px; height: 18px; accent-color: var(--ink); }
.tag { font-size: 12px; font-weight: 650; padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.tag.waiting { background: var(--sun-soft); color: var(--sun-soft-ink); }
.tag.approved { background: #E3F3E8; color: #1C6B3A; }
.tag.declined { background: var(--sunk); color: var(--muted); }
.note { white-space: pre-wrap; color: var(--ink-2); font-size: 14px; max-width: 280px; }
.empty { padding: 28px; color: var(--muted); text-align: center; }
