*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:    #f0ece0;
  --ink:   #111;
  --mid:   #666;
  --stamp: #cc2200;
  --hl:    #ffe040;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Courier New', Courier, monospace;
  font-size: 15px;
  line-height: 1.8;
}

a { color: var(--ink); }
a:hover { color: var(--stamp); }

s { color: var(--mid); }

hr {
  border: none;
  border-top: 1px solid #bbb8aa;
  margin: 48px 0;
}

/* ─── NAV ─────────────────────────────────── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 24px;
  border-bottom: 2px solid var(--ink);
}

.nav-logo {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.nav-right {
  display: flex;
  gap: 20px;
  font-size: 13px;
}

.nav-right a {
  color: var(--mid);
  text-decoration: none;
}
.nav-right a:hover { color: var(--stamp); }

/* ─── TICKER ──────────────────────────────── */
.ticker-wrap {
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  white-space: nowrap;
  padding: 6px 0;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.ticker {
  display: inline-block;
  animation: ticker 28s linear infinite;
}

@keyframes ticker {
  from { transform: translateX(100vw); }
  to   { transform: translateX(-100%); }
}

/* ─── HEADER ──────────────────────────────── */
header {
  padding: 40px 24px 36px;
  border-bottom: 2px solid var(--ink);
  max-width: 800px;
  margin: 0 auto;
}

h1 {
  font-size: clamp(68px, 15vw, 148px);
  font-weight: bold;
  line-height: 0.88;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

h1 em {
  color: var(--stamp);
  font-style: normal;
  display: block;
}

.tagline {
  font-size: 17px;
  color: var(--mid);
  margin-bottom: 28px;
}

.hl {
  background: var(--hl);
  padding: 0 3px;
}

.join-btn {
  display: inline-block;
  background: var(--stamp);
  color: #fff;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  font-weight: bold;
  padding: 9px 18px;
  text-decoration: none;
  border: 2px solid var(--ink);
  margin-right: 14px;
}
.join-btn:hover {
  background: var(--ink);
  color: var(--bg);
}

.cta-note {
  font-size: 12px;
  color: var(--mid);
}

/* ─── PAGE BODY ───────────────────────────── */
.page-body {
  max-width: 800px;
  padding: 48px 24px 0;
  margin: 0 auto;
}

/* ─── WHAT SECTION ────────────────────────── */
#what {
  position: relative;
}

.snack-float {
  float: right;
  margin: 0 0 24px 32px;
  width: 220px;
}

/* phone mockup */
.phone-mock {
  background: #1a1a1a;
  border: 3px solid #333;
  border-radius: 16px;
  overflow: hidden;
  transform: rotate(1.5deg);
  box-shadow: 4px 4px 0 var(--ink);
}

.phone-bar {
  background: #111;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #666;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phone-day { color: var(--stamp); }

.phone-card {
  background: #f5f2e8;
  margin: 10px;
  border-radius: 6px;
  padding: 14px;
}

.pc-topic {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mid);
  margin-bottom: 8px;
}

.pc-q {
  font-size: 13px;
  font-weight: bold;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.4;
}

.pc-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pc-opt {
  text-align: left;
  background: #fff;
  border: 1px solid #ccc;
  padding: 7px 10px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  cursor: default;
  border-radius: 3px;
  color: var(--mid);
}

.pc-opt-correct {
  background: #e6f4e6;
  border-color: #4a9a4a;
  color: #226622;
  font-weight: bold;
}

.phone-footer {
  padding: 8px 14px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pc-swipe {
  font-size: 10px;
  color: #555;
}

.pc-prog {
  font-size: 10px;
  color: #555;
}

.float-note {
  font-size: 10px;
  color: var(--mid);
  font-style: italic;
  text-align: right;
  padding-right: 4px;
}

#what h2 {
  font-size: 26px;
  margin-bottom: 18px;
}

#what p {
  color: var(--mid);
  margin-bottom: 16px;
}

.inline-stats {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed #bbb8aa;
  clear: both;
}

.inline-stats span {
  font-size: 13px;
  color: var(--mid);
}

.inline-stats big {
  font-size: 32px;
  font-weight: bold;
  color: var(--ink);
  display: block;
  line-height: 1.1;
}

/* ─── HOW ─────────────────────────────────── */
#how h2 {
  font-size: 26px;
  margin-bottom: 4px;
}

.section-sub {
  font-size: 12px;
  color: var(--mid);
  margin-bottom: 24px;
  font-style: italic;
}

.steps-raw {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.steps-raw p {
  color: var(--mid);
  padding-left: 16px;
  border-left: 3px solid var(--ink);
}

.steps-raw strong {
  color: var(--ink);
  display: block;
  margin-bottom: 3px;
}

/* ─── FEATURES ────────────────────────────── */
#features h2 {
  font-size: 26px;
  margin-bottom: 20px;
}

.raw-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.raw-list li {
  padding: 13px 0;
  border-bottom: 1px solid #ccc8b8;
  color: var(--mid);
  font-size: 14px;
}

.raw-list li:first-child {
  border-top: 1px solid #ccc8b8;
}

.raw-list strong {
  color: var(--ink);
}

/* ─── PULLQUOTE ───────────────────────────── */
.pull {
  font-size: 17px;
  font-style: italic;
  color: var(--mid);
  padding-left: 24px;
  border-left: 4px solid var(--stamp);
  line-height: 1.65;
}

/* ─── WAITLIST ────────────────────────────── */
#waitlist h2 {
  font-size: 26px;
  margin-bottom: 12px;
}

#waitlist p {
  color: var(--mid);
  margin-bottom: 10px;
  font-size: 14px;
}

.wl-count {
  font-size: 13px;
  margin-bottom: 20px !important;
}

#signupCount {
  font-weight: bold;
  color: var(--stamp);
}

.raw-form {
  display: flex;
  gap: 0;
  max-width: 440px;
  margin-bottom: 12px;
}

.raw-form input[type="email"] {
  flex: 1;
  background: #fff;
  border: 2px solid var(--ink);
  border-right: none;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  padding: 9px 12px;
  outline: none;
}

.raw-form input[type="email"]:focus {
  border-color: var(--stamp);
}

.raw-form button {
  background: var(--ink);
  color: var(--bg);
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  font-weight: bold;
  border: 2px solid var(--ink);
  padding: 9px 18px;
  cursor: pointer;
  white-space: nowrap;
}

.raw-form button:hover {
  background: var(--stamp);
  border-color: var(--stamp);
}

.form-msg {
  font-size: 12px;
  color: #226622;
  min-height: 16px;
}
.form-msg.error { color: var(--stamp); }

/* ─── CLIPPY ──────────────────────────────── */
.clippy-outer {
  position: fixed;
  bottom: 16px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.clippy-bubble {
  background: #ffffcc;
  border: 2px solid #000;
  border-radius: 10px;
  padding: 10px 28px 10px 12px;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #000;
  max-width: 220px;
  position: relative;
  box-shadow: 2px 2px 0 #bbb;
}

/* tail pointing down toward Clippy */
.clippy-bubble::before {
  content: '';
  position: absolute;
  bottom: -13px;
  right: 36px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 13px solid #000;
}
.clippy-bubble::after {
  content: '';
  position: absolute;
  bottom: -9px;
  right: 38px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid #ffffcc;
  z-index: 1;
}

.clippy-bubble p {
  margin: 0 0 6px;
  color: #000;
}

.clippy-action {
  display: block;
  font-size: 12px;
  font-weight: bold;
  color: var(--stamp);
  text-decoration: underline;
  cursor: pointer;
}
.clippy-action:hover { color: #000; }

.clippy-x {
  position: absolute;
  top: 5px;
  right: 7px;
  background: none;
  border: none;
  font-size: 11px;
  color: #aaa;
  cursor: pointer;
  padding: 2px 3px;
  line-height: 1;
}
.clippy-x:hover { color: var(--stamp); }

.clippy-wrap {
  cursor: pointer;
  transform: scale(0.55);
  transform-origin: bottom right;
  margin-top: -125px;
}

.clippy-wrap:hover {
  animation: clippy-jump 0.7s ease-out;
}

@keyframes clippy-jump {
  0%   { transform: scale(0.55) translateY(0); }
  20%  { transform: scale(0.55) translateY(-55px); }
  45%  { transform: scale(0.55) translateY(-70px); }
  70%  { transform: scale(0.55) translateY(-20px); }
  85%  { transform: scale(0.55) translateY(12px); }
  94%  { transform: scale(0.55) translateY(-6px); }
  100% { transform: scale(0.55) translateY(0); }
}

.clippy-outer.evil .clippy-wrap {
  animation: clippy-rage 0.12s linear infinite;
  transform-origin: bottom right;
  filter: drop-shadow(0 0 8px #cc2200) drop-shadow(0 0 16px #cc220088);
}

@keyframes clippy-rage {
  0%   { transform: scale(0.8) translate(0, 0) rotate(-3deg); }
  25%  { transform: scale(0.8) translate(-5px, -3px) rotate(4deg); }
  50%  { transform: scale(0.8) translate(4px, 2px) rotate(-4deg); }
  75%  { transform: scale(0.8) translate(-3px, 3px) rotate(3deg); }
  100% { transform: scale(0.8) translate(0, 0) rotate(-3deg); }
}

.clippy-outer.evil .clippy-bubble {
  border-color: #cc2200;
  animation: bubble-shake 0.15s linear infinite;
}

@keyframes bubble-shake {
  0%, 100% { transform: translateX(0); }
  33%       { transform: translateX(-3px); }
  66%       { transform: translateX(3px); }
}

.clippy-hidden { display: none !important; }

/* ─── BLINK ───────────────────────────────── */
.cur { animation: blink 1s step-start infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ─── FOOTER ──────────────────────────────── */
footer {
  padding: 0 24px 36px;
  max-width: 800px;
  margin: 0 auto;
}

footer p {
  font-size: 13px;
  color: var(--mid);
  margin-bottom: 4px;
}

footer strong { color: var(--ink); }

.footer-tiny {
  font-size: 11px;
  margin-top: 6px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

/* ─── VISITOR COUNTER ─────────────────────── */
.visitor-counter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 3px inset #888;
  background: #111;
  padding: 4px 10px 4px 8px;
  line-height: 1;
}

.vc-label {
  font-size: 9px;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Courier New', monospace;
}

.vc-digits {
  display: inline-flex;
  gap: 1px;
  align-items: center;
}

.vc-digits img {
  display: block;
  height: 30px;
  width: auto;
  image-rendering: pixelated;
}

/* ─── RESPONSIVE ──────────────────────────── */

/* tablet */
@media (max-width: 720px) {
  .page-body  { padding: 36px 20px 0; }
  footer      { padding: 0 20px 28px; }
  header      { padding: 28px 20px 28px; }
  nav         { padding: 14px 20px; }
}

/* phone */
@media (max-width: 540px) {
  body { font-size: 14px; }

  h1 {
    font-size: clamp(48px, 16vw, 80px);
    margin-bottom: 18px;
  }

  hr { margin: 32px 0; }

  header { padding: 24px 16px 24px; }
  nav    { padding: 12px 16px; }

  .page-body { padding: 28px 16px 0; }
  footer     { padding: 0 16px 24px; }

  .tagline { font-size: 15px; }

  /* full-width CTA on mobile */
  .join-btn {
    display: block;
    text-align: center;
    margin-right: 0;
    margin-bottom: 10px;
    padding: 14px 18px;
    font-size: 15px;
  }

  /* float → stack */
  .snack-float {
    float: none;
    width: 100%;
    margin: 0 0 28px;
  }

  .phone-mock { transform: none; }
  .float-note { display: none; }

  #what h2, #how h2, #features h2, #waitlist h2 {
    font-size: 22px;
  }

  .inline-stats { gap: 16px; flex-wrap: wrap; }
  .inline-stats big { font-size: 26px; }

  /* bigger touch targets on list items */
  .raw-list li { padding: 16px 0; font-size: 14px; }
  .steps-raw p { padding-left: 12px; }

  /* form stacks */
  .raw-form {
    flex-direction: column;
    max-width: 100%;
  }
  .raw-form input[type="email"] {
    border-right: 2px solid var(--ink);
    border-bottom: none;
    padding: 13px 12px;
    font-size: 16px; /* prevents iOS zoom on focus */
  }
  .raw-form button {
    padding: 13px 18px;
    font-size: 15px;
  }

  /* footer counter wraps */
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* Clippy — smaller, bubble anchored left so it doesn't overflow */
  .clippy-outer {
    bottom: 12px;
    right: 8px;
    align-items: flex-end;
  }

  .clippy-bubble {
    max-width: min(220px, calc(100vw - 24px));
    font-size: 12px;
    right: 0;
  }

  .clippy-wrap {
    transform: scale(0.42);
    margin-top: -140px;
  }

  @keyframes clippy-jump {
    0%   { transform: scale(0.42) translateY(0); }
    20%  { transform: scale(0.42) translateY(-55px); }
    45%  { transform: scale(0.42) translateY(-70px); }
    70%  { transform: scale(0.42) translateY(-20px); }
    85%  { transform: scale(0.42) translateY(12px); }
    94%  { transform: scale(0.42) translateY(-6px); }
    100% { transform: scale(0.42) translateY(0); }
  }

  .clippy-outer.evil .clippy-wrap {
    animation: clippy-rage-mobile 0.12s linear infinite;
  }

  @keyframes clippy-rage-mobile {
    0%   { transform: scale(0.6) translate(0, 0) rotate(-3deg); }
    25%  { transform: scale(0.6) translate(-4px, -2px) rotate(4deg); }
    50%  { transform: scale(0.6) translate(3px, 2px) rotate(-4deg); }
    75%  { transform: scale(0.6) translate(-2px, 2px) rotate(3deg); }
    100% { transform: scale(0.6) translate(0, 0) rotate(-3deg); }
  }
}
