/* ============================================================
   Grab the Frame — marketing site
   Design tokens match the macOS app (dark, cinematic, one gold accent)
   ============================================================ */

:root {
  /* Canvas */
  --bg:        #0A0A0C;   /* near-black window bg (matches the app) */
  --bg-2:      #101014;   /* raised panel */
  --bg-3:      #17171C;   /* card / app panel surface */
  --bg-4:      #202027;   /* hover / chip */
  --field:     #0E0E12;   /* recessed field (matches the app) */

  /* Text */
  --fg:        #F3F4F6;
  --fg-2:      #A2A6AD;
  --fg-3:      #676B72;

  /* The one accent — the app's gold (#EF9F27) */
  --gold:      #EF9F27;
  --gold-hi:   #F5B44E;
  --gold-dim:  rgba(239, 159, 39, 0.13);
  --gold-line: rgba(239, 159, 39, 0.30);

  --line:      rgba(255, 255, 255, 0.07);
  --line-2:    rgba(255, 255, 255, 0.12);

  --radius:    12px;
  --radius-sm: 8px;
  --maxw:      1140px;

  --shadow:    0 20px 55px -22px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 34px 90px -30px rgba(0, 0, 0, 0.9);

  --mono: "SF Mono", ui-monospace, "JetBrains Mono", "Roboto Mono",
          "Menlo", Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter",
          Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--gold); color: #12130f; }

/* Ambient glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(48rem 32rem at 80% -10%, rgba(239, 159, 39, 0.09), transparent 60%),
    radial-gradient(40rem 32rem at 6% 2%, rgba(239, 159, 39, 0.04), transparent 55%);
}

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
section { position: relative; z-index: 1; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-head { max-width: 560px; margin: 0 auto 40px; text-align: center; }
h2 { font-size: clamp(24px, 3.2vw, 33px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
.section-head p { color: var(--fg-2); font-size: 16px; margin-top: 12px; }
.pad { padding: clamp(52px, 7vw, 84px) 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: #17130a;
  box-shadow: 0 8px 24px -10px rgba(239, 159, 39, 0.6);
}
.btn-gold:hover { box-shadow: 0 12px 32px -10px rgba(239, 159, 39, 0.75); transform: translateY(-1px); }
.btn-ghost { background: var(--bg-3); color: var(--fg); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg-4); border-color: var(--gold-line); }
.btn .price { font-family: var(--mono); font-size: 12px; opacity: .85; }
.btn-lg { padding: 13px 24px; font-size: 15px; }

/* Pre-launch "Coming soon" buttons: look calm and non-clickable */
.btn.is-soon { cursor: default; opacity: .9; }
.btn.is-soon:hover { transform: none; box-shadow: 0 8px 24px -10px rgba(239, 159, 39, 0.6); }
.btn.is-soon:active { transform: none; }

/* ============================================================
   Header
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  background: rgba(10, 10, 12, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.brand .glyph {
  width: 28px; height: 28px; border-radius: 7px; flex: none;
  box-shadow: 0 5px 14px -6px rgba(0, 0, 0, 0.7);
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14px; color: var(--fg-2); transition: color .15s ease; }
.nav-links a:hover { color: var(--fg); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--fg); cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 22px; height: 22px; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 6vw, 72px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(33px, 5vw, 52px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.hero h1 .accent { color: var(--gold); }
.tagline {
  font-family: var(--mono);
  font-size: clamp(12.5px, 1.35vw, 14px);
  letter-spacing: -0.01em;
  white-space: nowrap;   /* keep the three sentences on one line */
  color: var(--fg-2);
  margin: 18px 0 0;
}
.tagline b { color: var(--gold); font-weight: 500; }
.hook { font-size: 16px; color: var(--fg-2); margin-top: 16px; max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 7px 20px;
  margin-top: 22px; font-size: 13px; color: var(--fg-3);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--gold); }

/* ============================================================
   App-window mockup (faithful to the real app: sidebar + panels)
   ============================================================ */
.app {
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 11px;
}
.app-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 12px;
  background: #0C0C10;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.app-bar .title {
  position: absolute; left: 0; right: 0; text-align: center;
  font-size: 11px; color: var(--fg-3); font-weight: 600;
}
.app-body { display: grid; grid-template-columns: 118px 1fr; min-height: 300px; }

/* sidebar */
.app-side {
  border-right: 1px solid var(--line);
  background: var(--bg);
  display: flex; flex-direction: column;
  padding: 11px 8px 0;
}
.side-h {
  font-size: 10px; font-weight: 700; color: var(--gold);
  letter-spacing: .03em; margin: 2px 4px 9px;
}
.side-row { padding: 6px 8px; border-radius: 6px; margin-bottom: 2px; }
.side-row.active { background: var(--gold-dim); }
.side-row .n { color: var(--fg); font-weight: 500; font-size: 11px; }
.side-row.active .n { color: var(--gold); }
.side-row .m { color: var(--fg-3); font-size: 9.5px; font-family: var(--mono); margin-top: 1px; }
.side-trash {
  margin-top: auto; border-top: 1px solid var(--line);
  padding: 9px 8px; display: flex; align-items: center; gap: 6px;
  color: var(--fg-3); font-size: 11px;
}
.side-trash svg { width: 12px; height: 12px; }

/* detail / main */
.app-main { padding: 13px 14px; display: flex; flex-direction: column; gap: 11px; min-width: 0; }
.main-head { display: flex; align-items: center; justify-content: space-between; }
.main-head .pn { font-size: 14px; font-weight: 600; color: var(--fg); letter-spacing: -0.01em; }
.main-head .menu { color: var(--fg-3); letter-spacing: 1px; }
.panels { display: grid; grid-template-columns: 1.25fr 1fr; gap: 11px; }

/* video preview panel */
.preview { background: var(--bg-3); border-radius: 9px; padding: 8px; }
.preview .frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 6px; overflow: hidden;
  background:
    radial-gradient(120% 100% at 30% 20%, #3a2f22, transparent 55%),
    radial-gradient(120% 120% at 85% 90%, #241a2e, transparent 55%),
    linear-gradient(135deg, #1a1d22, #0c0d10);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.55);
}
.preview .frame::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(45% 55% at 60% 42%, rgba(239,159,39,0.16), transparent 70%);
}
.preview .burnin {
  position: absolute; left: 7px; bottom: 7px; z-index: 2;
  font-family: var(--mono); font-size: 10px; color: #fff; font-weight: 600;
  padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, 0.5);
}
.preview .cap {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 6px; padding: 0 2px;
  font-family: var(--mono); font-size: 9.5px; color: var(--fg-3);
}

/* timecode panel */
.tc-panel { background: var(--bg-3); border-radius: 9px; padding: 9px; display: flex; flex-direction: column; }
.tc-panel .h {
  font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 7px;
}
.tc-list { background: var(--field); border-radius: 6px; padding: 6px; flex: 1; }
.tc {
  font-family: var(--mono); font-size: 11px; color: var(--gold);
  padding: 3px 6px; border-radius: 4px; letter-spacing: .01em;
}
.tc.active { background: var(--gold-dim); }
.tc.dim { color: var(--fg-3); }

/* grab bar */
.grabbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding-top: 1px;
}
.grabbar .dest { font-family: var(--mono); font-size: 9.5px; color: var(--fg-3); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grab-btn {
  flex: none; font-size: 11px; font-weight: 700; color: #17130a;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  padding: 6px 13px; border-radius: 7px;
}

/* results */
.results { background: var(--bg-3); border-radius: 9px; padding: 8px 10px; }
.results .rh { font-size: 9.5px; color: var(--fg-3); margin-bottom: 6px; font-family: var(--mono); }
.rrow {
  display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center;
  padding: 3px 0; font-family: var(--mono); font-size: 10px;
}
.rrow + .rrow { border-top: 1px solid var(--line); }
.rrow .rtc { color: var(--gold); }
.rrow .rfile { color: var(--fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rrow .rok { color: #28c840; }

/* screenshot swap: add class "use-shot" to .app and point .real-shot at your image */
.app.use-shot .app-body { display: none; }
.app .real-shot { display: none; width: 100%; }
.app.use-shot .real-shot { display: block; }

/* ============================================================
   Trust strip
   ============================================================ */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: center; padding: 18px 22px; }
.strip span { font-size: 12px; color: var(--fg-3); font-family: var(--mono); letter-spacing: .04em; }
.strip .sep { color: var(--gold); opacity: .5; }

/* ============================================================
   How it works
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step {
  position: relative; padding: 24px 22px;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s ease, transform .2s ease;
}
.step:hover { border-color: var(--gold-line); transform: translateY(-3px); }
.step .num {
  font-family: var(--mono); font-size: 11px; color: var(--gold);
  border: 1px solid var(--gold-line); border-radius: 999px;
  padding: 2px 9px; display: inline-block; margin-bottom: 16px;
}
.step .ico { width: 34px; height: 34px; color: var(--gold); margin-bottom: 13px; }
.step h3 { font-size: 17px; letter-spacing: -0.01em; }
.step p { color: var(--fg-2); margin-top: 7px; font-size: 14px; }

/* ============================================================
   Features
   ============================================================ */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feat {
  padding: 22px 20px; border-radius: var(--radius);
  background: var(--bg-3); border: 1px solid var(--line);
  transition: border-color .2s ease, background .2s ease;
}
.feat:hover { border-color: var(--gold-line); background: var(--bg-4); }
.feat .ico {
  width: 38px; height: 38px; border-radius: 9px; margin-bottom: 13px;
  display: grid; place-items: center;
  background: var(--gold-dim); border: 1px solid var(--gold-line); color: var(--gold);
}
.feat .ico svg { width: 20px; height: 20px; }
.feat h3 { font-size: 16px; letter-spacing: -0.01em; }
.feat p { color: var(--fg-2); font-size: 14px; margin-top: 6px; }

/* ============================================================
   Pricing
   ============================================================ */
.price-wrap { display: grid; place-items: center; }
.price-card {
  width: 100%; max-width: 400px;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--gold-line);
  border-radius: 18px; padding: 34px 30px;
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.price-card::before {
  content: ""; position: absolute; inset: -1px -1px auto -1px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.price-badge {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold-line); border-radius: 999px;
  padding: 4px 11px; display: inline-block; margin-bottom: 18px;
}
.price-amount { display: flex; align-items: baseline; gap: 5px; }
.price-amount .amt { font-size: 50px; font-weight: 800; letter-spacing: -0.03em; font-family: var(--mono); }
.price-amount .per { color: var(--fg-2); font-size: 16px; }
.price-sub { color: var(--fg-2); margin-top: 8px; font-size: 14px; }
.price-list { list-style: none; margin: 22px 0; display: grid; gap: 11px; }
.price-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--fg); }
.price-list svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 1px; }
.price-card .btn { width: 100%; justify-content: center; }
.price-note { text-align: center; color: var(--fg-3); font-size: 12px; margin-top: 14px; }
.price-note b { color: var(--fg-2); font-weight: 600; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 720px; margin: 0 auto; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px 4px; cursor: pointer; list-style: none;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .plus {
  flex: none; width: 20px; height: 20px; position: relative; color: var(--gold);
  transition: transform .25s ease;
}
.qa summary .plus::before, .qa summary .plus::after {
  content: ""; position: absolute; background: currentColor; border-radius: 2px;
}
.qa summary .plus::before { left: 0; right: 0; top: 9px; height: 2px; }
.qa summary .plus::after { top: 0; bottom: 0; left: 9px; width: 2px; transition: transform .25s ease; }
.qa[open] summary .plus::after { transform: scaleY(0); }
.qa .a { padding: 0 4px 20px; color: var(--fg-2); font-size: 14.5px; max-width: 62ch; }
.qa .a code { font-family: var(--mono); color: var(--gold); font-size: .95em; }

/* ============================================================
   Final CTA
   ============================================================ */
.finale { text-align: center; }
.finale .card {
  background: linear-gradient(180deg, var(--bg-3), var(--bg));
  border: 1px solid var(--gold-line); border-radius: 20px;
  padding: clamp(38px, 6vw, 60px) 28px;
  box-shadow: var(--shadow);
}
.finale h2 { max-width: 18ch; margin: 0 auto; }
.finale p { color: var(--fg-2); font-size: 16px; margin: 13px auto 0; max-width: 38ch; }
.finale .hero-cta { justify-content: center; margin-top: 24px; }

/* ============================================================
   Footer
   ============================================================ */
footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 44px 0 32px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.foot-brand { max-width: 280px; }
.foot-brand p { color: var(--fg-3); font-size: 13px; margin-top: 11px; }
.foot-cols { display: flex; gap: 52px; flex-wrap: wrap; }
.foot-col h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--fg-3); margin-bottom: 12px; font-family: var(--mono); }
.foot-col a { display: block; color: var(--fg-2); font-size: 14px; padding: 4px 0; transition: color .15s ease; }
.foot-col a:hover { color: var(--gold); }
.foot-bottom {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line);
  color: var(--fg-3); font-size: 12.5px;
}
.foot-bottom .mono { font-family: var(--mono); }

/* ============================================================
   Legal pages
   ============================================================ */
.legal { max-width: 720px; margin: 0 auto; padding: clamp(48px, 7vw, 80px) 0; }
.legal h1 { font-size: clamp(28px, 4.5vw, 40px); letter-spacing: -0.02em; }
.legal .updated { font-family: var(--mono); font-size: 12px; color: var(--fg-3); margin-top: 9px; }
.legal h2 { font-size: 20px; margin-top: 34px; }
.legal p, .legal li { color: var(--fg-2); font-size: 15px; margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--gold); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-2); font-size: 13px; margin-bottom: 26px; }
.back-link:hover { color: var(--gold); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav-cta .btn-ghost { display: none; }
  .nav-links {
    display: none; position: absolute; top: 58px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 22px; }
  .nav-toggle { display: block; }
  .features { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1; justify-content: center; }
  .app-body { grid-template-columns: 96px 1fr; }
  .panels { grid-template-columns: 1fr; }
  .tagline { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
