/* Retake Pro — site styles.
 *
 * The palette comes from the app icon and the screenshots: the violet-to-pink
 * gradient of the icon (and of the default video background in the editor),
 * the near-black aubergine of the icon's screen, the yellow of the pointer
 * path, and the red of the record dot. The gradient appears in two places
 * only: the hairline under the header and the backdrop behind each
 * screenshot, which frames the app window the way Retake frames a recording.
 *
 * System fonts only; nothing is loaded from elsewhere (see _headers). */

:root {
  color-scheme: light dark;

  --bg:        #faf8fc;
  --panel:     #f2eef7;
  --card:      #ffffff;
  --line:      #e2dbea;
  --line-faint:#ece6f2;
  --ink:       #1c1922;
  --muted:     #57506a;
  --faint:     #7a7290;
  --accent:    #6b3fd4;
  --accent-ink:#ffffff;
  --accent-soft:#ece4fb;
  --path:      #c99a12;
  --record:    #e5352b;

  --grad-a: #8b5cf6;
  --grad-b: #c463b8;
  --grad-c: #ef6a8a;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(1rem, 4vw, 2.25rem);
  --shadow: 0 18px 50px -22px rgba(40, 20, 70, .45);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #15121b;
    --panel:     #1e1a26;
    --card:      #221d2b;
    --line:      #332c3f;
    --line-faint:#241f2d;
    --ink:       #ece8f3;
    --muted:     #aaa2bb;
    --faint:     #847c96;
    --accent:    #b18cff;
    --accent-ink:#1a1030;
    --accent-soft:#2a2140;
    --path:      #f6d04d;
    --record:    #ff453a;
    --shadow: 0 22px 60px -24px rgba(0, 0, 0, .8);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.wide { max-width: 64rem; }

p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, img:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.015em;
  text-wrap: balance;
  margin: 0;
}

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ----------------------------------------------------------------- header -- */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
/* The gradient hairline: the one decorative use of the icon's colours outside
   the screenshot frames. */
header.site::after {
  content: ""; display: block; height: 2px;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b), var(--grad-c));
  opacity: .85;
}
header.site .bar {
  display: flex; align-items: center; gap: 1rem;
  padding: .8rem var(--gutter);
  max-width: 64rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-right: auto;
  font-family: var(--display); font-weight: 700; font-size: 1.08rem;
  letter-spacing: -.01em; line-height: 1;
  color: var(--ink); text-decoration: none;
}
.brand-mark { display: block; width: 32px; height: 32px; }

nav.site { display: flex; gap: 1.2rem; }
nav.site a {
  font-size: .92rem; font-weight: 500;
  color: var(--muted); text-decoration: none;
}
nav.site a:hover { color: var(--ink); }

/* ------------------------------------------------------------------- hero -- */
.hero { padding: clamp(3rem, 9vw, 5.5rem) 0 2.25rem; }
.hero .eyebrow { display: block; margin-bottom: .9rem; }
.hero h1 {
  font-size: clamp(2rem, 5.4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -.025em;
  margin-bottom: 1.1rem;
}
.hero .lede {
  font-size: clamp(1.08rem, 2.2vw, 1.22rem);
  color: var(--muted);
  max-width: 40em;
}

.cta-row { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; margin-top: 1.8rem; }

.btn {
  display: inline-block;
  font-family: var(--display); font-weight: 600; font-size: .98rem;
  padding: .66rem 1.3rem; border-radius: 8px;
  border: 1px solid var(--accent); background: var(--accent);
  color: var(--accent-ink); text-decoration: none;
  transition: filter .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--faint); filter: none; }
.btn-lg { font-size: 1.05rem; padding: .82rem 1.7rem; border-radius: 9px; }

/* -------------------------------------------------------------- sections -- */
main { display: block; }

section { padding: 3rem 0 0; scroll-margin-top: 4.5rem; }
section > h2 {
  font-size: clamp(1.45rem, 3.2vw, 1.85rem);
  margin-bottom: .9rem;
}
#download, #pricing, #questions, .closing {
  border-top: 1px solid var(--line-faint);
  margin-top: 3rem;
}
.section-lede { color: var(--muted); font-size: 1.06rem; }

h3 { font-size: 1.12rem; margin: 2.2rem 0 .7rem; }
.subsection { padding-top: .6rem; }

ul.plain { list-style: none; padding: 0; margin: 0 0 1em; }
ul.plain li {
  position: relative; padding-left: 1.4rem; margin-bottom: .6rem;
  color: var(--muted);
}
/* The marker is a yellow dot, after the dotted pointer path in the icon. */
ul.plain li::before {
  content: ""; position: absolute; left: .1rem; top: .62em;
  width: .42rem; height: .42rem; border-radius: 50%;
  background: var(--path);
}
ul.plain.columns { columns: 2 14rem; column-gap: 2rem; }
ul.plain.columns li { break-inside: avoid; }

/* --------------------------------------------------------------- figures -- */
/* Each screenshot sits on the editor's default background gradient, as a
   recording does in Retake's own preview. */
figure.shot { margin: 1.8rem 0 .4rem; }
figure.shot img {
  display: block; width: 100%; height: auto;
  padding: clamp(.6rem, 2.6vw, 1.6rem);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b) 55%, var(--grad-c));
  box-shadow: var(--shadow);
  cursor: zoom-in;
}
figure.shot-hero { margin-top: .5rem; }
figcaption {
  color: var(--faint); font-size: .88rem;
  margin-top: .7rem; text-align: center;
}

.shot-pair {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
}
.shot-pair figure.shot { margin-bottom: 0; }

/* -------------------------------------------------------- download / buy -- */
.getbox {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.6rem 1.5rem;
  margin: .6rem 0 1rem;
  text-align: center;
}
.getbox-meta { margin: .95rem 0 0; color: var(--muted); font-size: .92rem; }

.pricebox {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 12px;
  padding: 1.6rem 1.7rem;
  max-width: 32rem;
  box-shadow: var(--shadow);
}
.pricebox .eyebrow { display: block; margin-bottom: .55rem; }
.pricebox .amount {
  font-family: var(--display); font-weight: 700;
  font-size: 2.7rem; line-height: 1; letter-spacing: -.03em;
}
.pricebox .amount small {
  font-size: .88rem; font-weight: 500; color: var(--muted);
  letter-spacing: 0; margin-left: .45rem;
}
.pricebox ul { margin: 1.3rem 0 1.5rem; padding-left: 1.1rem; }
.pricebox li { margin-bottom: .4rem; color: var(--muted); font-size: .96rem; }
.pricebox li::marker { color: var(--accent); }
.note-inline { color: var(--faint); font-size: .86rem; margin: 1rem 0 0; }

.faq h3:first-child { margin-top: .4rem; }
.faq p { color: var(--muted); }

.closing { padding-bottom: 1rem; }

/* ----------------------------------------------------------------- legal -- */
.page-head { padding: clamp(2.5rem, 7vw, 4rem) 0 1rem; }
.page-head h1 { font-size: clamp(1.8rem, 4.6vw, 2.5rem); margin-bottom: .6rem; }
.page-head p { color: var(--muted); }
.legal h2 { font-size: 1.18rem; margin: 2.2rem 0 .55rem; }
.legal h3 { font-size: 1.02rem; margin: 1.6rem 0 .45rem; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--ink); }
.legal .updated { color: var(--faint); font-size: .9rem; }
.legal code {
  font-family: var(--mono); font-size: .86em;
  background: var(--panel); padding: .1em .35em; border-radius: 4px;
  overflow-wrap: anywhere;
}
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0 0; }
.legal .boxed {
  background: var(--panel); border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0; padding: .9rem 1.1rem; margin: 1.2rem 0;
}
.legal .boxed p { margin: 0; }

/* ---------------------------------------------------------------- footer -- */
footer.site {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding: 2rem 0 3rem;
  color: var(--faint);
  font-size: .88rem;
}
footer.site nav { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-bottom: 1rem; }
footer.site nav a { color: var(--muted); text-decoration: none; }
footer.site nav a:hover { color: var(--ink); }
footer.site p { margin: 0 0 .4rem; }

/* -------------------------------------------------------- screenshot viewer --
   The screenshots are 1440 pixels wide and shown smaller, so the inspector
   text is legible only enlarged. Clicking one opens it at full size. */
.viewer {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem) clamp(.5rem, 3vw, 3rem) 3.5rem;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.viewer[hidden] { display: none; }
.viewer img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: var(--shadow); }
.viewer-close {
  position: absolute; top: 1rem; right: 1rem;
  font: inherit; font-size: .88rem;
  padding: .4rem .9rem; border-radius: 7px; cursor: pointer;
  background: var(--panel); color: var(--ink); border: 1px solid var(--line);
}
.viewer-caption {
  position: absolute; left: 0; right: 0; bottom: 1rem; margin: 0;
  text-align: center; color: var(--muted); font-size: .88rem; padding: 0 1rem;
}

/* ---------------------------------------------------------------- narrow -- */
@media (max-width: 34rem) {
  body { font-size: 16px; }
  header.site .bar { gap: .6rem; }
  nav.site { gap: .85rem; }
  nav.site a { font-size: .86rem; }
  .brand { font-size: 1rem; }
  .brand-mark { width: 28px; height: 28px; }
  .cta-row .btn-lg { flex: 1 1 8rem; text-align: center; }
  .pricebox { padding: 1.3rem 1.2rem; }
}

/* The cookie consent banner (consent.css), in the site's colours. */
:root {
  --consent-bg: var(--card); --consent-ink: var(--ink); --consent-line: var(--line);
  --consent-bg-dark: var(--card); --consent-ink-dark: var(--ink); --consent-line-dark: var(--line);
  --consent-accent: var(--accent); --consent-accent-ink: var(--accent-ink);
}
