/* Shared base for the 10 homepage prototypes (P84).
   Quiet token system throughout. Per-prototype personality lives in each
   folder's style.css after this base. Copy is verbatim from copy/*.md. */
:root {
  --white: #FFFFFF;
  --surface: #F5F5F4;
  --hairline: #E7E5E4;
  --ink: #111113;
  --body: #45454A;
  --muted: #6E6E73;
  --amber: #EAA221;
  --amber-field: #F5D090;
  --amber-wash: #FBF3E2;
  --amber-dark: #9A6A10;
  --amber-deep: #7F570C;
  --error: #B3261E;
  --radius-panel: 16px;
  --shadow-soft: 0 1px 2px rgb(17 17 19 / .05), 0 16px 40px -16px rgb(17 17 19 / .18);
  --font: "Switzer", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }
.skip-link {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-120%);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
  outline-offset: 3px;
}
.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;
}
input, button { font: inherit; accent-color: var(--ink); caret-color: var(--ink); }
img { display: block; max-width: 100%; }
/* The build wraps every raster img in a picture; the wrapper has no box of
   its own, so the img keeps sizing against its figure. */
picture { display: contents; }
picture[hidden] { display: none; }
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
h1, h2, h3, h4 { color: var(--ink); text-wrap: balance; }

/* Buttons: one label everywhere. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; font-weight: 600; font-size: 15.5px;
  padding: 13px 28px; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; background: none;
}
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #2A2A2E; }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--hairline); }
.btn-light:hover { background: var(--surface); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #d99212; }
.btn-large { padding: 16px 40px; font-size: 17px; }
.btn-wide { width: 100%; }
.trial-line { font-size: 14px; color: var(--muted); }
.text-link {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.text-link:hover { text-decoration-color: currentColor; }

/* Header: settled spec, skinned per quiet. Behavior from _shared/nav.js.
   Panels are taken out of flow (shadcn NavigationMenu: top-full under the
   nav, not in the bar). Stretch the nav to the 64px bar so top: 100% is
   the bottom of the header, not the trigger. */
.site-header {
  position: sticky; top: 0; z-index: 50; height: 64px;
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
  overflow: visible;
}
.h-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px; height: 64px;
  display: flex; align-items: center; gap: 32px;
  overflow: visible;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: var(--ink); font-size: 17px; letter-spacing: -.01em; text-decoration: none; flex-shrink: 0; }
.brand svg { width: 26px; height: 25px; }
.site-nav {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  margin: 0 auto;
}
.site-nav > ul { display: flex; align-items: center; gap: 26px; list-style: none; height: 100%; margin: 0; }
.menu-trigger {
  display: inline-flex; align-items: center; gap: 5px; background: none; border: none;
  font-size: 15px; color: var(--body); cursor: pointer; padding: 6px 0;
}
.menu-trigger svg { width: 13px; height: 13px; fill: none; stroke: var(--muted); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1); }
.menu-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-link { font-size: 15px; color: var(--body); text-decoration: none; }
.nav-link:hover, .menu-trigger:hover { color: var(--ink); }
.h-inner > .btn { flex-shrink: 0; }
.menu-panel,
[data-nav-viewport] {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
}
.menu-panel {
  background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius-panel);
  box-shadow: var(--shadow-soft); padding: 12px; z-index: 1;
}
.menu-panel[hidden] { display: none; }
.menu-panel--why { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 560px; }
.menu-panel--why .menu-item:nth-child(7) {
  grid-column: 1;
  justify-self: stretch;
}
.menu-panel--guides { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; width: 720px; }
.menu-group-label { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 4px; }
.menu-item { display: flex; gap: 12px; padding: 12px; border-radius: 10px; text-decoration: none; }
.menu-item:hover { background: var(--surface); }
.why-more { margin-top: 32px; }
.menu-all.text-link {
  grid-column: 1 / -1;
  display: block;
  margin-top: 4px;
  padding: 8px 12px 4px;
  font-weight: 400;
  text-align: left;
}
.menu-icon {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--hairline); background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center;
}
.menu-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menu-label { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.menu-line { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.hamburger { display: none; background: none; border: 1px solid var(--hairline); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center; }
.hamburger:hover { background: var(--surface); }
.hamburger svg { width: 20px; height: 20px; stroke: var(--ink); stroke-width: 2; fill: none; stroke-linecap: round; }

/* Mobile sheet */
.sheet { position: fixed; inset: 0; z-index: 60; background: rgb(17 17 19 / .3); }
.sheet-body {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: var(--white); overflow-y: auto; padding: 20px 24px 32px;
}
.sheet-close { background: none; border: 1px solid var(--hairline); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; font-size: 18px; color: var(--ink); margin-left: auto; display: flex; align-items: center; justify-content: center; }
.sheet-close:hover { background: var(--surface); }
.sheet details { border-bottom: 1px solid var(--hairline); padding: 6px 0; }
.sheet summary { font-size: 17px; font-weight: 600; color: var(--ink); cursor: pointer; padding: 12px 0; list-style: none; }
.sheet summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.sheet summary::-webkit-details-marker { display: none; }
.sheet .menu-item { padding: 12px 14px; margin: 0 -10px; }
.sheet .menu-all { margin: 2px -10px 0; padding: 10px 14px; }
.sheet .sheet-link { display: block; font-size: 17px; font-weight: 600; color: var(--ink); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.sheet .sheet-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.sheet .btn { margin-top: 24px; }

/* Trial modal */
.trial-modal { border: 1px solid var(--hairline); border-radius: 20px; padding: 36px; max-width: 440px; width: calc(100% - 48px); box-shadow: var(--shadow-soft); }
.trial-modal::backdrop { background: rgb(17 17 19 / .4); }
.trial-modal h2 { font-size: 24px; letter-spacing: -.01em; margin-bottom: 8px; }
.trial-modal p { font-size: 15px; margin-bottom: 20px; }
.field-label { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.field-box { display: flex; align-items: center; border: 1px solid #D8D6D3; border-radius: 999px; background: var(--white); overflow: hidden; margin-bottom: 20px; }
.field-box input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; padding: 12px 4px 12px 20px; font-size: 15.5px; color: var(--ink); }
.field-box input::placeholder { color: #A1A1A6; }
.field-suffix { flex: none; font-size: 14px; color: var(--muted); padding-right: 20px; }
.field-hint { font-size: 13px; color: var(--muted); margin: -12px 0 20px; }
.field-error { font-size: 13px; color: var(--error); margin: -12px 0 20px; }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--muted); }
.modal-close:hover { color: var(--ink); }
/* The reset above zeroes every margin, including the auto margins that centre a
   modal dialog inside its fixed, inset-0 box. Put them back. The fixed box also
   positions .modal-close, so the dialog needs no position of its own. */
.trial-modal { margin: auto; }

/* Platform strip */
.plat-strip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.plat {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--hairline); border-radius: 999px; background: var(--white);
  padding: 8px 18px 8px 10px; font-size: 14.5px; font-weight: 600; color: var(--ink);
}
.plat img { width: 26px; height: 26px; border-radius: 7px; object-fit: contain; background: var(--white); }
.plat-arrow { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); border: 1px solid var(--hairline); align-items: center; justify-content: center; }
.plat-arrow svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.strip-caption { font-size: 14.5px; font-weight: 500; color: var(--ink); }

/* Screenshots: natural size, hairline on the image edge, title in HTML. */
.shot { margin: 0; }
.shot img {
  width: 100%; height: auto; border: 1px solid var(--hairline); border-radius: 10px;
  box-shadow: var(--shadow-soft);
}
.shot figcaption { font-size: 13.5px; font-weight: 600; color: var(--ink); padding: 10px 4px 0; }
.shot-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }

/* Widget scenes: shown whole, steady. */
.scene img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }

/* Quotes: verbatim, never edited. */
.quote { max-width: 680px; }
.quote blockquote { font-size: 22px; line-height: 1.45; letter-spacing: -.01em; color: var(--ink); font-weight: 500; text-wrap: balance; }
.quote figcaption { font-size: 14px; color: var(--muted); margin-top: 14px; }
.stars { display: inline-flex; gap: 3px; margin-bottom: 16px; }
.stars svg { width: 20px; height: 20px; fill: var(--amber); stroke: none; }

/* Sections share rhythm; layouts diverge from here. */
.sec { padding: 96px 0; }
.sec-head { font-size: 34px; line-height: 1.2; letter-spacing: -.02em; font-weight: 600; max-width: 24ch; }
.sec-sub { font-size: 17px; max-width: 62ch; }

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  row-gap: 0;
  max-width: 920px;
}
.plan-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 12;
  align-items: start;
  background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius-panel);
  box-shadow: var(--shadow-soft); padding: 36px;
}
.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-height: 30px;
}
.plan-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: none;
  margin: 0 2px 0 0;
  padding: 2px 6px 2px 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--amber) 26%, var(--white));
  color: var(--amber-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  vertical-align: middle;
  white-space: nowrap;
}
.plan-tag::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  background: #c48412;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M13 2 5 14h7.2l-1.4 8L19 10h-7.2L13 2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M13 2 5 14h7.2l-1.4 8L19 10h-7.2L13 2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plan-tag--lead {
  margin-left: 0;
  margin-right: 0.5rem;
  vertical-align: middle;
}
.page-sec h2 .plan-tag {
  vertical-align: text-top;
}
.auto-grid h2 .plan-tag {
  vertical-align: middle;
}
.darkband .plan-tag {
  background: var(--amber);
  color: var(--ink);
}
.darkband .plan-tag::before {
  background: var(--amber-deep);
}
.plan-badge {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  color: var(--amber-deep);
  background: var(--amber-wash);
  border-radius: 999px;
  padding: 6px 14px;
}
.plan-name { font-size: 20px; font-weight: 600; color: var(--ink); }
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 1px;
  margin: 8px 0 6px;
  color: var(--ink);
}
.plan-amount {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan-period {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}
.plan-sub { font-size: 15px; }
.plan-callout {
  display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink);
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  padding: 12px 0; margin: 20px 0;
}
.plan-callout svg { width: 16px; height: 16px; fill: none; stroke: var(--amber-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.plan-lines {
  list-style: none;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 5;
  align-items: start;
  row-gap: 10px;
  font-size: 14.5px;
  margin: 0 0 24px;
}
.plan-lines li { padding-left: 20px; position: relative; }
.plan-lines li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.billing-toggle { display: inline-flex; background: var(--white); border: 1px solid var(--hairline); border-radius: 999px; padding: 4px; }
.toggle-opt { border: none; background: transparent; border-radius: 999px; padding: 10px 22px; font-size: 14.5px; font-weight: 500; color: var(--body); cursor: pointer; }
.toggle-opt:hover:not(.is-active) { background: var(--surface); color: var(--ink); }
.toggle-opt.is-active { background: var(--ink); color: var(--white); font-weight: 600; }
.toggle-opt.is-active:hover { background: #2A2A2E; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--hairline); border-radius: var(--radius-panel); overflow: hidden; background: var(--white); }
.faq-item:hover { background: color-mix(in srgb, var(--surface) 45%, var(--white)); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: none; padding: 20px 24px; cursor: pointer;
  font-size: 16.5px; font-weight: 600; color: var(--ink); text-align: left;
}
.faq-q svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease-out; }
.faq-item.is-open .faq-q svg { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 24px 22px; font-size: 15.5px; max-width: 70ch; }
.faq-item.is-open .faq-a { display: block; }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); margin-top: 96px; padding: 64px 0 32px; }
body:has(.close) .site-footer { margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand-line { font-size: 15px; font-weight: 600; color: var(--ink); margin: 12px 0 0; }
.foot-col h3 { font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.foot-col h3 a { color: var(--ink); text-decoration: none; }
.foot-col h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-col ul { list-style: none; display: grid; gap: 10px; font-size: 14.5px; }
.foot-col a { color: var(--body); text-decoration: none; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { display: flex; gap: 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hairline); font-size: 13.5px; color: var(--muted); }
.foot-bottom a { text-decoration: none; }
.foot-bottom a:hover { color: var(--ink); }
.foot-bottom span { margin-left: auto; }

/* Dark full-bleed bands: type only, never screenshots. */
.darkband { background: var(--ink); color: #D8D6D3; width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.darkband__inner { max-width: 1200px; margin: 0 auto; padding: 104px 32px; }
.darkband h2, .darkband h3 { color: var(--white); }
.darkband .kick { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); margin-bottom: 20px; }

@media (prefers-reduced-motion: no-preference) {
  .btn,
  .toggle-opt,
  .faq-item,
  .faq-q,
  .nav-link,
  .menu-trigger,
  .menu-item,
  .menu-all,
  .hamburger,
  .sheet-close,
  .modal-close,
  .text-link,
  .foot-col a,
  .foot-bottom a {
    transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, text-decoration-color 140ms ease;
  }
}

@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  .h-inner { padding: 0 20px; gap: 16px; }
  .site-nav, .h-inner > .btn { display: none; }
  .hamburger { display: inline-flex; margin-left: auto; }
  .sec { padding: 64px 0; }
  .sec-head { font-size: 27px; }
  .plans { grid-template-columns: 1fr; }
  .plan-card + .plan-card { margin-top: 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .menu-panel--why, .menu-panel--guides { width: calc(100vw - 40px); grid-template-columns: 1fr; }
  .darkband__inner { padding: 72px 20px; }
}
/* Scroll reveal: fade-in-up as blocks enter the lower viewport.
   html.js-reveal is set after in-view nodes already have .is-in, so the
   first screen never flashes empty. */
html.js-reveal [data-reveal]:not(.is-in) {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
}
html.js-reveal [data-reveal] {
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms);
}
html.js-reveal [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  html.js-reveal [data-reveal]:not(.is-in) {
    opacity: 1;
    transform: none;
  }
}
