/* straightupnews.ai — landing page
   No webfonts, no CDN, no analytics, no JavaScript. A privacy product whose
   landing page phones three third parties is not making its case.

   ── CHANGING THE ACCENT COLOUR ─────────────────────────────────────────────
   Every accent, gradient and glow derives from --hue and --chroma below.
   Change --hue alone and light *and* dark mode follow, keeping their lightness
   relationship — which is exactly what breaks when hex values get swapped by
   hand.

       195  teal (current)     255  blue
       310  magenta-purple     145  green

   The plain hex values are the pre-2023 fallback (oklch landed in Firefox in
   May 2023). They are the teal set; if --hue changes and you still care about
   old browsers, update them too — or delete the fallback block when you don't.
*/

:root {
  --chroma: .09;
  --hue: 195;

  /* fallback: literal teal, used where oklch() is unsupported */
  --accent: #0e6f70;
  --accent-lift: #14a39c;
  --glow: rgba(20, 163, 156, .22);
  --accent-ink: #ffffff;

  --bg: #f6f6f6;
  --ink: #0f0f11;
  --muted: #6a6a72;
  --line: #e2e2e5;
  --box: #0d0d0f;
  --messy: #17171a;
  --ok: #1f5c3d;
  --ok-soft: #e8f4ed;
  --bad: #a11c1c;
  --bad-soft: #fbeaea;
}

@supports (color: oklch(50% .1 200)) {
  :root {
    --accent: oklch(45% var(--chroma) var(--hue));
    --accent-lift: oklch(58% var(--chroma) var(--hue));
    --glow: oklch(60% var(--chroma) var(--hue) / .22);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #4fd1c5;
    --accent-lift: #2dd4bf;
    --glow: rgba(79, 209, 197, .26);
    --accent-ink: #07211f;

    --bg: #0d0d0f;
    --ink: #e9e9ec;
    --muted: #87878f;
    --line: #222226;
    --box: #000000;
    --messy: #141418;
    --ok: #7fc9a2;
    --ok-soft: #14261d;
    --bad: #f0908c;
    --bad-soft: #2a1616;
  }
  @supports (color: oklch(50% .1 200)) {
    :root {
      --accent: oklch(80% var(--chroma) var(--hue));
      --accent-lift: oklch(68% var(--chroma) var(--hue));
      --glow: oklch(74% var(--chroma) var(--hue) / .26);
      --accent-ink: oklch(20% .04 var(--hue));
    }
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.bar { max-width: 44rem; margin: 0 auto; padding: 1.75rem 1.5rem; }
.wordmark { font-weight: 650; letter-spacing: -.01em; }
.dim { color: var(--muted); }

main { max-width: 44rem; margin: 0 auto; padding: 0 1.5rem; text-align: center; }

h1 {
  margin: 3rem 0 0;
  font-size: clamp(2.5rem, 8.5vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 700;
}

/* Solid colour first. The gradient-clipped text only applies where the browser
   supports it — otherwise `color: transparent` with a failed background leaves
   an invisible word in the headline. */
.accent { color: var(--accent); }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .accent {
    background: linear-gradient(150deg, var(--accent-lift), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.lede {
  margin: 1.2rem auto 0;
  max-width: 25rem;
  font-size: 1.1rem;
  color: var(--muted);
}

/* ── the pair: two identical mobile frames, from → to ───────────────────── */

.pair {
  margin: 4rem 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 2.25rem);
  flex-wrap: wrap;
}

.frame {
  width: min(10.5rem, 38vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 22px;
  border: 1px solid var(--line);
  overflow: hidden;
  flex: 0 0 auto;
}
.frame.before { background: var(--messy); filter: grayscale(1); opacity: .55; }
.frame.after {
  position: relative;
  background: var(--box);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  display: grid;
  place-items: center;
}
.frame.after::after {
  content: "";
  position: absolute;
  inset: -3rem;
  z-index: -1;
  border-radius: 50%;
  background: var(--glow);
  filter: blur(55px);
}
.ours-mark {
  color: #45454c;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.arrow {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 1.6rem;
  line-height: 1;
  transform: translateY(-.05em);
}

/* Two phones side by side on a handset become two thumbnails. Stack instead,
   and turn the arrow to match. */
@media (max-width: 34rem) {
  .pair { flex-direction: column; }
  .frame { width: min(13rem, 58vw); }
  .arrow { transform: rotate(90deg); }
}

/* The cluttered feed is drawn in CSS. It is never a screenshot of a real
   competitor: a recognisable third-party UI on a marketing page is a
   trademark and copyright exposure we have no reason to take on. */
.feed { padding: .5rem .45rem; display: flex; flex-direction: column; gap: .3rem; }
.card {
  background: rgba(255, 255, 255, .06);
  border-radius: 4px;
  padding: .32rem .38rem;
  display: flex;
  flex-direction: column;
  gap: .22rem;
}
.pill {
  align-self: flex-start;
  font-size: .42rem;
  letter-spacing: .06em;
  padding: .08rem .3rem;
  border-radius: 99px;
  background: #b4472a;
  color: #fff;
  text-transform: uppercase;
}
.pill.alt { background: #2f6fd0; }
.l { height: .3rem; border-radius: 2px; background: rgba(255, 255, 255, .24); }
.l.w90 { width: 90%; } .l.w70 { width: 70%; }
.l.w50 { width: 50%; } .l.w35 { width: 35%; }
.thumb { height: 1.5rem; border-radius: 3px; background: rgba(255, 255, 255, .1); }

/* ── statements: one per line ───────────────────────────────────────────── */

.lines { margin: 5rem 0 0; padding: 0; list-style: none; }
.lines li { padding: 1rem 0; font-size: 1.08rem; font-weight: 640; }
.lines li + li { border-top: 1px solid var(--line); }
.lines em { font-style: normal; color: var(--accent); }

/* ── signup ─────────────────────────────────────────────────────────────── */

.signup {
  margin: 3.75rem 0 0;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.75rem;
}
.signup h2 { margin: 0 0 .4rem; font-size: 1.35rem; letter-spacing: -.02em; }
.signup > p { margin: 0 0 1.25rem; color: var(--muted); }

form { display: flex; gap: .6rem; flex-wrap: wrap; }
input[type=email] {
  flex: 1 1 15rem;
  min-width: 0;
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font: inherit;
}
input[type=email]:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
button {
  padding: .8rem 1.3rem;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--accent-lift), var(--accent));
  color: var(--accent-ink);
  font: inherit;
  font-weight: 640;
  cursor: pointer;
}
button:hover { filter: brightness(1.08); }
button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.notice, .error {
  margin: 0 0 1rem;
  padding: .65rem .8rem;
  border-radius: 8px;
  font-size: .92rem;
}
.notice { background: var(--ok-soft); color: var(--ok); }
.error  { background: var(--bad-soft); color: var(--bad); }

.fine { margin: 1rem 0 0; font-size: .82rem; color: var(--muted); }

/* Off-screen rather than display:none — bots read the DOM, and a hidden field
   that assistive tech announces is a hidden field that traps humans. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

footer {
  max-width: 44rem;
  margin: 3.5rem auto 0;
  padding: 1.5rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
}
footer p { margin: 0; }

/* ── auth pages ─────────────────────────────────────────────────────────── */

.auth-h1 {
  margin: 3rem 0 0;
  font-size: clamp(2rem, 6vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 700;
}
a.wordmark { color: inherit; text-decoration: none; }
.signup form + p { margin-top: 1rem; }
