:root {
  --paper: #faf7f0;
  --paper-deep: #f1ebdf;
  --ink: #22201b;
  --ink-soft: #5d584c;
  --line: #e3dccb;
  --clay: #d97757;
  --clay-deep: #b5532f;
  --moss: #5f7a4e;
  --serif: "Iowan Old Style", Palatino, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --z-nav: 10;
  --z-toast: 20;
}

* { margin: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

::selection { background: rgba(217, 119, 87, 0.28); }

body {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(217, 119, 87, 0.10), transparent 55%),
    var(--paper);
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

a { color: var(--clay-deep); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--clay); }

/* ---------- nav ---------- */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  position: relative;
  z-index: var(--z-nav);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand b { font-size: 19px; letter-spacing: -0.01em; }
nav .links { display: flex; gap: 22px; align-items: center; font-size: 15px; }
nav .links a { color: var(--ink-soft); text-decoration: none; }
nav .links a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 11px;
  background: linear-gradient(145deg, #e08560, var(--clay-deep));
  color: #fff;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(181, 83, 47, 0.35), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: filter 0.15s, transform 0.1s;
}
.btn:hover { filter: brightness(0.95); }
.btn:active { transform: translateY(1px); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
  font-weight: 500;
}
.btn.ghost:hover { background: var(--paper-deep); }

/* ---------- hero ---------- */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
}
h1 em, h2 em { font-style: italic; color: var(--clay-deep); }
.hero .sub {
  margin: 26px 0 34px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 30em;
}
.hero .cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero .note { margin-top: 16px; font-size: 14.5px; color: var(--ink-soft); }

/* hero: live UI recreation */
.demo {
  position: relative;
  filter: drop-shadow(0 30px 50px rgba(25, 18, 8, 0.22));
}
.yt-card {
  background: #0f0f0f;
  color: #f1f1f1;
  border-radius: 16px;
  padding: 22px;
  font-family: Roboto, Arial, sans-serif;
}
.yt-player {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background:
    radial-gradient(65% 90% at 30% 20%, #3a2f28, transparent 60%),
    linear-gradient(135deg, #1c1c1c, #2b2622);
  position: relative;
  margin-bottom: 16px;
}
.yt-player::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
  transform: translate(-50%, -50%);
  border-left: 26px solid rgba(255, 255, 255, 0.92);
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
}
.yt-title { font-size: 16px; font-weight: 500; margin-bottom: 14px; }
.yt-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.yt-pill {
  height: 36px;
  border-radius: 18px;
  background: #272727;
  color: #f1f1f1;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  gap: 6px;
  white-space: nowrap;
}
/* the actual extension button, faithful to content.css */
.yt-pill.claude {
  background: linear-gradient(145deg, #e08560, #cd6a46);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.demo-toast {
  position: absolute;
  left: 50%;
  bottom: -24px;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 14px;
  font-family: Roboto, Arial, sans-serif;
  box-shadow: 0 8px 28px rgba(30, 24, 12, 0.28);
  z-index: var(--z-toast);
}
.demo-toast .dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--moss);
  margin-right: 8px;
  transform: translateY(-1px);
}

/* hero entrance */
.hero > div:first-child > * { animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero > div:first-child > *:nth-child(2) { animation-delay: 0.08s; }
.hero > div:first-child > *:nth-child(3) { animation-delay: 0.16s; }
.hero > div:first-child > *:nth-child(4) { animation-delay: 0.24s; }
.demo { animation: rise 0.7s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both; }
.demo-toast { animation: toast-in 0.5s 1.1s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- sections ---------- */
section { padding: clamp(48px, 7vw, 88px) 0; }
section.alt {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head { max-width: 620px; margin-bottom: clamp(28px, 4vw, 48px); }
h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.018em;
  margin-bottom: 14px;
}
.section-head p { color: var(--ink-soft); font-size: 18px; }

/* ---------- proof: real popup screenshots ---------- */
.proof {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.proof figure { margin: 0; }
.proof img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(25, 18, 8, 0.16);
}
.proof figcaption {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ---------- how it works: a real sequence ---------- */
.flow { counter-reset: step; max-width: 720px; }
.flow-step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 26px 0;
}
.flow-step + .flow-step { border-top: 1px solid var(--line); }
.flow-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 15px;
  color: var(--clay-deep);
  padding-top: 5px;
}
.flow-step h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.flow-step p { font-size: 16px; color: var(--ink-soft); max-width: 34em; }

/* ---------- transcript sample ---------- */
.sample {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.doc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 30px;
  box-shadow: 0 18px 44px rgba(25, 18, 8, 0.12);
}
.doc h3 { font-size: 19px; letter-spacing: -0.01em; margin-bottom: 10px; }
.doc .meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.8;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.doc p { font-size: 14.5px; line-height: 1.65; color: #3d3a32; margin-bottom: 12px; }
.doc p:last-child { margin-bottom: 0; }
.ts {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--clay-deep);
  background: #faf3ec;
  border: 1px solid #f0dfd2;
  border-radius: 5px;
  padding: 1px 6px;
  margin-right: 6px;
}
.sample-copy h2 { margin-bottom: 16px; }
.sample-copy p { color: var(--ink-soft); font-size: 17.5px; margin-bottom: 14px; max-width: 30em; }
.sample-copy b { color: var(--ink); }

/* ---------- guides: editorial index ---------- */
.guide-index { max-width: 760px; }
.guide-item {
  display: block;
  padding: 22px 4px;
  text-decoration: none;
  color: var(--ink);
  border-top: 1px solid var(--line);
  transition: background 0.15s;
}
.guide-item:last-child { border-bottom: 1px solid var(--line); }
.guide-item:hover { background: rgba(255, 255, 255, 0.5); }
.guide-item h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.guide-item h3::after {
  content: "\2192";
  color: var(--clay-deep);
  flex: none;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.guide-item:hover h3::after { transform: translateX(4px); }
.guide-item p { font-size: 15px; color: var(--ink-soft); margin-top: 4px; max-width: 40em; }

/* ---------- faq ---------- */
.faq { max-width: 760px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0 22px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  padding: 18px 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--clay-deep); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 18px; color: var(--ink-soft); font-size: 16px; }

/* ---------- final cta ---------- */
.final-cta { text-align: center; padding: clamp(64px, 9vw, 110px) 0; }
.final-cta h2 { margin-bottom: 12px; }
.final-cta p { color: var(--ink-soft); margin-bottom: 30px; font-size: 18px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--ink-soft); }
footer .cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer a { color: var(--ink-soft); }
footer .disclaimer { margin-top: 18px; font-size: 12.5px; max-width: 620px; }

/* ---------- article (guide pages) ---------- */
.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
article { max-width: 760px; margin: 0 auto; padding: 48px 0 72px; }
article .kicker { margin-bottom: 18px; }
article h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 18px; }
article .lede { font-size: 20px; color: var(--ink-soft); margin-bottom: 36px; }
article h2 { font-size: 27px; margin: 44px 0 14px; }
article h3 { font-size: 20px; margin: 28px 0 10px; font-weight: 600; }
article p { margin-bottom: 16px; }
article ol, article ul { margin: 0 0 16px 24px; }
article li { margin-bottom: 8px; }
article .tip {
  padding: 18px 22px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 24px 0;
  font-size: 15.5px;
}
article img {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(25, 18, 8, 0.14);
  margin: 12px 0 20px;
}
article .cta-box {
  margin: 44px 0 0;
  padding: 30px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
article .cta-box h2 { margin: 0 0 8px; font-size: 24px; }
article .cta-box p { color: var(--ink-soft); margin-bottom: 20px; }
code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--clay-deep);
}

/* ---------- motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero > div:first-child > *, .demo, .demo-toast { animation: none; }
  .guide-item h3::after { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .proof { grid-template-columns: 1fr; }
  .sample { grid-template-columns: 1fr; }
  .sample .doc { order: 2; }
  nav .links a:not(.btn) { display: none; }
}
@media (max-width: 520px) {
  .flow-step { grid-template-columns: 44px 1fr; gap: 12px; }
  .yt-pill:nth-child(n+3) { display: none; }
}
