/* fairprompter.app landing page. Brand: ink background, warm orange reading
   line, Manrope (self-hosted: a Google Fonts request would send every visitor's
   IP to Google, which contradicts the "no tracking" promise on the page). */

@font-face {
  font-family: "Manrope";
  src: url("/assets/manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0e1028;
  --ink-2: #151839;
  --card: #1a1d42;
  --line: rgba(233, 234, 242, 0.1);
  --text: #e9eaf2;
  --muted: #a3a7bf;
  --accent: #e8892b;
  --accent-soft: rgba(232, 137, 43, 0.14);
  --ok: #7fd1a6;
  --bad: #ff9a8a;
  --radius: 20px;
  --gutter: 16px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 17px/1.6 "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

a { color: inherit; }

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }

.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); border: 0;
}

/* Header */

.top {
  max-width: 1120px; margin: 0 auto; padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { border-radius: 9px; }
.langs { display: flex; gap: 2px; flex-wrap: wrap; }
.langs a {
  text-decoration: none; font-size: 13px; font-weight: 600; color: var(--muted);
  padding: 6px 8px; border-radius: 8px;
}
.langs a:hover { color: var(--text); background: var(--ink-2); }
.langs a[aria-current="page"] { color: var(--text); background: var(--card); }

main { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* Hero */

.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
  padding: 48px 0 72px;
}
.eyebrow {
  display: inline-block; margin: 0 0 18px; padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 700;
}
h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; }
.lead { color: var(--muted); font-size: 19px; margin: 20px 0 28px; max-width: 34em; }

/* Store buttons, then the iPhone email form while the App Store is pending */

.get { max-width: 520px; }
.store-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.store-button {
  display: inline-block; font-weight: 700; text-decoration: none; color: #1b0f02;
  background: var(--accent); border-radius: 14px; padding: 14px 22px;
}
.store-button:hover { filter: brightness(1.06); }
.store-button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.store-buttons + .waitlist { margin-top: 22px; }
/* The download is the main action; the email form beside it stays quieter. */
.store-buttons + .waitlist button { color: var(--text); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }

/* Waitlist form */

.waitlist { max-width: 520px; }
.waitlist-row { display: flex; gap: 8px; }
.waitlist input[type="email"] {
  flex: 1; min-width: 0; font: inherit; color: var(--text);
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
}
.waitlist input[type="email"]::placeholder { color: #6f7391; }
.waitlist input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.waitlist button {
  font: inherit; font-weight: 700; color: #1b0f02; background: var(--accent);
  border: 0; border-radius: 14px; padding: 14px 20px; cursor: pointer; white-space: nowrap;
}
.waitlist button:hover { filter: brightness(1.06); }
.waitlist button:disabled { opacity: 0.6; cursor: progress; }
.waitlist-note { color: var(--muted); font-size: 14px; margin: 10px 2px 0; min-height: 1.6em; }
.waitlist[data-state="joined"] .waitlist-note,
.waitlist[data-state="already"] .waitlist-note { color: var(--ok); font-weight: 600; }
.waitlist[data-state="invalid"] .waitlist-note,
.waitlist[data-state="failed"] .waitlist-note { color: var(--bad); font-weight: 600; }
.waitlist[data-state="joined"] .waitlist-row,
.waitlist[data-state="already"] .waitlist-row { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }

/* Phone mockup: a script scrolling past the reading line, as in the app. */

.phone {
  justify-self: center; width: min(300px, 78vw); aspect-ratio: 9 / 19.5;
  padding: 10px; border-radius: 44px; background: #05061a;
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px rgba(0, 0, 0, 0.45), 0 0 120px rgba(232, 137, 43, 0.12);
}
.phone-screen {
  position: relative; height: 100%; border-radius: 34px; overflow: hidden;
  background: linear-gradient(180deg, #14173a 0%, #0b0d24 100%);
}
.phone-camera {
  position: absolute; top: 14px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; background: #000; box-shadow: 0 0 0 2px #22254a; z-index: 2;
}
.phone-text {
  /* The script window sits under the camera, as in the app, and stops above
     the record button so the two never overlap. */
  position: absolute; top: 9%; bottom: 24%; left: 0; right: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 62%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 62%, transparent 100%);
}
.phone-text-roll {
  padding: 0 22px; text-align: center; font-size: 22px; font-weight: 700; line-height: 1.35;
  animation: scroll 16s linear infinite;
}
.phone-text p { margin: 0 0 10px; color: rgba(233, 234, 242, 0.88); }
.phone-line {
  /* The reading line: the line of text crossing it is the one being read. */
  position: absolute; left: 18px; right: 18px; top: 27%; height: 4px; border-radius: 4px;
  background: var(--accent); box-shadow: 0 0 18px rgba(232, 137, 43, 0.7);
}
.phone-record {
  position: absolute; bottom: 22px; left: 50%; width: 54px; height: 54px; margin-left: -27px;
  border-radius: 50%; border: 4px solid rgba(255, 255, 255, 0.85);
}
.phone-record::after {
  content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #ff4d4d;
}
@keyframes scroll {
  from { transform: translateY(70%); }
  to { transform: translateY(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .phone-text-roll { animation: none; transform: translateY(12%); }
}

/* Sections */

section h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }

.promises { padding: 24px 0 64px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 64px; }
.plan { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.plan h2 { font-size: 26px; margin-bottom: 14px; }
.plan ul { margin: 0; padding: 0; list-style: none; }
.plan li { position: relative; padding: 6px 0 6px 28px; }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: 15px; width: 14px; height: 8px;
  border-left: 3px solid var(--muted); border-bottom: 3px solid var(--muted); transform: rotate(-45deg);
}
.plan-pro { border-color: rgba(232, 137, 43, 0.45); background: linear-gradient(180deg, #23203f 0%, var(--ink-2) 100%); }
.plan-pro li::before { border-color: var(--accent); }
.price { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 700; color: var(--accent); }

.privacy { text-align: center; padding: 56px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.privacy p { color: var(--muted); max-width: 36em; margin: 14px auto 0; font-size: 18px; }

.again { padding: 72px 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.again .get { width: 100%; }
.again .store-buttons { justify-content: center; }

/* Footer */

.bottom {
  max-width: 1120px; margin: 0 auto; padding: 28px var(--gutter) 40px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px;
}
.bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.bottom p { margin: 0; }

/* Narrow screens */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 24px 0 56px; }
  .cards, .plans { grid-template-columns: 1fr; }
  .phone { width: min(250px, 66vw); }
}
@media (max-width: 480px) {
  .waitlist-row { flex-direction: column; }
  .waitlist button, .store-button { width: 100%; text-align: center; }
  .lead { font-size: 17px; }
}
