/* ---------------------------------------------------------------------------
   Swayro — marketing site.

   The palette and the type come from the app (src/App.jsx, token block `T`).
   The house rule here, as there: a hairline does the work a box would do.
   Corners are nearly square, there is one accent colour and no second one, and
   nothing has a shadow unless it is genuinely sitting on top of something.
   --------------------------------------------------------------------------- */

:root {
  --ink: #1E1B18;
  --paper: #F5F2EB;
  --surface: #FBF9F4;
  --line: #D9D3C7;
  --line-soft: #E6E1D6;
  --text: #1E1B18;
  --text-muted: #6A645B;
  --text-faint: #B5AEA1;      /* also the "unlit" colour of scroll-revealed text */
  --accent: #1E1B18;          /* Swayro ink: the accent is the ink, since 29 Sept 2026 */
  --accent-soft: #E9E4DA;
  --accent-deep: #1E1B18;
  --band: #EDE8DD;

  --gold: #A9803A;            /* used for unfilled placeholders only */
  --gold-soft: #F5EDDA;

  --r: 2px;
  --maxw: 1180px;

  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --ink: #F1ECE1;
  --paper: #15120E;
  --surface: #1C1914;
  --line: #342E25;
  --line-soft: #272219;
  --text: #F1ECE1;
  --text-muted: #A79F92;
  --text-faint: #4E483E;
  --accent: #F1ECE1;
  --accent-soft: #2A251E;
  --accent-deep: #F1ECE1;
  --band: #1A1712;

  --gold: #C79A4E;
  --gold-soft: #2A2214;
  color-scheme: dark;
}

* { box-sizing: border-box; }

/* `hidden` has to win: the demo's assistant panel carries display:flex, and any
   display rule beats the user-agent's [hidden] { display: none }. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ink); color: var(--paper); }

/* height:auto is not optional: the screenshots carry width/height attributes,
   and width:100% without it renders them at the attribute height — which is
   what squeezed every screenshot on the first pass. */
img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -.012em; margin: 0; line-height: 1.08; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

section { padding: 104px 0; border-top: 1px solid var(--line-soft); }
section:first-of-type { border-top: none; }

.eyebrow {
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 600; margin: 0 0 18px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
  display: inline-block;
}

.section-title { font-size: clamp(31px, 4.1vw, 46px); margin-bottom: 16px; max-width: 20ch; }
.section-lead { color: var(--text-muted); max-width: 60ch; margin: 0 0 48px; font-size: 17px; }

/* --------------------------------------------------------- scroll reveal */

/* Words start at --text-faint and take their real colour as the section
   scrolls through. `inherit` resolves to the parent's colour, so one rule
   covers a dark heading and a muted paragraph alike. */
.rv span.w { color: var(--text-faint); transition: color .32s ease; }
.rv span.w.on { color: inherit; }
@media (prefers-reduced-motion: reduce) {
  .rv span.w { color: inherit; transition: none; }
}

/* Used on the screenshot frames: a quiet rise, once. */
.up { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.up.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .up { opacity: 1; transform: none; transition: none; } }

/* ----------------------------------------------------------------- header */

header.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar .wrap { display: flex; align-items: center; gap: 20px; height: 70px; }

.brand {
  display: flex; align-items: baseline; gap: 9px; text-decoration: none; margin-right: auto;
  font-family: var(--serif); font-size: 27px; line-height: 1; letter-spacing: -.01em;
}
.brand small {
  font-family: var(--font); font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 600;
}

nav.main { display: flex; gap: 24px; }
nav.main a {
  text-decoration: none; color: var(--text-muted); font-size: 14px; font-weight: 500;
  padding: 24px 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .2s ease, border-color .2s ease;
}
nav.main a:hover, nav.main a[data-active="true"] { color: var(--text); border-bottom-color: var(--accent); }

.tools { display: flex; align-items: center; gap: 4px; }

/* Four controls, one height, one baseline. They were 34px and ~40px before,
   which is why the row never sat straight. */
.tools .icon-btn,
.tools .btn,
.tools .signin { height: 38px; }

/* Language and theme are utilities, not actions: no boxes, so the eye goes to
   the two things that actually do something. */
.tools .icon-btn { border-color: transparent; padding: 0 10px; }
.tools .icon-btn:hover { border-color: transparent; color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }

.tools .rule { width: 1px; height: 18px; background: var(--line); margin: 0 8px; flex: none; }

/* Sign in is a way back in, not a pitch. A quiet link beside one solid button
   reads better than two boxes arguing — and it stops the header looking like a
   toolbar. */
.tools .signin {
  display: inline-flex; align-items: center; gap: 6px; padding: 0 12px;
  font-family: var(--font); font-size: 13.5px; font-weight: 600; letter-spacing: .01em;
  color: var(--text); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--r);
  transition: color .2s ease, background-color .2s ease;
}
.tools .signin:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.tools .signin svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; opacity: .55; }
.tools .signin:hover svg { opacity: 1; }

/* The one button. Slightly tighter than the page's buttons so it belongs to
   the header rather than floating in it. */
.tools .btn-sm { padding: 0 17px; font-size: 13.5px; }

.icon-btn {
  height: 34px; min-width: 34px; padding: 0 9px; border-radius: var(--r);
  border: 1px solid var(--line); background: transparent; color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; font-family: var(--font); font-size: 12.5px; font-weight: 600;
  letter-spacing: .04em;
  transition: border-color .2s ease, color .2s ease;
}
.icon-btn:hover { border-color: var(--text); color: var(--text); }
.icon-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7; }

.lang { position: relative; }
.lang-menu {
  position: absolute; right: 0; top: 40px; min-width: 150px; padding: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  display: none;
}
.lang-menu[data-open="true"] { display: block; }
.lang-menu button {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 10px; border: none; background: none;
  font: inherit; font-size: 14px; color: var(--text); cursor: pointer; text-align: left;
}
.lang-menu button:hover { background: var(--accent-soft); }
.lang-menu button[aria-current="true"] { font-weight: 700; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--r); border: 1px solid transparent;
  font-family: var(--font); font-size: 14px; font-weight: 600; cursor: pointer;
  text-decoration: none; white-space: nowrap; letter-spacing: .01em;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); color: #fff; }
:root[data-theme="dark"] .btn-primary:hover { color: #15120E; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); }

.btn-sm { padding: 10px 16px; font-size: 13px; }

.burger { display: none; }

@media (max-width: 980px) {
  nav.main {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 4px 28px 20px;
    background: var(--paper); border-bottom: 1px solid var(--line);
  }
  nav.main[data-open="true"] { display: flex; }
  nav.main a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
  .burger { display: inline-flex; }
  .topbar .btn-primary { display: none; }
}

/* ------------------------------------------------------------------- hero */

.hero { padding: 92px 0 0; border-top: none; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: end; }
.hero h1 { font-size: clamp(42px, 6.6vw, 76px); line-height: .98; margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p.lead { font-size: clamp(17px, 1.7vw, 19.5px); color: var(--text-muted); max-width: 46ch; margin: 0 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* The hero's right column: a short, factual list instead of a second paragraph. */
.hero-facts { list-style: none; margin: 0; padding: 0; }
.hero-facts li {
  border-top: 1px solid var(--line); padding: 13px 0;
  display: flex; gap: 14px; align-items: baseline; font-size: 14.5px; color: var(--text-muted);
}
.hero-facts li:last-child { border-bottom: 1px solid var(--line); }
.hero-facts b { font-family: var(--serif); font-size: 19px; color: var(--text); min-width: 34px; font-weight: 400; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 34px; align-items: start; } }

.hero-shot { margin-top: 64px; }

/* A caption bar, not a fake browser: no traffic lights, no chrome cosplay. */
.frame { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.frame-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 14px; border-bottom: 1px solid var(--line-soft); background: var(--band);
  font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--text-muted); font-weight: 600;
}
.frame img { width: 100%; }

.shot-row { display: grid; grid-template-columns: 1fr 232px; gap: 22px; align-items: end; }
.phone {
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface);
}
.phone .frame-bar { justify-content: center; }
@media (max-width: 900px) { .shot-row { grid-template-columns: 1fr; } .phone { display: none; } }

/* --------------------------------------------------------- live activity */

.live { background: var(--band); }
.live-head { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; flex-wrap: wrap; }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
  animation: live-pulse 2.4s ease-out infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.live-label { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.live-updated { font-size: 12.5px; color: var(--text-muted); margin-left: auto; }

.live-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.live-cell { border-top: 1px solid var(--ink); padding: 18px 26px 0 0; }
.live-cell .v { font-family: var(--serif); font-size: clamp(42px, 5vw, 58px); line-height: 1.05; }
.live-cell .k { font-size: 14px; margin-top: 4px; }
.live-cell .s { font-size: 13px; color: var(--text-muted); }
@media (max-width: 820px) { .live-grid { grid-template-columns: 1fr 1fr; gap: 26px 20px; } }

/* ------------------------------------------------------------------ tour */

.tour-tabs { display: flex; flex-wrap: wrap; gap: 26px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.tour-tabs button {
  padding: 0 0 13px; border: none; background: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  color: var(--text-muted); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.tour-tabs button:hover { color: var(--text); }
.tour-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--ink); }

.tour-body { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.tour-copy h3 { font-size: 28px; margin-bottom: 12px; }
.tour-copy p { color: var(--text-muted); margin: 0 0 20px; font-size: 15.5px; }
.tour-copy ul { list-style: none; padding: 0; margin: 0; }
.tour-copy li { border-top: 1px solid var(--line-soft); padding: 11px 0; font-size: 14.5px; }
.tour-copy li:last-child { border-bottom: 1px solid var(--line-soft); }
/* The screenshot swap should not jump; fade it. */
#tour-img { transition: opacity .22s ease; }
#tour-img[data-swapping="true"] { opacity: 0; }
@media (max-width: 960px) { .tour-body { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- features */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.cell { background: var(--paper); padding: 28px 26px; transition: background-color .25s ease; }
.cell:hover { background: var(--surface); }
.cell svg { width: 19px; height: 19px; stroke: var(--accent); fill: none; stroke-width: 1.6; margin-bottom: 14px; }
.cell h3 { font-family: var(--font); font-size: 15px; font-weight: 700; margin-bottom: 6px; letter-spacing: -.005em; }
.cell p { margin: 0; font-size: 14.5px; color: var(--text-muted); line-height: 1.55; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }

/* -------------------------------------------------------- customisation */

.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.fit-list { list-style: none; padding: 0; margin: 0; }
.fit-list li { border-top: 1px solid var(--line); padding: 18px 0; }
.fit-list li:last-child { border-bottom: 1px solid var(--line); }
.fit-list b { display: block; font-size: 15.5px; margin-bottom: 4px; }
.fit-list span { font-size: 14.5px; color: var(--text-muted); }
@media (max-width: 900px) { .fit { grid-template-columns: 1fr; gap: 36px; } }

.swatches { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.swatch {
  width: 26px; height: 26px; border-radius: var(--r); border: 1px solid var(--line);
  cursor: pointer; padding: 0; transition: transform .15s ease;
}
.swatch:hover { transform: translateY(-2px); }
.swatch[aria-pressed="true"] { outline: 1px solid var(--text); outline-offset: 2px; }

/* ------------------------------------------------------------ mini demo */

.demo-shell {
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  /* The demo is a copy of the app, and the app is light-only: freeze its own
     colours so the page's dark theme does not half-convert it. */
  background: #F5F2EB; color: #1E1B18;
  display: grid; grid-template-columns: 196px 1fr; min-height: 448px;
  font-size: 14px;
}
.demo-nav { background: #EAE4D8; border-right: 1px solid #D5CDBC; padding: 14px 0; }
.demo-nav .who { display: flex; align-items: center; gap: 9px; padding: 0 16px 14px; }
.demo-nav .who b { font-size: 13px; }
.demo-nav .who i { display: block; font-family: var(--serif); font-size: 11.5px; color: #6A645B; font-style: italic; }
.demo-nav h4 { font-family: var(--serif); font-size: 15px; padding: 9px 16px 5px; margin: 0; border-top: 1px solid #D5CDBC; }
.demo-nav button {
  display: block; width: 100%; text-align: left; padding: 7px 16px; border: none;
  background: none; font: inherit; font-size: 13.5px; color: #34302B; cursor: pointer;
  border-left: 2px solid transparent;
}
.demo-nav button:hover { background: rgba(255,255,255,.45); }
.demo-nav button[aria-current="true"] { background: #F2EDE3; border-left-color: #1E1B18; font-weight: 600; }

.demo-main { padding: 20px 22px 24px; display: flex; flex-direction: column; }
.demo-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid #1E1B18; padding-bottom: 11px; margin-bottom: 18px; }
.demo-head h3 { font-size: 26px; }
.demo-head span { font-size: 12.5px; color: #6A645B; }

.demo-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 22px; }
.demo-stat { border-top: 1px solid #1E1B18; padding-top: 11px; }
.demo-stat .k { font-size: 12px; color: #6A645B; }
.demo-stat .v { font-family: var(--serif); font-size: 33px; line-height: 1.2; }

.demo-bars { display: flex; align-items: flex-end; gap: 10px; height: 124px; border-bottom: 1px solid #D9D3C7; padding-bottom: 2px; }
.demo-bars div { flex: 1; background: #1E1B18; transition: height .6s cubic-bezier(.2,.7,.3,1); }
.demo-barlabels { display: flex; gap: 10px; margin-top: 6px; }
.demo-barlabels span { flex: 1; text-align: center; font-size: 11px; color: #6A645B; }

.demo-timer { display: flex; align-items: center; gap: 14px; border: 1px solid #D9D3C7; background: #FBF9F4; padding: 15px 17px; }
.demo-timer .t { font-family: var(--serif); font-size: 35px; line-height: 1; min-width: 136px; }
.demo-timer select { font: inherit; font-size: 13px; padding: 9px 10px; border: 1px solid #D9D3C7; background: #fff; color: #1E1B18; flex: 1; border-radius: 0; }
.demo-timer button { border: none; background: #1E1B18; color: #F5F2EB; font: inherit; font-weight: 600; font-size: 13.5px; padding: 11px 20px; cursor: pointer; }
.demo-timer button[data-running="true"] { background: #1E1B18; color: #fff; }

.demo-rows { margin-top: 16px; }
.demo-row { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #E6E1D6; padding: 10px 0; font-size: 13.5px; }
.demo-row:first-child { border-top: none; }
.demo-row i { font-style: normal; color: #6A645B; font-size: 12.5px; display: block; }

.demo-chat { display: flex; flex-direction: column; flex: 1; }
.demo-msgs { flex: 1; overflow-y: auto; max-height: 258px; padding-right: 4px; }
.demo-msg { margin-bottom: 13px; max-width: 86%; }
.demo-msg .b { padding: 10px 13px; font-size: 13.5px; line-height: 1.5; }
.demo-msg[data-from="you"] { margin-left: auto; }
.demo-msg[data-from="you"] .b { background: #1E1B18; color: #F5F2EB; }
.demo-msg[data-from="ai"] .b { background: #EBEEE2; border: 1px solid #D7DDC8; }
.demo-msg .who { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #9A9388; margin-bottom: 5px; }
.demo-ask { display: flex; gap: 8px; margin-top: 14px; }
.demo-ask input { flex: 1; font: inherit; font-size: 13.5px; padding: 11px 12px; border: 1px solid #D9D3C7; background: #FBF9F4; color: #1E1B18; border-radius: 0; }
.demo-ask button { border: none; background: #1E1B18; color: #F5F2EB; font: inherit; font-weight: 600; font-size: 13.5px; padding: 11px 20px; cursor: pointer; }
.demo-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.demo-chips button { border: 1px solid #D9D3C7; background: #FBF9F4; padding: 7px 12px; font: inherit; font-size: 12.5px; color: #34302B; cursor: pointer; }
.demo-chips button:hover { border-color: #1E1B18; }

.demo-foot { font-size: 12.5px; color: var(--text-muted); margin-top: 14px; }

@media (max-width: 800px) {
  .demo-shell { grid-template-columns: 1fr; }
  .demo-nav { display: flex; overflow-x: auto; border-right: none; border-bottom: 1px solid #D5CDBC; padding: 8px; gap: 2px; }
  .demo-nav .who, .demo-nav h4 { display: none; }
  .demo-nav button { width: auto; white-space: nowrap; border-left: none; border-bottom: 2px solid transparent; }
  .demo-nav button[aria-current="true"] { border-left: none; border-bottom-color: #1E1B18; }
  .demo-stats { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------------------------------------------------------------- pricing */

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.price { background: var(--paper); padding: 32px 28px; display: flex; flex-direction: column; }
.price[data-featured="true"] { background: var(--surface); }
.price .tag {
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
  color: var(--text-muted); padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line);
}
.price[data-featured="true"] .tag { color: var(--accent); border-bottom-color: var(--accent); }
.price h3 { font-size: 27px; margin-bottom: 6px; }
.price .blurb { font-size: 14px; color: var(--text-muted); min-height: 44px; margin-bottom: 20px; }
.price .amount { font-family: var(--serif); font-size: 52px; line-height: 1; }
.price .per { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.price ul { list-style: none; padding: 0; margin: 0 0 28px; }
.price li { position: relative; padding-left: 24px; margin-bottom: 11px; font-size: 14.5px; }
.price li svg { position: absolute; left: 0; top: 4px; width: 14px; height: 14px; stroke: var(--accent); fill: none; stroke-width: 2.2; }
.price li[data-off="true"] { color: var(--text-faint); }
.price li[data-off="true"] svg { stroke: var(--text-faint); }
.price .btn { margin-top: auto; width: 100%; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }

.price-foot { margin-top: 26px; font-size: 14px; color: var(--text-muted); max-width: 70ch; }

/* ----------------------------------------------------------------- pledge */

.pledge { background: var(--band); }
.pledge-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.pledge .big { font-family: var(--serif); font-size: clamp(76px, 13vw, 150px); line-height: .86; color: var(--accent); }
.pledge .big-note { font-size: 14px; color: var(--text-muted); margin: 14px 0 0; }
@media (max-width: 880px) { .pledge-inner { grid-template-columns: 1fr; gap: 30px; } }

/* --------------------------------------------------------------- security */

.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.sec { border-top: 1px solid var(--ink); padding-top: 15px; }
.sec b { display: block; font-size: 15px; margin-bottom: 6px; }
.sec span { font-size: 14px; color: var(--text-muted); }
@media (max-width: 880px) { .sec-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .sec-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ about */

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about p { color: var(--text-muted); margin: 0 0 18px; }
.about .pull {
  border-left: 2px solid var(--accent); padding: 2px 0 2px 22px;
  font-family: var(--serif); font-size: 24px; line-height: 1.32; color: var(--text);
}
@media (max-width: 880px) { .about { grid-template-columns: 1fr; gap: 30px; } }

/* -------------------------------------------------------------------- faq */

.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 16px;
  list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 11px; height: 11px; flex: none;
  background:
    linear-gradient(var(--accent), var(--accent)) center/100% 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center/1px 100% no-repeat;
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(90deg); background-size: 100% 1px, 0 0; }
.faq details p { margin: 0 0 22px; color: var(--text-muted); max-width: 72ch; font-size: 15px; }

/* ---------------------------------------------------------------- contact */

.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--text-muted); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; padding: 12px 13px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 1px solid var(--accent); outline-offset: -2px; border-color: var(--accent); }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 13px; color: var(--text-muted); margin-top: 14px; }
.form-status { font-size: 14px; margin-top: 12px; color: var(--accent); font-weight: 600; }
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; gap: 32px; } .field-row { grid-template-columns: 1fr; } }

.contact-side dl { margin: 0; }
.contact-side dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-top: 24px; }
.contact-side dt:first-child { margin-top: 0; }
.contact-side dd { margin: 5px 0 0; font-size: 15.5px; }
.contact-side dd a { color: var(--accent); }

/* -------------------------------------------------------------------- cta */

.cta { background: var(--ink); color: var(--paper); border-top: none; }
.cta h2 { font-size: clamp(36px, 5.6vw, 62px); color: var(--paper); margin-bottom: 18px; max-width: 16ch; }
.cta p { color: color-mix(in srgb, var(--paper) 66%, transparent); max-width: 50ch; margin: 0 0 32px; }
.cta .btn-primary { background: var(--paper); color: var(--ink); }
.cta .btn-primary:hover { background: var(--accent); color: #fff; }
.cta .btn-ghost { color: var(--paper); border-color: color-mix(in srgb, var(--paper) 32%, transparent); }
.cta .btn-ghost:hover { border-color: var(--paper); }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
/* The reveal's unlit colour has to work on ink, not on paper. */
.cta .rv span.w { color: color-mix(in srgb, var(--paper) 26%, transparent); }
.cta .rv span.w.on { color: inherit; }

/* ----------------------------------------------------------------- footer */

footer.site { padding: 56px 0 36px; border-top: 1px solid var(--line-soft); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; }
.foot-grid h4 { font-family: var(--font); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-bottom: 14px; }
.foot-grid a, .foot-grid p { display: block; font-size: 14.5px; color: var(--text-muted); text-decoration: none; margin: 0 0 10px; }
.foot-grid a:hover { color: var(--text); }
.foot-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-muted);
}
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* A placeholder still to be filled in — deliberately loud so it cannot ship
   unnoticed. Delete the class along with the text. */
/* Placeholders were marked in gold while the site was local. They are gone now
   that it is public; the rule stays so a stray one still reads as normal text
   rather than shouting on a live page. */
.todo { background: none; border: 0; padding: 0; color: inherit; }
.draft-note {
  border-left: 2px solid var(--line); padding: 2px 0 2px 12px; margin: 0 0 18px;
  font-size: 13.5px; color: var(--text-faint);
}

/* ------------------------------------------------------------ legal pages */

.legal { max-width: 780px; margin: 0 auto; padding: 64px 28px 96px; }
.legal h1 { font-size: 46px; margin-bottom: 10px; }
.legal .updated { color: var(--text-muted); font-size: 14px; margin-bottom: 44px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.legal h2 { font-family: var(--font); font-size: 16px; font-weight: 700; margin: 38px 0 10px; }
.legal h3 { font-family: var(--font); font-size: 14.5px; font-weight: 600; margin: 24px 0 8px; color: var(--text); }
.legal p, .legal li { color: var(--text-muted); font-size: 15.5px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent); }
.legal .back { display: inline-block; margin-bottom: 30px; font-size: 13px; letter-spacing: .04em; text-decoration: none; color: var(--text-muted); }
.legal .back:hover { color: var(--text); }

/* The Swayro mark: an italic S on an ink square, the same as the app icon. */
.brand .mark {
  align-self: center; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper); font-style: italic; font-size: 24px; padding-bottom: 3px;
}
