/* Ingraft marketing site — shared stylesheet.
   Matches the extension's design system (extension/lib/shared.css).
   No external requests: fonts are self-hosted in /fonts. */

/* ---- Fonts (bundled, never from a CDN) ---------------------------------- */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Tokens — same values as the extension ------------------------------ */
:root {
  --bg: #f6f5f2;
  --card: #ffffff;
  --ink: #1a212b;
  --ink-soft: #5c6470;
  --muted: #68707d;
  --line: #e4e2dc;
  --line-strong: #d3d0c8;
  --accent: #14655a;
  --accent-hover: #10534a;
  --accent-wash: #e8f0ee;
  --accent-ink: #ffffff;
  --danger: #b03d2e;
  --warn: #92660a;
  --warn-wash: #fdf1d7;

  --shadow-sm: 0 1px 2px rgba(26, 33, 43, 0.06);
  --shadow-md: 0 4px 14px -6px rgba(26, 33, 43, 0.16);

  --ease-out: cubic-bezier(0.16, 0.84, 0.34, 1);
  --ease-move: cubic-bezier(0.45, 0.05, 0.25, 1);
  --dur-press: 130ms;
  --dur-fast: 180ms;
  --dur-base: 240ms;
  --dur-slow: 300ms;

  --font-ui: "Geist", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --radius: 10px;
  --radius-sm: 7px;
}

/* ---- Base ---------------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.1rem, 1.2rem + 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.2rem); }
h3 { font-size: 1.35rem; }

/* Small labels above sections stay in the UI face, not the serif. */
.kicker {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

p { margin: 0 0 1em; }
.lede { font-size: 1.12rem; color: var(--ink-soft); }
.muted { color: var(--muted); }

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.wrap {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Header --------------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 18px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.wordmark:hover { color: var(--ink); }
.site-nav {
  display: flex;
  gap: 4px 22px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 4px 0;
}
.site-nav a:hover { color: var(--accent); }

/* ---- Hero ----------------------------------------------------------------- */
.hero { padding: 72px 0 64px; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: 0.45em; }
.hero .lede { max-width: 34em; }

/* The call to action. The extension is not on the Chrome Web Store yet, so
   this is deliberately NOT a link or a button — it must never look clickable. */
.cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.cta-pending {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px dashed var(--line-strong);
  background: var(--card);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.98rem;
}
.cta-pending .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warn);
  flex: none;
}
.cta-note { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* ---- Side-panel sketch in the hero ----------------------------------------
   A deliberately abstract picture of the extension's side panel: grey bars for
   text, because showing an invented CV would be exactly what the product is
   against. Decorative only; aria-hidden in the markup. */
.panel-sketch {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 18px;
  max-width: 360px;
  width: 100%;
  justify-self: end;
}
.panel-sketch .ps-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.ps-btn {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 14px;
}
.ps-doc {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: #fff;
}
.ps-line {
  height: 8px;
  border-radius: 4px;
  background: var(--line);
  margin-bottom: 8px;
}
.ps-line.w60 { width: 60%; }
.ps-line.w80 { width: 80%; }
.ps-line.w45 { width: 45%; }
.ps-line.head { background: var(--line-strong); width: 50%; height: 10px; }
.ps-flag {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: var(--warn-wash);
  border: 1px solid #e3cda3;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.78rem;
  color: var(--warn);
  line-height: 1.4;
  margin-top: 12px;
}
.ps-flag strong { color: inherit; }

/* ---- Sections -------------------------------------------------------------- */
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 620px; margin-bottom: 36px; }

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-wash);
  color: var(--accent);
  font-weight: 650;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.steps h3 {
  font-family: var(--font-ui);
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.011em;
  margin-bottom: 6px;
}
.steps p { margin: 0; font-size: 0.93rem; color: var(--ink-soft); }

/* Feature cards */
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}
.feature h3 {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.011em;
  margin-bottom: 8px;
}
.feature p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.feature p + p { margin-top: 0.7em; }

/* Privacy strip */
.privacy-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 26px;
  max-width: 720px;
}
.privacy-box p:last-child { margin-bottom: 0; }

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 760px;
}
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.plan.pro { border-color: var(--line-strong); }
.plan h3 {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.011em;
  margin-bottom: 4px;
}
.plan .price {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 2px;
}
.plan .price small {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--muted);
}
.plan ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.plan li {
  padding: 7px 0 7px 26px;
  position: relative;
  font-size: 0.94rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}
.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 14px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* FAQ — <details>, so it works with JavaScript disabled. */
.faq { max-width: 720px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 650;
  letter-spacing: -0.011em;
  list-style: none;
  position: relative;
  padding-right: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--dur-fast) var(--ease-move);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq summary:hover { color: var(--accent); }
.faq .answer { padding: 0 18px 16px; color: var(--ink-soft); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---- Footer ----------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links {
  display: flex;
  gap: 6px 22px;
  flex-wrap: wrap;
}
.footer-links a { color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.site-footer p { margin: 0; }

/* ---- Inner pages (support, 404) ---------------------------------------------- */
.page { padding: 56px 0 72px; }
.page-narrow { max-width: 720px; }
.page h2 {
  font-family: var(--font-ui);
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.011em;
  margin: 2em 0 0.5em;
}
.page h1 + .lede { margin-top: -4px; }

/* ---- Scroll reveal — progressive enhancement only ------------------------------
   Content is fully visible by default. The .js class is added by script; only
   then do elements start hidden, and IntersectionObserver reveals them with a
   40–60ms stagger set inline. If the script never runs, nothing is hidden. */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--dur-slow) var(--ease-out),
                transform var(--dur-slow) var(--ease-out);
  }
  html.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

/* ---- Responsive ------------------------------------------------------------------ */
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .panel-sketch { justify-self: start; }
}
@media (max-width: 640px) {
  .hero { padding: 48px 0 44px; }
  .section { padding: 48px 0; }
  .features, .plans, .steps { grid-template-columns: 1fr; }
  .site-header .wrap { padding-top: 14px; padding-bottom: 14px; }
}
@media (max-width: 380px) {
  .wrap { padding: 0 14px; }
  body { font-size: 15px; }
}
