/* Protag coming soon site. Tokens match the Protag app (src/lib/theme.ts in accessmaps-consulting):
   paper and ink in light, warm charcoal in dark, vermilion as the one accent. */

:root {
  --paper: #F3F0E8;
  --paper-deep: #ECE6DA;
  --surface: #FFFDF8;
  --ink: #2A2826;
  --ink2: #4A4640;
  --muted: #5F5A52;
  --line: #DFD8CA;
  --control-line: #857E73;
  --invalid: #B3261E;
  --accent: #B5553C;
  --accent-ink: #FFFFFF;
  --accent-tint: #F6E0D6;
  --link: #8C3F2B;
  --deep: #1F1E1C;
  --deep-ink: #ECE7DD;
  --panel: #FBF9F4;
  --art-filter: none;
  --radius: 20px;
  --gutter: 20px;
  --display: 'Shippori Mincho', 'Times New Roman', serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1F1E1C;
    --paper-deep: #262422;
    --surface: #2A2826;
    --ink: #ECE7DD;
    --ink2: #CFC9BE;
    --muted: #A8A297;
    --line: #4A4741;
    --control-line: #857F74;
    --invalid: #F2B8B5;
    --accent: #D47454;
    --accent-ink: #1F1E1C;
    --accent-tint: #4A2A21;
    --link: #E39A84;
    --deep: #161514;
    --deep-ink: #ECE7DD;
    --panel: #262422;
    /* A faint light edge keeps the ink lines of the drawings readable on the dark page. */
    --art-filter: drop-shadow(0 0 1px rgba(236, 231, 221, .55)) drop-shadow(0 0 6px rgba(236, 231, 221, .12));
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:hover { color: var(--ink); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
@media (min-width: 760px) { :root { --gutter: 40px; } }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 44px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.01em; line-height: 1; }
.wordmark em { color: var(--accent); }
nav { margin-left: auto; }
.nav { list-style: none; display: none; gap: 4px; }
.nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink2); text-decoration: none; font-weight: 500; font-size: 15px; border-radius: 10px; }
.nav a:hover { color: var(--ink); background: var(--paper-deep); }
@media (min-width: 900px) { .nav { display: flex; } }
@media (max-width: 899px) { .top .btn-small { margin-left: auto; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { color: var(--accent-ink); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { color: var(--ink); background: var(--paper-deep); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-ink:hover { color: var(--paper); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Type */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--link); margin-bottom: 12px; }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6.4vw, 72px); line-height: 1.04; letter-spacing: -.015em; }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; letter-spacing: -.01em; max-width: 22ch; }
h3 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink2); max-width: 36em; }
.intro { font-size: 18px; color: var(--ink2); max-width: 40em; margin-top: 16px; }
.fine { font-size: 14px; color: var(--muted); }
.opt { font-weight: 400; color: var(--muted); }

/* Hero */
[hidden] { display: none !important; }
.hero { padding: 40px 0 72px; }
.hero-grid { display: grid; gap: 24px; align-items: end; margin-bottom: 40px; }
.hero-title { display: flex; flex-direction: column; gap: 22px; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; }
.hero h1 i, .reg-head h2 i { font-style: italic; color: var(--link); }
.pill { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--accent-tint); color: var(--ink); font-size: 14px; font-weight: 600; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.quick { display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.quick label { font-weight: 600; font-size: 15px; }
.quick-row { display: flex; flex-wrap: wrap; gap: 10px; }
.quick-row input { flex: 1 1 220px; min-width: 0; border-radius: 999px; padding: 0 20px; background: var(--surface); }
.quick-row .btn { flex: 0 0 auto; }
.quick-link { align-self: flex-start; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; color: var(--muted); }
.meta a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 1000px) {
  .hero { padding: 72px 0 104px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; margin-bottom: 56px; }
}

/* Product screenshots in a simple window frame */
.shot { margin: 0; position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.frame { border-radius: 16px; overflow: hidden; background: #FBF9F4; border: 1px solid var(--line); box-shadow: 0 24px 60px -24px rgba(42, 40, 38, .35); }
.frame-bar { display: flex; gap: 6px; padding: 10px 12px; background: #E9E3D7; border-bottom: 1px solid #DAD4C8; }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #C9C1B2; }
.shot figcaption { font-size: 14px; color: var(--muted); max-width: 46em; }
.hero-anchor { position: absolute; z-index: 1; width: 170px; left: -128px; bottom: 90px; filter: var(--art-filter); pointer-events: none; }
@media (max-width: 1399px) { .hero-anchor { display: none; } }

/* Sections */
.section { padding: 72px 0; }
@media (min-width: 960px) { .section { padding: 104px 0; } }
.band { background: var(--panel); border-block: 1px solid var(--line); }
.head { display: flex; flex-direction: column; gap: 0; margin-bottom: 40px; }

/* Why */
.why { padding: 72px 0; }
.why-grid { display: grid; gap: 32px; align-items: center; }
.why-art { border-radius: 24px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; display: flex; justify-content: center; }
.why-art img { width: 70%; max-width: 340px; padding-top: 24px; filter: var(--art-filter); }
.why-copy { display: flex; flex-direction: column; gap: 18px; }
.why-copy .eyebrow { margin-bottom: 0; }
.why-copy p:not(.eyebrow) { font-size: 18px; color: var(--ink2); max-width: 36em; }
@media (min-width: 900px) { .why { padding: 96px 0; } .why-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; } }

/* How it works */
.how { list-style: none; display: grid; gap: 16px; }
.how li { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.how .num { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--link); }
.how h3 { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.2; }
.how p { color: var(--ink2); }
.how .how-dark { background: #2A2826; border-color: #2A2826; color: #F3F0E8; }
.how .how-dark .num { color: #E39A84; }
.how .how-dark p { color: #D6D0C4; }
@media (prefers-color-scheme: dark) { .how .how-dark { background: var(--deep); border-color: var(--line); } }
@media (min-width: 860px) { .how { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* Cast */
.cast { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.cast li { display: flex; gap: 18px; align-items: flex-start; padding: 20px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); }
.cast img { flex: none; width: 96px; height: 120px; object-fit: cover; object-position: top; border-radius: 16px; background: var(--panel); filter: var(--art-filter); }
.cast li > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cast .role { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cast h3 { font-family: var(--display); font-weight: 800; font-size: 22px; }
.cast p:not(.role) { font-size: 15px; line-height: 1.55; color: var(--ink2); }
@media (min-width: 1100px) {
  .cast { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cast li { flex-direction: column; gap: 14px; }
}

/* Tray */
.tray-grid { display: grid; gap: 48px; align-items: center; }
.tray-copy { display: flex; flex-direction: column; gap: 20px; }
.tray-copy .eyebrow, .tray-copy .intro { margin: 0; }
.tray-copy .ticks li { color: var(--ink2); }
.tray-copy .ticks li::before { border-color: var(--accent); }
.shot-tray { padding-right: 18%; }
.shot-tray .phone { position: absolute; right: 0; bottom: 40px; width: 30%; border-radius: 22px; border: 6px solid #2A2826; background: #2A2826; box-shadow: 0 24px 50px -20px rgba(42, 40, 38, .5); }
@media (min-width: 1000px) { .tray-grid { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 56px; } }

/* One place (dark) */
.dark { background: var(--deep); color: var(--deep-ink); }
.dark .eyebrow { color: #E39A84; }
.dark h2 { color: var(--deep-ink); }
.dark .intro { color: #D6D0C4; }
.dark .shot figcaption { color: #BDB6AA; }
.dark .frame { border-color: #3A3733; box-shadow: none; }
.duo { display: grid; gap: 32px; margin-bottom: 48px; }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.places { list-style: none; display: grid; gap: 16px; }
.places li { padding: 24px; border-radius: 20px; background: #2A2826; border: 1px solid #3A3733; display: flex; flex-direction: column; gap: 8px; }
.places h3 { font-family: var(--display); font-weight: 800; font-size: 20px; color: #F3F0E8; }
.places p { color: #D6D0C4; font-size: 15px; }
@media (min-width: 700px) { .places { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .places { grid-template-columns: repeat(4, 1fr); } }

/* Levels */
.levels-grid { display: grid; gap: 40px; align-items: center; }
.levels-copy { display: flex; flex-direction: column; gap: 18px; }
.levels-copy .eyebrow, .levels-copy .intro { margin: 0; }
.levels { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.levels li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; font-size: 13px; color: var(--ink2); line-height: 1.35; }
.levels img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 6px; filter: var(--art-filter); }
.levels .lv { font-weight: 700; color: var(--ink); }
@media (min-width: 1000px) { .levels-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; } }

/* Promises */
.promises { list-style: none; display: grid; gap: 24px; }
.promises li { border-top: 2px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.promises h3 { font-family: var(--display); font-weight: 800; font-size: 22px; }
.promises p { color: var(--ink2); }
@media (min-width: 860px) { .promises { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* Ticks */
.ticks { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 14px; height: 8px; border-left: 2.5px solid #E39A84; border-bottom: 2.5px solid #E39A84; transform: rotate(-45deg); }

/* Register */
.register { background: var(--paper); }
.reg-wrap { max-width: 820px; display: flex; flex-direction: column; gap: 40px; }
.reg-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.reg-head img { width: 120px; height: auto; }
.reg-head h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.06; max-width: none; }
.reg-head .intro { margin: 0; }
.register .card { box-shadow: 0 24px 60px -32px rgba(42, 40, 38, .35); }
.card { background: var(--surface); color: var(--ink); border-radius: 24px; padding: 24px; border: 1px solid var(--line); }
@media (min-width: 600px) { .card { padding: 32px; } }
.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 15px; padding: 0; }
.field legend { margin-bottom: 8px; }
input[type="text"], input[type="email"], input:not([type]) {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--control-line);
  background: var(--paper); color: var(--ink); font: 16px var(--body);
}
input:focus-visible { border-color: var(--accent); outline-offset: 1px; }
input[aria-invalid="true"] { border-color: var(--invalid); border-width: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--control-line); background: var(--paper); font-size: 15px; font-weight: 500; }
.chip:hover span { border-color: var(--ink2); }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:checked + span::before { content: ''; width: 10px; height: 5px; margin-right: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-2px); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.more { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 0; }
.more summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font-weight: 600; gap: 6px; flex-wrap: wrap; }
.more[open] { padding-bottom: 20px; }
.more .field { margin-top: 20px; }
.more summary + .field { margin-top: 8px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-size: 15px; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.msg:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.msg { padding: 12px 16px; border-radius: 12px; font-size: 15px; }
.msg-error { background: #F9DEDC; color: #8C1D18; }
.done { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.done[hidden] { display: none; }
.done h3 { font-family: var(--display); font-size: 32px; font-weight: 800; line-height: 1.15; }
.done p { color: var(--ink2); }

/* FAQ */
.faq h2 { margin-bottom: 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; min-height: 56px; display: flex; align-items: center; font-weight: 600; font-size: 17px; padding: 8px 0; }
.faq details p { padding: 0 0 20px; color: var(--ink2); max-width: 40em; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.foot p { font-size: 14px; color: var(--muted); }
.foot a { display: inline-block; padding-block: 12px; }
.foot .wordmark { font-size: 22px; }
.foot .brand { display: flex; padding-block: 0; }

/* Simple pages (thanks, privacy, 404) */
.page { padding: 64px 0 96px; }
.page h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 20px; }
.page h2 { font-size: 24px; margin: 32px 0 8px; }
.page p, .page li { color: var(--ink2); max-width: 40em; margin-bottom: 12px; }
.page ul { padding-left: 20px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Phones: show the tray on the phone screenshot alone, and drop the dots between the hero notes. */
@media (max-width: 699px) {
  .shot-tray { padding-right: 0; }
  .shot-tray .frame { display: none; }
  .shot-tray .phone { position: static; width: 72%; margin: 0 auto; }
  .meta span[aria-hidden] { display: none; }
  .meta { gap: 4px 16px; }
}
