/* The landing page and waitlist (#225), Strata Prism colours (docs/design/strata-prism.md).
   System fonts only, nothing loaded from anywhere else. */
:root {
  color-scheme: dark;
  --sky-top: #7286CC;
  --sky-mid: #D4A4C6;
  --sky-low: #F8C79C;
  --sun: #FFB57E;
  --sun-glow: #FFC48E;
  --ink-on-sky: #141A3A;
  --strata-0: #5E5A98;
  --strata-1: #4A4785;
  --strata-2: #34326A;
  --strata-3: #201F49;
  --ground: #121332;
  --card: rgba(14, 14, 46, 0.42);
  --on-ground: #E8E7FF;
  --text-secondary: #E4E3FA;
  --text-done: #A9A6D6;
  --label: #FFD3B5;
  --primary: #FFC49A;
  --cool: #78DCE8;
  --warm: #FFC496;
  --on-action: #1A1440;
  --error: #FFB4AB;
  --success: #BFF0D6;
  --edge: linear-gradient(135deg, rgba(160, 182, 255, 0.95), rgba(236, 170, 214, 0.75) 45%, #FFC496);
  --action: linear-gradient(135deg, #B3C3FF, #F2B8DA 50%, #FFCB9E);
}

* { box-sizing: border-box; }

html { background: var(--ground); }

body {
  margin: 0;
  background: var(--ground);
  color: var(--on-ground);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--primary); text-underline-offset: 2px; }
a:hover { color: var(--warm); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h2 { font-size: 1.45rem; margin: 0 0 0.75rem; }
h3 { font-size: 1.05rem; margin: 0 0 0.25rem; }

/* The sky: a real sun, one ridge on the horizon, the ground below. */
.sky {
  position: relative;
  overflow: hidden;
  color: var(--ink-on-sky);
  background:
    radial-gradient(circle at 78% 62%, var(--sun) 0 2.6rem, rgba(255, 196, 142, 0.9) 2.7rem, rgba(255, 196, 142, 0) 10rem),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 50%, var(--sky-low) 78%, var(--sky-low) 100%);
  padding: 1rem 1rem 7rem;
}
.sky::before, .sky::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}
.sky::before {
  height: 5.5rem;
  background: var(--strata-1);
  clip-path: polygon(0 55%, 12% 35%, 24% 50%, 38% 20%, 52% 45%, 64% 30%, 78% 52%, 90% 38%, 100% 48%, 100% 100%, 0 100%);
}
.sky::after {
  height: 3.6rem;
  background: var(--strata-3);
  clip-path: polygon(0 40%, 16% 62%, 30% 35%, 46% 58%, 60% 40%, 74% 66%, 88% 45%, 100% 60%, 100% 100%, 0 100%);
}

.top {
  max-width: 46rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
}
.top a { color: var(--ink-on-sky); }
.brand { font-size: 1.15rem; letter-spacing: 0.02em; }

.hero { max-width: 46rem; margin: 2.5rem auto 0; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0 0 0.75rem; max-width: 30rem; }
.hero p { font-size: 1.1rem; margin: 0 0 1.25rem; max-width: 32rem; }
.hero .cta {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  background: var(--ink-on-sky);
  color: #FFDCC6;
  text-decoration: none;
  font-weight: 600;
}

main { max-width: 46rem; margin: 0 auto; padding: 0 1rem 3rem; }
main.narrow { max-width: 34rem; padding-top: 3rem; }

section { margin: 2.5rem 0; }

.eyebrow {
  color: var(--label);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}

/* A prism surface: dark, translucent, an iridescent edge, the sun's warmth in one corner. */
.card {
  border: 1.5px solid transparent;
  border-radius: 1.25rem;
  padding: 1.25rem 1.35rem;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 196, 150, 0.16), rgba(255, 196, 150, 0) 55%) padding-box,
    radial-gradient(circle at 0 100%, rgba(120, 220, 232, 0.08), rgba(120, 220, 232, 0) 50%) padding-box,
    linear-gradient(var(--strata-3), var(--strata-3)) padding-box,
    var(--edge) border-box;
}
.card p { color: var(--text-secondary); margin: 0.4rem 0 0; }

.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.85rem;
}
.features li {
  background: var(--strata-3);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--strata-1);
}
.features p { margin: 0; color: var(--text-secondary); font-size: 0.95rem; }

.price { font-size: 2rem; font-weight: 700; color: var(--primary); margin: 0; }

/* The form works without JavaScript; errors show through :target after the gateway's redirect. */
form { margin: 0; }
label { display: block; font-weight: 600; margin: 1rem 0 0.35rem; }
.hint { font-weight: 400; color: var(--text-done); font-size: 0.92rem; }
input[type=email], select {
  width: 100%;
  font: inherit;
  color: var(--on-ground);
  background: var(--ground);
  border: 1px solid #918FC0;
  border-radius: 0.75rem;
  padding: 0.65rem 0.8rem;
}
input[type=email]:focus, select:focus, input[type=radio]:focus-visible, button:focus-visible {
  outline: 2px solid var(--cool);
  outline-offset: 2px;
}
fieldset { border: 0; padding: 0; margin: 1rem 0 0; }
legend { font-weight: 600; padding: 0; margin-bottom: 0.35rem; }
.choices { display: flex; gap: 1.5rem; }
.choices label { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0.35rem 0 0; font-weight: 400; }
input[type=radio] { accent-color: var(--primary); width: 1.15rem; height: 1.15rem; }

button {
  margin-top: 1.4rem;
  font: inherit;
  font-weight: 700;
  color: var(--on-action);
  background: var(--action);
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  cursor: pointer;
}

.error { display: none; color: var(--error); font-weight: 600; margin: 0 0 0.75rem; }
.error:target { display: block; }

/* The honeypot: off screen for people, there for bots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.small { font-size: 0.92rem; color: var(--text-secondary); }
.privacy p { color: var(--text-secondary); }
.ok { color: var(--success); }

/* The privacy policy and sub-processor list (#118). */
.draft {
  border: 1.5px solid var(--error);
  border-radius: 0.9rem;
  padding: 0.7rem 0.9rem;
  color: var(--error);
  font-size: 0.95rem;
}
main > ul { color: var(--text-secondary); padding-left: 1.2rem; }
main > ul li { margin: 0.45rem 0; }
main section p, main > p { color: var(--text-secondary); }
table { border-collapse: collapse; width: 100%; margin: 0.75rem 0; }
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--strata-2);
  color: var(--text-secondary);
  font-size: 0.95rem;
}
th { color: var(--label); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
td code { font-size: 0.85em; }

footer {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
  border-top: 1px solid var(--strata-2);
  color: var(--text-done);
  font-size: 0.9rem;
}
footer a { color: var(--text-done); }
