/* Well Media: design system.
   One variable family (Archivo). The width axis carries the voice:
   condensed heavy = slate lettering for headlines, normal width = reading text.
   Tally red (REC light) is the only loud colour, tungsten only marks safe zones. */

:root {
  --paper: #F4F6F9;
  --paper-sunk: #E7EBF1;
  --ink: #121826;
  --steel: #566276;
  --line: #D0D7E1;
  --tally: #CC3322;
  --tally-hover: #B02A1B;
  --tally-text: #B42A1B;
  --on-tally: #FFFFFF;
  --tungsten: #E9A93A;
  --screen: #161D2A;
  --screen-2: #232C3D;
  --screen-text: #E8ECF2;
  --screen-dim: #9AA6B8;
  --focus: #2E62E6;
  --todo: #F6DDA6;

  --font: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.6875rem;
  --step-3: clamp(1.9rem, 2.2vw + 1rem, 2.4rem);
  --step-4: clamp(2.3rem, 3.6vw + 1rem, 3.6rem);
  --step-5: clamp(2.7rem, 5.4vw + 1rem, 5.2rem);
  --measure: 65ch;
  --wrap: 1200px;
  --gut: clamp(1.25rem, 4vw, 3rem);
  --r-s: 4px;
  --r-frame: 18px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E131B;
    --paper-sunk: #161D28;
    --ink: #E8ECF2;
    --steel: #9AA6B8;
    --line: #283242;
    --tally: #CC3322;
    --tally-hover: #DD4431;
    --tally-text: #FF6B57;
    --screen: #1A2230;
    --screen-2: #26303F;
    --focus: #7EA2FF;
    --todo: #5B4516;
  }
}

:root[data-theme="dark"] {
  --paper: #0E131B;
  --paper-sunk: #161D28;
  --ink: #E8ECF2;
  --steel: #9AA6B8;
  --line: #283242;
  --tally: #CC3322;
  --tally-hover: #DD4431;
  --tally-text: #FF6B57;
  --screen: #1A2230;
  --screen-2: #26303F;
  --focus: #7EA2FF;
  --todo: #5B4516;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
h1, h2, h3, h4 {
  margin: 0;
  font-stretch: 70%;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); font-stretch: 82%; font-weight: 750; line-height: 1.12; }
h4 { font-size: var(--step-1); font-stretch: 90%; font-weight: 700; line-height: 1.2; }
strong { font-weight: 650; }
.num { font-variant-numeric: tabular-nums; }
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 0.75rem 1rem; z-index: 50;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.stack { display: grid; gap: var(--gap, 1rem); align-content: start; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--steel); max-width: 40ch; }
.muted { color: var(--steel); }
.small { font-size: var(--step--1); line-height: 1.5; }
.todo { background: var(--todo); color: var(--ink); padding: 0 0.3em; border-radius: 2px; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.logo {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-stretch: 62%; font-weight: 900; font-size: 1.55rem; letter-spacing: 0.01em;
  text-decoration: none; color: var(--ink); white-space: nowrap;
}
.logo-dot { width: 0.62rem; height: 0.62rem; border-radius: 50%; background: var(--tally); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; font-weight: 500; white-space: nowrap; }
.site-nav a:hover { text-decoration: underline; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.4em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3rem; padding: 0.7rem 1.25rem;
  border: 0; border-radius: var(--r-s);
  background: var(--tally); color: var(--on-tally);
  font: inherit; font-weight: 650; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background-color 0.15s ease;
}
.btn:hover { background: var(--tally-hover); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-line:hover { background: var(--paper-sunk); }
.btn-small { min-height: 2.5rem; padding: 0.5rem 0.95rem; font-size: 0.95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 6vw, 5rem); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero-copy { display: grid; gap: 1.5rem; }
.hero-note { font-size: var(--step--1); color: var(--steel); }
.crumbs { font-size: var(--step--1); color: var(--steel); }
.crumbs a { color: var(--steel); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.6; }

/* The deliverable: four vertical frames with Meta safe zones (top 14 %, bottom 35 %, sides 6 %) */
.reel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; padding-bottom: 1.6rem; }
.clip { display: grid; gap: 0.6rem; align-content: start; }
.clip:nth-child(even) { transform: translateY(1.6rem); }
.frame {
  position: relative; aspect-ratio: 9 / 16; overflow: hidden;
  border-radius: var(--r-frame);
  background: linear-gradient(170deg, var(--screen-2), var(--screen) 70%);
  color: var(--screen-text);
  box-shadow: 0 0 0 1px var(--line);
}
.frame-bar {
  position: absolute; top: 0.55rem; left: 0.65rem; right: 0.65rem;
  display: flex; justify-content: space-between; gap: 0.3rem;
  font-size: 0.66rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--screen-dim);
}
.rec { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--screen-text); font-weight: 600; }
.rec::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--tally); }
.rec-live::before { animation: tally 1.6s steps(1) infinite; }
@keyframes tally { 50% { opacity: 0.2; } }
.safe {
  position: absolute; top: 14%; bottom: 35%; left: 6%; right: 6%;
  border: 1.5px dashed var(--tungsten); border-radius: 6px;
  display: flex; flex-direction: column; justify-content: center; gap: 0.35rem; padding: 0.5rem;
}
.safe-beat { font-stretch: 70%; font-weight: 800; font-size: clamp(0.92rem, 1.25vw, 1.2rem); line-height: 1.05; text-wrap: balance; }
.safe-sub { font-size: 0.68rem; line-height: 1.3; color: var(--screen-dim); }
.ui-zone {
  position: absolute; left: 0; right: 0; bottom: 0; height: 35%;
  background: repeating-linear-gradient(135deg, transparent 0 7px, color-mix(in srgb, var(--tungsten) 13%, transparent) 7px 14px);
  display: flex; align-items: flex-end; padding: 0.55rem 0.65rem;
  font-size: 0.62rem; color: var(--screen-dim);
}
.clip-cap { font-size: var(--step--1); line-height: 1.35; }
.clip-cap b { display: block; font-weight: 650; }

/* From the first call to finished videos, a real sequence */
.days { list-style: none; padding: 0; margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem 0; }
.day { display: grid; gap: 0.3rem; align-content: start; padding: 1.1rem 1.25rem 0 0; position: relative; border-top: 2px solid var(--ink); }
@media (max-width: 960px) { .days { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .day { border-top: 0; } }

/* Prototype marker and page helpers */
.proto-bar { margin: 0; padding: 0.45rem var(--gut); background: var(--todo); color: var(--ink); font-size: var(--step--1); text-align: center; }
.hero h1 { font-size: clamp(2.4rem, 3.9vw + 1rem, 4.4rem); }
.reel-fig { margin: 0; display: grid; gap: 1rem; }
.placeholder { border: 1.5px dashed var(--line); border-radius: var(--r-s); padding: 1.5rem; min-height: 11rem; display: grid; place-items: center; text-align: center; color: var(--steel); }
.price-block { display: grid; gap: 0.35rem; }
.offer { display: grid; gap: 1rem; padding: clamp(1.25rem, 3vw, 1.75rem); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 24px 48px -32px rgba(18, 24, 38, 0.45); }
.offer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 1rem; }
.offer-founding { display: grid; gap: 0.45rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.hook-label { font-size: var(--step--1); color: var(--steel); }
.hook { font-stretch: 80%; font-weight: 700; font-size: var(--step-1); line-height: 1.25; }
.day::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.day:last-child::before { background: var(--tally); border-color: var(--tally); }
.day-tc { font-stretch: 66%; font-weight: 800; font-size: var(--step-2); line-height: 1; font-variant-numeric: tabular-nums; }
.day p { color: var(--steel); max-width: 30ch; }

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-rule { border-top: 1px solid var(--line); }
.section-sunk { background: var(--paper-sunk); }
.section-head { display: grid; gap: 1rem; max-width: 50rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.point { display: grid; gap: 0.5rem; align-content: start; padding-top: 1rem; border-top: 2px solid var(--ink); }
.point p { color: var(--steel); }

/* Lists with a tick drawn from the tally colour */
.ticks { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.ticks li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.7rem; align-items: baseline; }
.ticks li::before { content: ""; width: 0.7rem; height: 0.38rem; border-left: 2px solid var(--tally-text); border-bottom: 2px solid var(--tally-text); transform: rotate(-45deg) translateY(-0.15rem); }

/* Process steps: numbered because order matters */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem 1.5rem; padding-block: 1.4rem; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); font-stretch: 62%; font-weight: 900; font-size: 2.6rem; line-height: 0.9; color: var(--tally-text); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: var(--step-1); font-stretch: 85%; }
.steps p { color: var(--steel); margin-top: 0.35rem; max-width: 58ch; }
.step-when { font-size: var(--step--1); color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Rate sheet: offers as rows, not identical cards */
.rates { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.rate { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(9rem, 3fr); gap: 1rem 2rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.rate-name { display: grid; gap: 0.3rem; }
.rate-name h3 { font-size: var(--step-2); }
.rate-price { text-align: right; display: grid; gap: 0.2rem; justify-items: end; }
.price { font-stretch: 66%; font-weight: 850; font-size: var(--step-3); line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-was { color: var(--steel); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.rate-feature { background: var(--paper-sunk); padding-inline: 1.25rem; margin-inline: -1.25rem; border-bottom-color: transparent; box-shadow: inset 4px 0 0 var(--tally); }
.seats { display: inline-flex; gap: 0.35rem; align-items: center; font-size: var(--step--1); font-weight: 600; }
.seat { width: 0.8rem; height: 0.8rem; border-radius: 50%; border: 2px solid var(--tally-text); }
.seat-taken { background: var(--tally-text); }

/* Spec table */
.table-wrap { overflow-x: auto; }
.spec { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 32rem; }
.spec caption { text-align: left; font-weight: 650; padding-bottom: 0.75rem; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 0.8rem 1.25rem 0.8rem 0; border-bottom: 1px solid var(--line); }
.spec thead th { font-size: var(--step--1); color: var(--steel); font-weight: 600; border-bottom: 2px solid var(--ink); }
.spec td.r, .spec th.r { text-align: right; padding-right: 0; }

/* Crew credits, like the end of a film */
.credits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); }
.credit { display: grid; gap: 0.6rem; align-content: start; }
.credit-role { font-size: var(--step--1); color: var(--steel); letter-spacing: 0.02em; }
.credit-name { font-stretch: 62%; font-weight: 850; font-size: var(--step-4); line-height: 0.95; }
.credit p { color: var(--steel); max-width: 44ch; }
body { overflow-x: clip; }
.portrait { width: min(100%, 15rem); aspect-ratio: 4 / 5; border-radius: var(--r-s); background: var(--paper-sunk); border: 1px dashed var(--line); display: grid; place-items: center; color: var(--steel); font-size: var(--step--1); text-align: center; padding: 1rem; }

/* FAQ */
.faq { display: grid; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-stretch: 88%; font-weight: 700; font-size: var(--step-1); line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.95rem; font-size: 1.6rem; font-weight: 400; line-height: 1; color: var(--tally-text); }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 1.4rem; color: var(--steel); max-width: var(--measure); display: grid; gap: 0.8rem; }

/* Form */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; }
.field .opt { font-weight: 400; color: var(--steel); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: var(--r-s);
  padding: 0.75rem 0.85rem; min-height: 3rem; width: 100%;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.form-status { padding: 1rem 1.1rem; border-radius: var(--r-s); background: var(--paper-sunk); border-left: 4px solid var(--tally); }
/* Past na roboty pro Netlify Forms. Lidé pole nevidí, roboti ho vyplní a poptávka spadne do spamu. */
.hp { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contact-list { display: grid; gap: 1.25rem; }
.contact-list dt { font-size: var(--step--1); color: var(--steel); }
.contact-list dd { margin: 0.15rem 0 0; font-size: var(--step-1); font-weight: 600; }

/* Closing call to action on the screen colour */
.cta-band { background: var(--screen); color: var(--screen-text); padding-block: clamp(3rem, 7vw, 5.5rem); }
.cta-band .lede { color: var(--screen-dim); }
.cta-band .btn-line { color: var(--screen-text); }
.cta-band .btn-line:hover { background: var(--screen-2); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: end; }
.cta-band .seat { border-color: #FF6B57; }
.cta-band .seat-taken { background: #FF6B57; }

/* Article */
.article-head { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 3vw, 2rem); }
.article-head .wrap { display: grid; gap: 1.25rem; max-width: 52rem; margin-inline: auto; }
.article-meta { font-size: var(--step--1); color: var(--steel); display: flex; flex-wrap: wrap; gap: 1.25rem; }
.prose { width: min(100% - 2 * var(--gut), 44rem); margin-inline: auto; padding-bottom: clamp(3rem, 7vw, 5rem); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--step-3); margin-top: 2.4em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: 0.45rem; }
.prose .table-wrap { margin-block: 1.6em; }
.prose .callout { background: var(--paper-sunk); border-left: 4px solid var(--tally); padding: 1.1rem 1.25rem; border-radius: 0 var(--r-s) var(--r-s) 0; }
.toc { border-top: 2px solid var(--ink); padding-top: 1rem; }
.toc ol { padding-left: 1.2rem; display: grid; gap: 0.3rem; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 3rem 2.5rem; font-size: var(--step--1); color: var(--steel); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.foot-grid h2 { font-size: var(--step-0); font-stretch: 90%; font-weight: 700; color: var(--ink); margin-bottom: 0.6rem; }
.foot-grid ul { list-style: none; padding: 0; display: grid; gap: 0.35rem; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.foot-legal { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .split, .cta-grid { grid-template-columns: minmax(0, 1fr); }
  .reel {
    grid-template-columns: repeat(4, minmax(9.5rem, 1fr));
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 2.4rem;
    margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut);
  }
  .clip { scroll-snap-align: start; }
  .cols-3 { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rate { grid-template-columns: minmax(0, 1fr); }
  .rate-price { text-align: left; justify-items: start; }
}
@media (max-width: 820px) {
  .head-row { flex-wrap: wrap; gap: 0.5rem 1rem; padding-block: 0.6rem; }
  .site-nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .site-nav ul { gap: 1.1rem; padding-bottom: 0.25rem; }
  .head-cta { margin-left: auto; }
}
@media (max-width: 640px) {
  .days { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 2px solid var(--ink); gap: 1.4rem; }
  .day { padding: 0 0 0 1.25rem; }
  .day::before { top: 0.2rem; left: -7px; }
  .cols-2, .credits, .field-row { grid-template-columns: minmax(0, 1fr); }
  .steps li { grid-template-columns: 2.8rem minmax(0, 1fr); }
  .steps li::before { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
