/* ============================================================
   DESIGN TOKENS
   These ":root" variables are reusable values. Define a color
   once here, use it everywhere with var(--name). Change it in
   one place and the whole site updates. Pros do this for every
   real project.
   ============================================================ */
:root {
  --bg:            #0f0f12;  /* near-black page background */
  --bg-raised:     #1a1a1f;  /* slightly lighter: inputs, badge */
  --border:        #2a2a31;  /* subtle borders */
  --text:          #f5f5f7;  /* near-white headings */
  --text-muted:    #a1a1aa;  /* gray body text (tagline) */
  --text-faint:    #6b6b73;  /* fainter gray (footnote) */
  --accent:        #c425dd;  /* the magenta button / brand color */
  --accent-hover:  #ad1ec4;  /* darker magenta for hover state */

  --radius:        16px;     /* default rounded-corner size */
  --max-width:     460px;    /* how wide the hero content can get */
}

/* ============================================================
   RESET
   Browsers add default margins/padding that fight your layout.
   This wipes the slate clean so YOU control all spacing.
   box-sizing: border-box makes width include padding+border —
   far more intuitive when sizing things. Set it on everything.
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ============================================================
   BASE / PAGE
   ============================================================ */
body {
  background-color: var(--bg);
  color: var(--text);

  /* The system font stack: uses San Francisco on Mac/iPhone,
     Segoe on Windows, etc. Looks native everywhere, loads instantly. */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;

  line-height: 1.5;            /* comfortable spacing between lines of text */
  -webkit-font-smoothing: antialiased;  /* crisper text on Mac */
}

/* Make the icon image behave: never overflow, keep crisp corners. */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ============================================================
   HERO  (the first screen — everything centered)
   ============================================================ */
.hero {
  min-height: 100vh;          /* fallback for older browsers */
  /* 100svh = the SMALL viewport height: the visible area when the phone's
     address bar is showing. Using it (plus the tighter spacing below)
     keeps the icon, pills, AND signup form on one screen — no scrolling. */
  min-height: 100svh;

  /* Flexbox: the modern way to center things.
     - flex-direction: column  -> stack children top to bottom
     - align-items: center     -> center them horizontally
     - justify-content: center -> center them vertically */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  padding: 28px 24px;         /* breathing room, trimmed so it all fits on a short SE screen */
}

.app-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;        /* rounded-square, like an iOS icon */
  margin-bottom: 14px;
}

.title {
  /* clamp(min, preferred, max): FLUID type. Font grows with screen
     width but never smaller than 2.6rem or larger than 4rem.
     This is how you get one size that works on phone AND desktop. */
  font-size: clamp(2.6rem, 8vw, 4rem);
  font-weight: 800;           /* very bold */
  letter-spacing: -0.02em;    /* tighten big bold text slightly */
  line-height: 1.05;
}

.tagline {
  font-size: clamp(1.05rem, 3.5vw, 1.35rem);
  color: var(--text-muted);
  margin-top: 14px;
}

/* Quiet platform label under the tagline. Uppercase + spaced so it
   reads as a small caption, not a competing headline. */
.platform {
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;     /* slightly tighter so it stays on one line on the SE */
  text-transform: uppercase;
  color: var(--text-faint);
}

/* The launch-status part of that caption. Painting just these two words in
   the brand magenta makes "Coming soon" pop as the key status — without
   adding a separate badge or another line of height. */
.coming-soon {
  color: var(--accent);
}

/* ---- Feature pills ---- */
.feature-pills {
  list-style: none;           /* no bullet points */
  display: flex;
  flex-wrap: wrap;            /* let pills wrap onto multiple lines */
  justify-content: center;    /* center each row */
  gap: 8px;
  margin-top: 20px;
  max-width: var(--max-width);
}

.feature-pills li {
  padding: 6px 14px;
  border-radius: 999px;       /* full pill shape */
  background-color: var(--bg-raised);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;        /* keep each label on one line */
}

/* ---- Signup form ---- */
.signup {
  display: flex;
  flex-direction: column;
  gap: 14px;                  /* space between input, button, status */
  width: 100%;
  max-width: var(--max-width);
  margin-top: 34px;          /* extra gap so the form separates clearly from the pills */
}

.email-input {
  width: 100%;
  padding: 18px 20px;
  border-radius: var(--radius);
  background-color: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1rem;
}

/* Style the placeholder ("you@email.com") text color. */
.email-input::placeholder {
  color: var(--text-faint);
}

/* :focus = when the field is clicked/tabbed into. Show a clear ring
   so keyboard users (and everyone) can see where they are. */
.email-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 37, 221, 0.25);
}

.submit-btn {
  width: 100%;
  padding: 17px 24px;
  border: none;
  border-radius: var(--radius);
  background-color: var(--accent);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;            /* show a hand pointer on hover */
  /* Smoothly animate color/scale changes instead of snapping. */
  transition: background-color 0.15s ease, transform 0.05s ease;
}

.submit-btn:hover {
  background-color: var(--accent-hover);
}

.submit-btn:active {
  transform: scale(0.985);    /* tiny press-down effect when clicked */
}

/* The fields wrapper carries the stack spacing the form used to, so the
   whole block can be swapped out for the success state in one go. */
.signup-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.signup-fields[hidden] {
  display: none;              /* flex above would otherwise override hidden */
}

/* The error line under the button. Empty by default. */
.form-status {
  font-size: 0.9rem;
  min-height: 1.2em;          /* reserve space so layout doesn't jump */
  color: var(--text-muted);
}
.form-status.error { color: #f87171; }  /* red */

/* Success state: replaces the input, button, and footnote entirely,
   so the "you're done" moment is calm instead of a green line shouting
   next to a still-live form. */
.signup-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
}

.signup-success[hidden] {
  display: none;              /* flex above would otherwise override hidden */
}

.check-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.check-circle svg {
  width: 30px;
  height: 30px;
}

.signup-success p {
  font-size: 1.05rem;
  color: var(--text);
}

/* Headline on the post-confirmation page (confirmed.html). */
.confirmed-title {
  margin-top: 24px;
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footnote {
  margin-top: 2px;           /* sits close to the button: it's the reason to sign up */
  font-size: 0.9rem;
  color: var(--text-muted);  /* secondary, not fine print */
  max-width: 420px;
  margin-inline: auto;       /* the form is wider (460px); without this the capped box hugs the left edge and the centered text sits 20px off */
}

/* ============================================================
   LEGAL PAGES  (privacy policy, etc.)
   A simple, readable left-aligned text column — unlike the
   centered hero. Reuses the same color tokens for consistency.
   ============================================================ */
.legal {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  text-align: left;
}

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
}
.back-link:hover {
  color: var(--text);
}

.legal h1 {
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.legal-updated {
  color: var(--text-faint);
  font-size: 0.85rem;
  margin-top: 8px;
  margin-bottom: 28px;
}

.legal h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 8px;
}

.legal p {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.legal a {
  color: var(--text);
  text-decoration: underline;
}

.legal .legal-note {
  margin-top: 36px;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ============================================================
   ACCESSIBILITY HELPER
   Visually hides the <label> but keeps it for screen readers.
   A standard, well-known snippet — don't worry about memorizing it.
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   SITE LINKS (privacy / support, at the bottom of the hero)
   ============================================================ */
.site-links {
  margin-top: 20px;
  font-size: 0.8rem;
}

.site-links a {
  color: var(--text-faint);
  text-decoration: none;
}

.site-links a:hover {
  color: var(--text-muted);
}

.site-links span {
  color: var(--text-faint);
  margin: 0 6px;
}
