/* ---------------------------------------------------------------------------
   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 { text-wrap: balance;  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); }


/* ------------------------------------------------------------------ stage
   The hero in depth. Real screenshots, a real perspective, one soft shadow;
   no fake browser chrome. --p (0→1) is how far it has scrolled into view. */
.stage { --p: 0; margin-top: 56px; perspective: 2400px; perspective-origin: 50% 20%; padding: 10px 0 70px; }
.stage-inner {
  position: relative; transform-style: preserve-3d; width: 92%; margin: 0 auto 0 0;
  transform: rotateX(calc(14deg - 10deg * var(--p))) rotateY(calc(-18deg + 12deg * var(--p))) rotateZ(calc(2.5deg - 2deg * var(--p)));
  transition: transform .12s linear;
}
.stage-screen { margin: 0; border-radius: 10px; overflow: hidden; background: var(--surface);
  box-shadow: 0 0 0 1px rgba(30,27,24,.10), 0 50px 90px -40px rgba(30,27,24,.55), 0 20px 40px -20px rgba(30,27,24,.25); }
.stage-screen img, .stage-phone img { display: block; width: 100%; height: auto; }
.stage-phone { position: absolute; margin: 0; right: -6%; bottom: -12%; width: 21%;
  transform: translateZ(90px); border: 7px solid #1E1B18; border-radius: 30px; overflow: hidden; background: #1E1B18;
  box-shadow: 0 40px 70px -25px rgba(30,27,24,.6); }
.stage-chip { position: absolute; display: flex; align-items: center; gap: 10px; white-space: nowrap;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); padding: 11px 15px; font-size: 13px;
  box-shadow: 0 24px 40px -18px rgba(30,27,24,.45); transform: translateZ(140px); }
.stage-chip b { font-weight: 800; letter-spacing: -.02em; font-size: 15px; }
.chip-timer { left: -3%; top: 58%; background: #1E1B18; color: #F5F2EB; border-color: #1E1B18; }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: #C0674A; animation: chipPulse 1.4s ease-in-out infinite; }
.chip-invoice { right: 20%; top: -5%; }
@keyframes chipPulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .stage-inner { transform: rotateX(6deg) rotateY(-8deg); } .chip-dot { animation: none; } }
@media (max-width: 900px) {
  .stage { perspective: none; padding-bottom: 20px; }
  .stage-inner { transform: none; width: 100%; }
  .stage-phone, .stage-chip { display: none; }
}
/* The tour's screenshots sit on the page with the same depth, flat. */
.tour-body .frame { box-shadow: 0 40px 80px -45px rgba(30,27,24,.5); }

/* The logo: split S without its box, then the wordmark. Swapped for the
   cream version in dark mode. */
.brand .logo { display: block; height: 25px; width: auto; }
.brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }

/* ---------------------------------------------------------- section tones
   Four grounds so each section reads as its own room: cream (default),
   white, a soft terracotta from the logo, and ink. Each redefines the colour
   variables, so everything inside follows without per-element overrides. */
section.sec-white { background: #FFFFFF; --band: #F5F2EB; --surface: #FFFFFF; border-top-color: transparent; }
section.sec-warm { background: #F2E1D7; --band: #EAD2C5; --surface: #FBF5F1; --line: #E0C7B9; --line-soft: #E8D3C7; border-top-color: transparent; }
section.sec-dark {
  background: #1E1B18; border-top-color: transparent;
  --ink: #F1ECE1; --paper: #1E1B18; --surface: #2A241F; --line: #3A332C; --line-soft: #2F2923;
  --text: #F1ECE1; --text-muted: #B3AB9E; --text-faint: #6E665B; --band: #26211C;
  --accent: #F1ECE1; --accent-soft: #332C25; --accent-deep: #F1ECE1;
  color: var(--text);
}
section.sec-dark .btn-primary:hover { color: #1E1B18; }
:root[data-theme="dark"] section.sec-white { background: #1C1914; --band: #15120E; --surface: #1C1914; }
:root[data-theme="dark"] section.sec-warm { background: #2A1E18; --band: #33241D; --surface: #2F221B; --line: #45322A; --line-soft: #3A2A22; }
:root[data-theme="dark"] section.sec-dark { background: #0E0C0A; }
/* Next to a toned section the hairline between sections is not needed. */
section.sec-white + section, section.sec-warm + section, section.sec-dark + section { border-top-color: transparent; }

/* ------------------------------------------------------------ shot panels
   A screenshot set on a tinted panel and running off its bottom edge:
   calmer than the hero's 3D stage, clearer than a bare frame. */
.shot-panel { background: var(--band); padding: 36px 36px 0; border-radius: 4px; overflow: hidden; }
section.sec-white .shot-panel { background: #F2E1D7; }
section.sec-warm .shot-panel { background: #FFFFFF; }
.shot-panel .frame { border-radius: 8px 8px 0 0; border-bottom: none; box-shadow: 0 -2px 0 rgba(30,27,24,.02), 0 30px 60px -30px rgba(30,27,24,.45); }
/* Smaller shots show the top-left of the screen enlarged, so the UI is legible. */
.zoom-crop { aspect-ratio: 4 / 3; overflow: hidden; }
.zoom-crop img { width: 150%; max-width: none; height: auto; display: block; }
@media (max-width: 700px) { .shot-panel { padding: 18px 18px 0; } }

/* ------------------------------------------------------------ fit mock
   A live corner of the app. --m is the company colour the swatches set. */
.mock { --m: #1E1B18; display: grid; grid-template-columns: 150px 1fr; min-height: 300px; border-radius: 8px 8px 0 0; overflow: hidden;
  font: 12px/1.35 var(--font); color: #1E1B18; box-shadow: 0 30px 60px -30px rgba(30,27,24,.45); }
.mock b { font-weight: 700; } .mock i { font-style: normal; }
.mock-side { background: #2A241F; color: #F5F2EB; padding: 12px 8px; display: flex; flex-direction: column; gap: 10px; }
.mock-org { display: flex; gap: 8px; align-items: center; padding: 0 4px; }
.mock-org span:last-child { display: flex; flex-direction: column; }
.mock-org i { color: rgba(245,242,235,.45); font-size: 10.5px; }
.mock-tile { width: 24px; height: 24px; background: var(--m); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12px; transition: background .3s; }
.mock-nav { display: flex; flex-direction: column; }
.mock-nav span { padding: 6px 8px; color: rgba(245,242,235,.66); border-left: 2px solid transparent; }
.mock-nav span.on { color: #F5F2EB; background: rgba(245,242,235,.12); border-left-color: #F5F2EB; font-weight: 600; }
.mock-timer { margin-top: auto; background: var(--m); color: #fff; padding: 9px; display: flex; flex-direction: column; gap: 3px; transition: background .3s; }
.mock-timer b { font-size: 18px; font-weight: 800; letter-spacing: -.03em; }
.mock-run { display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; opacity: .9; }
.mock-run i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: chipPulse 1.4s ease-in-out infinite; }
.mock-proj { font-size: 10.5px; opacity: .8; }
.mock-main { background: #F5F2EB; padding: 14px; }
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mock-head b { font-size: 15px; }
.mock-add { background: var(--m); color: #fff; padding: 5px 10px; font-weight: 600; transition: background .3s; }
.mock-cards { display: grid; gap: 8px; }
.mock-card { background: #FCFBF8; border: 1px solid #D9D3C7; padding: 9px 10px; display: flex; flex-direction: column; gap: 3px; }
.mock-card i { color: #6A645B; font-size: 11px; }
.mock-card small { color: #9A9388; font-size: 10.5px; }
.mock-bar { height: 4px; background: #E8E3D9; margin-top: 4px; }
.mock-bar em { display: block; height: 100%; background: var(--m); transition: background .3s; }
@media (max-width: 520px) { .mock { grid-template-columns: 1fr; } .mock-side { display: none; } }

/* --------------------------------------------------------- nav dropdowns
   Four items: two groups that open on hover or click, and two plain links. */
.nav-group { position: relative; display: flex; }
.nav-top { display: inline-flex; align-items: center; gap: 5px; background: none; border: none; cursor: pointer;
  font: 500 14px var(--font); color: var(--text-muted); padding: 24px 0; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.nav-top svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.nav-top:hover, .nav-group[data-active="true"] .nav-top { color: var(--text); }
.nav-group[data-active="true"] .nav-top { border-bottom-color: var(--accent); }
.nav-drop { position: absolute; top: 100%; left: -14px; min-width: 190px; display: none; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 40px -18px rgba(30,27,24,.35); padding: 6px 0; z-index: 60; }
nav.main .nav-drop a { padding: 9px 16px; border-bottom: none; margin: 0; font-size: 14px; }
nav.main .nav-drop a:hover, nav.main .nav-drop a[data-active="true"] { background: var(--band); color: var(--text); }
.nav-group:hover .nav-drop, .nav-group.open .nav-drop { display: flex; }
.nav-group:hover .nav-top svg, .nav-group.open .nav-top svg { transform: rotate(180deg); }
@media (max-width: 980px) {
  .nav-group { flex-direction: column; }
  .nav-top { padding: 14px 0 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; cursor: default; }
  .nav-top svg { display: none; }
  .nav-drop { position: static; display: flex; min-width: 0; border: none; box-shadow: none; padding: 0; background: none; }
  nav.main .nav-drop a { padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
}

/* ---- 30 Sept 2026: the phone, the steps, the rules and integrations ---- */

/* The hero phone is a phone: an iPhone's proportions (390 × 844), its status
   bar and camera island on top, the app underneath, the home bar on it. Sizes
   are in cqw so the whole thing scales with the phone's width. */
.iphone { container-type: inline-size; display: flex; flex-direction: column; background: #F5F2EB; border-radius: 32px; }
.iphone-status { position: relative; aspect-ratio: 390 / 47; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 0 7cqw 0 8.5cqw; font: 600 3.9cqw/1 -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; color: #1E1B18; background: #F5F2EB; }
.iphone-island { position: absolute; left: 50%; top: 22%; width: 31cqw; height: 56%; transform: translateX(-50%); background: #0B0A09; border-radius: 99px; }
.iphone-sys { display: flex; align-items: center; gap: 1.6cqw; }
.iphone-sys svg { height: 3.1cqw; width: auto; fill: currentColor; }
.iphone-sys svg:last-child { height: 3.3cqw; }
.iphone-home { position: absolute; left: 50%; bottom: 2.2cqw; width: 34cqw; height: 1.3cqw; transform: translateX(-50%); background: #1E1B18; border-radius: 99px; opacity: .85; }
.stage-phone.iphone { border-width: 6px; border-radius: 36px; overflow: hidden; }

/* How it works: three steps across. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.steps li { border-top: 1px solid var(--ink); padding-top: 18px; }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper);
  font-weight: 700; font-size: 14px; margin-bottom: 14px; }
:root[data-theme="dark"] .step-n { background: var(--text); color: var(--bg, #15120E); }
.steps h3 { font-family: var(--font); font-size: 18px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 6px; }
.steps p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.55; }

/* Rules and integrations reuse the feature cells, with a small tag on top. */
.rules .cell, .integrations .cell { position: relative; }
.badge { position: absolute; top: 22px; right: 22px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-muted); border: 1px solid var(--line); padding: 3px 8px; background: var(--surface); }
.badge-soon { color: #C0674A; border-color: #C0674A; }
.int-name { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; padding-right: 70px; }
.rules-foot { margin: 22px 0 0; font-size: 13.5px; color: var(--text-muted); max-width: 70ch; }
.rules-foot a { color: var(--text); }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 22px; }
}

/* The logo never gives way in the top bar (French "Se connecter" squeezed it
   to a speck on a phone); on small phones the light/dark switch makes room. */
.topbar .brand { flex-shrink: 0; }
@media (max-width: 440px) {
  #theme-btn, .topbar .tools .rule { display: none; }
  .topbar .brand .logo { height: 21px; }
  .topbar .signin { font-size: 13.5px; }
}

/* Phones (30 Sept 2026): twelve feature boxes one under another was twelve
   screens of scrolling. Two per row, compact; the longer rules and
   integrations stay one per row but tighter. */
@media (max-width: 600px) {
  #features .grid-3 { grid-template-columns: 1fr 1fr; }
  #features .cell { padding: 18px 14px 16px; }
  #features .cell svg { width: 17px; height: 17px; margin-bottom: 10px; }
  #features .cell h3 { font-size: 14px; margin-bottom: 4px; }
  #features .cell p { font-size: 12.5px; line-height: 1.45; }
  .rules .cell, .integrations .cell { padding: 20px 18px; }
  .badge { top: 18px; right: 16px; }
  section { padding: 72px 0; }
  .section-lead { margin-bottom: 32px; font-size: 16px; }
}

/* On a phone the hero shows the app as it looks on a phone: the iPhone,
   centred and large, instead of a laptop screenshot too small to read with a
   tiny phone stuck to it. */
@media (max-width: 700px) {
  .stage { perspective: none; padding: 8px 0 26px; }
  .stage-inner { transform: none !important; width: 100%; display: flex; justify-content: center; }
  .stage-screen, .stage-chip { display: none; }
  .stage-phone.iphone { display: flex; position: relative; right: auto; bottom: auto; transform: none; width: min(72vw, 300px);
    box-shadow: 0 30px 60px -28px rgba(30,27,24,.55); }
}

/* ---- 30 Sept 2026, evening: an app-like site on the phone ------------------ */

/* Hero facts: an icon each; a 2 × 2 of chips on a phone. */
.hero-facts li { display: flex; align-items: center; gap: 12px; }
.hero-facts li svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="dark"] .hero-facts li svg { stroke: var(--text); }

/* How it works: three colour cards, each with the app inside it. */
.how-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how-card { display: flex; flex-direction: column; padding: 26px 24px 0; overflow: hidden; min-height: 520px; }
.how-card h3 { font-family: var(--font); font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 8px; }
.how-card p { margin: 0 0 22px; font-size: 15px; line-height: 1.5; }
.how-card .step-n { margin-bottom: 16px; }
.tone-ink { background: #1E1B18; color: #F5F2EB; }
.tone-ink p { color: rgba(245,242,235,.72); }
.tone-ink .step-n { background: #F5F2EB; color: #1E1B18; }
.tone-warm { background: #F2E1D7; color: #1E1B18; }
.tone-warm p, .tone-white p { color: #6A645B; }
.tone-white { background: #FFFFFF; color: #1E1B18; border: 1px solid var(--line-soft); }
/* The phone screenshot rises from the bottom of the card, top of the screen showing. */
.how-shot { margin-top: auto; align-self: center; width: min(78%, 260px); aspect-ratio: 390 / 470; overflow: hidden;
  border: 6px solid #0B0A09; border-bottom: none; border-radius: 26px 26px 0 0; background: #F5F2EB; }
.how-shot img { width: 100%; height: auto; display: block; }

/* Integrations: logo tiles; Peppol gets the wide one. */
.logo-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.logo-tile { position: relative; background: var(--paper); padding: 22px 16px 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 132px; }
.logo-tile > svg { width: 26px; height: 26px; fill: var(--ink); margin-bottom: 8px; }
.logo-tile > svg.doc { fill: none; stroke: var(--ink); stroke-width: 1.6; }
:root[data-theme="dark"] .logo-tile > svg { fill: var(--text); }
.logo-tile b { font-size: 14.5px; font-weight: 700; }
.logo-tile span:not(.badge) { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }
.logo-tile .badge { top: 14px; right: 12px; }
.logo-tile.wide { grid-column: span 2; background: #1E1B18; color: #F5F2EB; }
.logo-tile.wide h3 { font-family: var(--font); font-size: 18px; font-weight: 700; margin: 4px 0 2px; }
.logo-tile.wide p { margin: 0; font-size: 13.5px; line-height: 1.5; color: rgba(245,242,235,.72); }
.logo-tile.wide .badge-soon { background: transparent; }
.wordmark { font-size: 24px !important; font-weight: 800 !important; letter-spacing: -.03em; line-height: 1; margin-bottom: 8px; }
.wordmark.sm { font-size: 19px !important; }

/* Languages: speech bubbles. */
.lang-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.bubbles { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 18px; padding: 10px 0; }
.bubble { position: relative; justify-self: start; display: inline-flex; align-items: baseline; gap: 10px; padding: 14px 18px; font-family: var(--serif); font-size: clamp(26px, 5vw, 38px); line-height: 1; }
.bubble i { font-family: var(--font); font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .08em; opacity: .7; }
.bubble::after { content: ""; position: absolute; left: 18px; bottom: -10px; width: 0; height: 0; border-left: 10px solid transparent; border-right: 0 solid transparent; border-top: 10px solid; border-top-color: inherit; }
.b-ink { background: #1E1B18; color: #F5F2EB; border-color: #1E1B18; }
.b-accent { background: #C0674A; color: #fff; border-color: #C0674A; justify-self: end; transform: translateY(18px); }
.b-white { background: #fff; color: #1E1B18; border: 1px solid var(--line); border-top-color: #fff; }
.b-white::after { border-top-color: #fff; }
.b-ghost { background: transparent; color: var(--text-muted); border: 1px dashed var(--line); justify-self: end; font-size: clamp(20px, 3.6vw, 26px); }
.b-ghost::after { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .bubble { animation: bubbleIn .5s cubic-bezier(.2,.7,.2,1) both; }
  .b-accent { animation-delay: .12s; } .b-white { animation-delay: .24s; } .b-ghost { animation-delay: .36s; }
}
@keyframes bubbleIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.b-accent { animation-name: bubbleInLow; }
@keyframes bubbleInLow { from { opacity: 0; transform: translateY(30px) scale(.96); } to { transform: translateY(18px); } }

/* The app: store badges (coming soon) next to a phone. */
.app-wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center; }
.store-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border: 1px solid rgba(245,242,235,.35); color: #F5F2EB; }
.store svg { width: 22px; height: 22px; fill: #F5F2EB; }
.store span { display: flex; flex-direction: column; font-size: 16px; font-weight: 700; line-height: 1.1; }
.store small { font-size: 10.5px; font-weight: 500; opacity: .7; letter-spacing: .02em; }
.app-phone { width: min(100%, 280px); justify-self: center; border: 6px solid #0B0A09; border-radius: 36px; overflow: hidden; position: relative; box-shadow: 0 40px 70px -30px rgba(0,0,0,.7); }

/* Phones */
@media (max-width: 700px) {
  .hero-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-facts li, .hero-facts li:last-child { border: 1px solid var(--line); padding: 12px; align-items: flex-start; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.35; }
  .how-cards { grid-template-columns: 1fr; gap: 12px; }
  .how-card { min-height: 0; padding: 24px 20px 0; }
  .how-card h3 { font-size: 21px; }
  .how-shot { width: 62%; }
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-tile { min-height: 116px; padding: 18px 14px 14px; }
  .lang-wrap, .app-wrap { grid-template-columns: 1fr; gap: 26px; }
  .bubbles { gap: 22px 12px; }
  .app-phone { width: 68%; }
  /* Rules & data: tiles that open on tap — the title reads first, the detail on demand. */
  .rules[data-fold] .cell { cursor: pointer; padding-right: 64px; }
  .rules[data-fold] .cell p { display: none; }
  .rules[data-fold] .cell.open p { display: block; margin-top: 8px; }
  .rules[data-fold] .cell h3 { margin-bottom: 0; }
  .rules[data-fold] .cell::after { content: "+"; position: absolute; right: 18px; bottom: 16px; font-size: 20px; line-height: 1; color: var(--text-muted); }
  .rules[data-fold] .cell.open::after { content: "–"; }
}

/* ---- The phone menu (30 Sept 2026): a sheet under the header that slides
   down, links arriving one after another, the actions and language at the
   bottom. Replaces the plain dropped list. */
.nav-foot { display: none; }
.burger svg path { transition: transform .28s cubic-bezier(.2,.7,.2,1), opacity .2s; transform-origin: 12px 12px; }
.burger[aria-expanded="true"] .b1 { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .b2 { opacity: 0; }
.burger[aria-expanded="true"] .b3 { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 980px) {
  nav.main {
    display: flex; position: fixed; top: 70px; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 24px calc(env(safe-area-inset-bottom) + 24px); overflow-y: auto; overscroll-behavior: contain;
    background: var(--paper); border-bottom: none;
    visibility: hidden; opacity: 0; transform: translateY(-14px);
    transition: opacity .26s ease, transform .32s cubic-bezier(.2,.7,.2,1), visibility 0s linear .32s;
  }
  nav.main[data-open="true"] { visibility: visible; opacity: 1; transform: none; transition: opacity .26s ease, transform .32s cubic-bezier(.2,.7,.2,1), visibility 0s; }
  /* No scroll lock: overflow hidden on html unpinned the sticky header when the page was scrolled. The sheet covers everything under the header and keeps its own scroll (overscroll-behavior: contain). */
  .nav-top { padding: 22px 0 6px; font-size: 11px; color: var(--text-muted); }
  nav.main > a, nav.main .nav-drop a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0; font-family: var(--serif); font-size: 26px; line-height: 1.1; color: var(--text); border-bottom: 1px solid var(--line-soft);
  }
  nav.main > a::after, nav.main .nav-drop a::after {
    content: ""; width: 9px; height: 9px; border-top: 1.5px solid var(--text-muted); border-right: 1.5px solid var(--text-muted); transform: rotate(45deg); margin-right: 4px;
  }
  nav.main > a[data-active="true"], nav.main .nav-drop a[data-active="true"] { background: none; }
  nav.main > a { margin-top: 6px; }
  /* The links arrive one after another. */
  nav.main[data-open="true"] .nav-group, nav.main[data-open="true"] > a, nav.main[data-open="true"] .nav-foot { animation: navIn .38s cubic-bezier(.2,.7,.2,1) both; }
  nav.main[data-open="true"] > :nth-child(2) { animation-delay: .04s; }
  nav.main[data-open="true"] > :nth-child(3) { animation-delay: .08s; }
  nav.main[data-open="true"] > :nth-child(4) { animation-delay: .12s; }
  nav.main[data-open="true"] > :nth-child(5) { animation-delay: .16s; }
  .nav-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
  .nav-foot .btn { justify-content: center; padding: 14px 10px; font-size: 14px; }
  nav.main .nav-foot a { font-family: var(--font); font-size: 14px; border-bottom: none; padding: 14px 10px; }
  nav.main .nav-foot a::after { display: none; }
  .nav-langs { grid-column: span 2; display: flex; border: 1px solid var(--line); margin-top: 6px; }
  .nav-langs button { flex: 1; padding: 13px 0; background: none; border: none; border-right: 1px solid var(--line); font: 600 13px var(--font); letter-spacing: .06em; color: var(--text-muted); cursor: pointer; }
  .nav-langs button:last-child { border-right: none; }
  .nav-langs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
}
@keyframes navIn { from { opacity: 0; transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) {
  nav.main, nav.main[data-open="true"] { transition: none; }
  nav.main[data-open="true"] * { animation: none !important; }
}

/* Phones: less to read. Titles carry the story; the detail stays where it
   decides something (pricing, questions, contact). */
@media (max-width: 700px) {
  #features .cell p { display: none; }
  #features .cell { padding: 16px 14px; display: flex; align-items: center; gap: 10px; }
  #features .cell svg { margin: 0; flex-shrink: 0; }
  #features .cell h3 { margin: 0; font-size: 14px; }
  #tour-l { display: none; }
  .fit-list li span { display: none; }
  .fit-list li { padding: 12px 0; }
  .logo-tile.wide p { display: none; }
  #impact .rv[data-i18n="impact.p2"], #impact .rv[data-i18n="impact.p3"] { display: none; }
  #about .rv[data-i18n="about.p3"] { display: none; }
  .section-lead { font-size: 15px; }
}
@media (max-width: 980px) {
  /* A blurred header is a containing block for fixed children: the menu sheet
     was trapped inside the 70px bar. Solid on phones, which looks the same. */
  header.topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  nav.main { height: calc(100dvh - 70px); }
}
@media (max-width: 980px) { .topbar nav.main .nav-foot .btn-primary { display: inline-flex; } }
@media (max-width: 980px) {
  nav.main .nav-foot .btn-primary { color: var(--paper); background: var(--ink); border: 1px solid var(--ink); }
  nav.main .nav-foot .btn-ghost { color: var(--text); border: 1px solid var(--line); background: transparent; }
}
/* Calmer phone menu (30 Sept 2026, second pass): smaller links in the sans,
   no rule under every line — the lines made the list hard on the eye. */
@media (max-width: 980px) {
  nav.main > a, nav.main .nav-drop a {
    font-family: var(--font); font-size: 18px; font-weight: 500; letter-spacing: -.01em;
    padding: 11px 0; border-bottom: none;
  }
  nav.main > a::after, nav.main .nav-drop a::after { width: 7px; height: 7px; border-width: 1.5px; opacity: .6; }
  .nav-top { padding: 24px 0 4px; }
  nav.main > a { margin-top: 0; }
  nav.main .nav-group + a { margin-top: 14px; }
  .nav-foot { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
}

/* ==== 1 Oct 2026: Arthur's list — lighter, more playful, less boxed ======== */

/* Notes by hand around things (hero phone on a phone). */
:root { --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive; --clay: #C0674A; --blush: #F2E1D7; --moss: #5C6B47; }

/* The phone menu owns language and sign-in while it is open: the header's
   own copies fade out (the language list used to open underneath the sheet). */
@media (max-width: 980px) {
  .topbar .tools > :not(.burger) { transition: opacity .2s ease; }
  html.menu-open .topbar .tools > :not(.burger) { opacity: 0; pointer-events: none; }
}

/* ---- hero */
.stage-screen { position: relative; }
.stage-screen .stage-over { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.stage-screen .stage-over.on { opacity: 1; }
/* The phone stands in front of the laptop, whole. */
@media (min-width: 901px) {
  .stage { padding-bottom: 110px; }
  .stage-phone.iphone { width: 22%; right: -5%; bottom: -9%; border-width: 7px; border-radius: 40px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 50px 80px -30px rgba(30,27,24,.65), 0 18px 30px -18px rgba(30,27,24,.4); }
}
.stage-notes { display: none; }
@media (max-width: 700px) {
  /* Two buttons, one row, always. */
  .hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-cta .btn { justify-content: center; padding: 14px 8px; white-space: nowrap; overflow: hidden; min-width: 0; font-size: 15px; }
  .hero p.lead { margin-bottom: 24px; }

  /* A smaller phone with room at its sides for three notes. */
  .stage { padding: 52px 0 30px; }
  .stage-inner { position: relative; --ph: min(50vw, 208px); }
  .stage-phone.iphone { width: var(--ph); border-radius: 30px; border-width: 5px; }
  .stage-notes { display: block; position: absolute; inset: 0; pointer-events: none; }
  .note { position: absolute; display: flex; flex-direction: column; gap: 2px; width: calc((100% - var(--ph)) / 2 - 2px);
    font-family: var(--hand); font-size: 18px; line-height: .95; color: var(--clay); }
  .note b { font-weight: 600; }
  .note svg { width: 40px; height: 30px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
  .n1 { left: 0; top: 20%; rotate: -4deg; }
  .n1 svg { align-self: flex-end; }
  .n2 { right: 0; top: -7%; rotate: 4deg; text-align: right; }
  .n2 svg { align-self: flex-start; }
  .n3 { left: 0; top: 62%; rotate: -3deg; flex-direction: column-reverse; }
  .n3 svg { align-self: flex-end; }
}

/* ---- live band: a figure that changes ticks */
@keyframes tick { 0% { transform: translateY(.35em); opacity: 0; } 100% { transform: none; opacity: 1; } }
.live-cell .v.tick { animation: tick .5s cubic-bezier(.2,.7,.2,1); }

/* ---- how it works: whole phones, a little askew */
.how-card { min-height: 560px; }
.how-shot.iphone { width: min(74%, 250px); aspect-ratio: auto; height: 300px; overflow: hidden; border: 6px solid #0B0A09; border-bottom: none;
  border-radius: 34px 34px 0 0; box-shadow: 0 -18px 50px -22px rgba(0,0,0,.45); transition: transform .5s cubic-bezier(.2,.7,.2,1); transform-origin: 50% 100%; }
.how-card:nth-child(1) .how-shot { transform: rotate(-3deg) translateY(10px); }
.how-card:nth-child(2) .how-shot { transform: rotate(2deg) translateY(4px); }
.how-card:nth-child(3) .how-shot { transform: rotate(-1.5deg) translateY(8px); }
.how-card:hover .how-shot { transform: none; }
.tone-white .how-shot.iphone { box-shadow: 0 -18px 50px -24px rgba(30,27,24,.35); }
@media (max-width: 700px) {
  .how-card { min-height: 0; }
  .how-shot.iphone { width: 64%; height: 250px; }
  #how .section-lead, #tour .section-lead { display: none; }
  #how .section-title, #tour .section-title { margin-bottom: 28px; }
}

/* ---- a look inside: every screen is there, a tab only shows one */
.tour-stack { position: relative; aspect-ratio: 2880 / 1800; background: var(--surface); }
.tour-stack img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .16s ease; }
.tour-stack img[data-on="true"] { opacity: 1; }
.tour-tabs button { touch-action: manipulation; }

/* ---- what you get: the features as one sentence in large type; one word lit */
.feat-flow { margin-top: 34px; max-width: 1060px; font-family: var(--serif); font-size: clamp(31px, 5vw, 62px); line-height: 1.14; letter-spacing: -.012em; }
.fw { display: inline; padding: 0; margin: 0; border: none; background: none; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer;
  color: color-mix(in srgb, var(--text) 38%, var(--paper)); transition: color .35s ease; -webkit-tap-highlight-color: transparent; }
.fw:nth-child(3n+2) { font-style: italic; }
.fw::after { content: "·"; display: inline-block; margin: 0 .26em; color: var(--clay); font-style: normal; }
.fw:last-child::after { content: "."; margin: 0; color: inherit; }
.fw.on { color: var(--text); text-decoration: underline; text-decoration-color: var(--clay); text-decoration-thickness: .055em; text-underline-offset: .16em; }
.fw:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }
.feat-cap { margin: 30px 0 0; min-height: 34px; font-family: var(--hand); font-size: 30px; line-height: 1.1; color: var(--clay); }
.feat-cap::before { content: "↳ "; font-family: var(--font); font-size: 20px; }
.feat-cap.in { animation: tick .35s cubic-bezier(.2,.7,.2,1); }
@media (max-width: 700px) {
  .feat-flow { margin-top: 22px; font-size: 30px; line-height: 1.2; }
  .feat-cap { margin-top: 20px; font-size: 25px; min-height: 56px; }
}

/* ---- integrations: the title in the middle, the logos around it, still */
#integrations { padding: 84px 0; }
.ring { position: relative; height: 600px; max-width: 1080px; margin: 0 auto; }
.ring-mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(430px, 44%); text-align: center; }
.ring-mid .section-title { margin: 0 auto 14px; text-align: center; font-size: clamp(30px, 3.6vw, 46px); }
.ring-foot { margin: 0; font-size: 13.5px; color: var(--text-muted); }
.lg { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center;
  transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.lg:hover { transform: translate(-50%, -50%) scale(1.1); }
.lg svg { width: 64px; height: 64px; display: block; }
.lg:nth-child(3n) svg { width: 76px; height: 76px; }
.lg:nth-child(4n+1) svg { width: 56px; height: 56px; }
.lg-ink svg { fill: var(--ink); }
.lg-word b { font-size: 38px; font-weight: 800; letter-spacing: -.045em; line-height: 1; color: var(--c); white-space: nowrap; }
.lg-mollie b { letter-spacing: -.03em; }
:root[data-theme="dark"] .lg-word b { color: var(--text); }
.lg em { position: absolute; top: -17px; right: -24px; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--clay); border: 1px solid var(--clay); padding: 2px 6px; background: var(--paper); transform: rotate(7deg); white-space: nowrap; }
@media (max-width: 900px) {
  /* No room for an oval: six logos above the title, six below. */
  .ring { height: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 10px; align-items: center; justify-items: center; }
  .ring-mid { position: static; transform: none; width: auto; grid-column: 1 / -1; order: 2; padding: 14px 0; }
  .lg { position: relative; left: auto; top: auto; transform: none; order: 3; }
  .lg:hover { transform: none; }
  .lg:nth-child(-n+7) { order: 1; }
  .lg svg, .lg:nth-child(3n) svg { width: 48px; height: 48px; }
  .lg:nth-child(4n+1) svg { width: 42px; height: 42px; }
  .lg-word b { font-size: 26px; }
  .lg { flex-direction: column; gap: 7px; }
  .lg em { position: static; transform: none; font-size: 8.5px; padding: 1px 5px; }
}
@media (max-width: 700px) { #integrations { padding: 64px 0; } .ring-mid .section-title { font-size: 30px; } }

/* ---- made to fit: one line each */
.fit-list li { padding: 15px 0; display: flex; align-items: baseline; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.fit-list b { display: inline; margin: 0; font-size: 16px; }
.fit-list span { font-size: 14px; text-align: right; }

/* ---- languages: bubbles thrown on the page, not set in a grid */
.bubbles { display: block; position: relative; height: 330px; padding: 0; }
.bubble { position: absolute; left: var(--x); top: var(--y); white-space: nowrap; rotate: var(--r); justify-self: auto; }
.b-accent { transform: none; justify-self: auto; }
.b-white { font-size: clamp(34px, 5.6vw, 52px); }
.b-ink { font-size: clamp(28px, 4.6vw, 42px); }
.b-blush { background: var(--blush); color: #1E1B18; border-color: var(--blush); font-size: clamp(20px, 3vw, 27px); }
.b-ghost { font-size: clamp(18px, 2.8vw, 24px); justify-self: auto; }
@media (prefers-reduced-motion: no-preference) {
  .bubble, .b-accent { animation: bubbleIn .5s cubic-bezier(.2,.7,.2,1) both, drift 6s ease-in-out var(--d) infinite; }
}
@keyframes drift { 0%, 100% { translate: 0 -5px; } 50% { translate: 0 6px; } }
@media (max-width: 700px) {
  .bubbles { height: 270px; }
  .bubble { padding: 11px 14px; }
}

/* ---- where 1% goes: a band of the kinds of causes, sliding by */
.causes { margin-top: 64px; overflow: hidden; border-top: 1px solid rgba(245,242,235,.14); border-bottom: 1px solid rgba(245,242,235,.14);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.causes-track { display: flex; width: max-content; }
.causes-track span { display: inline-flex; align-items: center; gap: 12px; padding: 18px 34px; white-space: nowrap; font-size: 15px; }
.causes-track svg { width: 26px; height: 26px; fill: none; stroke: var(--clay); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.causes-track b { font-weight: 600; }
@media (prefers-reduced-motion: no-preference) { .causes-track { animation: slide 38s linear infinite; } }
@media (prefers-reduced-motion: reduce) { .causes-track { flex-wrap: wrap; width: auto; justify-content: center; } .causes-track [data-copy] { display: none; } }
@keyframes slide { to { transform: translateX(-50%); } }
#impact { padding-bottom: 0; }
#impact .causes { margin-bottom: 0; }
@media (max-width: 700px) { .causes { margin-top: 40px; } .causes-track span { padding: 14px 20px; font-size: 14px; } }

/* ---- live preview on a phone: four tabs that fit and keep their size */
@media (max-width: 800px) {
  .demo-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; padding: 6px; gap: 0; }
  .demo-nav button { width: 100%; text-align: center; padding: 10px 2px; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .demo-nav button[aria-current="true"] { font-weight: 600; background: #F2EDE3; }
  .demo-main { padding: 18px 16px 20px; min-width: 0; }
  .demo-timer { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px; }
  .demo-timer .t { min-width: 0; font-size: 34px; }
  .demo-timer select { grid-column: 1 / -1; grid-row: 2; width: 100%; min-width: 0; }
  .demo-timer button { grid-column: 2; grid-row: 1; }
  .demo-shell { min-width: 0; }
}
