/* ==========================================================
   Don't Want Me To Do That Bot — landing page
   Plain CSS, no framework. Colors and fonts live in :root.
   ========================================================== */

:root {
  /* colors */
  --ink: #221F33;
  --ink-soft: #3B3654;
  --cream: #FFF3DE;
  --paper: #FFFBF2;
  --tomato: #FF6B4A;
  --mint: #7FE0C2;
  --mint-shade: #46B998;
  --mint-light: #C9FFEE;
  --lemon: #FFD54A;
  --lilac: #C9B8FF;
  --screen: #2A2640;
  --muted: #5B5670;

  /* type */
  --font-pixel: 'Pixelify Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-term: 'VT323', ui-monospace, monospace;

  /* pixel-style borders and shadows */
  --border: 4px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-big: 10px 10px 0 var(--ink);

  /* textures */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E");
  --dots: radial-gradient(rgba(34, 31, 51, .16) 1.5px, transparent 1.6px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  background-color: var(--cream);
  background-image: var(--noise), var(--dots);
  background-size: 160px 160px, 24px 24px;
}

h1, h2, h3 { font-family: var(--font-pixel); margin: 0; line-height: 1.08; }
h1 { font-size: clamp(42px, 6vw, 78px); letter-spacing: -0.01em; }
h2 { font-size: clamp(32px, 4.2vw, 54px); max-width: 18ch; margin-bottom: 40px; }
h3 { font-size: 24px; }
p { margin: 0; }
a { color: inherit; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--lemon); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px dashed var(--tomato); outline-offset: 4px; }

/* ---------- small building blocks ---------- */

.tag {
  display: inline-block;
  font-family: var(--font-term);
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--ink);
  color: var(--lemon);
  padding: 8px 12px 6px;
  margin-bottom: 20px;
}
.tag-light { background: var(--lemon); color: var(--ink); }

.lead { font-size: 20px; color: var(--muted); max-width: 52ch; }
.small { font-size: 15px; color: var(--muted); }
.hl { background: linear-gradient(transparent 58%, var(--lemon) 58%); }

.btn {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  background: var(--tomato);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 14px 22px;
  cursor: pointer;
  transition: transform .08s steps(2), box-shadow .08s steps(2);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--ink); }
.btn-ghost { background: var(--paper); }
.btn-small { font-size: 16px; padding: 10px 14px; box-shadow: 4px 4px 0 var(--ink); }
.btn-block { display: block; width: 100%; text-align: center; }

/* window chrome, like a little app window */
.window { background: var(--paper); border: var(--border); box-shadow: var(--shadow-big); }
.window-bar {
  display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--cream);
  font-family: var(--font-term); font-size: 22px; line-height: 1;
  padding: 8px 12px;
}
.dots { display: flex; gap: 6px; }
.dots i { width: 12px; height: 12px; background: var(--tomato); display: block; }
.dots i:nth-child(2) { background: var(--lemon); }
.dots i:nth-child(3) { background: var(--mint); }

/* bot svg colors (shared by the big bot and the small heads) */
.o { fill: var(--ink); }
.m { fill: var(--mint); }
.s { fill: var(--mint-shade); }
.v { fill: var(--screen); }
.l { fill: var(--mint-light); }
.t { fill: var(--tomato); }
.y { fill: var(--lemon); }

.avatar { width: 44px; height: 30px; flex: none; }
.avatar-lg { width: 72px; height: 50px; }

/* ---------- nav ---------- */

.nav { position: sticky; top: 0; z-index: 5; background: rgba(255, 243, 222, .92); border-bottom: var(--border); backdrop-filter: blur(4px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--font-pixel); font-weight: 700; font-size: 17px; line-height: 1.05; }
.logo-bot { width: 52px; height: 36px; }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; flex-wrap: wrap; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 16px; }
.nav-links a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--tomato); }

/* ---------- hero ---------- */

.hero { padding: 72px 0 96px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero-copy .tag { margin-bottom: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 8px; }

.hero-stage { position: relative; padding-bottom: 250px; }
.chat { position: relative; z-index: 1; transform: rotate(1.2deg); }
.chat-body { padding: 20px; }
.msg { display: flex; gap: 14px; }
.msg-content { display: flex; flex-direction: column; gap: 12px; min-width: 0; font-size: 16px; }
.msg-meta { font-size: 15px; }
.badge { font-size: 11px; font-weight: 700; background: var(--lilac); padding: 1px 5px; margin: 0 4px; }
.time { color: var(--muted); }
blockquote { margin: 0; padding: 6px 0 6px 14px; border-left: 4px solid var(--lilac); color: var(--ink-soft); font-size: 15px; font-style: italic; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 600 13px/1.2 var(--font-body);
  color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  padding: 7px 10px; cursor: pointer;
}
.chip:hover { background: var(--lemon); }
.chip-hot { background: var(--tomato); }
.chip:disabled { color: #8D889E; border-color: #B8B2C8; box-shadow: none; background: transparent; text-decoration: line-through; cursor: not-allowed; }

.bot-wrap { position: absolute; right: 28px; bottom: 0; width: 180px; z-index: 2; }
.bot { width: 100%; height: auto; display: block; overflow: visible; }
.bot-shadow { width: 70%; height: 14px; margin: -6px auto 0; background: rgba(34, 31, 51, .22); }
.bot-says {
  position: absolute; left: -175px; top: -4px;
  font-family: var(--font-term); font-size: 22px; line-height: 1;
  background: var(--lemon); border: 3px solid var(--ink); padding: 6px 10px 4px;
  transform: rotate(-4deg);
}

/* bot animations: chunky, pixel-like steps */
.bot-bob { animation: bob 1.2s steps(2) infinite; }
.arm-wave { transform-origin: 6px 24px; transform-box: view-box; animation: wave .9s steps(2) infinite; }
.bulb { animation: blink 1.6s steps(1) infinite; }
@keyframes bob { 50% { transform: translateY(1px); } }
@keyframes wave { 50% { transform: rotate(-18deg); } }
@keyframes blink { 50% { fill: var(--lemon); } }

/* ---------- excuse ticker ---------- */

.ticker { background: var(--ink); color: var(--lemon); border-block: var(--border); overflow: hidden; transform: rotate(-1.2deg); margin: 0 -20px; }
.ticker-track { display: flex; gap: 32px; width: max-content; padding: 14px 0; font-family: var(--font-term); font-size: 28px; line-height: 1; white-space: nowrap; animation: scroll 40s linear infinite; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */

.section { padding: 112px 0; }

.section-dark {
  background-color: var(--ink);
  color: var(--cream);
  background-image: var(--noise), repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 5px);
  background-size: 160px 160px, auto;
}
.section-mint {
  background-color: var(--mint);
  background-image: var(--noise), conic-gradient(rgba(34, 31, 51, .06) 25%, transparent 0 50%, rgba(34, 31, 51, .06) 0 75%, transparent 0);
  background-size: 160px 160px, 32px 32px;
  border-block: var(--border);
}
.section-lilac {
  background-color: var(--lilac);
  background-image: var(--noise), var(--dots);
  background-size: 160px 160px, 20px 20px;
  border-block: var(--border);
}

/* terminal */
.window-dark { background: var(--screen); box-shadow: 10px 10px 0 var(--tomato); border-color: var(--cream); }
.window-dark .window-bar { background: var(--cream); color: var(--ink); }
.term-lines { list-style: none; margin: 0; padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 22px; font-family: var(--font-term); font-size: 28px; line-height: 1.25; color: var(--mint-light); }
.term-lines b { color: var(--lemon); font-weight: 400; }
.prompt { color: var(--tomato); margin-right: 6px; }
.cursor { display: inline-block; width: 14px; height: 24px; background: var(--mint); vertical-align: -3px; animation: blink-cursor 1s steps(1) infinite; }
@keyframes blink-cursor { 50% { opacity: 0; } }

/* feature keys */
.keys { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.key {
  background: var(--paper); border: var(--border); box-shadow: 0 8px 0 var(--ink);
  padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .1s steps(2), box-shadow .1s steps(2);
}
.key:hover { transform: translateY(6px); box-shadow: 0 2px 0 var(--ink); }
.key p { color: var(--muted); font-size: 17px; }
.keycap {
  width: 52px; height: 52px; display: grid; place-items: center;
  font-family: var(--font-pixel); font-size: 28px; font-weight: 700;
  background: var(--lemon); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
}
.key-hot { background: var(--tomato); }
.key-hot p { color: var(--ink); }
.key-hot .keycap { background: var(--paper); }
.key-off { background: transparent; border-style: dashed; box-shadow: none; }
.key-off:hover { transform: none; }
.key-off .keycap { background: transparent; border-style: dashed; box-shadow: none; }
.key-off h3 { text-decoration: line-through; text-decoration-thickness: 3px; }

/* excuse generator */
.excuse { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.excuse-copy h2 { margin-bottom: 24px; }
.excuse-window { transform: rotate(-1.5deg); }
.excuse-body { padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.excuse-out { font-family: var(--font-pixel); font-size: 26px; line-height: 1.3; background: var(--mint-light); border: 3px dashed var(--ink); padding: 20px; min-height: 196px; }
.excuse-out.is-thinking { font-family: var(--font-term); font-size: 30px; color: var(--muted); animation: blink-cursor .4s steps(1) infinite; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; align-items: stretch; }
.plan { background: var(--paper); border: var(--border); box-shadow: var(--shadow-big); padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.plan-label { font-family: var(--font-term); font-size: 26px; line-height: 1; text-transform: uppercase; }
.price { font-family: var(--font-pixel); font-size: 64px; font-weight: 700; line-height: 1; }
.price span { font-size: 22px; font-weight: 500; }
.checks { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { padding-left: 34px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; background: var(--mint); border: 3px solid var(--ink); }
.plan .btn-block { margin-top: auto; }
.plan-dark { background: var(--ink); color: var(--cream); box-shadow: 10px 10px 0 var(--tomato); }
.plan-note { color: #CFC9E0; }
.big-button {
  margin: 12px auto; width: 190px; height: 190px; border-radius: 50%;
  font-family: var(--font-pixel); font-size: 26px; font-weight: 700; color: var(--ink);
  background: var(--tomato); border: 6px solid var(--cream);
  box-shadow: 0 12px 0 #B8402A, 0 12px 0 6px var(--cream);
  cursor: pointer; transition: transform .08s, box-shadow .08s;
}
.big-button:hover { transform: translateY(4px); box-shadow: 0 8px 0 #B8402A, 0 8px 0 6px var(--cream); }
.big-button:active { transform: translateY(12px); box-shadow: 0 0 0 #B8402A, 0 0 0 6px var(--cream); }

/* FAQ as a chat */
.faq-wrap { max-width: 860px; }
.faq { display: flex; flex-direction: column; gap: 16px; }
.bubble { max-width: 560px; padding: 16px 20px; border: 3px solid var(--ink); font-size: 18px; }
.bubble-you { align-self: flex-end; background: var(--lemon); box-shadow: -5px 5px 0 var(--ink); font-weight: 600; }
.bubble-row { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.bubble-bot { background: var(--paper); box-shadow: 5px 5px 0 var(--ink); }

/* footer */
.footer { background: var(--ink); color: #CFC9E0; padding: 56px 0; border-top: var(--border); }
.footer-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; font-size: 15px; }
.footer b { color: var(--cream); font-family: var(--font-pixel); font-size: 20px; }
.footer-bot { display: flex; align-items: flex-start; gap: 6px; }
.zzz { font-family: var(--font-term); font-size: 24px; color: var(--lemon); animation: zzz 2.4s steps(3) infinite; }
@keyframes zzz { 0% { opacity: .2; } 50% { opacity: 1; } 100% { opacity: .2; } }

/* ---------- smaller screens ---------- */

@media (max-width: 900px) {
  .hero-inner, .excuse { grid-template-columns: 1fr; }
  .hero-stage { margin-top: 24px; }
  .nav-links { display: none; }
}

@media (max-width: 520px) {
  body { font-size: 17px; }
  .section { padding: 80px 0; }
  .bot-wrap { width: 130px; right: 12px; }
  .bot-says { left: -140px; top: -10px; font-size: 18px; }
  .hero-stage { padding-bottom: 190px; }
  .term-lines { font-size: 22px; padding: 20px; gap: 16px; }
  .ticker-track { font-size: 22px; }
  .logo span { font-size: 15px; }
}

/* respect people who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
