/* Unfaked, coming soon page.
   Handwritten CSS, no framework, no build step.
   Design concept: the copy editor's desk. Red ink strikes what gets removed,
   blue ink underlines what matters, mono type for the parts that are data.
   House rule: no em-dashes or en-dashes anywhere, including comments. */

/* ---------- Tokens ---------- */

:root {
  --paper: #f7f6f0;
  --paper-raised: #ffffff;
  --paper-line: rgba(35, 34, 29, 0.045);   /* faint ruled-paper lines behind the whole page */
  --ink: #23221d;
  --ink-soft: #5b574c;
  --rule: #e2e0d7;
  --pen-red: #cc2c14;        /* marker strokes, large marks: red ballpoint, not terracotta */
  --pen-red-text: #b3220f;   /* red at text size, higher contrast */
  --ball-blue: #2743b8;
  --highlight: #f3e27e;
  --btn-bg: #23221d;
  --btn-ink: #fafaf7;
  --demo-bg: #f1efe8;

  --serif: "Iowan Old Style", "Palatino Nova", Palatino, Charter, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 66rem;
  --prose: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1b1c20;
    --paper-raised: #232429;
    --paper-line: rgba(234, 231, 222, 0.05);
    --ink: #eae7de;
    --ink-soft: #a8a498;
    --rule: #34353b;
    --pen-red: #f0563a;
    --pen-red-text: #ff8266;
    --ball-blue: #9fb0ff;
    --highlight: #4a431c;
    --btn-bg: #eae7de;
    --btn-ink: #1b1c20;
    --demo-bg: #232429;
  }
}

/* ---------- Reset-ish ---------- */

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

body {
  margin: 0;
  background-color: var(--paper);
  /* Faint ruled lines, like a legal pad or manuscript page. Ties the whole
     page to the copy desk concept instead of a flat color wash. */
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2.6rem,
    var(--paper-line) 2.6rem,
    var(--paper-line) calc(2.6rem + 1px)
  );
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* The red margin rule of a ruled notebook, faint, wide screens only */
@media (min-width: 64rem) {
  body::before {
    content: "";
    position: fixed;
    top: 0; bottom: 0;
    left: max(1.5rem, calc(50vw - var(--wrap) / 2 - 2.5rem));
    width: 1px;
    background: var(--pen-red);
    opacity: 0.28;
    pointer-events: none;
  }
}

h1, h2, h3 { font-family: var(--serif); line-height: 1.12; margin: 0 0 0.6em; }
p, ul, ol, table, figure { margin: 0 0 1em; }
img, svg { max-width: 100%; }

a { color: var(--ball-blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

::selection { background: var(--highlight); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--ball-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.mono {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

/* ---------- Header ---------- */

.site-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-top: 1.75rem;
}

.brand { margin: 0; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 7vw, 2.5rem); }
.brand-note { color: var(--ink-soft); display: block; margin-top: 0.1rem; }

.stamp {
  margin: 0;
  border: 2px solid var(--pen-red-text);
  color: var(--pen-red-text);
  border-radius: 4px;
  padding: 0.35rem 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-align: center;
  transform: rotate(-4deg);
  opacity: 0.85;
  flex-shrink: 0;
}

/* ---------- Hero ---------- */

.hero { padding-top: clamp(3rem, 9vh, 6.5rem); }

.eyebrow {
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--pen-red);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(2.5rem, 6.5vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  max-width: 18ch;
  margin-bottom: 0.5em;
}

/* The signature: a rough red pen strike through "the AI slop" */
.struck { position: relative; white-space: nowrap; }
.strike-svg {
  position: absolute;
  left: -3%;
  top: 50%;
  width: 106%;
  height: 0.42em;
  transform: translateY(-52%);
  overflow: visible;
  pointer-events: none;
}
.strike-svg path {
  fill: none;
  stroke: var(--pen-red);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw 0.45s ease-out forwards;
  animation-delay: 0.5s;
}
.strike-svg .strike-2 {
  stroke-width: 2.2;
  opacity: 0.75;
  animation-delay: 0.75s;
}

/* Blue ballpoint underline for what matters */
.underlined { position: relative; white-space: nowrap; }
.underline-svg {
  position: absolute;
  left: 0;
  bottom: -0.28em;
  width: 100%;
  height: 0.34em;
  overflow: visible;
  pointer-events: none;
}
.underline-svg path {
  fill: none;
  stroke: var(--ball-blue);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw 0.45s ease-out forwards;
  animation-delay: 1.1s;
}

@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .strike-svg path, .underline-svg path {
    animation: none;
    stroke-dashoffset: 0;
  }
}

.hero-sub { max-width: var(--prose); font-size: 1.1875rem; }
.hero-vow { max-width: var(--prose); color: var(--ink-soft); margin-bottom: 2.5rem; }

/* ---------- Waitlist form ---------- */

.waitlist { max-width: 34rem; }

.field-label {
  display: block;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.field-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

input[type="email"] {
  flex: 1 1 14rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper-raised);
  border: 1.5px solid var(--ink-soft);
  border-radius: 4px;
  padding: 0.65rem 0.85rem;
  min-width: 0;
}
input[type="email"]::placeholder { color: var(--ink-soft); opacity: 0.7; }
input[type="email"]:focus-visible { outline-offset: 1px; border-color: var(--ball-blue); }

.btn {
  font: inherit;
  font-weight: 600;
  background: var(--btn-bg);
  color: var(--btn-ink);
  border: 1.5px solid var(--btn-bg);
  border-radius: 4px;
  padding: 0.65rem 1.25rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.btn:hover { background: var(--pen-red); border-color: var(--pen-red); color: #fff; }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* Honeypot: parked off screen, not display:none, so naive bots still fill it */
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note { color: var(--ink-soft); margin-top: 0.75rem; }

.form-status { min-height: 1.5em; margin: 0.25rem 0 0; }
.form-status.is-error { color: var(--pen-red-text); }

.joined-note, .inline-err { display: none; margin-top: 0.75rem; }
.joined-note {
  background: var(--highlight);
  color: var(--ink);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-weight: 500;
}
.inline-err { color: var(--pen-red-text); }

/* No-JS fallback: waitlist.php redirects back with an anchor */
.joined-note:target, .inline-err:target { display: block; }
.joined-note.show { display: block; }
.waitlist-form.done .field-row, .waitlist-form.done .form-note { display: none; }

/* ---------- Sections ---------- */

.section { padding-top: clamp(4rem, 10vh, 7rem); }

.section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.01em;
  max-width: 24ch;
}

.section-intro, .prose p { max-width: var(--prose); }

/* ---------- Mechanism blocks ---------- */

.mech {
  display: grid;
  gap: 1.25rem 3.5rem;
  margin-top: 2.75rem;
  align-items: start;
}
@media (min-width: 50rem) {
  .mech { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

.mech-text h3 { font-size: 1.375rem; }
.mech-text p { color: var(--ink-soft); }

.demo {
  background: var(--demo-bg);
  border: 1px solid var(--rule);
  border-radius: 2px;   /* printed spec sheet, not a soft app card */
  padding: 1rem 1.15rem;
  margin: 0;
}

.demo-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.6rem;
  margin-bottom: 0.6rem;
}

.demo-rules { overflow-x: auto; }
.demo-rules table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}
.demo-rules th, .demo-rules td {
  text-align: left;
  padding: 0.45rem 1rem 0.45rem 0;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
.demo-rules th {
  font-weight: 400;
  color: var(--ink-soft);
  text-transform: uppercase;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
}
.demo-rules tbody tr:last-child td { border-bottom: 0; }
.demo-rules .act { color: var(--pen-red-text); font-weight: 600; }

/* Search result demo */
.demo-serp { display: grid; gap: 1rem; }
.serp-item { display: grid; gap: 0.15rem; }
.serp-url { color: var(--ink-soft); }
.serp-title { color: var(--ball-blue); font-weight: 600; }
.serp-snippet { color: var(--ink-soft); font-size: 0.9375rem; }
.flagged .struck-plain {
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-color: var(--pen-red);
  text-decoration-thickness: 2px;
}
.serp-flag { color: var(--pen-red-text); }

/* Image handling demo */
.demo-imgs {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.img-option { flex: 1 1 6rem; min-width: 6rem; }
.thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(140deg, #e8b96a 0%, #cf6f56 55%, #6f5a94 100%);
}
.thumb-badge .c2pa-badge {
  position: absolute;
  left: 0.4rem;
  bottom: 0.4rem;
  background: rgba(20, 20, 18, 0.85);
  color: #fdfcf7;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-size: 0.6875rem;
}
.thumb-blur { filter: blur(0); }
.thumb-blur::after {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(14px);
  background: rgba(250, 250, 247, 0.15);
}
@supports not (backdrop-filter: blur(14px)) {
  .thumb-blur { background: linear-gradient(140deg, #dfc9a4, #cfa398, #a99cb8); }
}
.thumb-hide {
  background: none;
  border: 1.5px dashed var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
}
.img-caption { margin: 0.4rem 0 0; color: var(--ink-soft); text-align: center; }

/* ---------- Objection ---------- */

.section-objection h2 { max-width: none; }

/* ---------- Roadmap ---------- */

.roadmap {
  list-style: none;
  counter-reset: step;
  margin: 2.25rem 0 0;
  padding: 0;
  max-width: var(--prose);
}
.roadmap li {
  counter-increment: step;
  position: relative;
  padding: 0 0 2rem 3.25rem;
}
.roadmap li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2rem;
  height: 2rem;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.875rem;
}
.roadmap li::after {
  content: "";
  position: absolute;
  left: calc(1rem - 0.75px);
  top: 2.5rem;
  bottom: 0.35rem;
  width: 1.5px;
  background: var(--rule);
}
.roadmap li:last-child::after { display: none; }
.roadmap h3 { font-size: 1.25rem; margin-bottom: 0.25em; }
.roadmap li > p:last-child { color: var(--ink-soft); margin-bottom: 0; }

.road-tag {
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.3rem;
}
.road-now { color: var(--pen-red-text); font-weight: 600; }

/* ---------- Support / tiers ---------- */

.letter { margin-bottom: 2.5rem; }
.signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.375rem;
}

.tiers {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}
@media (min-width: 50rem) {
  .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.tier {
  position: relative;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
}
.tier:first-child { border-color: var(--ink-soft); }

.tier-name {
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}
.tier-price { font-family: var(--serif); font-variant-numeric: oldstyle-nums; margin-bottom: 1rem; }
.tier-price .amount { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.02em; }
.tier-once { color: var(--ink-soft); margin-left: 0.25rem; }

.tier ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex-grow: 1;
}
.tier li {
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}
.tier li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.85rem;
  height: 2px;
  background: var(--pen-red);
  transform: rotate(-6deg);
}

.tier-btn { width: 100%; }

/* Hand-drawn arrow annotation on the Founder tier */
.tier-note-anno {
  position: absolute;
  top: -2.4rem;
  right: -0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.3rem;
  pointer-events: none;
}
.arrow-svg {
  width: 2.6rem;
  height: 1.9rem;
  order: 2;
  margin-top: 0.9rem;
}
.arrow-svg path {
  fill: none;
  stroke: var(--pen-red-text);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.anno-text {
  color: var(--pen-red-text);
  transform: rotate(-2deg);
  white-space: nowrap;
}
@media (max-width: 63.99rem) {
  .tier-note-anno { right: 0.5rem; }
}

.tier-note {
  margin-top: 1.25rem;
  background: var(--highlight);
  color: var(--ink);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  max-width: var(--prose);
}

.tier-fineprint {
  margin-top: 1.25rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  max-width: var(--prose);
}

/* ---------- FAQ ---------- */

.faq {
  margin-top: 2rem;
  max-width: var(--prose);
  border-top: 1px solid var(--rule);
}
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-weight: 600;
  padding: 1rem 2rem 1rem 0.25rem;
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pen-red-text);
  font-size: 1.25rem;
}
.faq details[open] summary::after { content: "\2212"; } /* minus sign, not a dash character */
.faq summary:hover { color: var(--pen-red-text); }
.faq details p { padding: 0 0.25rem 1.25rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Footer ---------- */

.site-foot {
  margin-top: clamp(4rem, 10vh, 7rem);
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 3rem;
}
.foot-privacy { max-width: var(--prose); font-size: 0.9375rem; color: var(--ink-soft); }
.foot-privacy strong { color: var(--ink); }
.foot-meta { color: var(--ink-soft); margin: 1.5rem 0 0; }
