/* flyte-app.com — the Flyte product site.
   Same design language as the Flyte app and the Knowledge Base: navy #202944, the logo's
   chevron greys (#36415B, #5B6984, #9BA7BC), action indigo #3D4EE8, Plus Jakarta Sans.
   Fonts are self-hosted and nothing loads from another host, so the site works in China. */

@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy: #202944; --navy-deep: #161D33; --slate: #36415B; --steel: #5B6984; --mist: #9BA7BC;
  --bg: #F6F7FA; --surface: #FFFFFF; --sunk: #EEF0F5;
  --ink: #1B2238; --ink-2: #434B63; --muted: #66708A;
  --line: #E1E4EC; --line-2: #CDD2DE;
  --accent: #3D4EE8; --accent-ink: #2F3EC4; --accent-soft: #ECEEFE; --accent-on-dark: #8C97FF;
  --ok: #0E7A5A; --ok-bg: #E8F6F0; --warn: #A75A00; --warn-bg: #FFF4E2; --bad: #C0392B; --bad-bg: #FDECEA;
  --team: #3D4EE8; --cust: #0E8A6A; --fact: #C2620A;   /* one colour per portal, used everywhere */
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20,26,48,.05), 0 6px 22px -10px rgba(20,26,48,.18);
  --shadow-lg: 0 2px 4px rgba(20,26,48,.05), 0 28px 60px -22px rgba(20,26,48,.38);
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Roboto, Arial, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 16.5px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }

h1, h2, h3, h4 { color: var(--ink); letter-spacing: -0.025em; line-height: 1.12; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
p { color: var(--ink-2); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 44em; margin-top: 18px; }
.muted { color: var(--muted); }

/* ── buttons (the app's: 10px radius, indigo) ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 0.98rem/1 var(--font); text-decoration: none; padding: 13px 20px; border-radius: var(--radius-sm); border: 1.5px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); box-shadow: 0 10px 24px -10px rgba(61,78,232,.7); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--accent-soft); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.3); }
.btn-outline-light:hover { border-color: #fff; }
.btn-sm { padding: 9px 14px; font-size: 0.9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ── top bar ── */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 26px; height: 68px; }
.brand img { height: 32px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav > a, .nav-menu > button { font: 600 0.94rem var(--font); color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav > a:hover, .nav-menu > button:hover, .nav-menu:focus-within > button { color: var(--ink); background: var(--sunk); }
.nav [aria-current="page"], .nav-menu.is-current > button { color: var(--accent); }
.nav-menu > button svg { width: 14px; height: 14px; opacity: .6; }
.top-right .nav-menu > button svg { width: 17px; height: 17px; opacity: 1; }
.nav-ext svg { width: 13px; height: 13px; opacity: .6; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.nav-menu { position: relative; }
.menu-panel { position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; display: none; }
.top-right .menu-panel { left: auto; right: 0; min-width: 320px; }
.nav-menu.open .menu-panel { display: block; }
@media (hover: hover) { .nav-menu:hover .menu-panel { display: block; } .nav-menu::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; } }
.menu-panel a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.menu-panel a:hover { background: var(--bg); }
.menu-panel a b { display: block; font-size: 0.95rem; }
.menu-panel a span { display: block; font-size: 0.84rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.menu-panel .mi { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--sunk); color: var(--navy); }
.menu-panel .mi svg { width: 18px; height: 18px; }
.mi.team { background: var(--accent-soft); color: var(--team); }
.mi.cust { background: #E3F4EE; color: var(--cust); }
.mi.fact { background: #FCEEDD; color: var(--fact); }
.menu-sep { height: 1px; background: var(--line); margin: 6px 8px; }
.menu-note { font-size: 0.82rem; color: var(--muted); padding: 6px 12px 8px; line-height: 1.45; }

.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: 9px; width: 40px; height: 40px; place-items: center; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }

/* ── hero (navy, like the app's sign-in) ── */
.hero { position: relative; overflow: hidden; background: linear-gradient(140deg, var(--navy) 0%, var(--navy) 45%, var(--slate) 130%); color: #fff; padding: 88px 0 0; }
.hero::before { content: ""; position: absolute; top: 46px; right: -70px; width: 560px; height: 360px; background: rgba(255,255,255,.045); -webkit-mask: url('/assets/img/flyte-icon-lbg.svg') center / contain no-repeat; mask: url('/assets/img/flyte-icon-lbg.svg') center / contain no-repeat; pointer-events: none; }
.hero .wrap { position: relative; }
.hero h1, .hero h2, .hero h3 { color: #fff; }
.hero p, .hero .lede { color: #C9D0DE; }
.hero .eyebrow { color: var(--mist); }
.hero .accent { color: var(--accent-on-dark); }
.hero-sm { padding: 72px 0 64px; }
.hero-copy { max-width: 780px; }
.hero-logo { height: 44px; width: auto; margin-bottom: 26px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 0.9rem; color: var(--mist); }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note svg { width: 16px; height: 16px; color: var(--accent-on-dark); }

/* screenshot frames */
.frame { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.frame-bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #D5D9E3; }
.frame img { width: 100%; height: auto; }
.frame.dark { border-color: rgba(255,255,255,.12); }
.frame.cut { border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; margin-bottom: -1px; }
figure { margin: 0; }
figcaption.cap { margin-top: 12px; font-size: 0.9rem; color: var(--muted); }

.hero-shots { margin-top: 64px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: end; }
.hero-shots .stack { display: grid; gap: 22px; }
.hero-shots .frame.cut { max-height: 520px; }
.hero-shots .stack .frame { max-height: 250px; }
.hero-shots .stack .frame:last-child { border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; margin-bottom: -1px; max-height: 230px; }
.shot-label { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 700; font-size: 0.92rem; color: #fff; }
.shot-label em { font-style: normal; font-weight: 500; font-size: 0.78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mist); }

/* portal chip: one colour per portal */
.pchip { display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; font-weight: 700; padding: 4px 9px 4px 7px; border-radius: 999px; white-space: nowrap; }
.pchip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pchip.team { background: var(--accent-soft); color: var(--team); }
.pchip.cust { background: #E3F4EE; color: var(--cust); }
.pchip.fact { background: #FCEEDD; color: var(--fact); }
.pchip.link { background: var(--sunk); color: var(--steel); }
.pchip.auto { background: var(--sunk); color: var(--steel); }
.hero .pchip.team { background: rgba(61,78,232,.25); color: #C3C9FF; }
.hero .pchip.cust { background: rgba(14,138,106,.25); color: #9FE3CD; }
.hero .pchip.fact { background: rgba(194,98,10,.28); color: #FFCE9C; }

/* status pills, as the app draws them */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--sunk); color: var(--ink-2); white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.s-draft { color: #5B6478; }
.status.s-sub { background: #FFF4DD; color: #9A5B00; }
.status.s-prod { background: #F1E8FF; color: #6A2FC9; }
.status.s-ship { background: #E6EEFF; color: #2547C9; }
.status.s-done { background: var(--ok-bg); color: var(--ok); }
.status.s-hold { background: var(--bad-bg); color: var(--bad); }

/* ── sections ── */
.section { padding: 96px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark { background: var(--navy); color: #fff; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark p { color: #C9D0DE; }
.section.dark .eyebrow { color: var(--mist); }
.section-head { max-width: 760px; }
.section-head.split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.section-head.split .lede { margin-top: 0; }

.grid { display: grid; gap: 18px; margin-top: 44px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.section.alt .card { background: var(--bg); box-shadow: none; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.96rem; }
.card .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.card .ic svg { width: 21px; height: 21px; }
a.card { text-decoration: none; display: block; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; font-size: 0.92rem; color: var(--accent); }
.card .more svg { width: 16px; height: 16px; }
.card .opt { float: right; }

.opt-tag { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--sunk); color: var(--steel); vertical-align: 2px; margin-left: 6px; }

/* the three portals */
.portal-card { position: relative; padding: 28px; overflow: hidden; }
.portal-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c, var(--accent)); }
.portal-card.team { --c: var(--team); }
.portal-card.cust { --c: var(--cust); }
.portal-card.fact { --c: var(--fact); }
.portal-card .who { font-size: 0.8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c); margin-bottom: 8px; }
.portal-card h3 { font-size: 1.4rem; }
.portal-card ul { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.portal-card li { position: relative; padding-left: 22px; font-size: 0.95rem; color: var(--ink-2); }
.portal-card li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; border-top: 2.2px solid var(--c); border-right: 2.2px solid var(--c); transform: rotate(45deg); }

/* the flow: who acts at each step */
.flow { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-top: 44px; counter-reset: f; }
.flow li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 14px; counter-increment: f; }
.flow li::before { content: counter(f, decimal-leading-zero); display: block; font-size: 0.75rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.flow b { display: block; font-size: 0.96rem; line-height: 1.3; margin-bottom: 10px; }
.flow .pchip { font-size: 0.7rem; }

/* sees / never sees */
.sees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.sees .card h3 { display: flex; align-items: center; gap: 10px; }
.sees dl { margin-top: 14px; display: grid; gap: 10px; }
.sees dt { font-size: 0.76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sees dd { font-size: 0.95rem; color: var(--ink-2); }
.sees dd.no { color: var(--bad); }

/* media rows */
.row { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.row:first-of-type, .band-row { border-top: 0; }
.band-row { padding: 0; }
.section.dark .lede { color: #C9D0DE; }
.row.flip .row-copy { order: 2; }
.row.flip { grid-template-columns: 1.15fr 0.85fr; }
.row h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.2; margin-bottom: 12px; }
.ticks { list-style: none; margin-top: 18px; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink); font-size: 0.97rem; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .3em; width: 15px; height: 15px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233D4EE8' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 10px no-repeat; }
.section.dark .ticks li { color: #fff; }

/* callouts, as in the Knowledge Base */
.callout { border-radius: 12px; padding: 16px 18px; margin-top: 22px; font-size: 0.95rem; border: 1px solid; }
.callout b:first-child { display: block; margin-bottom: 3px; }
.callout.info { background: #EBF1FD; border-color: #D3E0FA; color: #24407F; }
.callout.info p, .callout.tip p { color: inherit; }
.callout.tip { background: var(--ok-bg); border-color: #CBE9DC; color: #0B5A43; }

/* tables, app style */
.table-wrap { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
th { text-align: left; font-size: 0.74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--bg); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--ink); font-weight: 700; white-space: nowrap; }

/* ── portal pages: an app-style sidebar beside the content ── */
.portal-layout { display: grid; grid-template-columns: 250px 1fr; gap: 48px; align-items: start; padding-top: 56px; padding-bottom: 96px; }
.side { position: sticky; top: 88px; background: var(--navy); border-radius: var(--radius); padding: 16px 10px; color: #fff; max-height: calc(100vh - 110px); overflow-y: auto; }
.side .side-h { display: flex; align-items: center; gap: 10px; padding: 6px 10px 14px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 8px; }
.side .side-h img { height: 22px; width: auto; }
.side .side-h span { font-size: 0.7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mist); }
.side .grp { font-size: 0.68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); padding: 12px 10px 6px; }
.side a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: #C9D0DE; text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.side a svg { width: 16px; height: 16px; opacity: .8; flex: none; }
.side a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side a.on { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 3px 0 0 var(--accent-on-dark); }
.doc > section { padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.doc > section:first-child { border-top: 0; padding-top: 0; }
.doc h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); display: flex; align-items: center; gap: 12px; }
.doc h2 .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.doc h2 .ic svg { width: 19px; height: 19px; }
.doc > section > p { margin-top: 14px; max-width: 46em; }
.doc .frame { margin-top: 26px; }
.doc h3 { margin-top: 28px; }
.doc h3 + p { margin-top: 8px; }
.doc .grid { margin-top: 24px; }
.fact-page .doc h2 .ic { background: #FCEEDD; color: var(--fact); }
.cust-page .doc h2 .ic { background: #E3F4EE; color: var(--cust); }

/* ── timeline (how it works) ── */
.timeline { list-style: none; margin-top: 48px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline > li { position: relative; padding: 0 0 40px 70px; }
.timeline .n { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 800; font-size: 0.95rem; }
.timeline h3 { font-size: 1.3rem; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.timeline p { margin-top: 8px; max-width: 46em; }
.timeline .meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 0.86rem; color: var(--muted); }
.timeline .meta b { color: var(--ink-2); font-weight: 600; }
.timeline .frame { margin-top: 22px; max-width: 900px; }
.phase { font-size: 0.78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 8px 0 26px 70px; }

/* ── integrations ── */
.int { display: grid; gap: 12px; align-content: start; }
.int img, .int .mark { width: 44px; height: 44px; border-radius: 10px; }
.int .mark { display: grid; place-items: center; font-weight: 800; color: #fff; font-size: .9rem; }
.int h3 { font-size: 1.05rem; margin: 0; }
.int p { font-size: 0.92rem; }
.card.int.own, .section.alt .card.int.own { background: var(--navy); border-color: var(--navy); }
.int.own h3 { color: #fff; }
.int.own p { color: #C9D0DE; }
.int.own .opt-tag { background: rgba(255,255,255,.1); color: var(--mist); }
.logo-strip { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.logo-strip span { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-weight: 700; font-size: 0.92rem; }
.logo-strip img { width: 30px; height: 30px; border-radius: 8px; }

/* ── login ── */
.login-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: -60px; position: relative; }
.login-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; scroll-margin-top: 90px; }
.login-card .who { font-size: 0.8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.login-card.team { --c: var(--team); }
.login-card.fact { --c: var(--fact); }
.login-card h2 { font-size: 1.7rem; margin: 6px 0 10px; }
.login-card ul { margin: 16px 0 26px; padding-left: 18px; color: var(--ink-2); font-size: 0.95rem; display: grid; gap: 6px; }
.login-card .btn { margin-top: auto; align-self: flex-start; }
.login-card .help { margin-top: 14px; font-size: 0.88rem; color: var(--muted); }

/* ── KB band ── */
.kb { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.kb-list { display: grid; gap: 10px; }
.kb-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; }
.kb-list a:hover { border-color: var(--accent); }
.kb-list a > span { display: grid; gap: 2px; }
.kb-list a small { font-weight: 500; font-size: 0.85rem; color: var(--muted); }
.kb-list svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* ── CTA ── */
.cta { background: var(--navy); color: #fff; border-radius: 22px; padding: 56px; display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 300px; height: 200px; background: rgba(255,255,255,.05); -webkit-mask: url('/assets/img/flyte-icon-lbg.svg') center / contain no-repeat; mask: url('/assets/img/flyte-icon-lbg.svg') center / contain no-repeat; }
.cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta p { color: #C9D0DE; margin-top: 10px; }
.cta .actions { margin-top: 0; position: relative; z-index: 1; }

/* ── forms ── */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px; display: grid; gap: 18px; box-shadow: var(--shadow); }
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-size: 0.86rem; font-weight: 700; color: var(--ink); }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { font: 500 1rem var(--font); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); padding: 11px 13px; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(61,78,232,.25); border-color: var(--accent); }
.field .invalid { border-color: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { font-size: 0.92rem; color: var(--muted); min-height: 1.4em; }
.form-status.error { color: var(--bad); }
.form-sent h3 { margin-bottom: 6px; }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }

/* FAQ */
.faq { display: grid; gap: 10px; margin-top: 36px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 17px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.35rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 18px; }

/* ── footer ── */
.footer { background: var(--navy-deep); color: #C9D0DE; padding: 64px 0 36px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer img.logo { height: 30px; width: auto; margin-bottom: 14px; }
.footer p { color: #9BA7BC; font-size: 0.92rem; max-width: 26em; }
.footer h4 { color: #fff; font-size: 0.82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer a { color: #C9D0DE; text-decoration: none; font-size: 0.93rem; }
.footer a:hover { color: #fff; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: 0.86rem; color: #9BA7BC; }
.built-by { display: inline-flex; align-items: center; gap: 8px; color: #C9D0DE !important; }
.built-by img { height: 16px; width: auto; filter: brightness(0) invert(1); opacity: .85; }

/* zoomed screenshot */
.zoom-view { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(22,29,51,.9); cursor: zoom-out; }
.zoom-view img { max-width: min(1600px, 100%); max-height: 100%; width: auto; height: auto; border-radius: 10px; }
.zoom-view button { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: var(--navy); font-size: 1.4rem; cursor: pointer; }
.frame img[data-zoom] { cursor: zoom-in; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Chinese page ── */
.zh { --font: 'Plus Jakarta Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif; }
.zh h1, .zh h2, .zh h3 { letter-spacing: 0; word-break: keep-all; overflow-wrap: anywhere; }
.zh h1 { line-height: 1.22; }
.zh h2 { line-height: 1.32; }
.zh p, .zh li, .zh dd { line-height: 1.8; }
.zh .eyebrow { letter-spacing: .04em; text-transform: none; font-size: .9rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, a.card { transition: none; }
}

/* ── responsive ── */
@media (max-width: 1060px) {
  .flow { grid-template-columns: repeat(4, 1fr); }
  .g4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav, .top-right .btn-primary { display: none; }
  .nav-toggle { display: grid; }
  .topbar.open .nav { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 68px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 16px 18px; margin: 0; box-shadow: var(--shadow-lg); }
  .topbar.open .menu-panel { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 6px 8px; min-width: 0; }
  .topbar.open .nav-menu > button .caret { display: none; }
  .top-right { margin-left: 0; }
  .hero { padding-top: 60px; }
  .hero-shots { grid-template-columns: 1fr; }
  .hero-shots .stack { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-shots .stack .frame, .hero-shots .stack .frame:last-child { max-height: 170px; border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; margin-bottom: -1px; }
  .hero-shots .frame.cut { max-height: 340px; border-radius: var(--radius); border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 0; }
  .section { padding: 72px 0; }
  .section-head.split, .row, .row.flip, .kb, .contact-grid, .cta { grid-template-columns: 1fr; gap: 28px; }
  .row.flip .row-copy { order: 0; }
  .g3, .sees { grid-template-columns: 1fr; }
  .portal-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
  .doc { min-width: 0; }
  .side { position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; }
  .side .side-h, .side .grp { display: none; }
  .side a { font-size: 0.85rem; padding: 6px 9px; }
  .side a svg { display: none; }
  .login-grid { grid-template-columns: 1fr; margin-top: -40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta { padding: 36px 28px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .g2, .g4, .field-row { grid-template-columns: 1fr; }
  .timeline > li { padding-left: 58px; }
  .timeline .n { width: 38px; height: 38px; }
  .timeline::before { left: 18px; }
  .phase { margin-left: 58px; }
  .footer-grid { grid-template-columns: 1fr; }
  .top-right .btn-ghost .lbl { display: none; }
}

/* icons stamped by tools/build.js */
i[data-icon] { display: contents; font-style: normal; }
.eyebrow svg { width: 16px; height: 16px; }
.btn i[data-icon] svg, .nav svg { flex: none; }
[hidden] { display: none !important; }
.timeline > li.phase { padding: 0 0 20px 70px; margin: 0; }
.login-card .callout { font-size: .92rem; }
@media (max-width: 600px) { .timeline > li.phase { padding-left: 58px; } }
.wrap.hero-copy { max-width: var(--wrap); }
.wrap.hero-copy > * { max-width: 780px; }
.timeline .callout { max-width: 900px; }

@media (max-width: 600px) {
  .shot-label em { display: none; }
  .zh h1 { font-size: 1.85rem; }
  .zh h2 { font-size: 1.5rem; }
}

/* ── pricing (/pricing/) ── */
.price-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.cur-switch { display: inline-flex; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px; gap: 2px; }
.cur-switch button { font: 700 0.88rem/1 var(--font); color: var(--ink-2); background: transparent; border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer; }
.cur-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.cur-switch button:not([aria-pressed="true"]):hover { color: var(--accent); }
.price-tax { font-size: 0.92rem; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.plan .btn { margin: 20px 0 22px; width: 100%; }
.plan .ticks { margin-top: 0; }
.plan-pick { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.plan-flag { position: absolute; top: -13px; left: 24px; background: var(--accent); color: #fff; font-size: 0.74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.plan-name { font-size: 1.3rem; }
.plan-for { font-size: 0.93rem; margin-top: 6px; min-height: 3em; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: 18px; color: var(--ink); }
.plan-price .amt { font-size: 2.25rem; white-space: nowrap; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.plan-price .per, .plan-price .from { white-space: nowrap; font-size: 0.92rem; color: var(--muted); font-weight: 600; }
.plan-limit { margin-top: 10px; font-size: 0.95rem; color: var(--ink-2); padding-bottom: 2px; }
.plan-limit b { color: var(--ink); }
.plan-ent { background: var(--navy); border-color: var(--navy); }
.plan-ent h2, .plan-ent .plan-price, .plan-ent .plan-limit b, .plan-ent .ticks li { color: #fff; }
.plan-ent p, .plan-ent .plan-price .per, .plan-ent .plan-price .from { color: #C9D0DE; }
.price-foot { margin-top: 26px; font-size: 0.95rem; }
.addon-price { margin: 4px 0 10px; color: var(--ink); font-size: 0.95rem; }
.addon-price .amt { font-size: 1.25rem; font-weight: 800; }
@media (max-width: 1060px) { .plans { grid-template-columns: repeat(2, 1fr); row-gap: 26px; } }
@media (max-width: 600px)  { .plans { grid-template-columns: 1fr; } .plan-for { min-height: 0; } }
