/* Magpie landing v2 — tokens + plan in DESIGN.md, wording from magpie-copy-v1.md.
   The wordmark is the Ginsburg logo as outlines (same SVG the extension ships —
   no webfont, no license exposure). The product speaks Space Grotesk (the
   panel's own UI face) + Space Mono (its label voice). The serif survives only
   as *specimen*: inside things Magpie collected, plus one glint in the hero.
   Zero JS. Everything display-voiced routes through --display. */

@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/SpaceGrotesk-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
/* the serif, demoted to specimen — only ever inside collected artifacts */
@font-face {
  font-family: 'Newsreader';
  src: url('fonts/Newsreader-Italic-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('fonts/SpaceMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f4f2ec;
  --ink: #1a1c19;
  --quill: #575d56;
  --petrol: #0f5e68;
  --sheen: #2f4d8c;
  --card: #fbfaf6;

  --line: color-mix(in srgb, var(--ink) 10%, transparent);
  --fog-petrol: color-mix(in srgb, var(--petrol) 7%, transparent);

  --display: 'Space Grotesk', system-ui, sans-serif;
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif; /* specimen only */
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* shape + motion, carried over from the product panel */
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 13px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --settle: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 140ms;
  --slow: 240ms;
  --shadow-sm: 0 1px 2px rgb(26 28 25 / 0.05), 0 2px 10px rgb(26 28 25 / 0.06);
  --shadow-lg: 0 4px 12px rgb(26 28 25 / 0.07), 0 14px 36px rgb(26 28 25 / 0.12);
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  font: 400 1.03rem/1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* the room's light: two barely-there washes, fixed like window light */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(52% 44% at 78% 4%, var(--fog-petrol), transparent 72%),
    radial-gradient(44% 40% at 8% 32%, rgb(203 187 152 / 0.13), transparent 70%);
}

/* film grain — static, on top of everything, never in the way */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

::selection { background: var(--petrol); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--petrol);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.9rem;
  transition: top var(--fast) var(--ease);
}
.skip:focus-visible { top: 16px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.mono {
  font-family: var(--mono);
  letter-spacing: 0.03em;
}

.spark { width: 15px; height: 15px; fill: var(--petrol); flex: 0 0 auto; }
.spark-quiet { fill: var(--quill); opacity: 0.75; width: 18px; height: 18px; }

/* ---------- header: a quiet top row, not a navbar ---------- */
.top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px clamp(20px, 5vw, 44px);
}
/* the wordmark IS the logo: Ginsburg SemiBold outlines, the exact SVG the
   extension header ships. Ginsburg appears nowhere else on the page. */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.wordmark .mark {
  height: 14px;
  width: auto;
  display: block;
  fill: currentColor;
}
.top-nav {
  display: inline-flex;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
}
.top-link {
  font-size: 0.8rem;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--petrol);
  text-decoration: none;
  transition: color var(--slow) var(--ease);
}
.top-link:hover { color: var(--sheen); }

/* ---------- hero ---------- */
.hero {
  max-width: 1080px;
  margin-inline: auto;
  min-height: min(860px, 94vh);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding: clamp(120px, 16vh, 160px) clamp(22px, 6vw, 48px) clamp(56px, 8vh, 88px);
}

h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.8vw, 4.3rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
  margin: 0 0 1.4rem;
}

/* the sparing serif: one collected glint inside the sans headline */
.glint {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 480;
  letter-spacing: 0;
}

.sub {
  font-size: clamp(1.08rem, 1.9vw, 1.26rem);
  line-height: 1.5;
  color: var(--quill);
  max-width: 34ch;
  margin: 0 0 2.3rem;
}

.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 26px;
}

.microline {
  margin: 1.9rem 0 0;
  font-size: 0.74rem;
  color: var(--quill);
}

/* ---------- buttons & links ---------- */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--petrol);
  color: var(--paper);
  font: 500 0.8rem/1 var(--display);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 24px;
  border-radius: var(--radius);
  transition: transform var(--fast) var(--ease);
}
/* feather sheen: the accent drifts toward indigo under the cursor */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(120deg, var(--petrol) -10%, var(--sheen) 120%);
  opacity: 0;
  transition: opacity var(--slow) var(--ease);
}
.btn:hover::before { opacity: 1; }
.btn:active { transform: scale(0.98); }

.btn-ghost {
  background: transparent;
  color: var(--petrol);
  border: 1px solid color-mix(in srgb, var(--petrol) 45%, transparent);
  transition: color var(--slow) var(--ease), border-color var(--slow) var(--ease),
    transform var(--fast) var(--ease);
}
.btn-ghost::before { content: none; }
.btn-ghost:hover { color: var(--sheen); border-color: var(--sheen); }

.link-quiet {
  color: var(--petrol);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color var(--slow) var(--ease);
}
.link-quiet:hover { color: var(--sheen); }

/* ---------- the signature: clips settle into a stack, then stillness ---------- */
.hero-stack { justify-self: center; }

.stack-box {
  position: relative;
  width: min(440px, 88vw);
  aspect-ratio: 44 / 42;
}

.clip {
  position: absolute;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  animation: settle 1.05s var(--settle) both;
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translate(var(--fx), var(--fy)) rotate(var(--fr));
  }
  60% { opacity: 1; }
  to {
    opacity: 1;
    transform: translate(0, 0) rotate(var(--tr));
  }
}

/* an iridescent swatch — the shiny thing itself */
.clip-a {
  left: 3%; top: 4%; width: 41%; height: 51%;
  z-index: 2;
  background: linear-gradient(142deg, #10606a 0%, #2c4f83 55%, #1a5b50 100%);
  --fx: -72px; --fy: -88px; --fr: -14deg; --tr: -4deg;
  animation-delay: 0.1s;
}
.clip-a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(60% 45% at 24% 14%, rgb(255 255 255 / 0.2), transparent 70%);
}

/* a dusk photo */
.clip-d {
  left: 60%; top: 2%; width: 33%; height: 41%;
  z-index: 1;
  background: linear-gradient(155deg, #31443d 0%, #18221d 82%);
  --fx: 84px; --fy: -64px; --fr: 15deg; --tr: 5deg;
  animation-delay: 0.28s;
}

/* a screenshot, with the palette Magpie read from it */
.clip-b {
  left: 50%; top: 34%; width: 47%; height: 36%;
  z-index: 3;
  background: var(--card);
  padding: 8% 7%;
  display: flex;
  flex-direction: column;
  gap: 9%;
  --fx: 104px; --fy: 56px; --fr: 10deg; --tr: 2.5deg;
  animation-delay: 0.46s;
}
.sk {
  display: block;
  height: 8%;
  min-height: 5px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--ink) 11%, transparent);
}
.sk-1 { width: 84%; }
.sk-2 { width: 58%; }
.sk-3 { width: 70%; }
.palette { display: flex; gap: 6px; margin-top: auto; }
.palette i {
  width: 13px; height: 13px;
  border-radius: 3px;
}
.palette i:nth-child(1) { background: #0f5e68; }
.palette i:nth-child(2) { background: #2f4d8c; }
.palette i:nth-child(3) { background: #7a8f86; }
.palette i:nth-child(4) { background: #d8cfbd; }

/* a text snippet */
.clip-c {
  left: 11%; top: 54%; width: 43%; height: 31%;
  z-index: 4;
  background: var(--card);
  padding: 6% 7%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  --fx: -76px; --fy: 84px; --fr: -9deg; --tr: -1.5deg;
  animation-delay: 0.64s;
}
.snippet {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.95rem, 2.4vw, 1.12rem);
  line-height: 1.3;
  color: var(--ink);
}
.snip-label {
  margin-top: auto;
  font-size: 0.62rem;
  text-transform: lowercase;
  color: var(--quill);
}

/* the warm one — every magpie haul has a glint of gold */
.clip-e {
  left: 71%; top: 66%; width: 24%; height: 18%;
  z-index: 2; /* tucked under the screenshot card — part of the pile */
  background:
    radial-gradient(55% 45% at 30% 20%, rgb(255 244 220 / 0.28), transparent 70%),
    linear-gradient(150deg, #c49a5e 0%, #96683a 60%, #6f4a28 100%);
  --fx: 58px; --fy: 74px; --fr: 8deg; --tr: -3deg;
  animation-delay: 0.8s;
}

.dot {
  width: 7px; height: 7px;
  border-radius: 99px;
  background: var(--petrol);
  flex: 0 0 auto;
}

.chip-caught {
  position: absolute;
  left: 30%; top: 5%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 99px;
  box-shadow: var(--shadow-sm);
  padding: 8px 14px;
  font-size: 0.74rem;
  animation: arrive 0.45s var(--settle) 1.25s both;
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.stack-caption {
  margin: 1.6rem 0 0 9%;
  font-size: 0.72rem;
  color: var(--quill);
  animation: appear 0.5s var(--ease) 1.5s both;
}

@keyframes appear {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- sections: one idea per room ---------- */
.section {
  max-width: 1080px;
  margin: clamp(6.5rem, 13vh, 10.5rem) auto;
  padding-inline: clamp(22px, 6vw, 48px);
}

.marker {
  font-size: 0.72rem;
  text-transform: lowercase;
  color: var(--quill);
  margin: 0 0 1.7rem;
}

h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin: 0 0 1.5rem;
  max-width: 24ch;
}

.prose {
  max-width: 62ch;
  margin: 0;
  color: var(--ink);
}
.prose + .prose { margin-top: 1em; }

.fine {
  font-size: 0.74rem;
  color: var(--quill);
  margin: 2.4rem 0 0;
  max-width: 62ch;
}
.center { text-align: center; margin-inline: auto; }

/* the declarative moment — ours in petrol italic, not anyone's red */
.no-list {
  list-style: none;
  padding: 0;
  margin: clamp(4rem, 9vh, 6.5rem) auto 1rem;
  text-align: center;
}
.no-list li {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.75rem, 3.8vw, 2.7rem);
  letter-spacing: -0.015em;
  line-height: 1.05;
}
.no-list li + li { margin-top: 1.05em; }
.no-list em {
  font-style: normal; /* petrol does the pointing — italics belong to specimens */
  color: var(--petrol);
}

/* ---------- 02 capture vignette (flat, in-flow, no angled mockups) ---------- */
.vignette {
  position: relative;
  width: min(620px, 100%);
  aspect-ratio: 620 / 320;
  margin: 3.4rem 0 0;
}
.v-img {
  position: absolute;
  left: 0; top: 0;
  width: 46%; height: 82%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(40% 30% at 68% 18%, rgb(236 244 238 / 0.26), transparent 68%),
    linear-gradient(150deg, #52756a 0%, #2e4f46 52%, #20362f 100%);
}
.v-cursor {
  position: absolute;
  left: 39.5%; top: 40%;
  width: 15px; height: 15px;
  z-index: 3;
  fill: var(--ink);
  stroke: var(--paper);
  stroke-width: 1.2;
}
.v-menu {
  position: absolute;
  left: 41%; top: 44%;
  width: 38%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
}
.v-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  font-size: 0.84rem;
  color: var(--quill);
  white-space: nowrap;
}
.v-hr { display: block; height: 1px; background: var(--line); margin: 4px 8px; }
.v-catch {
  color: var(--petrol);
  background: color-mix(in srgb, var(--petrol) 7%, transparent);
  border-radius: 7px;
  font-weight: 500;
}
.v-catch .spark { width: 12px; height: 12px; }
.v-toast {
  position: absolute;
  left: 56%; top: 14%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 99px;
  box-shadow: var(--shadow-sm);
  padding: 8px 14px;
  font-size: 0.76rem;
  white-space: nowrap;
}

/* ---------- 03 search demo: three example queries, nothing pretending to be an input ---------- */
.search-demo { margin-top: 3rem; }
.query-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.q-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 0.9rem;
  color: var(--ink);
}
.q-chip .mono { font-size: 0.8rem; }
.swatch {
  width: 12px; height: 12px;
  border-radius: 3px;
  background: var(--petrol);
}

/* ---------- 04 the files ---------- */
.files {
  margin: 3.2rem 0 0;
  max-width: 540px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--quill);
  letter-spacing: 0.02em;
  overflow-x: auto;
}
.files .dir { color: var(--ink); }
.files .note { color: var(--petrol); }

/* ---------- 06 pricing ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 3.4rem;
  align-items: stretch;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
}
.card-plus { border: 1.5px solid var(--petrol); }
.plan {
  font-size: 0.72rem;
  color: var(--quill);
  margin: 0;
}
.price {
  font-family: var(--display);
  font-weight: 500;
  font-size: 2.1rem;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0.8rem 0 0;
}
.per {
  display: block;
  font-size: 0.72rem;
  color: var(--quill);
  margin-top: 0.65rem;
}
.card-tag {
  font-size: 0.98rem;
  font-style: italic;
  color: var(--petrol);
  margin: 1rem 0 0;
}
.card-body,
.card-list {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--quill);
  margin: 1.1rem 0 0;
  flex-grow: 1;
}
.card-list {
  list-style: none;
  padding: 0;
}
.card-list li {
  position: relative;
  padding-left: 1.15em;
}
.card-list li + li { margin-top: 0.55em; }
.card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 5px; height: 5px;
  border-radius: 2px;
  background: var(--petrol);
}
.card .btn,
.card .btn-ghost {
  margin-top: 1.7rem;
  align-self: stretch;
}

/* ---------- footer ---------- */
.footer {
  max-width: 1080px;
  margin: clamp(7rem, 14vh, 11rem) auto 0;
  padding: 0 clamp(22px, 6vw, 48px) clamp(3.5rem, 6vh, 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  text-align: center;
}
.footer .prose {
  max-width: 58ch;
  color: var(--quill);
  font-size: 0.98rem;
}
.footer strong { color: var(--ink); font-weight: 600; }
.copyright {
  font-size: 0.72rem;
  color: var(--quill);
  margin: 0;
}
.copyright a {
  color: inherit;
  text-decoration: none;
  transition: color var(--fast) var(--ease);
}
.copyright a:hover { color: var(--petrol); }

/* ---------- legal pages (/privacy, /terms) ---------- */
.legal {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(8rem, 16vh, 11rem) clamp(22px, 6vw, 48px) 2rem;
}
.legal-kicker {
  font-size: 0.72rem;
  text-transform: lowercase;
  letter-spacing: 0.08em;
  color: var(--petrol);
  margin: 0 0 0.8rem;
}
.legal h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 0.7rem;
}
.legal-date {
  font-size: 0.72rem;
  color: var(--quill);
  margin: 0 0 3rem;
}
.legal section { margin: 0 0 2.4rem; }
.legal h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 0.6rem;
}
.legal p,
.legal li {
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--quill);
}
.legal p { margin: 0 0 0.8em; }
.legal ul { margin: 0 0 0.8em; padding-left: 1.2em; }
.legal li { margin-bottom: 0.45em; }
.legal li::marker { color: var(--petrol); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--petrol); text-decoration: none; }
.legal a:hover { color: var(--sheen); }
.legal-sublist { list-style: none; padding-left: 0; }
.legal-company {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  margin-top: 3rem;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--quill);
}
.legal-company p { margin: 0; font-family: var(--mono); font-size: inherit; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 120px;
  }
  .hero-stack { justify-self: start; margin-top: 1.5rem; }
  .cards { grid-template-columns: 1fr; max-width: 460px; }
}

@media (max-width: 560px) {
  .cta-row { gap: 14px 20px; }
  .btn { padding: 14px 22px; }

  .vignette { aspect-ratio: 620 / 470; }
  .v-img { width: 62%; height: 46%; top: 0; }
  .v-cursor { left: 50%; top: 36%; }
  .v-menu { left: 22%; top: 44%; width: 72%; }
  .v-toast { left: auto; right: 2%; top: 6%; }

  .files { font-size: 0.76rem; padding: 18px 20px; }
}

/* ---------- stillness for those who ask for it ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
