/* RotaCell website mock-up: the app's coloured-paper look. Fonts are self-hosted. */
@font-face { font-family: "Space Grotesk"; src: url(/fonts/SpaceGrotesk-Variable.ttf) format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url(/fonts/WorkSans.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #FDF8EE;
  --paper-2: #F6F0E2;
  --grid: rgba(35, 35, 35, .055);
  --ink: #232323;
  --line: #232323;       /* outlines and offset shadows: same as ink in light mode, cream in dark mode */
  --soft-line: rgba(35, 35, 35, .22);
  --ink-soft: #55524a;
  --c1: #84BCE4;   /* blue  (Calendar) */
  --c1-tint: #E3EFF9;
  --c2: #FFA58A;   /* salmon */
  --c3: #FFD23F;   /* yellow */
  --c4: #9CD89A;   /* green */
  --c5: #C3B1E1;   /* lavender */
  --orange: #EE7F00;
  --night: #2B2B2B;
  --field: #fff;
  --err: #B00020;
  color-scheme: light dark;
  --radius: 22px;
  --shadow: 0 6px 0 var(--line);
  --display: "Space Grotesk", "Arial Narrow", system-ui, sans-serif;
  --body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
body[data-theme="slate"]    { --paper:#E9EEF5; --paper-2:#DCE5F0; --c1:#8AB0D3; --c1-tint:#DCE8F4; --c2:#D9A0A0; --c3:#DFBD6B; --c4:#7DB8A0; --c5:#9AA0D0; }
body[data-theme="graphite"] { --paper:#EDEDED; --paper-2:#DEDEDE; --c1:#B3B3B3; --c1-tint:#E4E4E4; --c2:#C4C4C4; --c3:#D0D0D0; --c4:#A9A9A9; --c5:#BDBDBD; }
body[data-theme="pop"]      { --paper:#FFF3C8; --paper-2:#FFEAA6; --c1:#1CA5FF; --c1-tint:#CFEAFF; --c2:#FF3C8C; --c3:#FFCC00; --c4:#10DD7C; --c5:#B24CFF; }
body[data-theme="forest"]   { --paper:#E3F0DF; --paper-2:#D2E6CD; --c1:#5FB09C; --c1-tint:#D2EBE4; --c2:#D98B5F; --c3:#DDB83C; --c4:#7DC468; --c5:#9F86C0; }
body[data-theme="berry"]    { --paper:#FCE6F1; --paper-2:#F8D3E5; --c1:#9C94E8; --c1-tint:#E6E3FB; --c2:#FF6B9B; --c3:#F9AE55; --c4:#5ECDB9; --c5:#D78AE8; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); font-size: 18px; line-height: 1.55;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px; background-position: 0 var(--bgshift, 0px);
  transition: background-color .5s ease; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); line-height: 1.04; letter-spacing: -.025em; margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.7rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.5rem; letter-spacing: -.015em; }
p { margin: 0; }
.lede { font-size: clamp(1.1rem, 1.7vw, 1.32rem); color: var(--ink-soft); max-width: 36em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; padding: 7px 14px; border: 2px solid var(--line); border-radius: 999px; background: var(--c1);
}
.plus { font-family: var(--display); font-weight: 700; font-size: .68rem; letter-spacing: .08em; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: var(--paper); vertical-align: middle; margin-left: 6px; }

/* ---------- Keys (real buttons, thick outline, offset shadow, bouncy press) ---------- */
.key {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--ink); background: var(--c1);
  border: 2.5px solid var(--line); border-radius: 18px; padding: 15px 26px; box-shadow: var(--shadow);
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), box-shadow .18s ease, background .3s;
}
.key:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--line); }
.key:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--line); }
.key.dark { background: var(--ink); color: var(--paper); box-shadow: 0 6px 0 var(--c1); border-color: var(--line); }
.key.dark:hover { box-shadow: 0 8px 0 var(--c1); }
.key.dark:active { box-shadow: 0 1px 0 var(--c1); }
.key.ghost { background: transparent; }
.key svg { width: 22px; height: 22px; }
.key small { display: block; font-weight: 500; font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; opacity: .8; line-height: 1; margin-bottom: 2px; }
.key .two { text-align: left; line-height: 1.05; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 14px 0 auto; z-index: 50; pointer-events: none; }
.nav .wrap {
  pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(14px);
  border: 2.5px solid var(--line); border-radius: 20px; padding: 10px 14px 10px 16px; box-shadow: 0 5px 0 var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.brand img { width: 34px; height: 34px; border-radius: 9px; border: 2px solid var(--line); }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 12px; transition: background .2s; }
.nav ul a:hover { background: var(--c1-tint); }
.nav .key { padding: 10px 18px; font-size: .95rem; box-shadow: 0 4px 0 var(--line); white-space: nowrap; }
@media (max-width: 820px) { .nav ul { display: none; } .brand { font-size: 1.15rem; } .nav .key { padding: 8px 14px; font-size: .88rem; } }

/* ---------- Hero ---------- */
.hero { padding: 150px 0 80px; position: relative; overflow-x: clip; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 em { font-style: normal; background: var(--c3); padding: 0 .12em; border-radius: .18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; border: 3px solid var(--line); display: inline-block; transform: rotate(-1.5deg); }
.hero .lede { margin: 26px 0 32px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero .note { font-size: .92rem; color: var(--ink-soft); margin-top: 18px; }
.stage { position: relative; justify-self: center; width: min(378px, calc(78vw - 22px)); }
.phone {
  position: relative; border: 3px solid var(--line); border-radius: 44px; background: var(--paper); overflow: hidden;
  box-shadow: 0 8px 0 var(--line); box-sizing: content-box;
}
/* The screen area is exactly the screenshot's proportions (720 x 1564), so nothing is cropped. */
.phone::before { content: ""; display: block; padding-top: 217.22%; }
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; display: block; }
.phone.tilt { transform: rotate(3deg); }
.float {
  position: absolute; z-index: 3; background: var(--paper); border: 2.5px solid var(--line); border-radius: 18px; padding: 12px 16px;
  box-shadow: 0 5px 0 var(--line); font-family: var(--display); font-weight: 700; font-size: .98rem; white-space: nowrap; will-change: transform;
}
.float small { display: block; font-family: var(--body); font-weight: 600; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.float.f1 { left: -64px; top: 12%; background: var(--c1); }
.float.f2 { right: -48px; top: 38%; background: var(--c3); }
.float.f3 { left: -40px; bottom: 14%; background: var(--c4); }
.float.f4 { right: -28px; bottom: 4%; background: var(--c5); }
.chip { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #fff; font-family: var(--display); font-weight: 700; font-size: .92rem; border: 2px solid var(--line); }
.chip.E { background: #2B4DA0; } .chip.L { background: var(--orange); } .chip.N { background: #3a3a3a; } .chip.D { background: #2E9E5B; } .chip.off { background: var(--paper-2); color: var(--ink); }
@media (max-width: 900px) {
  .hero { padding-top: 120px; } .hero .wrap { grid-template-columns: 1fr; }
  .float.f1 { left: -10px; } .float.f2 { right: -8px; } .float.f3 { left: -6px; } .float.f4 { right: -6px; }
}

/* ---------- Marquee ---------- */
.marquee { border-block: 2.5px solid var(--line); background: var(--ink); color: var(--paper); overflow: hidden; padding: 16px 0; transform: rotate(-1deg); margin: 30px -20px 0; }
.marquee .track { display: flex; gap: 38px; width: max-content; animation: slide 38s linear infinite; font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.01em; }
.marquee span { display: inline-flex; align-items: center; gap: 38px; white-space: nowrap; }
.marquee span::after { content: "✦"; color: var(--c3); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Section scaffolding ---------- */
section { position: relative; }
.pad { padding: 120px 0; }
.head { max-width: 780px; margin-bottom: 56px; }
.head h2 { margin: 18px 0 18px; }

/* ---------- Showcase: sticky phone, scrolling steps ---------- */
.showcase .grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
.sticky { position: sticky; top: 12vh; align-self: start; justify-self: center; width: min(358px, calc(80vw - 22px), calc((100vh - 12vh - 60px) * 0.46)); }
.sticky .phone img { opacity: 0; transform: scale(1.04); transition: opacity .55s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.sticky .phone img.on { opacity: 1; transform: scale(1); }
.blob { position: absolute; inset: -9% -14%; z-index: -1; border-radius: 48% 52% 46% 54%; background: var(--c1); border: 2.5px solid var(--line); transition: background .5s, border-radius 1.2s ease; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 20px 0; opacity: .32; transition: opacity .4s; }
.step.on { opacity: 1; }
.step .n { font-family: var(--display); font-weight: 700; color: var(--ink-soft); letter-spacing: .1em; font-size: .85rem; }
.step h3 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.step p { color: var(--ink-soft); max-width: 30em; }
.step .step-img { display: none; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.pill { font-weight: 600; font-size: .86rem; padding: 6px 13px; border: 2px solid var(--line); border-radius: 999px; background: var(--paper); }
@media (max-width: 900px) {
  .showcase .grid { grid-template-columns: 1fr; gap: 0; } .sticky { display: none; }
  .step { min-height: 0; opacity: 1; padding: 44px 0; } .step .step-img { display: block; width: min(280px, calc(70vw - 16px)); margin: 18px auto 0; }
  .step .step-img .phone { border-radius: 36px; }
}

/* ---------- Circle (HTML replica of the app screen) ---------- */
.circle { background: var(--c1-tint); border-block: 2.5px solid var(--line); transition: background .5s; }
.circle .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.circle ul.tick { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 14px; }
.circle ul.tick li { display: flex; gap: 14px; align-items: flex-start; font-weight: 500; }
.circle ul.tick li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--c4); border: 2px solid var(--line); font-weight: 700; font-size: .9rem; }
.app-card { background: var(--paper); border: 2.5px solid var(--line); border-radius: 22px; box-shadow: 8px 10px 0 var(--line); padding: 20px; position: relative; max-width: 470px; justify-self: center; width: 100%; }
.app-card .tag { display: inline-flex; gap: 8px; align-items: center; background: var(--c1); border: 2px solid var(--line); border-radius: 999px; padding: 6px 14px; font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.dayrow { display: grid; grid-template-columns: 62px 44px 44px 1fr; align-items: center; gap: 8px; padding: 9px 0; border-top: 1.5px dashed var(--soft-line); opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .6s cubic-bezier(.3, 1.4, .5, 1); }
.dayrow.in { opacity: 1; transform: none; }
.dayrow .d { font-family: var(--display); font-weight: 700; font-size: .95rem; }
.dayrow .dash { text-align: center; color: var(--ink-soft); font-weight: 700; }
.status { justify-self: end; font-family: var(--display); font-weight: 700; font-size: .78rem; padding: 4px 11px; border: 2px solid var(--line); border-radius: 999px; white-space: nowrap; }
.status.both { background: var(--c2); }
.status.free { background: var(--paper); }
.cols { display: grid; grid-template-columns: 62px 44px 44px 1fr; gap: 8px; font-family: var(--display); font-weight: 700; font-size: .75rem; color: var(--ink-soft); margin: 14px 0 2px; text-transform: uppercase; letter-spacing: .08em; }
.popup {
  position: absolute; left: -34px; right: -26px; bottom: -78px; background: var(--c1-tint); border: 2.5px solid var(--line); border-radius: 22px; box-shadow: 0 7px 0 var(--line); padding: 16px 18px;
  display: flex; gap: 14px; align-items: center; transform: translateY(120%) scale(.96); opacity: 0; transition: transform .8s cubic-bezier(.3, 1.5, .5, 1) .9s, opacity .4s ease .9s;
}
.popup.in { transform: none; opacity: 1; }
.popup .ic { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--c1); border: 2px solid var(--line); display: grid; place-items: center; font-size: 1.4rem; }
.popup b { font-family: var(--display); font-size: 1.12rem; line-height: 1.1; display: block; }
.popup span { font-size: .88rem; color: var(--ink-soft); }
.circle .app-wrap { padding-bottom: 96px; }
@media (max-width: 900px) { .circle .grid { grid-template-columns: 1fr; } .popup { left: -8px; right: -8px; } }

/* ---------- Themes ---------- */
.themes .row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.swatch { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: .95rem; background: var(--paper); border: 2.5px solid var(--line); border-radius: 16px; padding: 10px 14px 10px 10px; display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 4px 0 var(--line); transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), box-shadow .18s; }
.swatch:hover { transform: translateY(-2px); }
.swatch[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: 0 4px 0 var(--c1); }
.swatch i { display: flex; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; }
.swatch i b { width: 13px; height: 22px; display: block; }
.demo-card { background: var(--c1-tint); border: 2.5px solid var(--line); border-radius: 26px; box-shadow: 10px 12px 0 var(--line); padding: 22px; max-width: 460px; width: 100%; justify-self: center; transition: background .5s; }
.demo-shift { border: 2.5px solid var(--line); border-radius: 18px; padding: 16px 18px; margin-top: 14px; display: flex; justify-content: space-between; align-items: center; font-family: var(--display); font-weight: 700; transition: background .5s; }
.demo-shift span { font-weight: 600; font-size: .95rem; }
.demo-shift:nth-child(2) { background: var(--c2); } .demo-shift:nth-child(3) { background: var(--c3); } .demo-shift:nth-child(4) { background: var(--c4); } .demo-shift:nth-child(5) { background: var(--c5); }
.demo-card .tag { background: var(--c1); }
@media (max-width: 900px) { .themes .row { grid-template-columns: 1fr; } }

/* ---------- Details grid ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--paper); border: 2.5px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 0 var(--line); padding: 26px; display: flex; flex-direction: column; gap: 10px; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), box-shadow .25s; }
.card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 12px 0 var(--line); }
.card .ico { width: 52px; height: 52px; border-radius: 15px; border: 2.5px solid var(--line); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 6px; }
.card:nth-child(6n+1) .ico { background: var(--c1); } .card:nth-child(6n+2) .ico { background: var(--c2); } .card:nth-child(6n+3) .ico { background: var(--c3); }
.card:nth-child(6n+4) .ico { background: var(--c4); } .card:nth-child(6n+5) .ico { background: var(--c5); } .card:nth-child(6n) .ico { background: var(--orange); }
.card p { color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } } @media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Night band (privacy) ---------- */
.night { background: var(--night); color: var(--paper); border-block: 2.5px solid var(--line); overflow: hidden; }
.night .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.night .lede { color: #cfc9b8; }
.night .eyebrow { background: var(--c3); color: var(--ink); }
.facts { display: grid; gap: 14px; }
.fact { display: flex; gap: 16px; align-items: flex-start; border: 2px solid rgba(253, 248, 238, .28); border-radius: 18px; padding: 16px 18px; }
.fact b { display: block; font-family: var(--display); font-size: 1.1rem; }
.fact span { color: #cfc9b8; font-size: .95rem; }
.fact i { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-style: normal; background: var(--c4); color: var(--ink); font-weight: 700; }
.night .key { margin-top: 28px; }
@media (max-width: 900px) { .night .grid { grid-template-columns: 1fr; } }

/* ---------- Languages / stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; background: var(--paper); border: 2.5px solid var(--line); border-radius: var(--radius); padding: 26px 12px; box-shadow: 0 6px 0 var(--line); }
.stat b { display: block; font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; }
.stat span { color: var(--ink-soft); font-weight: 600; }
.stat:nth-child(1) { background: var(--c1); } .stat:nth-child(2) { background: var(--c3); } .stat:nth-child(3) { background: var(--c4); } .stat:nth-child(4) { background: var(--c5); }
.langs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; justify-content: center; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 14px; }
.faq details { background: var(--paper); border: 2.5px solid var(--line); border-radius: 18px; box-shadow: 0 5px 0 var(--line); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-family: var(--display); font-weight: 700; font-size: 1.18rem; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); }

/* ---------- Final CTA + footer ---------- */
.final { text-align: center; }
.final .box { background: var(--c3); border: 3px solid var(--line); border-radius: 36px; box-shadow: 10px 12px 0 var(--line); padding: 70px 24px; position: relative; overflow: hidden; }
.final h2 { max-width: 14em; margin: 0 auto 18px; }
.final .lede { margin: 0 auto 32px; color: var(--ink); }
footer { padding: 50px 0 60px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; justify-content: space-between; border-top: 2.5px solid var(--line); padding-top: 28px; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; font-weight: 600; }
footer nav a { text-decoration: none; } footer nav a:hover { text-decoration: underline; }
footer small { color: var(--ink-soft); }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@keyframes bob { 50% { translate: 0 -10px; } }
.float { animation: bob 5s ease-in-out infinite; } .float.f2 { animation-delay: -1.2s; } .float.f3 { animation-delay: -2.4s; } .float.f4 { animation-delay: -3.4s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .dayrow, .popup { opacity: 1 !important; transform: none !important; transition: none; }
  .float, .marquee .track { animation: none; } .sticky .phone img { transition: none; }
}

@media (max-width: 480px) {
  .nav .wrap { padding: 8px 10px 8px 12px; gap: 8px; }
  .brand { font-size: 1rem; gap: 8px; } .brand img { width: 28px; height: 28px; }
  .nav .key { font-size: .8rem; padding: 7px 11px; }
}

/* ---------- Document pages (privacy, support) ---------- */
.doc-hero { padding: 150px 0 40px; }
.doc-hero h1 { margin: 20px 0 20px; font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 14em; }
.glance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.glance .g { border: 2.5px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 0 var(--line); padding: 18px 20px; }
.glance .g b { display: block; font-family: var(--display); font-size: 1.25rem; line-height: 1.1; margin-bottom: 4px; }
.glance .g span { font-size: .92rem; }
.glance .g1 { background: var(--c1); } .glance .g2 { background: var(--c3); } .glance .g3 { background: var(--c4); } .glance .g4 { background: var(--c5); }
@media (max-width: 900px) { .glance { grid-template-columns: 1fr 1fr; } } @media (max-width: 520px) { .glance { grid-template-columns: 1fr; } }
.doc-grid { display: grid; grid-template-columns: 250px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 104px; display: grid; gap: 4px; max-height: calc(100vh - 130px); overflow: auto; padding-right: 6px; }
.toc-h { font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.toc a { display: flex; gap: 10px; text-decoration: none; font-weight: 600; font-size: .92rem; padding: 7px 10px; border-radius: 12px; line-height: 1.25; }
.toc a b { font-family: var(--display); min-width: 1.4em; color: var(--ink-soft); }
.toc a:hover, .toc a.on { background: var(--c1); }
@media (max-width: 960px) { .doc-grid { grid-template-columns: 1fr; gap: 24px; } .toc { display: none; } }
.summary { background: var(--c1-tint); border: 2.5px solid var(--line); border-radius: var(--radius); box-shadow: 8px 10px 0 var(--line); padding: 26px 28px; font-size: 1.12rem; margin-bottom: 30px; }
.doc-sec { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 30px 0; border-top: 2px dashed var(--soft-line); scroll-margin-top: 100px; }
.doc-sec .num { width: 48px; height: 48px; border-radius: 15px; border: 2.5px solid var(--line); background: var(--c3); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.2rem; box-shadow: 0 4px 0 var(--line); }
.doc-sec:nth-of-type(4n+2) .num { background: var(--c4); } .doc-sec:nth-of-type(4n+3) .num { background: var(--c5); } .doc-sec:nth-of-type(4n+4) .num { background: var(--c2); }
.doc-sec h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: 14px; }
.doc-sec p, .doc-sec li { color: var(--ink-soft); }
.doc-sec p + p, .doc-sec p + ul, .doc-sec ul + p, .doc-sec p + .table { margin-top: 14px; }
.doc-sec ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.doc-sec b { color: var(--ink); }
.doc-sec a, .small a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.small { font-size: .92rem; color: var(--ink-soft); }
.table { border: 2.5px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--paper); }
.tr { display: grid; grid-template-columns: 1.1fr 3fr 1fr; gap: 16px; padding: 14px 18px; border-top: 1.5px solid var(--soft-line); font-size: .95rem; }
.tr.th { background: var(--c1); border-top: 0; font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
@media (max-width: 700px) { .tr { grid-template-columns: 1fr; gap: 4px; } .tr.th { display: none; } .doc-sec { grid-template-columns: 1fr; gap: 12px; } }
.doc-sec.contact { background: var(--c3); border: 2.5px solid var(--line); border-radius: var(--radius); box-shadow: 8px 10px 0 var(--line); padding: 28px; margin-top: 20px; }
.doc-sec.contact .num { background: var(--paper); }

/* ---------- Support ---------- */
.support-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
@media (max-width: 960px) { .support-grid { grid-template-columns: 1fr; } }
.how { display: grid; gap: 12px; }
.how-i { display: flex; align-items: center; gap: 16px; background: var(--paper); border: 2.5px solid var(--line); border-radius: 18px; box-shadow: 0 5px 0 var(--line); padding: 14px 18px; font-weight: 600; }
.how-i b { flex: none; width: 38px; height: 38px; border-radius: 12px; border: 2px solid var(--line); display: grid; place-items: center; font-family: var(--display); }
.how-i:nth-child(1) b { background: var(--c1); } .how-i:nth-child(2) b { background: var(--c3); } .how-i:nth-child(3) b { background: var(--c4); }
.faq.compact { max-width: none; }
.formcard, .done { background: var(--paper); border: 3px solid var(--line); border-radius: 28px; box-shadow: 10px 12px 0 var(--line); padding: 32px; position: relative; }
.formcard h2, .done h2 { font-size: 2rem; margin-bottom: 18px; }
.topics { border: 0; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.topics legend { font-family: var(--display); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; padding: 0; }
.topics label { cursor: pointer; }
.topics input { position: absolute; opacity: 0; pointer-events: none; }
.topics span { display: inline-block; font-weight: 700; font-family: var(--display); font-size: .95rem; border: 2.5px solid var(--line); border-radius: 999px; padding: 8px 16px; background: var(--paper); box-shadow: 0 4px 0 var(--line); transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), background .2s; }
.topics input:checked + span { background: var(--c1); transform: translateY(2px); box-shadow: 0 2px 0 var(--line); }
.topics input:focus-visible + span { outline: 3px solid var(--line); outline-offset: 3px; }
.field { display: block; font-family: var(--display); font-weight: 700; font-size: .85rem; letter-spacing: .04em; margin-bottom: 16px; }
.field i { font-family: var(--body); font-style: normal; font-weight: 500; letter-spacing: 0; color: var(--ink-soft); margin-left: 6px; }
.field input, .field textarea { display: block; width: 100%; margin-top: 8px; font: inherit; font-family: var(--body); font-weight: 500; font-size: 1rem; letter-spacing: 0; color: var(--ink); background: var(--field); border: 2.5px solid var(--line); border-radius: 14px; padding: 13px 15px; outline: none; transition: box-shadow .2s, background .2s; }
.field input:focus, .field textarea:focus { box-shadow: 0 4px 0 var(--c1); background: var(--c1-tint); }
.field textarea { resize: vertical; min-height: 140px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } @media (max-width: 560px) { .two-col { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: .86rem; color: var(--ink-soft); margin: 4px 0 18px; }
.err { color: var(--err); font-weight: 700; margin: 0 0 14px; }
.done { text-align: center; background: var(--c4); }
.tick-big { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 24px; border: 3px solid var(--line); background: var(--c3); display: grid; place-items: center; font-size: 2.2rem; font-weight: 700; box-shadow: 0 6px 0 var(--line); animation: pop .7s cubic-bezier(.3, 1.7, .5, 1) both; }
@keyframes pop { from { transform: scale(.2) rotate(-20deg); opacity: 0; } }
.ticket { display: inline-block; margin: 14px 0 12px; font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 6.2vw, 2.6rem); letter-spacing: .03em; white-space: nowrap; background: var(--paper); border: 3px dashed var(--line); border-radius: 18px; padding: 14px clamp(14px, 4vw, 24px); }
.press { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; background: var(--paper); border: 2.5px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 0 var(--line); padding: 22px 26px; }
.press b { display: block; font-family: var(--display); font-size: 1.2rem; } .press span { color: var(--ink-soft); }

/* ---------- Teams (coming soon) ---------- */
.teams-box { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; background: var(--c1); border: 3px solid var(--line); border-radius: 34px; box-shadow: 10px 12px 0 var(--line); padding: clamp(28px, 5vw, 60px); position: relative; overflow: hidden; }
.teams-box::after { content: ""; position: absolute; width: 200px; height: 200px; right: -70px; top: -70px; border-radius: 50%; border: 3px solid var(--line); background: var(--c3); }
@media (max-width: 900px) { .teams-box::after { display: none; } }
.teams-box > * { position: relative; z-index: 1; }
.teams-box .lede { color: var(--ink); }
.note-s { margin-top: 16px; font-size: .92rem; max-width: 30em; }
.teams-r { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.teams-r li { background: var(--paper); border: 2.5px solid var(--line); border-radius: 18px; box-shadow: 0 5px 0 var(--line); padding: 14px 18px; }
.teams-r b { display: block; font-family: var(--display); font-size: 1.12rem; } .teams-r span { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 900px) { .teams-box { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .tr:not(.th) { padding: 16px 18px; gap: 6px; }
  .tr:not(.th) span:nth-child(2)::before { content: "Where it goes: "; font-weight: 700; color: var(--ink); }
  .tr:not(.th) span:nth-child(3)::before { content: "Stays up to date: "; font-weight: 700; color: var(--ink); }
}

.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 14px; margin: 26px 0 10px; }
.btn-row .key { padding: 13px 22px; }
.done .small { max-width: 34em; margin-inline: auto; }

/* ---- Every screen: iPhone + iPad + Apple Watch (added 2026-10-04) ----
   Plain screenshots with rounded corners and the site's outline, no device frames (like supershift.app),
   so nothing imitates an Apple product. Side by side, no overlap, no tilt, no motion. */
.devices { display: flex; align-items: flex-end; justify-content: center; gap: clamp(18px, 3.4vw, 46px); padding: 10px 0 0; }
.dev { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.dev-ipad { width: 44%; }
.dev-phone { width: 22%; }
.dev-watch { width: 17%; }
.shot { width: 100%; border: 3px solid var(--line); border-radius: clamp(14px, 2.6vw, 30px); overflow: hidden; background: var(--paper); box-shadow: 0 6px 0 var(--line); }
.shot img { width: 100%; height: auto; display: block; }
.dev-watch .shot { border-radius: clamp(14px, 2.4vw, 28px); background: #000; }
@media (max-width: 820px) {
  .devices { flex-wrap: wrap; gap: 28px 4%; }
  .dev-ipad { width: min(100%, 520px); order: 1; }
  .dev-phone { width: 40%; order: 2; }
  .dev-watch { width: 30%; order: 3; }
}

/* "Coming soon" tag for features that arrive with the next App Store update (build.py, COMING_SOON) */
.soon { display: inline-block; vertical-align: middle; margin-left: 10px; font-family: var(--display); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #232323; background: var(--c3); border: 2px solid var(--line); border-radius: 999px; padding: 4px 11px; transform: rotate(-2deg); box-shadow: 0 3px 0 var(--line); }

/* ---------- Dark mode (follows the visitor's phone or computer setting) ----------
   Outlines and shadows turn cream; the coloured pastel surfaces keep their dark text by restoring the
   light-mode values locally, so every coloured box reads exactly as it does in light mode. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1F1D19; --paper-2: #2B2822; --grid: rgba(253, 248, 238, .045);
    --ink: #F3EDDD; --ink-soft: #BDB6A4; --line: #EDE6D3; --soft-line: rgba(243, 237, 221, .24);
    --c1-tint: #243442; --night: #131210; --field: #2B2822; --err: #FF8F8F;
  }
  body[data-theme="slate"]    { --paper:#1B2028; --paper-2:#262D39; --c1-tint:#263649; }
  body[data-theme="graphite"] { --paper:#1B1B1B; --paper-2:#272727; --c1-tint:#2E2E2E; }
  body[data-theme="pop"]      { --paper:#241F0C; --paper-2:#33290F; --c1-tint:#12304A; }
  body[data-theme="forest"]   { --paper:#161F18; --paper-2:#203024; --c1-tint:#1D3A33; }
  body[data-theme="berry"]    { --paper:#271520; --paper-2:#37202D; --c1-tint:#2D2B4D; }

  .eyebrow, .plus, .key:not(.dark):not(.ghost), .float, .hero h1 em, .chip, .circle ul.tick li::before, .app-card .tag,
  .status.both, .popup .ic, .demo-shift, .demo-card .tag, .card .ico, .stat, .night, .final .box, .glance .g,
  .doc-sec .num, .doc-sec.contact, .tr.th, .teams-box, .done, .tick-big, .how-i b, .toc a:hover, .toc a.on,
  .topics input:checked + span, .marquee, .soon {
    --ink: #232323; --ink-soft: #55524a; --paper: #FDF8EE; --paper-2: #F6F0E2; --c1-tint: #E3EFF9;
  }
  .eyebrow, .float, .hero h1 em, .app-card .tag, .status.both, .popup .ic, .demo-shift, .demo-card .tag, .card .ico, .stat,
  .final .box, .glance .g, .doc-sec .num, .doc-sec.contact, .teams-box, .done, .tick-big, .how-i b, .toc a:hover, .toc a.on,
  .topics input:checked + span { color: var(--ink); }
  .marquee { background: #2E2B25; color: #FDF8EE; }
  .night { border-block-color: var(--line); }
  .shot { background: var(--paper-2); }
  .field input:focus, .field textarea:focus { background: var(--c1-tint); }
  .lang-picker select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5.5 8l4.5 4.5L14.5 8' stroke='%23F3EDDD' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
}
.step .soon { align-self: flex-start; margin-left: 0; }

/* ---- added by build.py: language picker and Apple's App Store badge ---- */
.lang-picker { display: flex; align-items: center; margin-left: auto; margin-right: 12px; }
.lang-picker select {
  font-family: var(--body); font-size: .86rem; font-weight: 600; color: var(--ink); background-color: var(--paper);
  border: 2px solid var(--line); border-radius: 999px; padding: 7px 30px 7px 14px; cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5.5 8l4.5 4.5L14.5 8' stroke='%23232323' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 13px;
}
.lang-picker select:hover, .lang-picker select:focus-visible { box-shadow: 0 3px 0 var(--line); }
.badge { display: inline-block; line-height: 0; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.badge:hover { transform: translateY(-3px); }
.badge img { height: 52px; width: auto; display: block; }
@media (max-width: 700px) { .nav ul { display: none; } .lang-picker { margin-right: 6px; } .lang-picker select { padding: 6px 26px 6px 10px; font-size: .8rem; } }
@media (max-width: 560px) {
  .nav .brand { font-size: 0; gap: 0; }            /* icon only: the picker and the button need the room (long words in other languages) */
  .nav .wrap { gap: 6px; }
  .nav .key { white-space: nowrap; padding: 8px 12px; font-size: .8rem; }
}

/* Japanese: negative tracking and tight leading are tuned for Latin letters and make kana and kanji hard to read. */
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { letter-spacing: 0; line-height: 1.25; }
:lang(ja) body { line-height: 1.8; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { word-break: auto-phrase; text-wrap: balance; }
:lang(ja) p, :lang(ja) li, :lang(ja) summary { word-break: auto-phrase; line-break: strict; }
:lang(ja) h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
