/* FACT website. Layout: a formulation sheet: deep navy bands closed by FACT's gold rule, white panels with hairline
   rows, the logo's amber and flame for actions, and one live ration card with real demo figures. One light theme by
   choice (the FACT app's own look); every color is set here. */
:root {
  --deep: #071B36;        /* hero, iPhone and footer bands (FACT's header navy) */
  --navy: #0B2545;        /* headings, navy buttons */
  --navy-2: #133461;      /* hover of navy */
  --ink: #15243C;         /* running text */
  --muted: #50617B;       /* secondary text */
  --faint: #7D8CA3;       /* captions */
  --paper: #F4F7FB;       /* page ground, a blue-tinted white */
  --card: #FFFFFF;
  --soft: #EBF1F9;        /* tinted panels */
  --line: #D6DFEB;        /* hairlines */
  --line-2: #E6ECF4;
  --gold: #D4AA48;        /* the FACT rule */
  --amber: #F99A18;       /* logo amber: the main action on navy */
  --amber-hi: #FFB13D;
  --flame: #F6521D;       /* logo orange: eyebrows and marks */
  --flame-ink: #C2410C;   /* flame for small text on white */
  --royal: #1E48AA;       /* logo blue: links */
  --leaf: #047857;        /* savings, feasible */
  --leaf-hi: #059669;     /* FACT's Formulate button */
  --limit: #C00000;       /* a limit the formula reaches */
  --on-deep: #EAF0F8;
  --on-deep-muted: #A7B6CC;
  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --shadow-1: 0 1px 2px rgba(7, 27, 54, .06), 0 6px 18px rgba(7, 27, 54, .07);
  --shadow-2: 0 2px 8px rgba(7, 27, 54, .10), 0 26px 60px rgba(7, 27, 54, .28);
  --header-h: 68px;
  color-scheme: light;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, video { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--royal); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); margin: 0; text-wrap: balance; letter-spacing: -.015em; }
h1 { font-size: clamp(2.3rem, 3.6vw + 1.2rem, 4rem); line-height: 1.04; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 1.6vw + 1.2rem, 2.6rem); line-height: 1.12; font-weight: 700; }
h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 600; letter-spacing: -.005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); color: var(--navy); padding: 10px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); }

.wrap { width: 100%; max-width: 1220px; margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 820px; }
.band { padding-block: clamp(64px, 7vw, 112px); }
.band-tight { padding-block: clamp(44px, 5vw, 72px); }
.band-white { background: var(--card); }
.band-soft { background: var(--soft); }
.band-deep { background: var(--deep); color: var(--on-deep); position: relative; }
.band-deep h1, .band-deep h2, .band-deep h3 { color: #fff; }
.rule-bottom { border-bottom: 4px solid var(--gold); }

.eyebrow { font: 700 .78rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .14em; color: var(--flame-ink); }
.band-deep .eyebrow { color: var(--amber); }
.lede { font-size: clamp(1.08rem, .4vw + 1rem, 1.25rem); line-height: 1.6; color: var(--muted); max-width: 62ch; }
.band-deep .lede { color: var(--on-deep-muted); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 52px); max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px;
  border-radius: 999px; font: 600 1rem/1 var(--font-body); text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s; white-space: nowrap; }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.05rem; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .95rem; }
.btn-amber { background: var(--amber); color: var(--deep); box-shadow: 0 8px 24px rgba(249, 154, 24, .28); }
.btn-amber:hover { background: var(--amber-hi); color: var(--deep); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-line { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-line:hover { border-color: var(--navy); color: var(--navy); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-leaf { background: var(--leaf-hi); color: #fff; }
.btn-leaf:hover { background: var(--leaf); color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .18s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 50px; height: auto; }
.brand-txt { display: grid; line-height: 1; }
.brand-txt b { font: 700 1.55rem/1 var(--font-display); color: var(--navy); letter-spacing: .01em; }
.brand-txt small { font: 600 .66rem/1.2 var(--font-body); color: var(--flame-ink); text-transform: uppercase; letter-spacing: .12em; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; padding: 10px 12px; border-radius: var(--r-sm); }
.nav a:hover { color: var(--navy); background: var(--soft); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 650; box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav .btn { margin-left: 10px; color: #fff; }
.nav .btn:hover { background: var(--navy-2); color: #fff; }
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--navy); font: 600 .95rem/1 var(--font-body); cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--card); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(7, 27, 54, .12);
    padding: 10px max(20px, env(safe-area-inset-right, 0px)) 18px max(20px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 12px; font-size: 1.05rem; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
  .nav .btn { margin: 8px 0 0; min-height: 50px; }
}
@media (max-width: 420px) { .brand-txt small { display: none; } }

/* ---------------------------------------------------------------- hero */
.hero { background:
    radial-gradient(900px 480px at 82% 28%, rgba(249, 154, 24, .16), transparent 62%),
    radial-gradient(700px 520px at 6% 100%, rgba(30, 72, 170, .32), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 100% 32px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 32px 100%,
    var(--deep);
  color: var(--on-deep); border-bottom: 4px solid var(--gold); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.1fr); gap: clamp(32px, 4vw, 64px); align-items: center;
  padding-block: clamp(56px, 7vw, 104px) clamp(64px, 8vw, 116px); }
.hero h1 { color: #fff; margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lede { margin-top: 22px; color: var(--on-deep-muted); }
.hero .cta-row { margin-top: 32px; }
.hero-note { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--on-deep-muted); font-size: .95rem; }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note svg { width: 18px; height: 18px; color: var(--amber); flex: none; }
.hero-visual { position: relative; min-width: 0; padding-bottom: 150px; }
.window { background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-2); overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); }
.window-bar { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; background: #E9EEF5; border-bottom: 1px solid var(--line); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #C7D1DE; }
.window-bar span { margin-left: 8px; font: 600 .72rem/1 var(--font-body); color: var(--faint); letter-spacing: .04em; }
.window img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center top; }
.hero-shot { width: 118%; max-width: none; margin-left: 40px; transform: perspective(1600px) rotateY(-8deg) rotateX(2deg); transform-origin: 0 50%; }

/* the ration card: a FACT result in miniature, in front of the real Formulation screen */
.ration { position: absolute; left: -30px; bottom: 0; width: min(360px, 72%); background: var(--card); color: var(--ink);
  border-radius: var(--r-md); box-shadow: 0 18px 50px rgba(3, 12, 28, .45); border-top: 4px solid var(--gold); padding: 16px 18px 14px; }
.r-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.r-kicker { display: block; font: 600 .66rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .12em; color: var(--faint); }
.r-head strong { display: block; font: 700 1.02rem/1.25 var(--font-display); color: var(--navy); margin-top: 3px; }
.r-go { display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 999px; background: var(--leaf-hi); color: #fff;
  font: 600 .82rem/1 var(--font-body); padding: 9px 13px 9px 10px; cursor: pointer; flex: none; box-shadow: 0 6px 16px rgba(5, 150, 105, .3); }
.r-go:hover { background: var(--leaf); }
.r-go svg { width: 15px; height: 15px; }
.r-bars { list-style: none; display: grid; gap: 7px; margin-top: 14px; }
.r-bars li { display: grid; grid-template-columns: 108px minmax(0, 1fr) 46px; align-items: center; gap: 10px; font-size: .84rem; }
.r-bars .n { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-bars .t { height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.r-bars .t i { display: block; height: 100%; width: calc(var(--v) / 55 * 100%); border-radius: inherit;
  background: linear-gradient(90deg, var(--royal), #3E6CD6); transform-origin: left; }
.r-bars li.at-limit .t i { background: linear-gradient(90deg, #B8530F, var(--flame)); }
.r-bars .v { text-align: right; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.r-more { margin-top: 8px; font-size: .74rem; color: var(--faint); }
.r-nuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 12px 0 0; padding: 10px 0; border-block: 1px solid var(--line-2); }
.r-nuts div { display: grid; gap: 2px; }
.r-nuts dt { font: 600 .66rem/1.1 var(--font-body); color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.r-nuts dd { margin: 0; font: 700 .86rem/1.2 var(--font-body); color: var(--navy); font-variant-numeric: tabular-nums; }
.r-nuts dd small { display: block; font: 500 .66rem/1.2 var(--font-body); color: var(--limit); margin-top: 1px; }
.r-cost { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.r-cost div { display: grid; gap: 1px; }
.r-cost div > span { font: 600 .66rem/1.2 var(--font-body); color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.r-cost b { font: 700 1.28rem/1.15 var(--font-display); color: var(--navy); font-variant-numeric: tabular-nums; }
.r-cost b.pos { color: var(--leaf); }
.r-cost small { font-size: .7rem; color: var(--faint); }
.r-time { margin-top: 10px; font-size: .74rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.r-time i { width: 7px; height: 7px; border-radius: 50%; background: var(--leaf-hi); box-shadow: 0 0 0 3px rgba(5, 150, 105, .18); }
.ration.run .r-bars .t i { animation: grow .9s cubic-bezier(.2, .7, .2, 1) both; }
.ration.run .r-bars li:nth-child(2) .t i { animation-delay: .06s; }
.ration.run .r-bars li:nth-child(3) .t i { animation-delay: .12s; }
.ration.run .r-bars li:nth-child(4) .t i { animation-delay: .18s; }
.ration.run .r-bars li:nth-child(5) .t i { animation-delay: .24s; }
.ration.run .r-bars li:nth-child(6) .t i { animation-delay: .30s; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 960px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { padding-bottom: 0; }
  .hero-shot { transform: none; margin-left: 0; width: 100%; }
  .ration { position: relative; left: auto; bottom: auto; width: 100%; max-width: 440px; margin: -48px auto 0; }
}

/* ---------------------------------------------------------------- proof strip */
.proof { background: var(--card); border-bottom: 1px solid var(--line); }
.proof-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof-item { padding: 26px 22px; display: grid; gap: 4px; align-content: start; border-left: 1px solid var(--line-2); }
.proof-item:first-child { border-left: 0; padding-left: 0; }
.proof-item b { font: 700 clamp(1.5rem, 1.2vw + 1rem, 2rem)/1.1 var(--font-display); color: var(--navy); font-variant-numeric: tabular-nums; }
.proof-item span { font-size: .92rem; color: var(--muted); }
@media (max-width: 860px) {
  .proof-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-item { padding: 20px 16px; }
  .proof-item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .proof-item:nth-child(n + 3) { border-top: 1px solid var(--line-2); }
}
@media (max-width: 440px) { .proof-item b { font-size: 1.3rem; } .proof-item span { font-size: .86rem; } }

/* ---------------------------------------------------------------- feature sheet (a grid of hairline cells) */
.sheet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; }
.sheet-cell { padding: 28px 26px 30px; display: grid; align-content: start; gap: 10px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); min-width: 0; }
.sheet-cell:nth-child(3n) { border-right: 0; }
.sheet-cell:nth-last-child(-n + 3) { border-bottom: 0; }
.sheet-cell p { color: var(--muted); font-size: .98rem; line-height: 1.6; }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #FFF1EA; color: var(--flame); }
.ico svg { width: 23px; height: 23px; }
.ico.blue { background: #E8EEFB; color: var(--royal); }
.ico.green { background: #E3F5EE; color: var(--leaf); }
.ico.amber { background: #FFF4E0; color: #B86A00; }
@media (max-width: 960px) {
  .sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet-cell:nth-child(3n) { border-right: 1px solid var(--line-2); }
  .sheet-cell:nth-child(2n) { border-right: 0; }
  .sheet-cell:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line-2); }
  .sheet-cell:nth-last-child(-n + 2) { border-bottom: 0; }
}
@media (max-width: 620px) {
  .sheet { grid-template-columns: minmax(0, 1fr); }
  .sheet-cell, .sheet-cell:nth-child(3n) { border-right: 0; }
  .sheet-cell:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line-2); }
  .sheet-cell:last-child { border-bottom: 0; }
}

/* ---------------------------------------------------------------- showcase tabs */
.tabs-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tab { border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; min-height: 42px; padding: 0 18px;
  font: 600 .95rem/1 var(--font-body); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.tab:hover { border-color: var(--navy); }
.tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.showcase { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); align-items: center; }
.showcase .window { box-shadow: var(--shadow-1); border-color: var(--line); }
.showcase-copy { display: grid; gap: 16px; }
.showcase-copy p { color: var(--muted); }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.ticks svg { width: 20px; height: 20px; color: var(--leaf-hi); margin-top: 3px; }
.band-deep .ticks svg { color: var(--amber); }
@media (max-width: 960px) { .showcase { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .tabs-list { gap: 6px; margin-bottom: 20px; } .tab { min-height: 38px; padding: 0 14px; font-size: .88rem; } }

/* ---------------------------------------------------------------- steps (a real sequence) */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; position: relative; }
.steps li { position: relative; padding: 0 24px 0 0; display: grid; gap: 10px; align-content: start; }
.steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--card); color: var(--navy); border: 2px solid var(--gold); font: 700 1.15rem/1 var(--font-display); position: relative; z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 24px; left: 48px; right: 0; height: 2px; background: linear-gradient(90deg, var(--gold), rgba(212, 170, 72, .15)); }
.steps li:last-child::after { display: none; }
.steps p { color: var(--muted); font-size: .98rem; }
.steps.vertical { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-block: 14px 6px; }
.steps.vertical li { grid-template-columns: 48px minmax(0, 1fr); column-gap: 18px; padding: 0; }
.steps.vertical li::before { grid-row: span 2; }
.steps.vertical li::after { top: 48px; bottom: -22px; left: 23px; right: auto; width: 2px; height: auto; background: linear-gradient(var(--gold), rgba(212, 170, 72, .15)); }
@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .steps li { grid-template-columns: 48px minmax(0, 1fr); column-gap: 18px; padding: 0; }
  .steps li::before { grid-row: span 2; }
  .steps li::after { top: 48px; bottom: -26px; left: 23px; right: auto; width: 2px; height: auto; background: linear-gradient(var(--gold), rgba(212, 170, 72, .15)); }
}

/* ---------------------------------------------------------------- platform cards */
.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.plat-top { display: flex; align-items: center; gap: 14px; }
.plat-top .ico { width: 52px; height: 52px; border-radius: 14px; }
.plat-top .ico svg { width: 27px; height: 27px; }
.plat h3 { font-size: 1.35rem; }
.plat .req { list-style: none; display: grid; gap: 7px; color: var(--muted); font-size: .96rem; }
.plat .req li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 9px; }
.plat .req svg { width: 17px; height: 17px; margin-top: 4px; color: var(--leaf-hi); }
.plat .btn { align-self: flex-start; margin-top: auto; }
.plat .req { margin-bottom: 8px; }
.plat .sub-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .92rem; }
.plat.featured { border-color: var(--navy); box-shadow: inset 0 4px 0 var(--gold), var(--shadow-1); }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 700 .7rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .1em;
  padding: 6px 10px; border-radius: 99px; background: #FFF4E0; color: #9A5800; }
@media (max-width: 960px) { .platforms { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- iPhone band */
.iphone-in { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); gap: clamp(30px, 4vw, 64px); align-items: center; }
.phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 2vw, 22px); }
.phone { width: clamp(150px, 15vw, 214px); aspect-ratio: 390 / 844; border-radius: 34px; padding: 9px; background: #0D1626;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .14), 0 30px 60px rgba(0, 0, 0, .45); position: relative; flex: none; }
.phone::before { content: ""; position: absolute; top: 15px; left: 50%; width: 30%; height: 15px; border-radius: 99px; background: #0D1626; transform: translateX(-50%); z-index: 2; }
/* the screen: a status bar strip in FACT's header navy, so the notch does not cover the app */
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 26px; background: #071B36; padding-top: 28px; }
.phone.mid { width: clamp(170px, 17vw, 240px); }
.phone.side { opacity: .96; margin-bottom: 18px; }
@media (max-width: 960px) {
  .iphone-in { grid-template-columns: minmax(0, 1fr); }
  .phones { order: 2; }
}
@media (max-width: 560px) {
  .phone { width: 31%; border-radius: 22px; padding: 5px; }
  .phone.mid { width: 34%; }
  .phone img { border-radius: 18px; padding-top: 17px; }
  .phone::before { top: 9px; height: 9px; }
}

/* ---------------------------------------------------------------- split rows (features page) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split-copy { display: grid; gap: 16px; align-content: start; }
.split-copy p { color: var(--muted); }
.split-copy .eyebrow, .maker-copy .eyebrow { color: var(--flame-ink); }
.band-deep .split-copy .eyebrow { color: var(--amber); }
.vid-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.feature-list { display: grid; gap: clamp(56px, 7vw, 96px); }
.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; margin-top: 6px; }
.mini-grid div { display: grid; gap: 3px; align-content: start; padding-top: 12px; border-top: 1px solid var(--line); }
.mini-grid b { font: 600 .98rem/1.3 var(--font-display); color: var(--navy); }
.mini-grid span { font-size: .93rem; color: var(--muted); line-height: 1.55; }
@media (max-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split.flip > :first-child { order: 0; }
}
@media (max-width: 520px) { .mini-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- page hero (inner pages) */
.page-hero { background:
    radial-gradient(700px 360px at 90% 0%, rgba(249, 154, 24, .14), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 100% 32px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 32px 100%,
    var(--deep);
  color: var(--on-deep); border-bottom: 4px solid var(--gold); }
.page-hero .wrap { padding-block: clamp(52px, 6vw, 88px); display: grid; gap: 16px; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 2.6vw + 1.2rem, 3.4rem); }
.page-hero .lede { color: var(--on-deep-muted); }
.crumbs { font-size: .85rem; color: var(--on-deep-muted); }
.crumbs a { color: var(--on-deep-muted); }

/* ---------------------------------------------------------------- tutorials */
.vid-groups { display: grid; gap: clamp(44px, 5vw, 70px); }
.vid-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
  padding-bottom: 12px; border-bottom: 2px solid var(--navy); }
.vid-group-head h2 { font-size: clamp(1.35rem, 1vw + 1rem, 1.75rem); }
.vid-group-head span { color: var(--muted); font-size: .95rem; }
.vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.vid { display: grid; gap: 12px; align-content: start; text-decoration: none; color: inherit; background: none; border: 0; padding: 0; text-align: left; font: inherit; cursor: pointer; }
.vid-thumb { position: relative; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-1); aspect-ratio: 16 / 9; background: var(--deep); }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.vid:hover .vid-thumb img { transform: scale(1.03); }
.vid-play { position: absolute; inset: auto auto 12px 12px; display: inline-flex; align-items: center; gap: 7px; background: rgba(7, 27, 54, .86);
  color: #fff; border-radius: 99px; padding: 7px 12px 7px 9px; font: 600 .8rem/1 var(--font-body); }
.vid-play svg { width: 15px; height: 15px; color: var(--amber); }
.vid-num { position: absolute; top: 10px; right: 10px; background: var(--amber); color: var(--deep); border-radius: 6px; padding: 4px 8px; font: 700 .75rem/1 var(--font-body); }
.vid h3 { font-size: 1.06rem; }
.vid p { color: var(--muted); font-size: .93rem; line-height: 1.5; }
.vid:focus-visible { outline-offset: 6px; }

.player { width: min(1100px, 100% - 32px); max-width: 1100px; padding: 0; border: 0; border-radius: var(--r-lg); background: var(--deep); color: #fff;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .5); }
.player::backdrop { background: rgba(4, 12, 26, .78); }
.player-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px 14px 20px; }
.player-title { font: 600 1.02rem/1.3 var(--font-display); }
.player-close { border: 1.5px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; border-radius: 99px; min-height: 38px; padding: 0 14px; font: 600 .9rem/1 var(--font-body); cursor: pointer; }
.player-close:hover { background: rgba(255, 255, 255, .1); }
.player video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player-error { padding: 70px 24px; text-align: center; color: var(--on-deep-muted); display: grid; gap: 8px; place-items: center; aspect-ratio: 16 / 9; align-content: center; }
.player-error b { color: #fff; font: 600 1.1rem/1.3 var(--font-display); }

/* ---------------------------------------------------------------- about / contact / misc */
.bio { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.monogram { width: 180px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--deep); color: #fff;
  font: 700 3.4rem/1 var(--font-display); letter-spacing: .02em; box-shadow: inset 0 0 0 6px var(--gold), var(--shadow-1); }
.portrait { display: block; width: 180px; height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: var(--deep);
  border: 5px solid var(--gold); box-shadow: var(--shadow-1); }
.bio-copy { display: grid; gap: 14px; }
.bio-copy .role { font-weight: 600; color: var(--flame-ink); }
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.value { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 3px solid var(--gold); }
.value p { color: var(--muted); font-size: .97rem; }
@media (max-width: 900px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .bio { grid-template-columns: minmax(0, 1fr); } .monogram, .bio .portrait { width: 120px; font-size: 2.4rem; } }
@media (max-width: 520px) { .values { grid-template-columns: minmax(0, 1fr); } }

.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 14px; align-content: start; }
.contact-card .big { font: 700 clamp(1.3rem, 1vw + 1rem, 1.7rem)/1.2 var(--font-display); color: var(--navy); word-break: break-word; font-variant-numeric: tabular-nums; }
.copy-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.copy-btn { border: 1.5px solid var(--line); background: var(--card); color: var(--navy); border-radius: 99px; min-height: 40px; padding: 0 14px;
  font: 600 .9rem/1 var(--font-body); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.copy-btn svg { width: 16px; height: 16px; }
.copy-btn:hover { border-color: var(--navy); }
@media (max-width: 760px) { .contact-cards { grid-template-columns: minmax(0, 1fr); } }

.notes { display: grid; gap: 14px; margin-top: 22px; }
.note { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: var(--r-md); padding: 18px 20px; color: var(--muted); }
.note b { color: var(--navy); }
.prose { display: grid; gap: 16px; max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin-top: 18px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2em; display: grid; gap: 6px; }

/* install steps */
.how { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.how-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 28px; display: grid; gap: 16px; align-content: start; }
.how-card ol { list-style: none; counter-reset: h; display: grid; gap: 14px; }
.how-card li { counter-increment: h; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; color: var(--muted); }
.how-card li::before { content: counter(h); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--soft); color: var(--navy); font: 700 .85rem/1 var(--font-display); }
.how-card li b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .how { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .how-card, .plat, .contact-card { padding: 22px 18px; } }

.license-flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (max-width: 900px) { .license-flow { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font: 600 1.1rem/1.4 var(--font-display); color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 70ch; }

/* call to action band */
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--on-deep-muted); margin-top: 10px; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: minmax(0, 1fr); } }

/* tutorials teaser + about teaser on Home */
.teaser { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 900px) { .teaser { grid-template-columns: minmax(0, 1fr); } }
.maker { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); }
.maker .monogram { width: 120px; font-size: 2.3rem; }
.maker .portrait { width: 120px; border-width: 4px; }
.maker-copy { display: grid; gap: 12px; }
.maker-copy p { color: var(--muted); }
@media (max-width: 620px) { .maker { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--deep); color: var(--on-deep-muted); border-top: 4px solid var(--gold); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 56px 40px; }
.foot .brand-txt b { color: #fff; }
.foot .brand-txt small { color: var(--amber); }
.foot p { margin-top: 14px; font-size: .95rem; max-width: 36ch; }
.foot h4 { font: 700 .78rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: 14px; }
.foot ul { list-style: none; display: grid; gap: 9px; }
.foot a { color: var(--on-deep); text-decoration: none; }
.foot a:hover { color: var(--amber); text-decoration: underline; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.foot-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 18px; font-size: .86rem; }
@media (max-width: 900px) { .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-in > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-in { grid-template-columns: minmax(0, 1fr); } }

/* floating WhatsApp button */
.wa-float { position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: inline-flex; align-items: center; gap: 9px; background: var(--leaf-hi); color: #fff; text-decoration: none; border-radius: 99px;
  padding: 13px 18px 13px 15px; font: 600 .95rem/1 var(--font-body); box-shadow: 0 12px 30px rgba(4, 120, 87, .35); }
.wa-float:hover { background: var(--leaf); color: #fff; }
.wa-float svg { width: 21px; height: 21px; }
@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }

/* preview notice (only in the preview build) */
.preview-bar { background: var(--amber); color: var(--deep); font-size: .88rem; font-weight: 600; text-align: center; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); }
.toast { position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--deep); color: #fff;
  padding: 12px 18px; border-radius: 12px; font-size: .92rem; box-shadow: var(--shadow-2); z-index: 60; max-width: calc(100% - 32px); text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero-shot { transform: none; }
}
