/* ───────────────────────────────────────────────────────────────────────────
   Cosydays — marketing site (cosydays.co.uk / www)
   Aurora palette. Values mirror docs/BUILD-PLAN-DESIGN.md; this file is
   standalone by design — the site ships no framework and no build step.
   ─────────────────────────────────────────────────────────────────────────── */

:root {
  /* Aurora */
  --ink: #1a0b2e;
  --aurora-deep: #2e1065;
  --aurora-mid: #3b1e6b;
  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --cyan: #22d3ee;

  /* Text */
  --text-body: #5b5273;
  --text-muted: #8b82a3;
  --kicker: #a29db4;

  /* Surfaces */
  --paper: #fafafc;
  --card: #ffffff;
  --tint: #f4f2f8;

  /* Semantic */
  --good: #10b981;
  --warn: #d97706;

  /* Lines and lift */
  --divider: rgba(0, 0, 0, 0.08);
  --shadow-card: 0 6px 20px -10px rgba(46, 16, 101, 0.18);
  --shadow-hero: 0 20px 40px -20px rgba(46, 16, 101, 0.5);

  /* Radii */
  --r-hero: 30px;
  --r-card: 22px;
  --r-chip: 13px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

/* ── Reset ────────────────────────────────────────────────────────────── */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p {
  margin: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--purple);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--card);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 0 0 var(--r-chip) 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* ── Layout ───────────────────────────────────────────────────────────── */

.shell {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: 20px;
}

.section {
  padding-block: 64px;
}

.section-tinted {
  background: var(--tint);
}

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--kicker);
  margin-bottom: 14px;
}

.kicker-dark {
  color: var(--text-muted);
}

.lede {
  font-size: 17px;
  max-width: 62ch;
  margin-top: 16px;
}

.lede-light {
  color: rgba(255, 255, 255, 0.76);
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease),
    color 150ms var(--ease), transform 150ms var(--ease);
}

.btn-sm {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 14px;
}

.btn-primary {
  background: var(--purple);
  color: #ffffff;
}

.btn-primary:hover {
  background: #6d28d9;
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

/* ── Header ───────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(26, 11, 46, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  /* The mark and word are 28px tall between them; the link is a touch target. */
  min-height: 44px;
  text-decoration: none;
  margin-right: auto;
}

.brand-word {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.site-nav {
  display: none;
  gap: 26px;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding-block: 12px;
  transition: color 150ms var(--ease);
}

.site-nav a:hover {
  color: #ffffff;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #1a0b2e 0%, #2e1065 55%, #3b1e6b 100%);
  padding-block: 56px 72px;
  color: #ffffff;
}

.hero-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(8px);
}

.hero-glow-cyan {
  background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 70%);
  top: -160px;
  right: -120px;
}

.hero-glow-purple {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.35), transparent 70%);
  bottom: -240px;
  left: -180px;
}

.glow-right {
  top: -200px;
  right: -180px;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 44px;
}

.hero h1 {
  color: #ffffff;
  font-size: 34px;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-sub {
  margin-top: 18px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.76);
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-note {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 46ch;
}

/* ── Hero mock ────────────────────────────────────────────────────────── */

.hero-mock {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 375px;
}

.mock-card {
  background: linear-gradient(155deg, #3b1e6b 0%, #2e1065 60%, #1a0b2e 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-hero);
  box-shadow: var(--shadow-hero);
  padding: 22px;
}

.mock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mock-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.pill-live {
  background: rgba(34, 211, 238, 0.14);
  color: var(--cyan);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s var(--ease) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.dial {
  width: 100%;
  height: auto;
  margin-top: 8px;
}

.dial-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 12;
  stroke-linecap: round;
}

.dial-arc {
  fill: none;
  stroke: url(#arc);
  stroke-width: 12;
  stroke-linecap: round;
  /* Semicircle of radius 84 — length ≈ 264. Offset 100 shows ~62%. */
  stroke-dasharray: 264;
  stroke-dashoffset: 100;
  animation: draw 850ms var(--ease) both;
}

@keyframes draw {
  from {
    stroke-dashoffset: 264;
  }
}

.dial-value {
  font-family: var(--mono);
  font-size: 58px;
  font-weight: 500;
  letter-spacing: -0.02em;
  fill: #ffffff;
}

.dial-unit {
  font-family: var(--mono);
  font-size: 26px;
  fill: rgba(255, 255, 255, 0.6);
}

.dial-caption {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  fill: rgba(255, 255, 255, 0.6);
}

.mock-line {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  text-align: center;
  margin-top: 4px;
}

.mock-glance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.glance {
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--r-chip);
  padding: 12px 14px;
}

.glance-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.glance-value {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 500;
  color: #ffffff;
}

.delta {
  font-size: 12px;
  color: var(--good);
  margin-left: 6px;
}

.hero-mock figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Cards ────────────────────────────────────────────────────────────── */

.cards {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}

.card {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-chip);
  background: rgba(124, 58, 237, 0.1);
  color: var(--purple);
  margin-bottom: 16px;
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

.card h3,
.step h3 {
  font-size: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.card p,
.step p {
  margin-top: 10px;
  font-size: 15px;
}

.tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.tag-live {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.tag-soon {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}

/* ── Steps ────────────────────────────────────────────────────────────── */

.steps {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}

.step {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--r-card);
  padding: 24px;
}

.step-num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--purple);
  display: block;
  margin-bottom: 12px;
}

/* ── Weather-honest ───────────────────────────────────────────────────── */

.section-dark {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #1a0b2e 0%, #2e1065 55%, #3b1e6b 100%);
  color: rgba(255, 255, 255, 0.76);
}

.section-dark h2 {
  color: #ffffff;
  font-size: 28px;
}

.split {
  position: relative;
  display: grid;
  gap: 36px;
  align-items: center;
}

.compare-mock {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-card);
  padding: 24px;
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: center;
}

.compare-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.compare-bar {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.fill-naive {
  background: rgba(255, 255, 255, 0.3);
}

.fill-true {
  background: linear-gradient(90deg, var(--cyan), var(--purple-light));
}

.compare-val {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  font-weight: 500;
  color: #ffffff;
}

.compare-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin: 8px 0 24px;
}

.compare-caption {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0;
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */

.faq {
  margin-top: 32px;
  display: grid;
  gap: 4px;
}

.faq-item {
  border-top: 1px solid var(--divider);
  padding-block: 22px;
}

.faq-item dt {
  color: var(--ink);
  font-weight: 600;
  font-size: 17px;
}

.faq-item dd {
  margin: 8px 0 0;
  font-size: 15px;
  max-width: 78ch;
}

.faq-item dd .tag {
  display: inline-block;
  vertical-align: baseline;
}

/* ── Closing CTA ──────────────────────────────────────────────────────── */

.cta {
  text-align: center;
  background: var(--tint);
}

.cta-inner .lede {
  margin-inline: auto;
}

.cta-inner .btn {
  margin-top: 28px;
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.55);
  padding-block: 40px calc(40px + env(safe-area-inset-bottom));
}

.footer-inner {
  display: grid;
  gap: 18px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .brand-word {
  font-size: 17px;
}

.footer-disclaimer {
  font-size: 13px;
  max-width: 72ch;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.footer-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--purple-light);
}

/* ── Breakpoints ──────────────────────────────────────────────────────── */

@media (min-width: 768px) {
  .shell {
    padding-inline: 32px;
  }

  .section {
    padding-block: 88px;
  }

  .hero {
    padding-block: 80px 96px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .section-dark h2,
  .section h2 {
    font-size: 34px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .compare-row {
    grid-template-columns: 150px 1fr 64px;
    gap: 14px;
  }

  .compare-val {
    text-align: right;
  }

  .footer-inner {
    grid-template-columns: auto 1fr;
    align-items: start;
    column-gap: 40px;
  }

  .footer-meta {
    grid-column: 2;
  }
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
  }
}

@media (min-width: 1280px) {
  .shell {
    padding-inline: 48px;
  }

  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 64px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .hero-mock {
    justify-self: end;
  }

  .cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
  }

  .section {
    padding-block: 104px;
  }
}

@media (min-width: 1920px) {
  .hero h1 {
    font-size: 62px;
  }

  .lede,
  .hero-sub {
    font-size: 18px;
  }
}

/* ── Motion ───────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .dial-arc {
    stroke-dashoffset: 100;
  }
}

/* ── Legal pages (privacy, terms) ─────────────────────────────────────── */
/*
 * One prose block, shared by both pages. Deliberately narrow: these are documents to be read
 * rather than a landing page to be scanned, and a 72-character measure is what makes a long
 * paragraph readable at all.
 */

.legal {
  max-width: 72ch;
}

.legal h1 {
  margin-bottom: 8px;
}

.legal .updated {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 19px;
  margin-top: 40px;
  margin-bottom: 10px;
}

.legal h3 {
  font-size: 15px;
  margin-top: 24px;
  margin-bottom: 6px;
}

.legal p,
.legal li {
  font-size: 15px;
  line-height: 1.65;
}

.legal ul {
  padding-left: 20px;
  margin-block: 10px;
}

.legal li {
  margin-bottom: 6px;
}

.legal a {
  color: var(--purple);
}

/* A statement that matters more than the paragraph around it — the "we never sell your data"
   kind of line, which should not be findable only by reading every word. */
.legal .callout {
  border-left: 3px solid var(--purple);
  background: var(--tint);
  padding: 14px 16px;
  margin-block: 20px;
  border-radius: 0 8px 8px 0;
}

.legal .callout p {
  margin: 0;
}
