/* Chalk Tower — site styles. Colors come from the logo: navy, chalk cream, blue. */
:root {
  --navy: #1e2830;
  --navy-2: #27333d;
  --navy-3: #313e49;
  --chalk: #f4f1ea;
  --blue: #6fb3d9;
  --blue-ink: #2f7daa;

  --ink: #1f2932;
  --ink-2: #46525d;
  --muted: #6b7680;
  --paper: #f7f5f0;
  --card: #ffffff;
  --line: #e4dfd4;
  --accent: var(--blue-ink);
  --accent-ink: #ffffff;
  --ok: #2f7d6b;
  --warn: #9a5b12;
  --danger: #a33a32;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(31, 41, 50, .06), 0 8px 28px rgba(31, 41, 50, .07);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eeebe4; --ink-2: #c4c9ce; --muted: #9aa4ad; --paper: #161d23; --card: #1f2932;
    --line: #313e49; --accent: var(--blue); --accent-ink: #12202b;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.25);
  }
}
:root[data-theme="dark"] {
  --ink: #eeebe4; --ink-2: #c4c9ce; --muted: #9aa4ad; --paper: #161d23; --card: #1f2932;
  --line: #313e49; --accent: var(--blue); --accent-ink: #12202b;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.6; font-size: 16px; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.01em; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--navy) 94%, transparent); backdrop-filter: blur(10px); color: var(--chalk); border-bottom: 1px solid rgba(243,240,233,.08); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; color: inherit; text-decoration: none; }
.brand img { height: 46px; width: auto; margin-left: -14px; }
.nav { margin-left: auto; display: flex; gap: 2px; align-items: center; }
.nav a { color: #c9cfd4; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--chalk); background: rgba(243,240,233,.08); }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(243,240,233,.25); color: var(--chalk); border-radius: 8px; padding: 6px 10px; font: inherit; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--navy); padding: 8px 16px 16px; border-bottom: 1px solid rgba(243,240,233,.1); }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 11px 20px; border-radius: 10px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; transition: transform .08s ease, opacity .15s; }
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: var(--chalk); border-color: var(--navy); }
.btn-primary:hover { opacity: .92; border-color: var(--navy); }
.btn-accent { background: var(--blue-ink); color: #fff; border-color: var(--blue-ink); }
.btn-chalk { background: var(--chalk); color: var(--navy); border-color: var(--chalk); }
.btn-ghost { background: transparent; color: var(--chalk); border-color: rgba(243,240,233,.3); }
.btn-ghost:hover { border-color: var(--chalk); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { background: var(--chalk); color: var(--navy); border-color: var(--chalk); } }

/* ---------- dark "chalkboard" bands ---------- */
.board { background-color: var(--navy); color: var(--chalk);
  background-image: linear-gradient(rgba(243,240,233,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(243,240,233,.045) 1px, transparent 1px);
  background-size: 48px 48px; }
.board .eyebrow { color: var(--blue); }
.board .lead, .board p { color: #c3cad0; }
.board a:not(.btn) { color: var(--blue); }

.hero { padding: 80px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } .hero { padding: 56px 0; } }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.06; margin: 0 0 18px; color: var(--chalk); }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead { font-size: 19px; max-width: 580px; margin: 0 0 28px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .fine { color: #9aa6b0; margin-top: 14px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 700; color: var(--accent); margin: 0 0 10px; }

.shot { border-radius: 12px; overflow: hidden; border: 1px solid rgba(243,240,233,.14); box-shadow: 0 20px 60px rgba(0,0,0,.35); background: #11181e; }
.shot img { width: 100%; }
.shot-light { border-color: var(--line); box-shadow: var(--shadow); }
figure { margin: 0; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; margin: 0 0 12px; }
h3 { font-size: 20px; margin: 0 0 8px; line-height: 1.3; }
.sub { color: var(--ink-2); max-width: 700px; margin: 0 0 36px; font-size: 17px; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card .tag, .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.card p { color: var(--ink-2); }
.product-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.product-card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.product-card .body .btn { margin-top: auto; align-self: flex-start; }
.product-card img { border-bottom: 1px solid var(--line); aspect-ratio: 16 / 9; object-fit: cover; }

ul.checks { list-style: none; padding: 0; margin: 16px 0 0; }
ul.checks li { padding-left: 26px; position: relative; margin: 8px 0; color: var(--ink-2); }
ul.checks li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.board ul.checks li { color: #c3cad0; }
.board ul.checks li::before { border-color: var(--blue); }

/* numbered steps */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; padding: 24px 24px 24px 24px; border-left: 3px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .1em; color: var(--accent); display: block; margin-bottom: 8px; }
.step p { color: var(--ink-2); margin: 0; }
.board .step { border-left-color: rgba(243,240,233,.18); }

/* feature row with image */
.feature { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; padding: 28px 0; }
.feature.reverse { grid-template-columns: 1.2fr 1fr; }
.feature.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .feature, .feature.reverse { grid-template-columns: 1fr; gap: 20px; } .feature.reverse > :first-child { order: 0; } }

/* exports chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.chips li { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); }
.board .chips li { background: rgba(243,240,233,.06); border-color: rgba(243,240,233,.16); color: var(--chalk); }

/* video */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video button.play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: #000 center / cover no-repeat; }
.video button.play::after { content: ""; position: absolute; left: 50%; top: 50%; width: 72px; height: 50px; margin: -25px 0 0 -36px; border-radius: 12px; background: rgba(31,41,50,.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f3f0e9' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 28px no-repeat; }
.video button.play:hover::after { background-color: var(--blue-ink); }
.lang { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--line); color: var(--ink-2); margin-left: 6px; vertical-align: middle; }

/* pricing */
.billing-toggle { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 28px; }
.billing-toggle button { border: 0; background: transparent; padding: 8px 18px; border-radius: 999px; font: inherit; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.billing-toggle button[aria-pressed="true"] { background: var(--navy); color: var(--chalk); }
.save { font-size: 12px; color: var(--blue); font-weight: 700; margin-left: 4px; }
.billing-toggle button[aria-pressed="false"] .save { color: var(--accent); }
.plan { display: flex; flex-direction: column; }
.plan .price { font-family: var(--display); font-size: 44px; font-weight: 800; letter-spacing: -1px; margin: 12px 0 0; }
.plan .price small { font-family: var(--font); font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .per { color: var(--muted); font-size: 14px; min-height: 22px; margin: 0; }
.plan .btn { margin-top: auto; }
.plan ul.checks { margin-bottom: 24px; }
.plan.featured { border: 2px solid var(--blue-ink); }
.badge { align-self: flex-start; display: inline-block; background: var(--blue-ink); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.fine { color: var(--muted); font-size: 14px; }

/* FAQ */
details.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
details.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--ink-2); margin: 10px 0 0; }

/* custom-work band */
.custom-band { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.custom-band > div { flex: 1 1 360px; }

/* notices */
.notice { border-radius: 10px; padding: 14px 16px; margin: 0 0 20px; border: 1px solid var(--line); background: var(--card); }
.notice.ok { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); }
.notice.warn { border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); }
.notice.err { border-color: color-mix(in srgb, var(--danger) 55%, var(--line)); color: var(--danger); }
[hidden] { display: none !important; }

/* forms */
label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; }
input[type=email], input[type=text], input[type=number], select, textarea { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
input:focus, select:focus, .btn:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.field { margin-bottom: 16px; }

/* auth pages */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-page.board { color: var(--ink); }
.auth-card { width: 100%; max-width: 420px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.auth-card .brand { margin-bottom: 22px; }
.auth-card .brand img { height: 30px; }
.auth-card h1 { font-size: 26px; margin: 0 0 8px; }
.auth-card p { color: var(--ink-2); margin: 0 0 20px; }
.auth-card .fine { color: var(--muted); }
.board .auth-card p { color: var(--ink-2); }
.board .auth-card a:not(.btn) { color: var(--accent); }

/* account */
.app-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.app-row .meta { flex: 1 1 220px; }
.status { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--line); color: var(--ink-2); }
.status.on { background: color-mix(in srgb, var(--blue-ink) 16%, transparent); color: var(--accent); }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th, table.list td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-scroll { overflow-x: auto; }
.page-head { padding: 48px 0 8px; }

/* footer */
.site-footer { background: var(--navy); color: #9aa6b0; padding: 48px 0 40px; font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: var(--chalk); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; }
.site-footer a { color: #c3cad0; text-decoration: none; display: block; margin: 6px 0; }
.site-footer a:hover { color: var(--chalk); }
.site-footer .brand img { height: 46px; margin: 0 0 8px -14px; }
.site-footer .bottom { border-top: 1px solid rgba(243,240,233,.1); margin-top: 32px; padding-top: 20px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }

/* legal */
.legal { max-width: 780px; }
.legal h1 { font-size: 36px; margin: 0 0 6px; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }

/* fixes */
.nav a.btn-chalk, .nav a.btn-chalk:hover { color: var(--navy); background: var(--chalk); }
.board .step p, .board .sub { color: #c3cad0; }

/* animated logo spots */
.auth-logo { display: block; width: 210px; margin: 0 auto 18px; }
.auth-page.board { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.waiting { display: flex; align-items: center; gap: 14px; }
.waiting img { width: 54px; height: auto; flex: none; }
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.notfound img { width: 220px; margin: 0 auto 20px; }

/* text-style button, e.g. "Cancel subscription" on the account page */
.linkish { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--muted, #5b6670); text-decoration: underline; cursor: pointer; }
.linkish:hover { color: inherit; }
.linkish:disabled { opacity: .5; cursor: wait; }
