/* Marker marketing site: shared styles for every page in landing/ */

:root {
  --paper: #f4f3ef;
  --paper-2: #ebeae4;
  --card: #fbfbf9;
  --ink: #121211;
  --ink-2: #6b6a64;      /* secondary text, 5.0:1 on paper */
  --ink-3: #8a8982;      /* tertiary, large text only */
  --rule: #dddcd5;
  --hl: #e4f04f;         /* highlighter */
  --hl-ink: #121211;
  --stage: #dfe3d6;      /* soft sage behind the hero shot */
  --radius: 10px;
  --shadow: 0 1px 2px rgb(18 18 17 / 0.05), 0 18px 40px -18px rgb(18 18 17 / 0.22);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 4.5vw, 64px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--font);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
::selection { background: var(--hl); color: var(--hl-ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
q { quotes: "\201C" "\201D"; }

.wrap { width: 100%; max-width: 1312px; margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 60px; }
.wordmark { font-weight: 600; font-size: 19px; letter-spacing: -0.03em; text-decoration: none; display: inline-flex; align-items: flex-start; }
.nib { width: 9px; height: 5px; background: var(--hl); transform: skewX(-24deg) rotate(-18deg); margin: 3px 0 0 3px; box-shadow: inset 0 0 0 1px rgb(18 18 17 / 0.12); }
.nav { display: flex; gap: 24px; font-size: 14px; color: var(--ink-2); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 14px; }
.menu-btn { display: none; width: 40px; height: 40px; margin-right: -10px; border: 0; background: none; border-radius: 6px; cursor: pointer; place-items: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .2s var(--ease-out), background-color .2s; }
.menu-btn span { position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.site-header.open .menu-btn span { background: transparent; }
.site-header.open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.site-header.open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
.link-quiet { text-decoration: none; }
.link-quiet:hover { text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 18px; border-radius: 6px;
  font: 500 15px/1 var(--font); text-decoration: none; letter-spacing: -0.01em;
  transition: background-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #2b2b29; }
.btn-soft { background: var(--paper-2); color: var(--ink); }
.btn-soft:hover { background: #e1e0d9; }
.btn-sm { height: 34px; padding: 0 13px; font-size: 14px; }

/* Type: the two-tone sentence (ink lead, grey continuation) */
.lede {
  font-weight: 400; font-size: clamp(28px, 3.3vw, 46px); line-height: 1.16;
  letter-spacing: -0.028em; color: var(--ink-2); max-width: 32ch; text-wrap: balance;
}
.lede-sm {
  font-weight: 400; font-size: clamp(21px, 1.85vw, 27px); line-height: 1.3;
  letter-spacing: -0.018em; color: var(--ink-2); text-wrap: pretty;
}
.ink { color: var(--ink); }
.small-h { font-size: 14px; font-weight: 500; letter-spacing: 0; }
.note { color: var(--ink-2); font-size: 15px; line-height: 1.55; max-width: 44ch; }

/* The highlighter: one authored motion, a stroke that draws behind the phrase */
mark.hl {
  color: inherit; color: var(--ink);
  background: linear-gradient(transparent 8%, var(--hl) 8%, var(--hl) 88%, transparent 88%) no-repeat 0 0 / 100% 100%;
  padding: 0 .08em; margin: 0 -.04em;
  border-radius: 2px 5px 3px 6px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.js-motion mark.hl { background-size: 0% 100%; transition: background-size 1.1s var(--ease-out) .15s; }
.js-motion mark.hl.on { background-size: 100% 100%; }

/* Hero */
.hero { padding-top: clamp(56px, 9vw, 120px); }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.stage { position: relative; margin: clamp(48px, 6vw, 72px) 0 0; padding: clamp(14px, 4.4vw, 64px) clamp(14px, 4.4vw, 64px) 0; border-radius: 14px; overflow: hidden; }
.stage-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 90% at 15% 0%, #eef2c4 0%, transparent 55%),
    radial-gradient(90% 80% at 100% 100%, #cfd8cb 0%, transparent 60%),
    var(--stage);
}
.shot { border-radius: var(--radius); box-shadow: var(--shadow); outline: 1px solid rgb(18 18 17 / 0.08); outline-offset: -1px; background: var(--card); }
.shot-hero { position: relative; z-index: 1; border-radius: 10px 10px 0 0; }

/* Sources strip */
.sources { padding-top: 72px; display: grid; grid-template-columns: minmax(160px, 1fr) 3fr; gap: 24px; align-items: baseline; }
.source-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; color: var(--ink-2); font-size: 15px; }
.source-list li:not(:last-child)::after { content: "\00B7"; margin-left: 10px; color: var(--ink-3); }

/* Feature rows */
.feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px);
  align-items: center; padding-top: clamp(96px, 12vw, 168px);
}
.feature-text { display: grid; gap: 20px; align-content: start; max-width: 520px; }
.feature-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature-flip .feature-text { order: 2; }
.feature-media { margin: 0; min-width: 0; }
.feature-wide { grid-template-columns: 1fr; }
.feature-wide .feature-text { max-width: 640px; }

.duo { display: flex; gap: 20px; align-items: flex-start; justify-content: center; }
.shot-sidebar { width: min(256px, 44%); margin-top: 48px; }
.phone {
  flex: 0 1 300px; min-width: 0; padding: 7px; border-radius: 34px; background: var(--ink);
  box-shadow: 0 30px 60px -28px rgb(18 18 17 / 0.45);
}
.phone img { border-radius: 27px; }
.duo .phone { flex-basis: 290px; }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 3vw, 40px); max-width: 1040px; margin-inline: auto; width: 100%; }
.phones .phone:nth-child(2) { transform: translateY(40px); }
.feature-wide .phones { margin-top: 24px; }

.shot-dark { outline-color: rgb(255 255 255 / 0.06); }

.mcp { display: grid; gap: 18px; }
.shot-card { width: 100%; }
.tools { background: var(--ink); color: #e9e8e2; border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.tools-h { font-size: 13px; color: #a3a29b; margin-bottom: 12px; }
.tools ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.tools li { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; font-size: 14px; }
.tools code { font: 400 13.5px/1.4 var(--mono); color: var(--hl); min-width: 15ch; }
.tools span { color: #b9b8b1; }

/* How it works */
.how { padding-top: clamp(112px, 13vw, 184px); }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); border-top: 1px solid var(--rule); }
.steps li { padding: 24px 0; display: grid; gap: 10px; align-content: start; }
.step-n { font: 400 13px/1 var(--mono); color: var(--ink-2); }
.steps h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.015em; }
.steps p { color: var(--ink-2); font-size: 15px; max-width: 36ch; }

/* Pricing teaser */
.pricing { padding-top: clamp(112px, 13vw, 184px); }
.plans { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 880px; }
.plan { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 28px; display: grid; gap: 14px; align-content: start; }
.plan-pro { background: var(--paper-2); border-color: transparent; }
.plan h3 { font-size: 16px; font-weight: 500; }
.price { font-size: 34px; letter-spacing: -0.03em; }
.per { font-size: 15px; color: var(--ink-2); letter-spacing: 0; }
.price-alt { margin-top: -8px; font-size: 14px; color: var(--ink-2); }
.plan-copy { color: var(--ink-2); font-size: 15px; }
.plan ul { margin: 4px 0 8px; padding: 0 0 0 18px; color: var(--ink); font-size: 15px; display: grid; gap: 6px; }
.plan li::marker { color: var(--ink-3); }
.plan .btn { justify-self: start; }
.more { margin-top: 20px; font-size: 15px; }

/* FAQ */
.faq { padding-top: clamp(112px, 13vw, 184px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 13px; height: 1.5px; background: var(--ink);
  transition: transform .3s var(--ease-out);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { color: var(--ink-2); padding: 0 40px 22px 0; max-width: 64ch; }

/* Final CTA */
.final { padding-block: clamp(120px, 14vw, 200px); }

/* Footer */
.site-footer { background: var(--paper-2); padding-top: 56px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand p { color: var(--ink-2); font-size: 14px; margin-top: 10px; max-width: 30ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(120px, auto)); gap: 32px; font-size: 14px; }
.footer-cols div { display: grid; gap: 9px; align-content: start; }
.footer-cols a { text-decoration: none; color: var(--ink-2); }
.footer-cols a:hover { color: var(--ink); text-decoration: underline; }
.footer-h { color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.footer-base { padding-block: 40px 32px; color: var(--ink-2); font-size: 13px; }

/* Entrance: content is visible by default; JS opts into the pre-state only when motion is allowed */
.js-motion .reveal { opacity: 0; transform: translateY(28px) scale(.985); filter: blur(6px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), filter .9s var(--ease-out); }
.js-motion .reveal.on { opacity: 1; transform: none; filter: none; }
.js-motion .steps .reveal:nth-child(2) { transition-delay: .08s; }
.js-motion .steps .reveal:nth-child(3) { transition-delay: .16s; }
.js-motion .phones.reveal .phone:nth-child(2) { transition: transform 1.2s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Tablet */
@media (max-width: 980px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .site-header.open .nav {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 60px; left: 0; right: 0;
    padding: 4px var(--gutter) 16px; background: var(--paper); border-bottom: 1px solid var(--rule);
    font-size: 17px; color: var(--ink);
  }
  .site-header.open .nav a { padding: 12px 0; }
  .feature, .feature-flip { grid-template-columns: 1fr; gap: 28px; }
  .feature-flip .feature-text { order: 0; }
  .faq { grid-template-columns: 1fr; gap: 8px; }
}

/* Phone */
@media (max-width: 640px) {
  .header-inner { gap: 12px; }
  .header-actions { gap: 12px; }
  .lede { max-width: none; }
  .sources { grid-template-columns: 1fr; gap: 12px; padding-top: 56px; }
  .stage { border-radius: 10px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 22px 0; border-bottom: 1px solid var(--rule); }
  .plans { grid-template-columns: 1fr; }
  .duo { gap: 12px; }
  .shot-sidebar { margin-top: 24px; }
  .phones { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .phone { padding: 4px; border-radius: 20px; }
  .phone img { border-radius: 16px; }
  .phones .phone:nth-child(2) { transform: translateY(20px); }
  .tools { padding: 18px; }
  .tools code { min-width: 0; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
}
