/* Hyperkit — hyperkit.pro
   Breakpoints (same as the original site): desktop >= 1200px, tablet 810–1199px, phone <= 809px. */

/* ---------- Fonts ----------
   Inter 400/500/600, split by unicode-range exactly like the original. TT Commons Medium is used
   only for the handwritten note next to the hero title. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Inter-Regular.cyrillic-ext-CFTLRB35.woff2") format("woff2"); unicode-range: U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Inter-Regular.cyrillic-KKLZBALH.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Inter-Regular.greek-ext-ULEBLIFV.woff2") format("woff2"); unicode-range: U+1F00-1FFF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Inter-Regular.greek-IRHSNFQB.woff2") format("woff2"); unicode-range: U+0370-03FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Inter-Regular.latin-ext-VZDUGU3Q.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; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Inter-Regular.latin-JLQMKCHE.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: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Inter-Regular.vietnamese-QK7VSWXK.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Inter-Medium.cyrillic-ext-M4WHNGTS.woff2") format("woff2"); unicode-range: U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Inter-Medium.cyrillic-JVU2PANX.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Inter-Medium.greek-ext-4KCQBEIZ.woff2") format("woff2"); unicode-range: U+1F00-1FFF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Inter-Medium.greek-DPOQGN7L.woff2") format("woff2"); unicode-range: U+0370-03FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Inter-Medium.latin-ext-J4DBSW7F.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; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Inter-Medium.latin-Y3IVPL46.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: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Inter-Medium.vietnamese-PJV76O4P.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Inter-SemiBold.cyrillic-ext-C7KWUKA7.woff2") format("woff2"); unicode-range: U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Inter-SemiBold.cyrillic-JWV7SOZ6.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Inter-SemiBold.greek-ext-FBKSFTSU.woff2") format("woff2"); unicode-range: U+1F00-1FFF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Inter-SemiBold.greek-EQ3PSENU.woff2") format("woff2"); unicode-range: U+0370-03FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Inter-SemiBold.latin-ext-ULRSO3ZR.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; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Inter-SemiBold.latin-RDYY2AG2.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: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Inter-SemiBold.vietnamese-ESQNSEQ3.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "TT Commons Medium"; font-display: block; src: url("../fonts/TTCommons-Medium.otf") format("opentype"); }

/* ---------- Base ---------- */
:root {
  --ink: #121212;
  --ink-muted: rgba(18, 18, 18, 0.5);
  --line: rgba(18, 18, 18, 0.1);
  --paper: #f4f4f5;
  /* Same stacks as the original: the first name resolves to the Inter weight set next to it. */
  --font-regular: "Inter", "Inter Placeholder", sans-serif;
  --font-medium: "Inter-Medium", "Inter", sans-serif;
  --font-semibold: "Inter-SemiBold", "Inter", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #000;
  color: var(--ink);
  font-family: var(--font-regular);
  font-size: 18px;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img, svg, video { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.sprite { position: absolute; overflow: hidden; }
.icon { flex: none; }

.page {
  background: var(--paper);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}
main { width: 100%; display: flex; flex-direction: column; align-items: center; }

.only-tablet { display: none; }

/* Links that darken and underline on hover (captions, FAQ answers, footer) */
.example-caption a:hover,
.faq-answer a:hover,
.footer a:hover { color: var(--ink); text-decoration: underline; }
/* The original draws this underline twice (link and inner span), so it reads darker than the text. */
.link-underlined { text-decoration: underline; text-decoration-color: rgba(18, 18, 18, 0.75); }

/* ---------- Buttons ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: pre;
  font-family: var(--font-medium);
  font-weight: 500;
}
.btn-lg { gap: 8px; padding: 12px 24px; border-radius: 12px; font-size: 16px; line-height: 24px; }
.btn-sm { gap: 8px; padding: 8px 12px; border-radius: 8px; font-size: 14px; line-height: 20px; }
.btn-sm.btn-white { gap: 6px; }
.btn-glass { background: rgba(0, 0, 0, 0.7); color: #fff; padding-left: 20px; }
.btn-dark { background: #1f1f1f; color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-black { background: #000; color: #fff; padding-left: 20px; }
.btn-outline { background: #fff; color: var(--ink); padding-left: 20px; box-shadow: inset 0 0 0 1px var(--line); }
.btn-price { font-family: var(--font-regular); font-weight: 400; letter-spacing: -0.04em; color: var(--ink-muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  /* Original: height 100vh capped at 900px, content pinned 184px from the top. The bottom padding
     keeps room for the video that overlaps the hero's lower edge on short screens. */
  min-height: min(100vh, 900px);
  padding: 184px 0 243px;
  background: #000;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  left: calc(43.3333% - 315px);
  top: calc(66% - 271.5px);
  width: 630px;
  height: 543px;
  filter: blur(90px);
}
.hero-grain {
  position: absolute;
  inset: 0;
  background: url("../assets/grain.png") repeat;
  background-size: 128px;
  opacity: 0.1;
}
.hero-content {
  position: relative;
  width: min-content;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.hero-title {
  font-family: var(--font-semibold);
  font-weight: 600;
  font-size: 72px;
  line-height: 80px;
  letter-spacing: -0.03em;
  color: var(--paper);
  text-align: center;
  white-space: pre;
}
.hero-subtitle {
  font-size: 18px;
  line-height: 28px;
  color: var(--paper);
  text-align: center;
  white-space: pre;
  opacity: 0.7;
}
.hero-subtitle-space { display: none; }
.hero-actions { display: flex; gap: 12px; }

/* Selection box around "SaaS" */
.saas {
  position: absolute;
  left: calc(6.6087% - 140px);
  bottom: 168px;
  width: 280px;
  height: 145px;
  z-index: 3;
}
.saas-note {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 100px;
  height: 88px;
  opacity: 0;
  transform: rotate(-5deg);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out, top 0.4s ease-out, left 0.4s ease-out;
}
.saas-note-text {
  position: absolute;
  top: 3px;
  left: 1px;
  right: 1.72px;
  transform: rotate(-4deg);
  font-family: "TT Commons Medium", sans-serif;
  font-size: 15px;
  line-height: 16px;
  color: #ffe589;
  text-align: center;
  white-space: pre;
}
.saas-note-arrow { position: absolute; top: 45.39px; left: 42.8px; }
.saas-box {
  position: absolute;
  top: 65px;
  left: 97px;
  right: 0;
  bottom: 0;
  z-index: 1;
  transition: transform 0.4s ease-out;
}
.saas-frame { position: absolute; inset: 4px; background: rgba(255, 255, 255, 0.05); border: 1px solid #fff; }
.saas-handle { position: absolute; width: 8px; height: 8px; background: var(--ink); border: 1px solid #fff; }
.saas-handle--tl { top: 0; left: 0; }
.saas-handle--bl { bottom: 0; left: 0; }
.saas-handle--tr { top: 0; right: 0; }
.saas-handle--br { bottom: 0; right: 0; }
.saas:hover .saas-note { top: 0; left: 0; opacity: 1; transform: none; }
.saas:hover .saas-box { transform: rotate(-2deg); }

/* ---------- Navigation ---------- */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  height: 64px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-bar { display: flex; align-items: center; }
.nav-logo { display: block; }
.nav-toggle { display: none; }
.nav-menu { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 12px; }
.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  font-family: var(--font-medium);
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #fff;
  white-space: pre;
}
.nav-actions { display: flex; gap: 12px; }

/* ---------- Sections ---------- */
.section {
  position: relative;
  width: 100%;
  max-width: 1112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  padding: 80px 0;
}
.section-header { width: 100%; display: flex; align-items: center; gap: var(--header-gap); }
.highlights .section-header { --header-gap: 211px; }
.examples .section-header { --header-gap: 174px; }
.pricing .section-header,
.faq .section-header { --header-gap: 155px; }
.section-title {
  flex: none;
  font-family: var(--font-semibold);
  font-weight: 600;
  font-size: 56px;
  line-height: 64px;
  letter-spacing: -0.03em;
  white-space: pre;
}
.section-description {
  flex: none;
  width: 460px;
  font-size: 18px;
  line-height: 28px;
  color: var(--ink-muted);
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

/* ---------- Highlights ---------- */
.highlights { padding-top: 560px; }
.demo { position: absolute; top: -219px; left: 0; width: 100%; z-index: 1; }
.demo-video {
  position: relative;
  aspect-ratio: 1112 / 666;
  border-radius: 7px;
  overflow: hidden;
  cursor: pointer;
}
.demo-video video { width: 100%; height: 100%; object-fit: cover; }
.demo-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.9) 100%);
  transition: opacity 0.3s ease;
}
.demo-play {
  position: absolute;
  top: calc(50% - 74px);
  left: calc(50% - 74px);
  z-index: 2;
  width: 148px;
  height: 148px;
  transition: opacity 0.3s ease, width 0.3s ease, height 0.3s ease, top 0.3s ease, left 0.3s ease;
}
.demo-video.is-playing .demo-overlay { opacity: 0; }
.demo-video.is-playing .demo-play { opacity: 0; width: 140px; height: 140px; top: calc(50.9% - 70px); left: calc(50% - 70px); }

.showcase { width: 100%; display: flex; flex-direction: column; gap: 24px; }
.showcase-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.showcase-card img { height: auto; }
.showcase-card--main { width: 100%; padding: 48px; }
.showcase-track { width: 100%; }
.showcase-track img { width: 100%; aspect-ratio: 2.0941619585687383 / 1; object-fit: cover; }
.showcase-dup { display: none; }
.showcase-row { display: flex; align-items: center; gap: 24px; }
.showcase-row .showcase-card { flex: 1 0 0; min-width: 0; }
.showcase-card--left { padding: 48px 0; }
.showcase-card--left img { width: 85%; aspect-ratio: 1.2608695652173914 / 1; object-fit: cover; }
.showcase-card--right { padding: 45px 0; }
.showcase-card--right img { width: 83%; aspect-ratio: 1.213903743315508 / 1; object-fit: cover; }

/* ---------- Product examples ---------- */
.examples { max-width: none; }
.examples .section-header { max-width: 1112px; }
.ticker { width: 100%; height: 477px; padding: 10px; }
.ticker-track {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: max-content;
  will-change: transform;
  /* 7 cards x (680px + 16px gap) = 4872px per loop, at 50px per second */
  animation: ticker 97.44s linear infinite;
}
@keyframes ticker { to { transform: translateX(-4872px); } }
.example { flex: none; width: 680px; display: flex; flex-direction: column; gap: 12px; }
.example-image { width: 680px; height: auto; aspect-ratio: 1.6008939974457217 / 1; object-fit: cover; border-radius: 8px; }
.example-caption {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-muted);
}
.example-caption a { white-space: pre; }

/* ---------- Pricing ---------- */
.plans { width: 100%; display: flex; align-items: flex-start; gap: 24px; }
.plan {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 40px;
  background: #fff;
  border-radius: 16px;
}
.plan-price {
  font-family: var(--font-semibold);
  font-weight: 600;
  font-size: 56px;
  line-height: 64px;
  letter-spacing: -0.06em;
  white-space: pre;
}
.plan-title { width: 100%; }
.plan-name {
  font-family: var(--font-semibold);
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.03em;
}
.plan-sub { font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.plan-features { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.plan-features li { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 24px; color: var(--ink-muted); }
.plan-features span { flex: 1 0 0; min-width: 0; }
.plan-actions { width: 100%; display: flex; flex-direction: column; gap: 12px; }

/* ---------- FAQ ---------- */
.faq-list { width: 100%; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; gap: 4px; }
.faq-item { position: relative; padding-bottom: 5px; }
.faq-item::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.faq-heading { font: inherit; }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  text-align: left;
  user-select: none;
  -webkit-user-select: none;
}
.faq-question-text {
  flex: 1 0 0;
  min-width: 0;
  font-family: var(--font-regular);
  font-weight: 500;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: -0.5px;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.faq-icon { flex: none; width: 28px; height: 28px; padding: 4px; }
.faq-icon svg { opacity: 0.4; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease; }
.faq-question[aria-expanded="true"] .faq-icon svg { opacity: 1; transform: rotate(-45deg); }
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.35s;
}
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.faq-answer-inner { overflow: hidden; }
.faq-answer p {
  padding: 0 20px 20px 0;
  font-size: 18px;
  line-height: 28px;
  color: var(--ink-muted);
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

/* ---------- Footer ---------- */
.footer { width: 100%; padding: 32px 0; display: flex; justify-content: center; }
.footer-list {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
  white-space: pre;
}

/* ---------- Tablet: 810–1199px ---------- */
@media (min-width: 810px) and (max-width: 1199px) {
  .only-tablet { display: block; }
  br.only-tablet { display: inline; }
  .only-desktop-phone { display: none; }

  .section { padding: 80px 24px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 24px; }
  .section-description { width: 100%; }

  .highlights { padding-top: 256px; }
  .demo { left: 50%; width: 92%; transform: translateX(-50%); }

  .examples { padding-bottom: 0; }
  .plans { gap: 16px; }
  .plan { padding: 32px 24px; }
}

/* ---------- Phone: up to 809px ---------- */
@media (max-width: 809px) {
  .hero { min-height: min(100vh, 700px); padding-bottom: 163px; }
  .hero-content { width: 100%; padding: 0 16px; gap: 24px; }
  /* Quirk kept from the original: the heading box is set at 40px while its text is 44px,
     which makes each line 50px tall instead of 48px. */
  .hero-title { width: 100%; font-size: 40px; line-height: 48px; white-space: pre-wrap; overflow-wrap: break-word; }
  .hero-title span { font-size: 44px; letter-spacing: -0.03em; }
  .hero-subtitle { width: 100%; line-height: 26px; white-space: pre-wrap; overflow-wrap: break-word; }
  .hero-subtitle-break { display: none; }
  .hero-subtitle-space { display: inline; }
  .hero-actions { width: 100%; flex-direction: column; align-items: center; padding: 0 16px; }
  .hero-actions .btn { width: 100%; }
  .saas { display: none; }

  /* Burger menu: the bar stays 64px tall and the panel slides open below it */
  .nav {
    height: auto;
    max-height: 64px;
    padding: 16px 16px 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 20px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0);
    border-radius: 0 0 24px 24px;
    transition: max-height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.3s ease;
  }
  .nav.is-open { max-height: var(--nav-open-height, 318px); background: #000; }
  .nav-bar { flex: none; height: 34px; justify-content: space-between; }
  .nav-toggle { display: block; position: relative; width: 32px; height: 32px; }
  .nav-toggle span {
    position: absolute;
    left: 4px;
    width: 24px;
    height: 2px;
    border-radius: 10px;
    background: #999;
    transition: transform 0.3s ease, top 0.3s ease, opacity 0.2s ease;
  }
  .nav-toggle span:nth-child(1) { top: 7px; }
  .nav-toggle span:nth-child(2) { top: 15px; }
  .nav-toggle span:nth-child(3) { top: 23px; }
  .nav.is-open .nav-toggle span:nth-child(1) { top: 15px; transform: rotate(-45deg); }
  .nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav-toggle span:nth-child(3) { top: 15px; transform: rotate(45deg); }
  .nav-menu { flex-direction: column; align-items: stretch; gap: 24px; visibility: hidden; transition: visibility 0s linear 0.4s; }
  .nav.is-open .nav-menu { visibility: visible; transition-delay: 0s; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 24px; }
  .nav-actions { gap: 16px; padding-bottom: 24px; }
  .nav-actions .btn { flex: 1 0 0; }

  .section { gap: 48px; padding: 0 16px 80px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section-title { font-size: 40px; line-height: 48px; }
  .section-description { width: 100%; }

  .highlights { padding-top: 156px; }
  .demo { top: -139px; left: 50%; width: 90%; transform: translateX(-50%); }
  .demo-play,
  .demo-video.is-playing .demo-play { width: 80px; height: 80px; top: calc(50% - 40px); left: calc(50% - 40px); }

  .showcase { gap: 16px; }
  /* The overview image becomes a slow sideways ticker inside a square card */
  .showcase-card--main { aspect-ratio: 1 / 1; padding: 0; align-items: stretch; }
  .showcase-track {
    flex: none;
    width: max-content;
    margin-left: 10px;
    display: flex;
    gap: 10px;
    will-change: transform;
    /* one image (653px) + 10px gap per loop, at 30px per second */
    animation: showcase-ticker 22.1s linear infinite;
  }
  @keyframes showcase-ticker { to { transform: translateX(-663px); } }
  .showcase-track img { flex: none; width: 653px; }
  .showcase-dup { display: block; }
  .showcase-row { flex-direction: column; gap: 16px; width: 100%; }
  .showcase-row .showcase-card { flex: none; width: 100%; }

  .examples { padding-bottom: 32px; }
  .ticker { height: 464px; padding: 0 16px; }

  .pricing { padding-top: 64px; }
  .plans { flex-direction: column; }
  .plan { flex: none; width: 100%; }

  .footer { padding: 8px 0 80px; }
  .footer-list { flex-direction: column-reverse; gap: 24px; }
  .footer-dot { display: none; }
}

/* The third copy of the ticker cards is only needed on wide screens */
@media (max-width: 1199px) { .example--wide-only { display: none; } }

/*FIXES-START*/
/* ---------- Repairs ----------
   Places where the original layout breaks. Everything above mirrors the original; these rules
   only take effect where the original overlaps, clips or hides content. */

/* Tablet, wider than ~880px: the video grew over the "Modern. Minimal." heading. Keep the same
   29px gap the original has at 810px. */
@media (min-width: 810px) and (max-width: 1199px) {
  .highlights { padding-top: max(256px, calc(min(100vw, 1112px) * 0.92 * 666 / 1112 - 190.4px)); }
}

@media (max-width: 809px) {
  /* Phone layout wider than ~547px: same overlap. Keep the gap the original has at 390px. */
  .highlights { padding-top: max(156px, calc(90vw * 666 / 1112 - 54.2px)); }

  /* The FAQ intro stayed in a desktop row in the original and was pushed off-screen. Here it
     stacks like the other section headers (see .section-header in the phone rules above). */

  /* Narrower than ~386px the section titles ran off the right edge. Scale them to fit. */
  .section-title { font-size: min(40px, calc((100vw - 32px) / 8.85)); line-height: 1.2; }
}
/*FIXES-END*/
