/* Falline site. Colours and type follow the app: Mobile-IOS/Falline/DesignSystem/Theme.swift. Dark only, like the app. */
@font-face {
  font-family: "Anton";
  src: url("/assets/fonts/anton.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/mono.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #0B0B0C;
  --surface: #1A1A1C;
  --surface-deep: #141416;
  --line: #333333;
  --snow: #F4F4EF;
  --text-2: #C9C9C2;
  --muted: #9A9A93;
  --acid: #C6FF00;
  --blaze: #FF5A1F;
  --success: #3DDC97;
  --warning: #FFC53D;
  --danger: #FF3B5C;
  --plasma: linear-gradient(90deg, #0D0887, #7E03A8, #CC4778, #F89540, #F0F921);
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
  --gutter: 16px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--snow);
  font: 400 17px/1.55 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--snow); text-decoration-color: var(--acid); text-underline-offset: 3px; }
a:hover { color: var(--acid); }
:focus-visible { outline: 3px solid var(--acid); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 {
  font-family: var(--display);
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(48px, 9vw, 104px); }
h2 { font-size: clamp(38px, 6vw, 68px); margin-bottom: 16px; }
h3 { font-size: 18px; font-weight: 700; line-height: 1.3; }
p { margin: 0 0 12px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 20;
  background: var(--acid); color: var(--bg); padding: 12px 16px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 8px; }

.kicker {
  font: 500 13px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--acid);
  margin-bottom: 14px;
}
.lead { font-size: 19px; color: var(--text-2); max-width: 38em; }
.note { color: var(--warning); font-size: 15px; border-left: 3px solid var(--warning); padding-left: 12px; margin-top: 20px; }

/* Buttons: at least 44 px high; the main ones are bigger, as in the app. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  background: var(--acid); color: var(--bg);
  border: 0; border-radius: 14px;
  font: 400 20px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer;
}
.btn:hover { color: var(--bg); filter: brightness(1.08); }
.btn--small { min-height: 44px; padding: 0 16px; font-size: 17px; border-radius: 12px; }
.btn--big { min-height: 60px; width: 100%; font-size: 24px; }
.btn--ghost { background: transparent; color: var(--snow); border: 2px solid var(--line); }
.btn--ghost:hover { color: var(--acid); border-color: var(--acid); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Top bar */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 11, 12, 0.92);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) { .top { background: rgba(11, 11, 12, 0.75); backdrop-filter: blur(12px); } }
.top__bar { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.logo { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; color: var(--snow); min-height: 44px; align-items: center; }
.logo__mark { font: 400 22px/1 var(--display); color: var(--bg); background: var(--acid); padding: 6px 7px 5px; border-radius: 8px; }
.logo__word { font: 400 24px/1 var(--display); letter-spacing: 0.04em; }
.nav { margin-left: auto; }
.nav__menu summary {
  list-style: none; cursor: pointer;
  min-height: 44px; display: flex; align-items: center; padding: 0 12px;
  font: 500 14px var(--mono); text-transform: uppercase; letter-spacing: 0.06em;
  border: 1px solid var(--line); border-radius: 12px;
}
.nav__menu summary::-webkit-details-marker { display: none; }
.nav__list {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; left: var(--gutter); right: var(--gutter); top: 64px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.nav__list a {
  display: flex; align-items: center; min-height: 48px; padding: 0 14px;
  text-decoration: none; font-weight: 600; border-radius: 10px;
}
.nav__list a:hover { background: var(--surface-deep); }
.lang {
  min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  font: 500 14px var(--mono); text-decoration: none; border: 1px solid var(--line); border-radius: 12px;
}
@media (max-width: 400px) { .logo__word { display: none; } }
@media (min-width: 1000px) {
  .nav__menu summary { display: none; }
  .nav__menu > .nav__list { display: flex; position: static; background: none; border: 0; padding: 0; gap: 2px; }
  .nav__list a { min-height: 44px; padding: 0 10px; font-weight: 500; color: var(--text-2); font-size: 15px; }
  .nav__list a:hover { background: none; color: var(--acid); }
}

/* Hero */
.hero { padding: 48px 0 32px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--plasma);
}
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__grid > *, .feature__grid > * { min-width: 0; }
.hero h1 { margin-bottom: 20px; }
.platforms { font: 500 13px/1.4 var(--mono); color: var(--muted); letter-spacing: 0.04em; margin-top: 18px; }
.hero__devices { display: flex; align-items: flex-end; justify-content: center; gap: 0; }
.hero__devices .device--watch { margin-left: -36px; margin-block: 0 24px; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 40px; }
  .hero__grid { grid-template-columns: 1.15fr 1fr; }
}

.stats {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats li { padding: 18px 8px; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stats b { display: block; font: 500 clamp(26px, 6vw, 48px)/1 var(--mono); color: var(--snow); letter-spacing: -0.03em; }
.stats b small { font-size: 0.4em; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.stats span { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.stats li:first-child b { color: var(--acid); }

/* Store badges: Apple's and Google's official artwork, as they give it out. */
.stores { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: flex-start; }
.stores li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.badge { display: block; border-radius: 9px; }
.badge img { height: 52px; width: auto; }
.badge--soon img { opacity: 0.55; }
@media (max-width: 420px) { .badge img { height: 44px; } .stores { gap: 12px; } }
.store__soon { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--warning); }

/* Devices, drawn here (no maker's artwork). Sizes inside a device are in cqw: a share of its own width, so a
   small one keeps the same proportions. body = case and buttons, screen = the black glass round the picture. */
.device { margin: 0; flex: none; position: relative; container-type: inline-size; filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.6)); }
.device__body { position: relative; }
.device__screen { background: #000; overflow: hidden; }
.device img { width: 100%; height: auto; display: block; }

/* A recent iPhone Pro: titanium edge, thin black border, action and volume buttons left, side button and
   camera control right. */
.device--phone { width: min(260px, 64vw); }
.device--phone .device__body {
  padding: 1.15cqw;
  border-radius: 17cqw;
  background: linear-gradient(140deg, #9a9893 0%, #55534f 14%, #2e2d2b 42%, #3b3a37 62%, #6a6863 86%, #a3a19c 100%);
  box-shadow: inset 0 0 0 0.3cqw rgba(255, 255, 255, 0.28), inset 0 0 0 0.75cqw rgba(0, 0, 0, 0.45);
}
.device--phone .device__screen { padding: 2.3cqw; border-radius: 15.9cqw; }
.device--phone img { border-radius: 13.6cqw; }
.device--phone .device__body::before,
.device--phone .device__body::after { content: ""; position: absolute; width: 1.2cqw; }
.device--phone .device__body::before {
  left: -1cqw; top: 19%; height: 36cqw; border-radius: 0.8cqw 0 0 0.8cqw;
  background: linear-gradient(#77756f 0 16%, transparent 16% 30%, #77756f 30% 61%, transparent 61% 69%, #77756f 69% 100%);
}
.device--phone .device__body::after {
  right: -1cqw; top: 29%; height: 47cqw; border-radius: 0 0.8cqw 0.8cqw 0;
  background: linear-gradient(#77756f 0 36%, transparent 36% 81%, #5d5b56 81% 100%);
}

/* Watches stand on their strap, so they need room above and below. */
.device--watch, .device--wear { margin-block: calc(var(--w) * 0.36); width: var(--w); }
.device--watch .device__body::before,
.device--wear .device__body::before {
  content: ""; position: absolute; z-index: -1;
  top: -36cqw; bottom: -36cqw; border-radius: 9cqw;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1.4cqw, transparent 1.4cqw 2.8cqw),
    linear-gradient(90deg, #141416, #2a2a2e 50%, #141416);
}
.device--watch .device__body::after,
.device--wear .device__body::after { content: ""; position: absolute; border-radius: 0 1.6cqw 1.6cqw 0; }

/* Apple Watch: rounded case, digital crown and side button on the right, a wide black border round the display. */
.device--watch { --w: 140px; }
.device--watch .device__body {
  padding: 2.8cqw; border-radius: 28cqw;
  background: linear-gradient(145deg, #8b8985 0%, #3c3b38 30%, #1d1d1c 55%, #4b4a46 80%, #8b8985 100%);
  box-shadow: inset 0 0 0 0.5cqw rgba(255, 255, 255, 0.2);
}
.device--watch .device__body::before { left: 17cqw; right: 17cqw; }
.device--watch .device__screen { padding: 8cqw 7cqw; border-radius: 25cqw; }
.device--watch img { border-radius: 10cqw; }
.device--watch .device__body::after {
  right: -4.2cqw; top: 21%; width: 4.6cqw; height: 50cqw;
  background:
    repeating-linear-gradient(0deg, #9c9a95 0 0.8cqw, #5a5853 0.8cqw 1.6cqw) top / 100% 34% no-repeat,
    linear-gradient(#5a5853, #5a5853) bottom / 72% 46% no-repeat;
}

/* Wear OS: a round case with a steel ring, crown on the right. */
.device--wear { --w: 160px; }
.device--wear .device__body {
  padding: 3.4cqw; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #9b9994, #3d3c39 45%, #1c1c1b 70%, #56544f);
  box-shadow: inset 0 0 0 0.6cqw rgba(255, 255, 255, 0.18);
}
.device--wear .device__body::before { left: 24cqw; right: 24cqw; }
.device--wear .device__screen { padding: 6.5cqw; border-radius: 50%; }
.device--wear img { border-radius: 50%; }
.device--wear .device__body::after {
  right: -3.6cqw; top: 42%; width: 4.2cqw; height: 15cqw;
  background: repeating-linear-gradient(0deg, #9c9a95 0 0.8cqw, #5a5853 0.8cqw 1.6cqw);
}

.hero .device--phone { width: min(290px, 58vw); }
.hero .device--watch { --w: min(165px, 32vw); }

/* Feature sections */
.feature { padding: 72px 0; border-top: 1px solid var(--line); }
.feature__grid { display: grid; gap: 40px; align-items: center; }
.points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.points li { padding-left: 18px; border-left: 3px solid var(--acid); }
.points h3 { margin-bottom: 4px; }
.points p { margin: 0; color: var(--text-2); font-size: 16px; }
.gallery { display: flex; gap: 20px; align-items: center; justify-content: center; }
.gallery .device--phone { width: min(240px, 60vw); }
@media (max-width: 719px) {
  /* One row that scrolls by itself, never the page. */
  .gallery {
    justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter) 20px;
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery > * { scroll-snap-align: center; }
  .gallery--1 { justify-content: center; }
}
@media (min-width: 720px) {
  /* Three phones share the column; each frame shrinks with it. */
  .gallery--3 .device--phone { width: calc((100% - 32px) / 3); max-width: 210px; padding: 7px; border-radius: 36px; }
  .gallery--3 .device--phone img { border-radius: 29px; }
  .gallery--3 .device--phone:nth-child(2) { transform: translateY(-24px); }
  .gallery--2 .device--phone { width: calc((100% - 16px) / 2); max-width: 240px; }
}
@media (min-width: 1000px) {
  .feature__grid { grid-template-columns: 1fr 1.2fr; gap: 56px; }
  .feature--flip .feature__grid { grid-template-columns: 1.2fr 1fr; }
  .feature--flip .feature__text { order: 2; }
}
#safety .points li { border-left-color: var(--danger); }
#safety .kicker { color: var(--danger); }
#day .feature__text h2 { padding-top: 0.12em; background: var(--plasma); -webkit-background-clip: text; background-clip: text; color: transparent; }
@supports not (background-clip: text) { #day .feature__text h2 { color: var(--snow); } }

/* Form */
.submit { padding: 72px 0; background: var(--surface-deep); border-top: 1px solid var(--line); }
.form { margin-top: 32px; display: grid; gap: 20px; }
.grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .grid { grid-template-columns: 1fr 1fr; } .field--wide { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field > label, .field > legend, fieldset > legend { font-weight: 600; font-size: 15px; padding: 0; }
.req { font: 500 12px var(--mono); color: var(--muted); font-weight: 500; }
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--surface); color: var(--snow);
  border: 1px solid var(--line); border-radius: 12px;
  font: 400 17px/1.4 var(--body);
}
textarea { resize: vertical; min-height: 140px; }
input[type="date"] { font-family: var(--mono); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--acid); box-shadow: 0 0 0 2px rgba(198, 255, 0, 0.35); }
input[type="file"] {
  width: 100%; min-height: 50px; padding: 10px; color: var(--text-2);
  background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; font-size: 15px;
}
input[type="file"]::file-selector-button {
  min-height: 36px; margin-right: 10px; padding: 0 12px; border: 0; border-radius: 8px;
  background: var(--snow); color: var(--bg); font-weight: 600; cursor: pointer;
}
.hint { font-size: 14px; color: var(--muted); margin: 0; }
.hint:empty { display: none; }
.error { color: var(--danger); font-size: 14px; font-weight: 600; margin: 0; }
.error:empty { display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.form__alert { background: rgba(255, 59, 92, 0.12); border: 1px solid var(--danger); color: var(--snow); padding: 12px 14px; border-radius: 12px; margin: 0; }
.seg { display: flex; gap: 8px; }
.seg label { flex: 1; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span {
  display: flex; align-items: center; justify-content: center; min-height: 50px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  font: 400 19px var(--display); text-transform: uppercase; letter-spacing: 0.03em; cursor: pointer;
}
.seg input:checked + span { background: var(--acid); color: var(--bg); border-color: var(--acid); }
.seg input:focus-visible + span { outline: 3px solid var(--acid); outline-offset: 3px; }
.event, .contact { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px 20px; margin: 0; min-width: 0; }
.event > legend, .contact > legend { padding: 0 8px; font: 400 18px var(--display); text-transform: uppercase; letter-spacing: 0.03em; }
.contact { margin-top: 18px; }
.event[hidden] { display: none; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.checks .check { padding: 0 14px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.checks .check:has(input:checked) { border-color: var(--acid); }
.check input { width: 20px; height: 20px; accent-color: var(--acid); flex: none; margin: 0; }
.check--consent { align-items: flex-start; font-size: 16px; }
.check--consent input { margin-top: 3px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.combo { position: relative; }
.combo__list {
  list-style: none; margin: 4px 0 0; padding: 6px; position: absolute; left: 0; right: 0; z-index: 5;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; max-height: 300px; overflow-y: auto;
}
.combo__list li { padding: 10px 12px; min-height: 44px; border-radius: 8px; cursor: pointer; }
.combo__list li small { display: block; color: var(--muted); font-size: 13px; }
.combo__list li[aria-selected="true"], .combo__list li:hover { background: var(--surface-deep); outline: 1px solid var(--acid); }
.combo__clear { margin-top: 8px; min-height: 44px; background: none; border: 1px solid var(--line); color: var(--text-2); border-radius: 10px; padding: 0 12px; cursor: pointer; }
.thanks { margin-top: 32px; padding: 28px; border: 2px solid var(--acid); border-radius: var(--radius); }
.thanks h3 { font: 400 40px/1 var(--display); text-transform: uppercase; color: var(--acid); margin-bottom: 12px; }

/* FAQ */
.faq, .download { padding: 72px 0; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-weight: 700; font-size: 18px; padding: 12px 0;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 500 24px var(--mono); color: var(--acid); flex: none; }
.qa[open] summary::after { content: "–"; }
.qa p { color: var(--text-2); padding-bottom: 16px; }
.more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 20px; font-weight: 700; }
.download { text-align: left; }
.download h2 { font-size: clamp(48px, 9vw, 96px); }

/* Pages */
.doc { padding: 56px 0 80px; }
.doc h1 { font-size: clamp(44px, 8vw, 80px); margin-bottom: 18px; }
.doc h2 { font-size: clamp(28px, 4vw, 40px); margin: 40px 0 14px; }
.doc p, .doc li { color: var(--text-2); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; }
.steps li { counter-increment: step; display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: var(--surface); border-radius: 12px; color: var(--snow); }
.steps li::before { content: counter(step); font: 500 18px/1.3 var(--mono); color: var(--acid); flex: none; }
.bullets { padding-left: 20px; }
.bullets li { margin-bottom: 8px; }
.bullets a { display: inline-block; min-height: 32px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 48px 0 32px; background: var(--surface-deep); }
.foot__grid { display: grid; gap: 28px; }
.foot__attr { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 34em; }
.foot__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); }
.foot__end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot__end p { margin: 0; }
.foot__langs { display: flex; gap: 8px; }
.foot__langs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--text-2); }
.foot__langs a[aria-current] { color: var(--acid); text-decoration: none; }
@media (min-width: 720px) { .foot__grid { grid-template-columns: 1.4fr 1fr; } }

.choose { display: grid; place-items: center; min-height: 100vh; text-align: center; }
.choose a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 8px; }

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