/* Fonts: Funnel Display (headings), Instrument Serif italic (changing word, quote), Geist (text, same as the app) */
@font-face { font-family: "Funnel Display"; src: url("/fonts/funnel-display-latin-wght-normal.woff2") format("woff2"); font-weight: 300 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Funnel Display"; src: url("/fonts/funnel-display-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 300 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; src: url("/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; src: url("/fonts/instrument-serif-latin-ext-400-italic.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* The headline's colour animates, and the hero's glow follows it */
@property --c { syntax: "<color>"; inherits: true; initial-value: #1d4ed8; }

:root {
  color-scheme: light;
  --display: "Funnel Display", "Geist", system-ui, sans-serif;
  --accent-font: "Instrument Serif", Georgia, serif;
  --background: #ffffff;
  --ink: #0e1b3d;
  --ink-hover: #22345f;
  --on-ink: #f7f9ff;
  --muted: #eef1f7;
  --text-2: #515b73;
  --border: #e0e5ee;
  --input: #c6cede;
  --ring: #1d4ed8;
  --destructive: #d81e2c;
  /* Same four colours as the board: private, group, front desk, rentals */
  --blue: #1d4ed8;
  --amber: #b45309;
  --violet: #7c3aed;
  --teal: #0f766e;
  --radius: 0.625rem;
  --radius-lg: 1rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --pad: clamp(72px, 10vw, 128px);
  --shadow: 0 1px 2px rgb(14 27 61 / 0.06), 0 24px 60px -24px rgb(14 27 61 / 0.3);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--background); color: var(--ink); font: 400 1rem/1.55 "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ul, figure, fieldset, legend, blockquote { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul { list-style: none; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(1240px, 100%); margin-inline: auto; padding-inline: 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 40; padding: 10px 16px; background: var(--ink); color: var(--on-ink); border-radius: var(--radius); }
.skip:focus { top: 12px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--display); font-size: 1.3125rem; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }

/* Top of page: just the logo (and a quiet language switch) */
.top { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 76px; }

/* Bar that slides in after the first section */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 30; background: rgb(255 255 255 / 0.92); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); border-bottom: 1px solid var(--border); transform: translateY(-100%); visibility: hidden; transition: transform 240ms var(--ease), visibility 0s linear 240ms; }
.bar.is-on { transform: none; visibility: visible; transition: transform 240ms var(--ease); }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.bar-right { display: flex; align-items: center; gap: 10px; }
.menu { display: none; gap: 2px; }
.menu a { padding: 10px 12px; border-radius: 8px; color: var(--text-2); font-size: 0.9375rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: color 140ms var(--ease), background-color 140ms var(--ease); }
.menu a:hover { background: var(--muted); color: var(--ink); }
.lang-menu { position: relative; }
.lang-menu-bar { display: none; }
.lang-menu summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px 0 12px; border: 1px solid var(--border); border-radius: var(--radius); background: rgb(255 255 255 / 0.7); font-size: 0.875rem; font-weight: 500; cursor: pointer; list-style: none; transition: background-color 140ms var(--ease); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { background: var(--background); }
.flag { flex: none; width: 22px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgb(14 27 61 / 0.14); }
.lang-chev, .lang-tick { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lang-chev { color: var(--text-2); transition: transform 140ms var(--ease); }
.lang-menu[open] .lang-chev { transform: rotate(180deg); }
.lang-menu nav { position: absolute; right: 0; top: 52px; z-index: 40; display: grid; min-width: 190px; padding: 6px; background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.lang-menu nav a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: 8px; font-size: 0.9375rem; font-weight: 500; text-decoration: none; }
.lang-menu nav a:hover { background: var(--muted); }
.lang-menu nav a[aria-current] { background: var(--muted); }
.lang-tick { margin-left: auto; }
.m-menu { position: relative; }
.m-menu summary { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; list-style: none; }
.m-menu summary::-webkit-details-marker { display: none; }
.m-menu summary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.m-menu nav { position: absolute; right: 0; top: 52px; display: grid; min-width: 200px; padding: 6px; background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.m-menu nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; font-weight: 500; text-decoration: none; }
.m-menu nav a:hover { background: var(--muted); }

/* Segmented control: the app's tab list */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: rgb(14 27 61 / 0.06); border-radius: var(--radius); }
.seg-item { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; min-width: 38px; padding: 0 10px; border: 0; border-radius: calc(var(--radius) - 3px); background: transparent; color: var(--text-2); font: inherit; font-size: 0.875rem; font-weight: 500; text-decoration: none; cursor: pointer; transition: color 140ms var(--ease), background-color 140ms var(--ease); }
.seg-item:hover { color: var(--ink); }
.seg-item.is-on { background: var(--background); color: var(--ink); box-shadow: 0 1px 2px rgb(14 27 61 / 0.14); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; background: var(--ink); color: var(--on-ink); border: 1px solid transparent; border-radius: var(--radius); font: inherit; font-size: 0.9375rem; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 140ms var(--ease), transform 100ms var(--ease); }
.btn:hover { background: var(--ink-hover); }
.btn:active { transform: translateY(1px); }
.btn[aria-busy="true"] { cursor: progress; opacity: 0.8; }
.btn-lg { min-height: 52px; padding: 8px 24px; font-size: 1.0625rem; line-height: 1.25; white-space: normal; text-align: center; }
.btn-sm { min-height: 44px; padding: 0 14px; }
.btn-full { width: 100%; }
.btn-grow { flex: 1; }
.btn-ghost { background: var(--background); color: var(--ink); border-color: var(--input); }
.btn-ghost:hover { background: var(--muted); }
.spin { width: 15px; height: 15px; border: 2px solid rgb(255 255 255 / 0.35); border-top-color: currentColor; border-radius: 50%; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Type */
.kicker { margin-bottom: 14px; font-size: 0.9375rem; font-weight: 600; color: var(--text-2); }
.k-blue { color: var(--blue); } .k-violet { color: var(--violet); } .k-teal { color: var(--teal); }
h1 { font-family: var(--display); font-size: clamp(2.75rem, 8.6vw, 6.5rem); line-height: 1.02; font-weight: 600; letter-spacing: -0.03em; }
.h1-line { display: block; }
h2 { font-family: var(--display); font-size: clamp(2.125rem, 4.8vw, 3.5rem); line-height: 1.04; font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; hyphens: auto; overflow-wrap: break-word; }
.lead { max-width: 54ch; font-size: clamp(1.0625rem, 1.7vw, 1.25rem); line-height: 1.45; color: var(--text-2); text-wrap: pretty; }
.body { margin-top: 18px; max-width: 52ch; font-size: 1.0625rem; color: var(--text-2); text-wrap: pretty; }

/* Hero */
.hero { --c: #1d4ed8; position: relative; overflow: clip; padding-bottom: var(--pad); transition: --c 800ms var(--ease);
  background:
    radial-gradient(60% 46% at 92% 6%, color-mix(in srgb, var(--c) 34%, transparent), transparent 72%),
    radial-gradient(46% 36% at 4% 18%, rgb(255 196 150 / 0.5), transparent 70%),
    linear-gradient(180deg, #fbfcff 0%, #ffffff 60%);
}
.hero h1 { margin-top: clamp(28px, 5vw, 64px); text-align: center; }

/* Changing word: every option shares one grid cell, so the line never jumps */
.rot { display: grid; justify-items: center; overflow: clip; overflow-clip-margin: 0.14em; padding-inline: 0.1em; }
.rot-item { grid-area: 1 / 1; white-space: nowrap; font-family: var(--accent-font); font-style: italic; font-weight: 400; font-size: calc(1.1em * var(--fit, 1)); line-height: 1.02; letter-spacing: -0.015em; align-self: center; color: var(--c-item); opacity: 0; transform: translateY(70%); transition: transform 560ms var(--ease), opacity 360ms var(--ease); }
.rot-item.is-on { opacity: 1; transform: none; }
.rot-item.is-out { opacity: 0; transform: translateY(-70%); }

.hero-side { display: grid; gap: 24px; margin-top: 28px; justify-items: center; text-align: center; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 10px; }
.rot-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: transparent; border: 1px solid var(--input); border-radius: 50%; color: var(--ink); cursor: pointer; transition: background-color 140ms var(--ease); }
.rot-toggle:hover { background: var(--muted); }
.rot-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rot-toggle .i-play { display: none; }
.rot-toggle[aria-pressed="true"] .i-pause { display: none; }
.rot-toggle[aria-pressed="true"] .i-play { display: block; }

.tour { margin-top: clamp(40px, 6vw, 72px); }
.tour-switch { display: flex; justify-content: center; margin-top: 20px; }

.tour-frame { margin-top: 0; }
.stage { position: relative; overflow: hidden; }
.stage img { display: block; width: 100%; height: auto; }

/* Screenshot frames */
.frame { margin-top: 20px; background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.frame-tall { margin-top: 0; }

/* Coloured stories */
.story { padding-block: var(--pad); }
.tint-sky { background: linear-gradient(180deg, #eaf1ff 0%, #f6f9ff 100%); }
.tint-lilac { background: linear-gradient(135deg, #f3ecff 0%, #fff0e6 100%); }
.tint-mint { background: linear-gradient(180deg, #e4f7f0 0%, #f4fcf9 100%); }
.story-grid { display: grid; gap: 48px; align-items: center; }
.ticks { margin-top: 24px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; font-size: 0.9375rem; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 12px; height: 7px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg) scale(0.9); }
.wide-head { display: grid; gap: 4px; margin-bottom: clamp(28px, 4vw, 44px); }
.wide-head .body { margin-top: 12px; }

/* iPhone */
.phone-wrap { justify-self: center; width: min(340px, 80vw); }
.iphone { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgb(14 27 61 / 0.28)); }

/* The team room wall */
.wall { position: relative; overflow: clip; padding-top: var(--pad); color: var(--on-ink);
  background: linear-gradient(180deg, #0e1b3d 0%, #1c3c8f 30%, #5f6fd1 52%, #c98fc0 72%, #f8b7a0 88%, #ffd9ae 100%);
}
.wall .kicker { color: #bcd0ff; }
.wall .body { color: #dce5ff; }
.wall-head { position: relative; z-index: 1; padding-bottom: clamp(36px, 5vw, 64px); }
.wall-head h2, .wall-head .body { max-width: 760px; }
.room { position: relative; padding-inline: 20px; padding-bottom: clamp(56px, 7vw, 92px); }
.room::before { content: ""; position: absolute; left: 50%; top: -14%; width: min(1200px, 120%); height: 90%; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 50%, rgb(255 255 255 / 0.32), transparent 72%); pointer-events: none; }
.tv { position: relative; z-index: 1; width: min(1000px, 100%); margin-inline: auto; padding: clamp(6px, 1vw, 12px); padding-bottom: clamp(9px, 1.2vw, 16px); background: linear-gradient(180deg, #1b1c20, #0a0a0c); border-radius: clamp(8px, 1vw, 12px); box-shadow: 0 2px 0 rgb(255 255 255 / 0.08) inset, 0 40px 60px -18px rgb(14 27 61 / 0.6), 0 8px 18px rgb(14 27 61 / 0.3); }
.tv-screen { overflow: hidden; border-radius: 3px; background: #000; }
.tv-led { position: absolute; right: 18px; bottom: clamp(3px, 0.4vw, 6px); width: 4px; height: 4px; border-radius: 50%; background: #5bf08f; box-shadow: 0 0 6px #5bf08f; }
.floor { position: absolute; inset: auto 0 0 0; height: clamp(40px, 5vw, 64px); background: linear-gradient(180deg, #3a2740 0%, #241a2e 100%); box-shadow: 0 -5px 0 rgb(255 255 255 / 0.2); }

/* Origin and quote */
.origin { padding-block: var(--pad); background: #fffaf2; }
.origin-grid { display: grid; gap: 40px; }
.statement { font-family: var(--display); font-size: clamp(1.75rem, 3.6vw, 2.875rem); line-height: 1.12; font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
.statement:only-child { grid-column: 1 / -1; max-width: 30ch; margin-inline: auto; text-align: center; }
.quote { padding: clamp(24px, 3vw, 40px); background: var(--background); border: 1px solid #f1e6d3; border-radius: var(--radius-lg); }
.quote blockquote { font-family: var(--accent-font); font-style: italic; font-size: clamp(1.625rem, 2.6vw, 2.25rem); line-height: 1.18; color: var(--ink); text-wrap: pretty; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 0.9375rem; line-height: 1.35; color: var(--text-2); }
.quote strong { color: var(--ink); font-weight: 600; }
.q-av { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: #e8efff; color: var(--blue); font-weight: 700; font-size: 0.875rem; }
.q-flag:empty { display: none; }
.q-flag { margin-top: 16px; padding: 6px 10px; border: 1px dashed #b98a3e; border-radius: 6px; background: #fff6df; color: #6b4a12; font-size: 0.8125rem; font-weight: 500; }

/* Early access */
.access { padding-block: var(--pad); color: var(--on-ink); background: radial-gradient(70% 60% at 90% 10%, #2f55c9 0%, transparent 70%), radial-gradient(60% 60% at 0% 100%, #7c3aed 0%, transparent 62%), #0e1b3d; }
.access .kicker { color: #bcd0ff; }
.access .body { color: #dce5ff; }
.card { position: relative; display: grid; gap: 20px; padding: 24px 20px; background: var(--background); color: var(--ink); border-radius: var(--radius-lg); box-shadow: 0 30px 70px -24px rgb(0 0 0 / 0.55); }
.field { display: grid; gap: 8px; }
.field > label, .flabel, .sub label { font-size: 0.9375rem; font-weight: 500; }
.opt { color: var(--text-2); font-weight: 400; }
input[type="text"], input[type="email"], select, textarea { width: 100%; min-height: 44px; padding: 10px 12px; background: var(--background); color: var(--ink); border: 1px solid var(--input); border-radius: var(--radius); font: inherit; font-size: 1rem; transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease); }
select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23515b73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
textarea { resize: vertical; min-height: 88px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px rgb(29 78 216 / 0.2); }
[aria-invalid="true"] { border-color: var(--destructive) !important; }
.err { color: var(--destructive); font-size: 0.875rem; font-weight: 500; }
.err:empty { display: none; }
.sub { display: grid; gap: 8px; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--input); border-radius: var(--radius); font-size: 0.9375rem; transition: background-color 140ms var(--ease), color 140ms var(--ease), border-color 140ms var(--ease); }
.chip:hover span { background: var(--muted); }
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--ring); outline-offset: 2px; }
.fine { color: var(--text-2); font-size: 0.8125rem; text-wrap: pretty; }
.fine a { text-underline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { display: grid; gap: 8px; padding-block: 24px; }
.done:focus { outline: none; }
.done svg { width: 32px; height: 32px; fill: none; stroke: var(--teal); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.done h3 { font-family: var(--display); font-size: 1.625rem; font-weight: 600; letter-spacing: -0.02em; }
.done p { color: var(--text-2); overflow-wrap: anywhere; }

/* Footer */
.foot { padding-block: 56px 32px; border-top: 1px solid var(--border); color: var(--text-2); font-size: 0.9375rem; }
.foot-in { display: grid; gap: 28px; }
.foot-brand p { max-width: 34ch; }
.foot-mail { margin-top: 10px; }
.foot-mail a { color: var(--ink); text-underline-offset: 3px; }
.foot-h { color: var(--ink); font-size: 0.875rem; font-weight: 600; }
.foot-nav { display: grid; align-content: start; justify-items: start; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; transition: color 140ms var(--ease); }
.foot-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-nav a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-base { margin-top: 28px; font-size: 0.875rem; }
mark { padding: 1px 6px; background: #fff6df; color: var(--ink); border: 1px dashed #b98a3e; border-radius: 4px; font-weight: 500; }

/* Early access: one field, the rest opens in a dialog */
.access-in { display: grid; justify-items: center; text-align: center; }
.access-in .body { margin-inline: auto; }
.pre { display: grid; gap: 8px; width: min(560px, 100%); margin-top: 36px; text-align: left; }
.pre label { font-size: 0.9375rem; font-weight: 500; color: #dce5ff; }
.pre-row { display: flex; gap: 8px; }
.pre-row input { flex: 1; min-width: 0; min-height: 52px; border-color: transparent; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #e3eaff; }
.access .err { color: #ffb3b8; }
.pre-done { margin-top: 36px; font-family: var(--display); font-size: 1.5rem; font-weight: 600; }
.pre-done:focus { outline: none; }
.modal { width: min(560px, calc(100% - 24px)); max-height: min(92dvh, 940px); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--background); color: var(--ink); box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.5); overflow: auto; overscroll-behavior: contain; }
.modal::backdrop { background: rgb(14 27 61 / 0.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in 220ms var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } }
.modal form { display: grid; gap: 20px; padding: 24px 20px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-head h2 { font-size: 1.75rem; }
.modal-head p { margin-top: 6px; color: var(--text-2); }
.x { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: -8px -8px 0 0; padding: 0; background: transparent; border: 0; border-radius: 50%; color: var(--text-2); cursor: pointer; }
.x:hover { background: var(--muted); color: var(--ink); }
.x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.fields { display: grid; gap: 20px; }
.done .btn { justify-self: start; margin-top: 8px; }

/* Other pages: one column of text, screenshots beside it on wide screens */
.sub { background: linear-gradient(180deg, #eef3ff 0, #ffffff 560px) no-repeat, #ffffff; }
.page-head { max-width: 860px; padding-block: clamp(32px, 6vw, 80px) clamp(32px, 5vw, 56px); }
.page-h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.04; text-wrap: balance; hyphens: auto; overflow-wrap: break-word; }
.page-head .lead { margin-top: 20px; }
.updated { margin-top: 14px; color: var(--text-2); font-size: 0.9375rem; }
.h3 { font-family: var(--display); font-size: 1.5rem; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.feats { display: grid; }
.feat { display: grid; gap: 28px; align-items: center; padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--border); }
.feat h2 { font-size: clamp(1.75rem, 3vw, 2.375rem); }
.feat .body { margin-top: 12px; }
.feat .frame { margin-top: 0; }
.feat-phone { justify-self: center; width: min(280px, 70vw); }
.page-cta { display: grid; justify-items: center; margin-block: clamp(24px, 4vw, 48px) var(--pad); padding: clamp(40px, 6vw, 72px) 20px; text-align: center; background: linear-gradient(135deg, #eaf1ff 0%, #f3ecff 100%); border-radius: var(--radius-lg); }
.page-cta h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); }
.page-cta .body { margin-top: 12px; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.beta-grid { display: grid; gap: 40px; align-items: start; padding-bottom: var(--pad); }
.beta-text .ticks li { font-size: 1rem; }
.beta-grid .card { border: 1px solid var(--border); box-shadow: var(--shadow); }
.note-box { margin-top: 28px; padding: 14px 16px; background: #fff6df; border: 1px solid #f1dfb5; border-radius: var(--radius); font-size: 0.9375rem; }
.prose-page { padding-bottom: var(--pad); }
.prose { display: grid; gap: 14px; max-width: 70ch; font-size: 1.0625rem; color: var(--text-2); }
.prose-lg { gap: 22px; font-size: clamp(1.125rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--ink); }
.prose h2 { margin-top: 22px; font-size: 1.5rem; line-height: 1.2; color: var(--ink); letter-spacing: -0.02em; }
.prose ul { display: grid; gap: 8px; padding-left: 1.2em; list-style: disc; }
.prose a { color: var(--blue); text-underline-offset: 2px; }
.facts { max-width: 70ch; margin: 0 0 28px; border-top: 1px solid var(--border); }
.facts div { display: grid; gap: 4px; padding-block: 14px; border-bottom: 1px solid var(--border); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--text-2); }

/* Phone width: a wide screenshot is unreadable when shrunk, so show its left part at a readable size */
@media (max-width: 719px) {
  .frame-crop img { width: 200%; max-width: none; }
  .tour-frame { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tour-frame::-webkit-scrollbar { display: none; }
  .stage { width: 200%; }
  .frame-tall img { width: 160%; max-width: none; }
  .seg-item { padding: 0 8px; }
  .tour-tabs .seg-item { padding: 0 16px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; padding-inline: 12px; }
}
@media (max-width: 479px) {
  .pre-row { flex-direction: column; }
  .cta-row .btn { width: 100%; }
}
@media (min-width: 720px) {
  .wrap { padding-inline: 32px; }
  .room { padding-inline: 32px; }
  .card { padding: 28px; }
  .modal form { padding: 28px; }
  .foot-in { grid-template-columns: 2fr 1fr 1fr; }
  .facts div { grid-template-columns: 220px 1fr; gap: 16px; }
}
@media (min-width: 720px) { .m-menu { display: none; } .lang-menu-bar { display: block; } }
@media (min-width: 1040px) { .menu { display: flex; } }
@media (min-width: 960px) {
  .story-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .story-book { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; }
  .story-flip { grid-template-columns: minmax(0, 0.8fr) 1fr; }
  .wide-head { grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; }
  .wide-head .body { margin-top: 0; }
  .origin-grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
  .feat { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; }
  .beta-grid { grid-template-columns: 1fr minmax(0, 560px); gap: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition: none !important; }
}
