/* Cookpit: web aplikace. Barvy, písmo a poloměry přebírá z aplikace (packages/ui/src/tokens.ts). */

@font-face {
  font-family: "Red Hat Display";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fonts/red-hat-display-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Red Hat Display";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fonts/red-hat-display-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Red Hat Text";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/red-hat-text-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Red Hat Text";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/red-hat-text-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;

  --canvas: #ffffff;
  --subtle: #f7f5f2;
  --muted: #efece8;
  --ink: #121417;
  --ink-2: #5f636a;
  --ink-3: #666a71;
  --line: #e8e6e3;
  --tomato: #e5533a;
  --tomato-text: #c93d23;
  --basil-text: #0b7f52;
  --plus: #5332e6;
  --sale: #ffd338;
  --sale-ink: #121417;
  /* Fotky a úvod jsou tmavé v obou režimech, stejně jako obrazovky aplikace */
  --night: #0c0d0f;
  --night-ink: #f4f4f5;
  --night-ink-2: #c3c6cb;
  --shadow: rgb(18 20 23 / 0.28);

  --display: "Red Hat Display", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "Red Hat Text", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --max: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --gutter: clamp(12px, 2vw, 24px);
  --radius: 28px;
  --space: clamp(96px, 12vw, 168px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0c0d0f;
    --subtle: #15171a;
    --muted: #1d2024;
    --ink: #f4f4f5;
    --ink-2: #a1a5ab;
    --ink-3: #868a92;
    --line: #2a2d32;
    --tomato: #ff6a4d;
    --tomato-text: #ff8a70;
    --basil-text: #4adba2;
    --plus: #a797ff;
    --shadow: rgb(0 0 0 / 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--tomato); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sale); color: var(--sale-ink); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.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; }
.skip {
  position: fixed; left: 12px; top: 12px; z-index: 60;
  padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: var(--canvas); font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

/* Hlavička */
.top {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  backdrop-filter: saturate(170%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 22.4%; }
.brand span { font-family: var(--display); font-size: 1.3125rem; font-weight: 600; letter-spacing: -0.025em; }
.top nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 32px); font-size: 0.9375rem; }
.top nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; transition: color .2s; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); }

/* Tlačítka */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font: 600 1rem/1 var(--text);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s;
}
.btn:active { transform: scale(0.98); }
.btn--light { background: #ffffff; color: #121417; }
.btn--light:hover { background: #e9e9ea; }
.btn--ink { background: var(--ink); color: var(--canvas); }
.btn--ink:hover { background: color-mix(in srgb, var(--ink) 84%, var(--canvas)); }

/* Úvod: telefon s aplikací na stole, text v šeru vlevo */
.hero { padding: 6px var(--gutter) 0; }
.hero__frame {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: center;
  max-width: 1440px; margin-inline: auto;
  min-height: clamp(580px, calc(100svh - 82px), 900px);
  border-radius: var(--radius);
  background: var(--night); color: var(--night-ink);
}
.hero__media img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%;
}
.hero__frame::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgb(12 13 15 / 0.5) 0%, rgb(12 13 15 / 0.22) 36%, rgb(12 13 15 / 0) 52%);
}
.hero__copy { max-width: min(54%, 720px); padding: clamp(40px, 6vw, 96px) clamp(20px, 3vw, 48px) clamp(40px, 6vw, 96px) clamp(40px, 6vw, 96px); }
.hero h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.75rem, 4.9vw, 4.75rem); line-height: 1.04; letter-spacing: -0.04em;
}
/* Jediný výrazný prvek webu: cenovka z letáku, stejná žlutá jako u akcí v aplikaci */
.hero mark {
  display: inline-block; white-space: nowrap;
  padding: 0.02em 0.13em 0.08em; margin-inline: -0.03em;
  border-radius: 0.13em; line-height: 0.98;
  background: var(--sale); color: var(--sale-ink);
}
.hero__lead { max-width: 31rem; margin-top: 26px; color: var(--night-ink-2); font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.55; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 38px; }
.soon { color: #a1a5ab; font-size: 0.9375rem; font-weight: 500; }

/* Sekce */
.section { padding-top: var(--space); }
.head { max-width: 44rem; }
.head h2 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.1rem, 4.2vw, 3.5rem); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance;
}
.head p { margin-top: 18px; color: var(--ink-2); font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); max-width: 38rem; }
.label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }

/* Telefon kolem skutečných obrazovek aplikace (iPhone, 1206 × 2622) */
.phone {
  --w: 300px;
  position: relative; width: var(--w); flex: none;
  padding: calc(var(--w) * 0.027);
  border-radius: calc(var(--w) * 0.163);
  background: #08090a;
  box-shadow: 0 0 0 1.5px #3c4046, 0 0 0 3px #15171a, 0 44px 70px -44px var(--shadow);
}
.phone__screen { position: relative; overflow: hidden; aspect-ratio: 900 / 1957; border-radius: calc(var(--w) * 0.137); background: var(--night); }
.phone__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone__screen::after {
  content: ""; position: absolute; top: 1.3%; left: 50%; z-index: 2;
  width: 31%; height: 4.1%; border-radius: 999px; background: #000; transform: translateX(-50%);
}

/* Od letáku k talíři: telefon stojí, obrazovky se mění podle textu */
.flow__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 120px); margin-top: clamp(24px, 4vw, 48px);
}
.flow__device {
  --w: min(clamp(250px, 23vw, 316px), calc((100svh - 150px) / 2.25));
  position: sticky; top: max(84px, calc(50svh - var(--w) * 1.12));
  align-self: start; justify-self: center; margin-block: 8vh;
}
.flow__device .phone__screen img { opacity: 0; transition: opacity .6s var(--ease); }
.flow__device .phone__screen img.is-active { opacity: 1; }
.flow__steps { list-style: none; }
.flow__step { min-height: 82svh; display: flex; flex-direction: column; justify-content: center; padding-block: 6vh; }
.flow__step h3 {
  margin-top: 14px; max-width: 18ch;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance;
}
.flow__step p { margin-top: 18px; max-width: 34rem; color: var(--ink-2); font-size: 1.125rem; }
.flow__step .note { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.9375rem; max-width: 34rem; }
.flow__shot { display: none; }

/* Během týdne: seznam s 3D objekty z aplikace */
.more__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.more .head { position: sticky; top: 112px; }
.more__list { list-style: none; border-top: 1px solid var(--line); }
.more__list li {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; column-gap: 24px; align-items: start;
  padding-block: 26px; border-bottom: 1px solid var(--line);
}
.more__list img { width: 72px; height: 72px; margin-top: -4px; }
.more__list h3 { font-family: var(--display); font-size: 1.3125rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }
.more__list p { margin-top: 6px; color: var(--ink-2); }
.tier { padding-top: 4px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-3); white-space: nowrap; }
.tier--plus { color: var(--plus); }

/* Obchody: jen názvy, bez log (loga jen se svolením vlastníka značky) */
.chains {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.06em 0.62em;
  margin-top: clamp(28px, 4vw, 44px);
  font-family: var(--display); font-weight: 300; font-size: clamp(1.9rem, 4.6vw, 4rem); line-height: 1.16; letter-spacing: -0.03em;
}
.chains li { white-space: nowrap; }
.chains li:nth-child(even) { color: var(--ink-3); }
.fine { margin-top: 26px; max-width: 46rem; color: var(--ink-3); font-size: 0.9375rem; }
.fine a { color: var(--ink-2); text-underline-offset: 3px; }

/* Zdarma a Plus */
.plans__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(36px, 5vw, 56px); }
.plan { padding: clamp(28px, 3.4vw, 44px); border-radius: var(--radius); border: 1px solid var(--line); }
.plan--plus { background: var(--subtle); border-color: transparent; }
.plan h3 { font-family: var(--display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.plan--plus h3 { color: var(--plus); }
.plan__price { margin-top: 14px; font-family: var(--display); font-weight: 300; font-size: clamp(2.4rem, 4vw, 3.25rem); line-height: 1; letter-spacing: -0.04em; }
.plan__price small { font-family: var(--text); font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--ink-2); margin-left: 6px; }
.plan__alt { margin-top: 10px; color: var(--ink-2); font-size: 0.9375rem; }
.plan ul { list-style: none; margin-top: 26px; border-top: 1px solid var(--line); }
.plan li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: 1.15em; width: 12px; height: 7px;
  border-left: 2px solid var(--basil-text); border-bottom: 2px solid var(--basil-text);
  transform: rotate(-45deg);
}

/* Soukromí */
.privacy__list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.privacy__list li { padding: 24px 24px 0 0; color: var(--ink-2); }
.privacy__list li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.privacy__list strong { display: block; margin-bottom: 8px; font-family: var(--display); font-size: 1.1875rem; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.more-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 36px; font-weight: 600; text-decoration: none; color: var(--ink); }
.more-link::after { content: "→"; transition: transform .25s var(--ease); }
.more-link:hover::after { transform: translateX(4px); }

/* Závěr: stůl s týdenním plánem */
.closing { padding: var(--space) var(--gutter) 0; }
.closing__frame {
  position: relative; isolation: isolate; overflow: hidden;
  max-width: 1440px; margin-inline: auto; min-height: clamp(460px, 56vw, 720px);
  display: grid; align-items: center;
  border-radius: var(--radius); background: var(--night); color: var(--night-ink);
}
.closing__frame > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.closing__frame::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgb(12 13 15 / 0.62) 0%, rgb(12 13 15 / 0.3) 40%, rgb(12 13 15 / 0) 58%);
}
.closing__copy { max-width: min(46%, 560px); padding: clamp(36px, 6vw, 88px); }
.closing__icon { width: 84px; height: 84px; border-radius: 22.4%; box-shadow: 0 18px 40px -16px rgb(0 0 0 / 0.7); }
.closing h2 { margin-top: 28px; font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 3.8vw, 3.25rem); line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.closing p { margin-top: 16px; color: var(--night-ink-2); font-size: 1.125rem; max-width: 26rem; }

/* Patička */
.foot { margin-top: clamp(72px, 9vw, 120px); border-top: 1px solid var(--line); padding-block: 44px 52px; color: var(--ink-2); font-size: 0.9375rem; }
.foot__in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px 40px; }
.foot nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 26px; }
.foot nav a { color: var(--ink); font-weight: 500; text-decoration: none; }
.foot nav a:hover { color: var(--tomato-text); }
.foot address { margin-top: 12px; font-style: normal; }
.foot a.mail { color: var(--ink); text-underline-offset: 3px; }
.foot .made { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.875rem; }
.foot .made a { color: var(--ink-2); text-underline-offset: 3px; }

/* Dokumenty: podpora, soukromí, podmínky, smazání účtu */
.doc { padding-top: clamp(40px, 7vw, 88px); }
.doc__grid { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 46rem); gap: clamp(32px, 6vw, 96px); justify-content: center; }
.doc__grid--single { grid-template-columns: minmax(0, 46rem); }
.toc { position: sticky; top: 104px; align-self: start; font-size: 0.875rem; }
.toc p { margin-bottom: 12px; }
.toc ol { list-style: none; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 1px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--ink); border-left-color: var(--ink); }
.doc h1 { font-family: var(--display); font-weight: 500; font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.doc .meta { margin-top: 14px; color: var(--ink-3); font-size: 0.9375rem; }
.doc .lead { margin-top: 22px; color: var(--ink-2); font-size: 1.1875rem; }
.doc article h2 { margin-top: 56px; font-family: var(--display); font-size: 1.625rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.doc article h3 { margin-top: 30px; font-family: var(--display); font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; }
.doc article p { margin-top: 14px; }
.doc article ul, .doc article ol { margin-top: 12px; padding-left: 1.3rem; }
.doc article li { margin-top: 8px; }
.doc article li::marker { color: var(--ink-3); }
.doc article a { color: var(--tomato-text); text-underline-offset: 3px; }
.doc strong { font-weight: 600; }
.summary { margin-top: 30px; padding: 26px 28px; border-radius: 22px; background: var(--subtle); }
.doc article .summary h2 { margin-top: 0; font-size: 1.1875rem; font-weight: 600; }
.summary ul { margin-top: 10px; }
.table { margin-top: 18px; overflow-x: auto; }
.table table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
.table th, .table td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.table thead th { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-3); }
.table tbody th { font-weight: 600; width: 24%; }
.contact {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  margin-top: 30px; padding: 26px 28px; border-radius: 22px; border: 1px solid var(--line);
}
.contact strong { display: block; font-family: var(--display); font-size: 1.375rem; font-weight: 500; letter-spacing: -0.01em; }
.contact span { color: var(--ink-2); font-size: 0.9375rem; }
.doc article .contact a.btn { color: var(--canvas); text-decoration: none; }
.path { font-weight: 600; }
/* Návrh textu: upozornění a místa k doplnění, dokud texty neschválí právník */
.draft { margin-top: 22px; padding: 16px 20px; border-radius: 16px; background: var(--subtle); color: var(--ink-2); font-size: 0.9375rem; }
.doc mark.todo { padding: 0 0.2em; border-radius: 4px; background: color-mix(in srgb, var(--sale) 72%, transparent); color: var(--sale-ink); }

.faq { margin-top: 18px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 20px 44px 20px 0;
  font-family: var(--display); font-size: 1.1875rem; font-weight: 500; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details > div { padding-bottom: 22px; color: var(--ink-2); }
.faq details > div > :first-child { margin-top: 0; }

/* Pozvánka a sdílený recept otevřené bez aplikace */
.handoff { padding-top: clamp(48px, 9vw, 120px); }
.handoff__in { max-width: 36rem; margin-inline: auto; text-align: center; }
.handoff .art { width: 160px; height: 160px; margin: 0 auto 8px; }
.handoff h1 { font-family: var(--display); font-weight: 500; font-size: clamp(2.1rem, 5vw, 3rem); line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance; }
.handoff p { margin-top: 16px; color: var(--ink-2); font-size: 1.125rem; }
.code {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 28px;
  padding: 8px 8px 8px 22px; border-radius: 999px; background: var(--subtle);
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 1.25rem; letter-spacing: 0.08em;
}
.code button {
  min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: var(--canvas); font: 600 0.875rem/1 var(--text); letter-spacing: 0;
}
.handoff ol { margin: 32px auto 0; max-width: 26rem; text-align: left; padding-left: 1.3rem; color: var(--ink-2); }
.handoff li { margin-top: 10px; }
.handoff .more-link { margin-top: 32px; }

/* Tablet a menší: text nad fotkou */
@media (max-width: 1023px) {
  .hero__frame { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .hero__frame::before { display: none; }
  .hero__copy { order: -1; max-width: 40rem; padding: clamp(36px, 7vw, 56px) clamp(24px, 6vw, 48px) 8px; }
  .hero__media { position: relative; display: block; aspect-ratio: 16 / 10; }
  .hero__media img { z-index: 0; object-position: 84% 50%; }
  .hero__media::after {
    content: ""; position: absolute; inset: 0 0 auto; height: 30%;
    background: linear-gradient(180deg, var(--night), rgb(12 13 15 / 0));
  }
  .flow__grid { grid-template-columns: minmax(0, 1fr); }
  .flow__device { display: none; }
  .flow__step { min-height: 0; padding-block: 28px 44px; }
  .flow__shot { display: flex; justify-content: center; width: 100%; margin-bottom: 36px; padding: 40px 0; border-radius: var(--radius); background: var(--subtle); }
  .flow__shot .phone { --w: min(270px, 64vw); }
  .more__grid { grid-template-columns: minmax(0, 1fr); }
  .more .head { position: static; }
  .privacy__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy__list li { padding: 22px 22px 22px 0; border-bottom: 1px solid var(--line); }
  .privacy__list li + li { padding-left: 0; border-left: 0; }
  .privacy__list li:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
  .closing__frame { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .closing__frame::before { display: none; }
  .closing__frame > img { position: relative; inset: auto; z-index: 0; aspect-ratio: 16 / 10; height: auto; object-position: 66% 50%; }
  .closing__copy { order: -1; max-width: 36rem; padding: clamp(36px, 7vw, 56px) clamp(24px, 6vw, 48px) 32px; }
  .doc__grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; padding: 18px 20px; border-radius: 18px; background: var(--subtle); }
  .toc ol { border-left: 0; columns: 2; column-gap: 20px; }
  .toc a { padding: 5px 0; border-left: 0; }
}

@media (max-width: 639px) {
  .hero__media { aspect-ratio: 4 / 5; }
  .hero__media img { object-position: 50% 42%; }
  .hero__cta .btn { flex: 1 1 100%; }
  .soon { flex: 1 1 100%; text-align: center; }
  .top nav .hide-sm { display: none; }
  .more__list li { grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; }
  .more__list img { width: 56px; height: 56px; }
  .more__list .tier { grid-column: 2; padding-top: 10px; }
  .plans__grid { grid-template-columns: minmax(0, 1fr); }
  .privacy__list { grid-template-columns: minmax(0, 1fr); }
  .privacy__list li:nth-child(even) { padding-left: 0; border-left: 0; }
  .closing__frame > img { aspect-ratio: 4 / 3; object-position: 62% 50%; }
  .foot__in { grid-template-columns: minmax(0, 1fr); }
  .foot nav ul { justify-content: flex-start; }
  .toc ol { columns: 1; }
  .contact .btn { width: 100%; }
}
