/* Split Video Parts. Palette from the app icon: warm near-black with cream, sand and gold bars.
   Cyan and blue come from the app's own accent and Split button gradient (SplitTheme.swift). */
:root {
  --bg: #1c1916;
  --bg-2: #231f1b;
  --tile: #2b2621;
  --line: rgba(245, 230, 200, 0.10);
  --cream: #f5e6c8;
  --sand: #e8c27a;
  --gold: #c9a227;
  --ink: #f7efe0;
  --muted: #b9ad98;
  --dim: #8f846f;
  --cyan: #5ce3e6;
  --blue: #3394ff;
  --radius: 22px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--sand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cream); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.025em; margin: 0; color: var(--cream); }
p { margin: 0; }

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

.skip { position: absolute; left: -9999px; top: 8px; background: var(--cream); color: var(--bg); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 5; background: rgba(28, 25, 22, 0.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; box-shadow: 0 0 0 1px var(--line); }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); }
.nav .hide-sm { display: none; }
@media (min-width: 720px) { .nav .hide-sm { display: inline; } }

/* Badge */
.badge { display: inline-block; line-height: 0; border-radius: 10px; }
.badge img { width: 170px; height: auto; }
.badge.small img { width: 120px; }

/* Hero */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201, 162, 39, 0.20), rgba(201, 162, 39, 0) 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 88px 0 104px; } .hero .wrap { grid-template-columns: 1.12fr 0.88fr; gap: 56px; } }
.app-id { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.app-id img { width: 80px; height: 80px; border-radius: 19px; box-shadow: 0 0 0 1px var(--line), 0 18px 40px -12px rgba(0, 0, 0, 0.7); }
.app-id .name { font-size: 20px; font-weight: 700; color: var(--cream); line-height: 1.2; }
.app-id .meta { font-size: 14px; color: var(--muted); }
.hero h1 { font-size: clamp(40px, 7.2vw, 72px); font-weight: 800; }
.hero h1 .gold { background: linear-gradient(90deg, var(--cream), var(--sand) 45%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { margin-top: 22px; font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34em; }
.hero .cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.hero .cta .note { font-size: 14px; color: var(--dim); }
.chips { margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; color: var(--cream); background: var(--tile); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }

/* Device frame */
.device {
  position: relative; width: min(300px, 78vw); margin: 0 auto; aspect-ratio: 1287 / 2796;
  padding: 11px; border-radius: 52px; background: linear-gradient(145deg, #3a342d, #15120f 60%);
  box-shadow: 0 0 0 1px rgba(245, 230, 200, 0.14), 0 40px 80px -30px rgba(0, 0, 0, 0.85), 0 0 120px -40px rgba(201, 162, 39, 0.35);
}
.device img { width: 100%; height: 100%; object-fit: cover; border-radius: 42px; background: #fff; }
.device::after { content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 30%; height: 24px; background: #000; border-radius: 20px; }
.hero-figure { position: relative; }
.hero-figure figcaption { text-align: center; margin-top: 18px; font-size: 13px; color: var(--dim); }

/* Sections */
.section { padding: 80px 0; border-top: 1px solid var(--line); }
@media (min-width: 960px) { .section { padding: 112px 0; } }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.section h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; max-width: 17em; }
.section .intro { margin-top: 18px; color: var(--muted); font-size: 19px; max-width: 36em; }

/* Split diagram */
.diagram { margin-top: 48px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 28px; padding: 28px 20px; }
@media (min-width: 720px) { .diagram { padding: 44px; } }
.file-label { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.file-label strong { color: var(--cream); font-weight: 600; }
.source-bar { position: relative; height: 64px; border-radius: 16px; overflow: hidden; background:
  repeating-linear-gradient(90deg, rgba(0,0,0,0.35) 0 6px, transparent 6px 14px) top / 100% 8px no-repeat,
  repeating-linear-gradient(90deg, rgba(0,0,0,0.35) 0 6px, transparent 6px 14px) bottom / 100% 8px no-repeat,
  linear-gradient(90deg, #6b5a3a, #8a7040 30%, #6f6a55 55%, #4e5a5e 80%, #3d4a55); }
.source-bar .cuts { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.source-bar .cuts span { border-right: 2px dashed rgba(245, 230, 200, 0.85); }
.source-bar .cuts span:last-child { border-right: 0; }
.arrow-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 22px 0; color: var(--muted); font-size: 15px; }
.split-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 999px; font-weight: 700; color: #000; background: linear-gradient(90deg, var(--blue), var(--cyan)); font-size: 16px; }
.split-pill svg { width: 18px; height: 18px; }
.parts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.parts li { min-width: 0; }
.parts .chunk { height: 64px; border-radius: 14px; }
.parts li:nth-child(1) .chunk { background: var(--cream); }
.parts li:nth-child(2) .chunk { background: #efd4a1; }
.parts li:nth-child(3) .chunk { background: var(--sand); }
.parts li:nth-child(4) .chunk { background: #d9b251; }
.parts li:nth-child(5) .chunk { background: var(--gold); }
.parts .fname { margin-top: 10px; font-size: 13px; color: var(--cream); font-weight: 600; overflow-wrap: anywhere; line-height: 1.3; }
.parts .size { margin-top: 4px; font-size: 13px; color: var(--muted); }
@media (max-width: 719px) {
  .parts { grid-template-columns: 1fr; gap: 8px; }
  .parts li { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; }
  .parts .fname { font-size: 12.5px; overflow-wrap: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .parts .size { font-size: 12px; white-space: nowrap; }
  .parts .chunk { height: 36px; border-radius: 10px; }
  .parts .fname, .parts .size { margin: 0; }
}
.diagram-note { margin-top: 26px; font-size: 14px; color: var(--dim); }

/* Features */
.features { margin-top: 48px; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tile); color: var(--sand); margin-bottom: 18px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 20px; letter-spacing: -0.01em; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* Showcase */
.showcase .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .showcase .wrap { grid-template-columns: 0.8fr 1.2fr; gap: 80px; } }
.callouts { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.callouts li { display: grid; grid-template-columns: 10px 1fr; gap: 16px; }
.callouts li::before { content: ""; width: 10px; border-radius: 4px; background: var(--sand); }
.callouts li:nth-child(1)::before { background: var(--cream); }
.callouts li:nth-child(3)::before { background: var(--gold); }
.callouts strong { color: var(--cream); display: block; font-size: 17px; }
.callouts span { color: var(--muted); font-size: 16px; }

/* Steps */
.steps { margin: 48px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 30px; overflow: hidden; }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-weight: 800; font-size: 19px; color: var(--bg); background: var(--cream); margin-bottom: 20px; }
.steps li:nth-child(2)::before { background: var(--sand); }
.steps li:nth-child(3)::before { background: var(--gold); }
.steps h3 { font-size: 22px; }
.steps p { margin-top: 10px; color: var(--muted); font-size: 16px; }

/* Privacy block */
.privacy-card { margin-top: 48px; display: grid; gap: 16px; }
@media (min-width: 900px) { .privacy-card { grid-template-columns: repeat(3, 1fr); } }
.privacy-card div { border-radius: var(--radius); padding: 26px; background: linear-gradient(180deg, rgba(92, 227, 230, 0.07), rgba(92, 227, 230, 0) 70%), var(--bg-2); border: 1px solid var(--line); }
.privacy-card h3 { font-size: 20px; }
.privacy-card p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.privacy-more { margin-top: 24px; font-size: 16px; color: var(--muted); }

/* Closing */
.closing { text-align: center; padding: 96px 0 104px; border-top: 1px solid var(--line); background: radial-gradient(60% 80% at 50% 100%, rgba(201, 162, 39, 0.16), rgba(201, 162, 39, 0) 70%); }
.closing img.icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 28px; box-shadow: 0 0 0 1px var(--line), 0 24px 50px -16px rgba(0, 0, 0, 0.8); }
.closing h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.closing p { margin: 16px auto 0; color: var(--muted); font-size: 19px; max-width: 30em; }
.closing .badge { margin-top: 32px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 14px; color: var(--dim); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: center; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--cream); text-decoration: underline; }

/* Document pages */
.doc { padding: 56px 0 88px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 6vw, 52px); font-weight: 800; }
.doc .updated { margin-top: 12px; color: var(--dim); font-size: 15px; }
.doc .lead { margin-top: 20px; font-size: 19px; color: var(--muted); }
.doc h2 { font-size: 24px; margin-top: 44px; letter-spacing: -0.015em; }
.doc p, .doc li { color: #ddd2bd; }
.doc p { margin-top: 14px; }
.doc ul { margin: 14px 0 0; padding-left: 22px; }
.doc li { margin-top: 8px; }
.doc li::marker { color: var(--gold); }
.contact-card { margin-top: 32px; padding: 26px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.contact-card strong { display: block; color: var(--cream); font-size: 18px; }
.contact-card span { color: var(--muted); font-size: 15px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; color: #000; background: linear-gradient(90deg, var(--blue), var(--cyan)); text-decoration: none; }
.button:hover { color: #000; filter: brightness(1.06); }
.faq { margin-top: 20px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 650; font-size: 18px; color: var(--cream); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; font-weight: 400; color: var(--sand); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 20px; }
.faq details > div p:first-child { margin-top: 0; }

/* 404 */
.notfound { min-height: 64vh; display: grid; place-items: center; text-align: center; padding: 72px 0; }
.notfound .bars { display: flex; gap: 10px; justify-content: center; margin-bottom: 32px; }
.notfound .bars span { width: 34px; height: 76px; border-radius: 10px; }
.notfound .bars span:nth-child(1) { background: var(--cream); }
.notfound .bars span:nth-child(2) { background: var(--sand); transform: translateY(14px) rotate(8deg); }
.notfound .bars span:nth-child(3) { background: var(--gold); }
.notfound h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 800; }
.notfound p { margin-top: 14px; color: var(--muted); font-size: 18px; }
.notfound .button { margin-top: 28px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Phone menu */
.nav-menu { display: none; place-items: center; width: 40px; height: 40px; padding: 0; margin-left: -8px; border: 1px solid var(--line); border-radius: 12px; background: var(--tile); color: var(--cream); cursor: pointer; }
.nav-menu svg { width: 20px; height: 20px; }
.nav-menu:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 12px; }
.menu-panel { display: none; position: absolute; top: calc(100% + 8px); left: 12px; right: 12px; padding: 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85), 0 12px 30px rgba(0, 0, 0, 0.4); }
.menu-panel nav { display: grid; gap: 2px; }
.menu-panel nav a { color: var(--cream); text-decoration: none; font-size: 17px; font-weight: 600; padding: 12px 14px; border-radius: 14px; }
.menu-panel nav a:hover { background: var(--tile); color: var(--cream); }
.menu-panel nav a[aria-current="page"] { color: var(--sand); }
.menu-cta { margin: 6px 6px 0; padding: 14px 8px 8px; border-top: 1px solid var(--line); }
.menu-cta .badge img { width: 150px; }
@media (max-width: 719px) {
  .nav a:not(.badge) { display: none; }
  .nav-menu { display: grid; }
  .menu-panel:not([hidden]) { display: block; }
}

/* Jump button */
.jump {
  position: fixed; right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 20;
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  color: #000; background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 30px -8px rgba(51, 148, 255, 0.55), 0 2px 8px rgba(0, 0, 0, 0.5);
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.92);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.jump.show { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease; }
.jump:hover { filter: brightness(1.06); }
.jump svg { width: 22px; height: 22px; }
.jump:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 50%; }
