/* Filano site. Colours come from packages/design-tokens/tokens.json (dark theme, the app's default). */

@font-face { font-family: Geist; src: url(/fonts/Geist-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Geist; src: url(/fonts/Geist-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Geist; src: url(/fonts/Geist-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/fonts/GeistMono-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #07080a;
  --surface-1: #111317;
  --surface-2: #181b20;
  --surface-3: #22262d;
  --line: #1e2228;
  --line-strong: #6e7682;
  --text: #f4f6f8;
  --text-muted: #a9b0ba;
  --text-subtle: #8a919b;
  --accent: #2ee6ff;
  --on-accent: #04252b;
  --live: #ff5c7a;
  --amber: #f0b36a;
  --plum: #a88be0;
  --moss: #9ccb86;
  --radius: 20px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 Geist, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.eyebrow {
  font: 400 13px/1 "Geist Mono", ui-monospace, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; margin: 0; }
h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; }
h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.08; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-muted); max-width: 40em; }
.muted { color: var(--text-muted); }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: block; width: 108px; color: var(--text); }
.logo svg { display: block; width: 100%; height: auto; }
.top nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--text-muted); transition: color .15s; }
.top nav a:hover { color: var(--text); }
.lang {
  font: 400 13px/1 "Geist Mono", ui-monospace, monospace;
  text-decoration: none; color: var(--text-muted);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 12px;
}
.lang:hover { color: var(--text); border-color: var(--text-muted); }
@media (max-width: 760px) { .top nav { display: none; } .lang { margin-left: auto; } }

/* Buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  font-family: inherit;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 500; font-size: 16px; text-decoration: none;
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--surface-3); }
.btn-ghost:hover { background: var(--surface-3); }
.btn svg { width: 18px; height: 18px; flex: none; }
.store-btn { flex-direction: column; align-items: flex-start; gap: 2px; padding: 11px 22px; cursor: default; }
.store-btn:hover { transform: none; }
.store-btn small { font: 400 11px/1.2 "Geist Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--text-subtle); }

/* Hero */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(240, 179, 106, .22), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 { max-width: 12em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin: 24px 0 32px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--text-subtle); }
.hero-note strong { color: var(--text); font-weight: 600; }

.showcase { position: relative; margin-top: 64px; padding-bottom: 6%; }
.tv {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--surface-3);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9), 0 0 0 10px #0d0f12;
  width: 86%;
}
.phone {
  border-radius: clamp(22px, 4vw, 46px); overflow: hidden;
  border: clamp(5px, .8vw, 9px) solid #16191e;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .95);
  background: #000;
}
.showcase .phone { position: absolute; right: 0; bottom: 0; width: 25%; }

/* Disclaimer band */
.band { border-block: 1px solid var(--line); background: var(--surface-1); }
.band .wrap { display: flex; gap: 16px; align-items: center; padding: 22px 0; color: var(--text-muted); font-size: 15px; }
.band strong { color: var(--text); font-weight: 500; }
.band svg { flex: none; width: 22px; height: 22px; color: var(--accent); }

/* Sections */
section { padding: 80px 0; }
@media (max-width: 760px) { section { padding: 60px 0; } }
.section-head { max-width: 44em; margin-bottom: 40px; }
.section-head .lead { margin-top: 18px; }

.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding: 36px 0;
}
.feature + .feature { border-top: 1px solid var(--line); }
.feature .phone { width: min(320px, 78%); margin-inline: auto; }
.feature.flip .text { order: 2; }
.feature h3 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; margin-bottom: 16px; }
.feature ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feature li { position: relative; padding-left: 26px; color: var(--text-muted); }
.feature li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .text { order: 0; }
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card {
  background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--accent); margin-bottom: 20px;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 16px; }

/* At a glance: key facts, plain text */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 0; }
.facts div { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.facts dt { font: 400 12px/1 "Geist Mono", ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 10px; }
.facts dd { margin: 0; font-size: 16px; }

/* Devices */
.devices { background: linear-gradient(180deg, var(--bg), #0b0d11 40%, var(--bg)); }
.device-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 48px; }
@media (max-width: 760px) { .device-list { grid-template-columns: 1fr; } }
.device-list .card h3 { display: flex; align-items: center; gap: 10px; }
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 760px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 16px 24px;
  margin-inline: calc((100vw - min(var(--wrap), 100vw - 32px)) / -2);
  padding-inline: calc((100vw - min(var(--wrap), 100vw - 32px)) / 2);
  scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent;
}
.gallery figure { margin: 0; scroll-snap-align: center; }
.gallery .tv { width: 100%; box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .9); }
.gallery figcaption { margin-top: 12px; font-size: 14px; color: var(--text-subtle); }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 920px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { padding: 36px; display: flex; flex-direction: column; }
.plan.premium { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: linear-gradient(160deg, #0d2328, var(--surface-1) 55%); }
.plan .tag { font: 400 12px/1 "Geist Mono", ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--text-subtle); }
.plan.premium .tag { color: var(--accent); }
.plan h3 { font-size: 26px; margin: 14px 0 6px; }
.card .price { color: var(--text); font-size: 52px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin: 18px 0 6px; }
.card .price small { font-size: 16px; font-weight: 400; color: var(--text-muted); letter-spacing: 0; margin-left: 6px; }
.plan ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.plan li { display: flex; gap: 12px; color: var(--text-muted); font-size: 16px; }
.plan li svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }
.plan li.no svg { color: var(--text-subtle); }
.price-note { margin-top: 24px; font-size: 14px; color: var(--text-subtle); max-width: 46em; }

/* Privacy */
.privacy-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .privacy-points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .privacy-points { grid-template-columns: 1fr; } }
.privacy-points .card { padding: 24px; }
.privacy-points strong { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative;
  font-size: 19px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 0 24px; color: var(--text-muted); max-width: 42em; }

/* Final call */
.cta { text-align: center; padding: 88px 0; }
.cta .mark { width: 72px; margin: 0 auto 28px; }
.cta h2 { max-width: 16em; margin-inline: auto; }
.cta .lead { margin: 18px auto 32px; }
.cta .buttons { justify-content: center; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14px; color: var(--text-subtle); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
footer a { text-decoration: none; color: var(--text-muted); }
footer a:hover { color: var(--text); }
footer .legal { flex-basis: 100%; }

/* Text pages (privacy, legal notice) */
.doc { padding: 72px 0 112px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 12px; }
.doc h2 { font-size: 24px; margin: 48px 0 14px; }
.doc p, .doc li { color: var(--text-muted); }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 22px; display: grid; gap: 8px; }
.doc .updated { font-size: 14px; color: var(--text-subtle); }
.todo { background: rgba(240, 179, 106, .16); color: var(--amber); border-radius: 4px; padding: 0 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq summary::after { transition: none; }
}
.grid.more { margin-top: 56px; }
.doc .buttons { margin-top: 32px; }
@media (min-width: 900px) { .grid.more { grid-template-columns: repeat(3, 1fr); } }
section[id], [id="contact"] { scroll-margin-top: 72px; }

/* TV sign-in page */
.tv-form { display: grid; gap: 18px; max-width: 420px; margin-top: 32px; }
.tv-form label { display: grid; gap: 8px; color: var(--text-muted); font-size: 15px; }
.tv-form input {
  font: 500 20px/1.2 Geist, system-ui, sans-serif; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 14px; padding: 14px 16px;
}
.tv-form input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.tv-form #code { font-family: "Geist Mono", ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.tv-form .btn { justify-self: start; border: 0; cursor: pointer; }
.tv-form .btn:disabled { opacity: .6; cursor: default; }
.tv-form [hidden] { display: none; }
.tv-warning { max-width: 520px; font-size: 15px; margin-top: 16px; }
.tv-confirm { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--accent); border-radius: 12px; color: var(--text); }
.tv-confirm[hidden] { display: none; }
.tv-confirm p { margin: 0; }
.tv-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Account page */
.account [hidden] { display: none !important; }
.account .lead { color: var(--text-muted); max-width: 560px; }
.account #panel { display: grid; gap: 16px; margin-top: 32px; }
.account-card { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; }
.account-card h2 { font-size: 20px; margin: 0; }
.account-card p { margin: 0; }
.account-card .btn { cursor: pointer; font: inherit; font-weight: 500; }
.account-card .btn-danger { border: 0; }
.account-card .btn:disabled { opacity: .6; cursor: default; }
.account-devices { list-style: none; padding: 0 !important; margin: 4px 0 0; display: grid; gap: 0 !important; }
.account-devices li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.account-devices li > div { display: grid; gap: 2px; min-width: 0; }
.account-devices strong { color: var(--text); font-weight: 500; overflow-wrap: anywhere; }
.account-devices .muted { font-size: 14px; }
.account-devices .btn { padding: 8px 14px; font-size: 14px; flex: none; }
.account-here { font-size: 13px; color: var(--accent); flex: none; }
.account-danger { border-color: color-mix(in srgb, var(--live) 35%, var(--line)); }
.account-confirm { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--live); border-radius: 12px; }
.account-confirm p { color: var(--text); }
.btn-danger { background: var(--live); color: #2b0710; }
.account #status { margin-top: 20px; min-height: 1.5em; }

/* Trailer */
.trailer { padding-top: 72px; }
.trailer .section-head { margin-bottom: 32px; }
.trailer-frame { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-1); aspect-ratio: 16 / 9; box-shadow: 0 30px 80px -30px rgba(46, 230, 255, .18); }
.trailer-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.trailer-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; box-shadow: 0 10px 40px rgba(46, 230, 255, .35); }
.trailer-play[hidden] { display: none; }
.trailer-play svg { width: 30px; height: 30px; margin-left: 4px; }
@media (max-width: 600px) { .trailer { padding-top: 48px; } .trailer-play { width: 60px; height: 60px; } }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 600; margin-bottom: 18px; }
.steps h3 { font-size: 20px; margin-bottom: 10px; }
.steps p { color: var(--text-muted); font-size: 15px; }
.steps strong { color: var(--text); font-weight: 500; }
.howto .lead strong { color: var(--text); font-weight: 500; }
.glossary { margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.glossary div { padding: 4px 0 0 16px; border-left: 2px solid var(--accent); }
.glossary dt { font: 500 15px/1.3 "Geist Mono", ui-monospace, monospace; color: var(--text); }
.glossary dd { margin: 6px 0 0; color: var(--text-muted); font-size: 15px; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .steps, .glossary { grid-template-columns: 1fr; } }

/* Security comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.compare-col { border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); background: var(--surface-1); }
.compare-col h3 { font-size: 20px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.compare-col h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.compare-col.risky h3::before { background: var(--live); }
.compare-col.safe { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.compare-col.safe h3::before { background: var(--accent); }
.compare ul { margin: 0; padding-left: 18px; display: grid; gap: 10px; color: var(--text-muted); font-size: 15px; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
