/* Home page (the prompt library landing), redesigned 4 Oct 2026: fewer words, more to look at, the sign-up first.
   Colours follow the locked visual system v1.1 (design/brand.css): night, Ladder blue #4a6cf7, light blue #96aaff. */

:root {
  --night: #08090c;
  --panel: #12141b;
  --panel-2: #1a1d27;
  --line: #262a36;
  --text: #f5f6fa;
  --muted: #9aa0b3;
  --blue: #4a6cf7;
  --glow: #96aaff;
  --r: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* The hero glow spills 40% past the sides; without clipping at the root, phones widen the page to fit it and zoom out. */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
  margin: 0; background: var(--night); color: var(--text);
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
  font-size: 16px; line-height: 1.5; overflow-x: hidden;
}
a { color: var(--glow); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.blue { color: var(--blue); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: calc(18px + env(safe-area-inset-top, 0px)) 0 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 17px; }
.brand img { border-radius: 8px; display: block; }
.top .pill { font-size: 13px; color: var(--glow); border: 1px solid color-mix(in srgb, var(--blue) 55%, transparent); padding: 5px 12px; border-radius: 999px; }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: 1fr; gap: 36px; padding: 28px 0 40px; }
.hero::before { content: ""; position: absolute; inset: -120px -40% auto; height: 620px; z-index: -1;
  background: radial-gradient(closest-side, rgba(74,108,247,.28), transparent 70%); filter: blur(10px); }
h1 { margin: 0 0 12px; font-size: clamp(34px, 7.5vw, 58px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; }
.sub { margin: 0 0 22px; color: var(--muted); font-size: clamp(17px, 2.4vw, 20px); max-width: 30em; }

.camefor { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 16px; padding: 9px 14px;
  border: 1px solid var(--blue); border-radius: 999px; background: color-mix(in srgb, var(--blue) 12%, transparent); font-size: 15px; }
.camefor strong { color: var(--text); }
.camefor span { color: var(--muted); }

/* The sign-up card: the one thing on the page that should pull the eye */
.getcard { position: relative; padding: 22px; border-radius: 22px; background: linear-gradient(180deg, #161a26, #11131a);
  border: 1px solid color-mix(in srgb, var(--blue) 60%, transparent);
  box-shadow: 0 0 0 6px rgba(74,108,247,.07), 0 20px 60px -20px rgba(74,108,247,.55); max-width: 520px; }
.getcard h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -0.01em; }
.getcard .hint { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.subform { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.subform input[type="email"] { width: 100%; padding: 16px 16px; font: inherit; font-size: 16px; color: var(--text);
  background: var(--night); border: 1px solid var(--line); border-radius: 12px; -webkit-appearance: none; appearance: none; }
.subform input[type="email"]::placeholder { color: #6f7486; }
.subform input[type="email"]:focus { outline: none; border-color: var(--glow); box-shadow: 0 0 0 3px rgba(150,170,255,.18); }
.subform button { padding: 17px 20px; font: inherit; font-size: 17px; font-weight: 700; color: #fff; background: var(--blue);
  border: 0; border-radius: 12px; cursor: pointer; box-shadow: 0 10px 30px -10px rgba(74,108,247,.9); transition: transform .15s, filter .15s; }
.subform button:hover { filter: brightness(1.1); transform: translateY(-1px); }
.subform button:disabled { opacity: .6; cursor: default; transform: none; }
.subform-msg { margin: 0; font-size: 14.5px; min-height: 1.2em; }
.subform-msg[data-kind="error"] { color: #ff9a9a; }
.subform-msg[data-kind="ok"] { color: var(--glow); }
.ticks { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.ticks li::before { content: "✓"; color: var(--blue); font-weight: 800; margin-right: 6px; }

/* Phone mock-up of the library (built in HTML, so it's crisp and weighs nothing) */
.phone { position: relative; width: 300px; max-width: 100%; margin: 0 auto; padding: 12px; border-radius: 44px;
  background: #0d0f15; border: 1px solid #2a2f3d; box-shadow: 0 30px 80px -30px rgba(74,108,247,.6), inset 0 0 0 2px #151926; }
.screen { border-radius: 34px; overflow: hidden; background: #0b0c11; padding: 18px 14px 16px; height: 560px; position: relative; }
.screen .notch { width: 90px; height: 22px; border-radius: 0 0 14px 14px; background: #0d0f15; margin: -18px auto 12px; }
.app-top { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.app-top img { width: 22px; height: 22px; border-radius: 6px; }
.search { padding: 9px 12px; border-radius: 10px; background: var(--panel-2); color: #7c8193; font-size: 12.5px; margin-bottom: 10px; }
.chips { display: flex; gap: 6px; margin-bottom: 12px; }
.chips span { font-size: 11.5px; padding: 4px 10px; border-radius: 999px; background: var(--panel-2); color: var(--muted); }
.chips span.on { background: var(--blue); color: #fff; font-weight: 600; }
.pcard { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.pcard .t { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.pcard .lv { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--glow);
  border: 1px solid color-mix(in srgb, var(--blue) 55%, transparent); padding: 2px 7px; border-radius: 999px; flex: none; }
.pcard pre { margin: 0 0 9px; font-family: ui-monospace, Consolas, monospace; font-size: 10.5px; line-height: 1.5; white-space: pre-wrap; color: #cfd3e0; }
.pcard pre b { color: var(--glow); font-weight: 700; }
.pcard .f { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; color: var(--muted); }
.pcard .copy { background: var(--blue); color: #fff; font-weight: 700; font-size: 11px; padding: 5px 12px; border-radius: 8px; }
.toast { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); background: #fff; color: #0b0c11; font-weight: 700;
  font-size: 12.5px; padding: 8px 14px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.45); animation: toast 4s ease-in-out infinite; }
@keyframes toast { 0%, 20% { opacity: 0; transform: translate(-50%, 10px); } 30%, 70% { opacity: 1; transform: translate(-50%, 0); } 80%, 100% { opacity: 0; transform: translate(-50%, 10px); } }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* Numbers strip */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 8px 0 56px; }
.numbers div { text-align: center; padding: 16px 8px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.numbers b { display: block; font-size: clamp(24px, 5vw, 34px); letter-spacing: -0.03em; line-height: 1.1; }
.numbers span { color: var(--muted); font-size: 13.5px; }

/* Sections */
.sec { margin: 0 0 60px; }
.sec h2 { margin: 0 0 18px; font-size: clamp(24px, 4.5vw, 32px); letter-spacing: -0.025em; line-height: 1.15; }
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.topic { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.topic .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--blue) 16%, transparent); color: var(--glow); }
.topic .ic svg { width: 22px; height: 22px; }
.topic b { font-size: 15px; line-height: 1.25; }
.topic span { color: var(--muted); font-size: 13.5px; margin-top: -6px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; counter-reset: s; }
.step { padding: 18px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.step i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff;
  font-style: normal; font-weight: 800; margin-bottom: 12px; box-shadow: 0 0 20px rgba(74,108,247,.5); }
.step b { display: block; font-size: 17px; margin-bottom: 2px; }
.step span { color: var(--muted); font-size: 14.5px; }
.step code { font-family: ui-monospace, Consolas, monospace; color: var(--glow); font-size: 15px; }

/* Levels drawn as the logo's rungs */
.ladder { display: grid; gap: 12px; max-width: 620px; }
.rung { display: grid; grid-template-columns: 88px 1fr; align-items: center; gap: 16px; padding: 14px 16px; border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--line); }
.rung .bars { display: grid; gap: 5px; }
.rung .bars i { display: block; height: 7px; border-radius: 3px; background: #2b3040; }
.rung .bars i.on { background: var(--blue); box-shadow: 0 0 12px rgba(74,108,247,.6); }
.rung b { display: block; font-size: 17px; }
.rung span { color: var(--muted); font-size: 14.5px; }

/* Closing sign-up */
.final { text-align: center; padding: 40px 20px; border-radius: 26px; margin: 0 0 40px;
  background: radial-gradient(120% 140% at 50% 0%, rgba(74,108,247,.25), transparent 60%), var(--panel); border: 1px solid var(--line); }
.final h2 { margin: 0 0 18px; font-size: clamp(26px, 5vw, 36px); letter-spacing: -0.025em; }
.final .cta { display: inline-block; padding: 18px 40px; font-size: 18px; font-weight: 700; color: #fff; background: var(--blue);
  border-radius: 14px; text-decoration: none; box-shadow: 0 12px 34px -10px rgba(74,108,247,.9); transition: transform .15s, filter .15s; }
.final .cta:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* Sticky button on phones once the sign-up card has scrolled away */
.sticky { position: fixed; left: 12px; right: 12px; z-index: 50;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px) + var(--ldr-consent-h, 0px));  /* sits above the cookie card while it's open */
  display: block; text-align: center; padding: 16px; border-radius: 14px; background: var(--blue); color: #fff; font-weight: 700;
  font-size: 17px; text-decoration: none; box-shadow: 0 12px 34px -8px rgba(74,108,247,.9);
  transition: transform .25s, opacity .25s, bottom .25s; }
.sticky.off { transform: translateY(140%); opacity: 0; pointer-events: none; }

/* Footer */
.foot { margin: 0 0 40px; padding-top: 24px; border-top: 1px solid var(--line); padding-bottom: 80px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 14px; }
.socials a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
.socials a:hover { color: var(--glow); }
.foot p { margin: 0; color: var(--muted); font-size: 13px; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.1fr .9fr; align-items: center; padding: 48px 0 56px; gap: 48px; }
  .sticky { display: none; }
  .foot { padding-bottom: 0; }
}
@media (max-width: 640px) {
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .phone { width: 270px; }
  .screen { height: 500px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float, .toast { animation: none; }
  .toast { opacity: 1; }
}
