:root {
  --paper: #fff8e7;
  --paper2: #fffdf6;
  --ink: #141414;
  --muted: #5c5c5c;
  --red: #d93a2b;
  --yellow: #f5b301;
  --purple: #a89bff;
  --purple-dk: #7c6ff0;
  --mint: #cdebcb;
  --green: #1c4a1e;
  --green-dk: #14451f;
  --pink: #ffb3a7;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --wrap: 1180px;
  --bd: 3px solid var(--ink);
  --sh: 6px 6px 0 var(--ink);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  overflow-x: hidden;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.h-serif { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
.h-serif em, .strip-paper em { font-style: italic; color: var(--red); }
h2.h-serif { font-size: clamp(38px, 6vw, 76px); line-height: 1.05; margin-bottom: 18px; }
.lede { color: var(--muted); font-size: clamp(16px, 2vw, 20px); max-width: 620px; margin: 0 auto 10px; }
.lede.light, .kicker.light, h2.light { color: #fff; }
.lede.light { color: rgba(255,255,255,.82); }
.kicker { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; margin-bottom: 18px; }

/* ---------- floating pill nav ---------- */
.navpill {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 26px;
  background: #fff; border: var(--bd); border-radius: 999px;
  box-shadow: var(--sh); padding: 10px 12px 10px 26px;
  max-width: calc(100vw - 32px);
}
.navlogo { font-family: var(--serif); font-size: 24px; color: var(--red); text-decoration: none; white-space: nowrap; }
.navlinks { display: flex; gap: 22px; }
.navlinks a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.navlinks a:hover { color: var(--red); }

/* ---------- brutal buttons ---------- */
.btn-brutal {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 15px;
  border: var(--bd); border-radius: 999px; padding: 13px 28px;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease;
  cursor: pointer; white-space: nowrap;
}
.btn-brutal:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-brutal:active { transform: translate(4px,4px); box-shadow: 0 0 0 var(--ink); }
.btn-black { background: var(--ink); color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-purple { background: var(--purple); color: var(--ink); }
.btn-cream { background: var(--paper2); color: var(--ink); }
.btn-small { padding: 9px 20px; font-size: 13px; box-shadow: 3px 3px 0 var(--ink); }
.btn-big { font-size: 19px; padding: 18px 46px; }
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; box-shadow: 4px 4px 0 rgba(255,255,255,.9); }

/* ---------- hero : retro mac ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 130px 20px 70px; position: relative; }
.mac { width: min(620px, 90vw); }
.mac-body { background: #e9dfc6; border: 5px solid var(--ink); border-radius: 26px; box-shadow: 10px 10px 0 var(--ink); padding: 26px 26px 18px; }
.mac-screen {
  background: var(--paper2); border: 4px solid var(--ink); border-radius: 14px;
  min-height: 240px; display: flex; align-items: center; justify-content: center; padding: 30px; text-align: center;
}
.screen-text { font-family: var(--serif); font-size: clamp(24px, 4.6vw, 40px); line-height: 1.2; }
.cursor { animation: blink 1s steps(1) infinite; font-family: var(--serif); }
@keyframes blink { 50% { opacity: 0; } }
.mac-brand { text-align: center; font-weight: 700; letter-spacing: .28em; font-size: 13px; margin-top: 14px; text-transform: uppercase; }
.demo-tag { background: var(--red); color: #fff; border-radius: 6px; padding: 2px 8px; letter-spacing: .1em; font-size: 11px; vertical-align: middle; }
.mac-stand { width: 120px; height: 44px; background: #e9dfc6; border: 5px solid var(--ink); border-top: none; margin: 0 auto; clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%); }
.mac-base { width: min(460px, 70vw); height: 26px; background: #e9dfc6; border: 5px solid var(--ink); border-radius: 14px; box-shadow: 6px 6px 0 var(--ink); margin: 0 auto; }
.mac-keyboard { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.mac-keyboard i { width: 64px; height: 20px; background: #fff; border: 4px solid var(--ink); border-radius: 8px; box-shadow: 3px 3px 0 var(--ink); }
.scroll-cue { margin-top: 44px; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(8px); } }
.scribble { width: 44px; margin-top: 6px; }

/* ---------- scenes ---------- */
.scene { padding: 110px 0; }
.scene-lavender { background: var(--purple); border-top: var(--bd); border-bottom: var(--bd); }
.scene-green { background: var(--green-dk); border-top: var(--bd); border-bottom: var(--bd); }
.strips { margin-bottom: 34px; line-height: 1.9; }
.strip-paper {
  display: inline-block; background: var(--paper2); border: var(--bd); border-radius: 6px;
  box-shadow: var(--sh); padding: 10px 30px; margin: 8px 4px;
  font-family: var(--serif); font-size: clamp(28px, 5vw, 58px);
}
.strips.small .strip-paper { font-size: clamp(26px, 4.4vw, 50px); }
.r1 { transform: rotate(-2deg); } .r2 { transform: rotate(1.4deg); } .r3 { transform: rotate(-1deg); }
.scene-copy { font-size: clamp(16px, 2vw, 20px); max-width: 680px; margin: 0 auto; }
.pill-hl { background: var(--paper2); border: 2px dashed var(--purple-dk); border-radius: 999px; padding: 2px 14px; white-space: nowrap; }
.badge-band { overflow: hidden; margin-top: 56px; border-top: var(--bd); border-bottom: var(--bd); background: var(--ink); color: #fff; padding: 12px 0; }
.badge-track { display: inline-flex; gap: 34px; white-space: nowrap; animation: scrollx 20s linear infinite; font-weight: 600; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- sections / steps ---------- */
.section { padding: 100px 0; }
.step-banner {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center;
  border: 4px solid var(--ink); border-radius: 26px; box-shadow: 8px 8px 0 var(--ink);
  padding: 44px; margin: 44px 0; text-align: left;
}
.b-yellow { background: var(--yellow); } .b-purple { background: var(--purple); } .b-green { background: var(--green); color: #fff; }
.b-green .chips span { border-color: #fff; color: #fff; }
.step-text h3 { font-family: var(--serif); font-size: clamp(30px, 4vw, 48px); margin-bottom: 12px; }
.step-text p { margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.chips span { border: 2px solid var(--ink); background: rgba(255,255,255,.5); border-radius: 999px; padding: 7px 15px; font-size: 14px; font-weight: 600; }
.step-end { font-family: var(--serif); font-size: 20px; font-style: italic; }
.checker {
  border: 4px solid var(--ink); border-radius: 20px; min-height: 260px;
  background: repeating-conic-gradient(#cfc4f7 0 25%, #fff 0 50%) 0 0 / 44px 44px;
  display: flex; align-items: center; justify-content: center; box-shadow: 6px 6px 0 var(--ink);
}
.demo-inner { background: #fff; border: var(--bd); border-radius: 16px; box-shadow: 5px 5px 0 var(--ink); padding: 30px 40px; font-family: var(--serif); font-size: 30px; text-align: center; }

hr.dots { border: none; border-top: 4px dashed rgba(20,20,20,.3); margin: 0 auto; max-width: var(--wrap); }

/* ---------- old/new ---------- */
.toggle { display: inline-flex; border: var(--bd); border-radius: 999px; overflow: hidden; box-shadow: 4px 4px 0 var(--ink); margin-bottom: 36px; font-weight: 700; }
.toggle span { padding: 10px 26px; }
.toggle .on { background: var(--ink); color: #fff; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; text-align: left; margin-top: 8px; }
.card { background: #fff; border: var(--bd); border-radius: 20px; box-shadow: var(--sh); padding: 36px; }
.card-mint { background: var(--mint); }
.duo-label { font-family: var(--serif); font-size: 24px; margin-bottom: 14px; }
.duo-label.light, .card-dashed .lede { color: #fff; }
ul.cross, ul.tick { list-style: none; display: grid; gap: 10px; color: var(--muted); }
ul.cross li::before { content: "✕ "; color: var(--red); font-weight: 700; }
ul.tick li::before { content: "✓ "; font-weight: 700; }
ul.tick.cols { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card .tick { color: var(--ink); }

/* ---------- different panels ---------- */
.panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; text-align: left; }
.panel { border: var(--bd); border-radius: 22px; box-shadow: var(--sh); padding: 34px 28px; min-height: 300px; position: relative; overflow: hidden; }
.panel::before { content: ""; position: absolute; top: -70px; right: -70px; width: 200px; height: 200px; border-radius: 50%; border: var(--bd); opacity: .55; }
.p-pink { background: var(--pink); } .p-yellow { background: var(--yellow); } .p-green { background: var(--mint); }
.panel-title { font-family: var(--serif); font-size: 28px; margin-bottom: 18px; position: relative; }
.stickies { display: flex; flex-wrap: wrap; gap: 10px; position: relative; }
.stickies span { background: #fff; border: 2px solid var(--ink); border-radius: 4px; padding: 8px 14px; font-size: 14px; font-weight: 600; box-shadow: 3px 3px 0 var(--ink); transform: rotate(-1.5deg); }
.stickies span:nth-child(even) { transform: rotate(1.5deg); }

/* ---------- ribbon ---------- */
.ribbon { background: var(--yellow); border-top: var(--bd); border-bottom: var(--bd); overflow: hidden; padding: 14px 0; }
.ribbon-track { display: inline-flex; white-space: nowrap; animation: scrollx 18s linear infinite; font-family: var(--serif); font-size: 24px; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; text-align: left; }
.plans .card { display: flex; flex-direction: column; position: relative; }
.card-yellow { background: var(--yellow); } .card-purple { background: var(--purple); }
.tier { font-family: var(--serif); font-size: 30px; margin-bottom: 6px; }
.price { font-family: var(--serif); font-size: 52px; line-height: 1; }
.price span { font-family: var(--sans); font-size: 15px; color: var(--muted); }
.card-yellow .price span, .card-purple .price span { color: rgba(20,20,20,.65); }
.plan-for { color: var(--muted); margin: 12px 0 24px; }
.card-yellow .plan-for, .card-purple .plan-for { color: rgba(20,20,20,.72); }
.plans .btn-brutal { margin-top: auto; text-align: center; }
.burst { position: absolute; top: -20px; right: 18px; background: var(--red); color: #fff; border: var(--bd); border-radius: 999px; padding: 6px 16px; font-size: 12px; font-weight: 700; transform: rotate(6deg); box-shadow: 3px 3px 0 var(--ink); }
.card-dashed { background: rgba(255,255,255,.06); border: 3px dashed #fff; box-shadow: none; text-align: center; }

/* ---------- testimonials marquee ---------- */
.t-marquee { overflow: hidden; margin-top: 54px; padding: 10px 0 20px; }
.t-track { display: inline-flex; gap: 22px; animation: scrollx 36s linear infinite; padding-left: 22px; }
.t-card { background: #fff; border: var(--bd); border-radius: 18px; box-shadow: var(--sh); padding: 28px; width: 340px; flex-shrink: 0; text-align: left; }
.t-card blockquote { font-size: 16px; margin-bottom: 14px; }
.t-card figcaption { font-size: 14px; font-weight: 700; }
.t-card figcaption span { color: var(--muted); font-weight: 400; }

/* ---------- final cta + footer ---------- */
.cta-final { border-bottom: none; }
.cta-final .btn-big { margin-top: 26px; }
.footer { background: #0d0d0d; color: #fff; padding: 70px 0 0; overflow: hidden; }
.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 40px; }
.foot-head { font-family: var(--serif); font-size: 30px; color: var(--red); margin-bottom: 8px; }
.foot-muted { color: rgba(255,255,255,.6); font-size: 14px; }
.footer nav { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.footer nav a { color: rgba(255,255,255,.75); text-decoration: none; font-size: 14px; }
.footer nav a:hover { color: #fff; }
.foot-base { color: rgba(255,255,255,.45); font-size: 13px; padding-bottom: 30px; }
.giant {
  font-family: var(--serif); font-size: clamp(72px, 17vw, 250px); line-height: .78; text-align: center;
  color: transparent; -webkit-text-stroke: 3px var(--red); white-space: nowrap;
  transform: translateY(.22em); user-select: none;
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .badge-track, .ribbon-track, .t-track { animation: none; }
  .cursor { animation: none; } .scroll-cue { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .navlinks { display: none; }
  .step-banner { grid-template-columns: 1fr; }
  .duo, .panels, .plans { grid-template-columns: 1fr; }
  .section, .scene { padding: 72px 0; }
  .navpill { gap: 14px; padding: 8px 10px 8px 20px; }
}
