/* RealEasy Clips brand system: glossy black, white outlines, big readable type.
   One source of truth for the website, the editor app and the ads (marketing/ad/ad_style.css uses the same rules).
   - Color: black surfaces, white text and outlines. No accent hues in the brand; color only comes from the user's video.
   - Surfaces: glossy black panels (bright top sheen, deep bottom) with a white outline.
   - Emphasis: a white pill with black text, used once per view at most.
   - Type: Fira Sans. Headlines 700, body 400/500. Secondary text stays light gray, never dim. */

@font-face { font-family: "Fira Sans"; font-weight: 400; font-display: swap; src: url(fonts/FiraSans-Regular.woff) format("woff"); }
@font-face { font-family: "Fira Sans"; font-weight: 500; font-display: swap; src: url(fonts/FiraSans-Medium.woff) format("woff"); }
@font-face { font-family: "Fira Sans"; font-weight: 600; font-display: swap; src: url(fonts/FiraSans-SemiBold.woff) format("woff"); }
@font-face { font-family: "Fira Sans"; font-weight: 700; font-display: swap; src: url(fonts/FiraSans-Bold.woff) format("woff"); }
@font-face { font-family: "Fira Sans"; font-weight: 800; font-display: swap; src: url(fonts/FiraSans-ExtraBold.woff) format("woff"); }

:root {
  --void: #000;
  --stage: radial-gradient(120% 70% at 50% -10%, #26262b 0%, #0c0c0e 45%, #000 80%);
  --carbon: #0b0b0d;
  --graphite: #17171b;
  --ink: #ffffff;
  --ash: #c9c9d0;            /* secondary text: light gray, high contrast */
  --dim: #8c8c95;            /* tertiary: captions, footnotes only */
  --line: rgba(255, 255, 255, .9);       /* the brand outline */
  --line-mid: rgba(255, 255, 255, .45);
  --hair: rgba(255, 255, 255, .12);      /* dividers */
  --hair-strong: rgba(255, 255, 255, .22);
  --danger: #ff6b6b;
  --ok: #7ee0a8;
  /* legacy names kept so older pages still render in the new style */
  --tungsten: #ffffff; --tungsten-soft: rgba(255, 255, 255, .1);
  --daylight: #ffffff; --daylight-soft: rgba(255, 255, 255, .14);
  --glass-edge: var(--line);
  /* type (1.25 scale from 17px) */
  --t-xs: 13px; --t-sm: 15px; --t-md: 17px; --t-lg: 21px; --t-xl: 26px; --t-2xl: 33px; --t-3xl: 44px; --t-4xl: 64px;
  --r-ctl: 12px; --r-panel: 22px; --r-window: 30px;
  --gloss:
    linear-gradient(180deg, rgba(255,255,255,.13) 0%, rgba(255,255,255,.03) 36%, rgba(255,255,255,0) 50%),
    linear-gradient(180deg, #232328 0%, #0d0d10 55%, #050506 100%);
  --gloss-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -16px 36px rgba(0,0,0,.55), 0 30px 80px -30px #000;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --page: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--void); color: var(--ink);
  font: 400 var(--t-md)/1.55 "Fira Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "kern", "liga"; -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--stage); pointer-events: none; }
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: #fff; color: #000; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 6px; }
.tnum { font-variant-numeric: tabular-nums; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }
h2 { font-size: clamp(34px, 4.6vw, 56px); }
h3 { font-size: var(--t-lg); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: var(--t-lg); color: var(--ash); max-width: 32em; line-height: 1.5; }
.muted { color: var(--ash); }
.small { font-size: var(--t-sm); }
.wrap { width: min(var(--page), 100% - 48px); margin-inline: auto; }
.inv { display: inline-block; background: #fff; color: #000; padding: 0 .16em .04em; border-radius: .14em; }

/* ---------- buttons: pills. Primary = solid white, secondary = black with a white outline ---------- */
.btn {
  --bg: var(--gloss); --fg: var(--ink); --bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 99px; border: 2px solid var(--bd);
  background: var(--bg); color: var(--fg); font: 600 var(--t-sm)/1 "Fira Sans", sans-serif;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 0 4px rgba(255,255,255,.12); }
.btn:active { transform: scale(.97); }
.btn.primary { --bg: linear-gradient(180deg, #fff 0%, #ececf0 60%, #d9d9df 100%); --fg: #000; --bd: #fff; box-shadow: inset 0 -3px 8px rgba(0,0,0,.1); }
.btn.primary:hover { box-shadow: inset 0 -3px 8px rgba(0,0,0,.1), 0 0 0 4px rgba(255,255,255,.18); }
.btn.ai { }
.btn.quiet { --bg: transparent; --bd: transparent; color: var(--ash); box-shadow: none; padding: 0 12px; }
.btn.quiet:hover { color: #fff; box-shadow: none; }
.btn.pill { }
.btn.lg { height: 54px; padding: 0 28px; font-size: var(--t-md); }
.btn[disabled], .btn[aria-disabled="true"] { cursor: default; transform: none; }
.btn[disabled]:hover, .btn[aria-disabled="true"]:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }

/* ---------- glossy panels ---------- */
.glass, .gloss { background: var(--gloss); border: 2px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--gloss-shadow); }
.glass.edge { border-radius: var(--r-window); }
.glass.soft { border-color: var(--hair-strong); }

/* ---------- small parts ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px;
  border-radius: 99px; border: 1.5px solid var(--line-mid); color: var(--ink); font-size: var(--t-xs); font-weight: 600;
}
.chip.ai, .chip.solid { background: #fff; color: #000; border-color: #fff; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.seg { display: inline-flex; padding: 4px; border: 2px solid var(--line); border-radius: 99px; background: var(--gloss); }
.seg button {
  border: 0; background: none; color: var(--ash); font: 600 var(--t-sm) "Fira Sans", sans-serif;
  height: 36px; padding: 0 18px; border-radius: 99px; cursor: pointer;
}
.seg button[aria-pressed="true"] { background: #fff; color: #000; }

.field { display: grid; gap: 6px; font-size: var(--t-sm); color: var(--ash); }
.input {
  height: 46px; padding: 0 14px; border-radius: var(--r-ctl); border: 2px solid var(--hair-strong);
  background: var(--carbon); color: var(--ink); font: inherit; font-size: var(--t-md);
}
.input:focus { outline: none; border-color: #fff; }
.rule { height: 1px; background: var(--hair); border: 0; margin: 0; }

/* the brand mark: rounded frame + play triangle */
.mark { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.mark path { fill: currentColor; stroke: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
