@font-face { font-family: Unbounded; src: url(/fonts/Unbounded_700Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Manrope; src: url(/fonts/Manrope_400Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Manrope; src: url(/fonts/Manrope_600SemiBold.ttf) format('truetype'); font-weight: 600; font-display: swap; }

/* Afterglow: a sunset over Port Calder. One scheme; text always sits on a light glass card or a dark panel. */
:root {
  --ink: #2A1E3F;
  --night: #1E1530;
  --muted: #5B4A6E;
  --plum: #6A35C0;
  --ember: #FF3D6E;
  --cyan: #3DE0FF;
  --paper: #FFF4EA;
  --paper-dim: #D9CCE6;
  --glass: rgba(255, 244, 234, 0.88);
  --line: rgba(42, 30, 63, 0.14);
  --mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Consolas, 'Liberation Mono', monospace;
  --radius: 28px;
}

* { box-sizing: border-box; }
/* A class that sets display must not show what the hidden attribute hides. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: #EFA487 linear-gradient(180deg, #FFD9B8 0%, #EFA487 40%, #B86A9E 78%, #6A35C0 100%) fixed;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 12px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; }
.dark :focus-visible, footer :focus-visible { outline-color: var(--cyan); }

/* Header: the same on every page. */
.site-header { width: 100%; max-width: 1080px; margin: 0 auto; padding: 16px 16px 0; }
.bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px;
  background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 22px;
  padding: 10px 12px 10px 10px; box-shadow: 0 12px 32px rgba(106, 53, 192, 0.16);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand span { font-family: Unbounded, system-ui, sans-serif; font-weight: 700; font-size: 17px; letter-spacing: 0.06em; }
.nav { display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav a { display: block; padding: 8px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { background: rgba(106, 53, 192, 0.1); color: var(--ink); }
.nav a[aria-current='page'] { background: var(--ink); color: var(--paper); }

main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 24px 16px 40px; }
main.narrow { max-width: 760px; }

.card {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 20px 48px rgba(106, 53, 192, 0.2);
}
.card + .card, .stack > * + * { margin-top: 20px; }
.dark { background: var(--night); color: var(--paper); border-color: rgba(255, 255, 255, 0.12); }
.dark a { color: var(--cyan); }
.dark a:hover { color: #FFFFFF; }
.dark .muted { color: var(--paper-dim); }

h1, h2, h3 { font-family: Unbounded, system-ui, sans-serif; font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(30px, 7vw, 52px); letter-spacing: 0.01em; margin: 0 0 14px; }
h2 { font-size: clamp(20px, 4vw, 26px); margin: 0 0 14px; }
h3 { font-size: 17px; margin: 28px 0 8px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
article h2 { margin-top: 40px; }
article h2:first-of-type { margin-top: 28px; }

p, li, dd { font-size: 17px; line-height: 1.6; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 6px; }
.lede { font-size: 20px; line-height: 1.5; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.eyebrow { margin: 0 0 8px; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--plum); }
.dark .eyebrow { color: var(--cyan); }

a { color: var(--plum); font-weight: 600; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

code, .mono { font-family: var(--mono); font-size: 0.92em; }
:not(pre) > code { background: rgba(106, 53, 192, 0.1); padding: 1px 6px; border-radius: 6px; }
.dark :not(pre) > code { background: rgba(255, 255, 255, 0.1); }

/* Buttons and chips */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 12px 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: var(--paper); font: 600 17px/1.2 Manrope, system-ui, sans-serif; text-decoration: none;
}
.button:hover { background: var(--plum); color: #FFFFFF; }
.button:disabled { opacity: 0.6; cursor: progress; }
.button.light { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.button.light:hover { background: var(--ink); color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }
.chip { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 15px; }

/* Front page: hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
.hero h1 { font-size: clamp(32px, 6.4vw, 60px); }
.hero .card { padding: 36px 28px; }
.hero .actions + p { margin: 16px 0 0; }
.hero-mark { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.hero-mark img { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 10px 24px rgba(106, 53, 192, 0.3); }
.hero-mark span { font-family: Unbounded, system-ui, sans-serif; font-size: 22px; letter-spacing: 0.08em; }
@media (min-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; }
}

/* A phone drawn in CSS around a screenshot */
.phone {
  width: min(100%, 300px); margin: 0 auto; padding: 9px; border-radius: 46px;
  background: var(--night); box-shadow: 0 30px 60px rgba(42, 30, 63, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.phone img { display: block; width: 100%; border-radius: 38px; }
.phone-caption { text-align: center; margin: 14px auto 0; max-width: 300px; font-size: 15px; color: var(--paper); background: rgba(42, 30, 63, 0.62); padding: 8px 14px; border-radius: 14px; }

/* Front page: sections */
.section { margin-top: 56px; }
.section > .card { margin-top: 0; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 860px) {
  .cols { grid-template-columns: 1fr 1fr; align-items: start; }
  .cols.wide-left { grid-template-columns: 1.2fr 0.8fr; }
}

/* How it plays: one day, start to night */
.day { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.day > li { position: relative; padding: 0 0 26px 58px; margin: 0; border-left: 2px solid var(--line); margin-left: 18px; padding-left: 40px; }
.day > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.day > li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: -19px; top: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--paper);
  font: 700 15px/1 Unbounded, system-ui, sans-serif;
}
.day h3 { margin: 4px 0 8px; }

/* The AI's own screens: monospace on night */
.terminal {
  margin: 14px 0 0; padding: 18px 18px; border-radius: 18px; background: var(--night); color: var(--paper);
  font: 14px/1.65 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere;
}
.terminal .you { color: var(--cyan); }
.terminal .c { color: var(--paper-dim); }
.terminal .k { color: #FF8FB0; }
.terminal .s { color: #FFD9B8; }

/* Screens */
.shots { display: grid; gap: 20px; align-items: start; }
@media (min-width: 860px) { .shots { grid-template-columns: 300px 1fr; gap: 36px; } }
.shot { margin: 0; }
.shot img { display: block; width: 100%; border-radius: 22px; box-shadow: 0 16px 36px rgba(42, 30, 63, 0.22); }
.shot figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); }

/* Features: what's in the city, as a spec sheet */
.spec { display: grid; gap: 0; margin: 0; }
.spec > div { padding: 22px 0; border-top: 1px solid var(--line); }
.spec > div:first-child { border-top: 0; padding-top: 4px; }
.spec dt { font: 700 17px/1.3 Unbounded, system-ui, sans-serif; margin-bottom: 8px; }
.spec dd { margin: 0; }
.spec .line { display: block; margin-top: 10px; font: 14px/1.5 var(--mono); color: var(--plum); overflow-wrap: anywhere; }
@media (min-width: 860px) {
  .spec { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .spec > div:nth-child(2) { border-top: 0; padding-top: 4px; }
}

/* Daily City */
.briefs { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.briefs li { margin: 0; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); }
.briefs strong { display: block; font-family: Unbounded, system-ui, sans-serif; font-size: 15px; margin-bottom: 2px; color: #FFFFFF; }

/* Free and member */
.plans { display: grid; gap: 20px; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.plans .card { margin: 0; }
.price { font: 700 28px/1.2 Unbounded, system-ui, sans-serif; margin: 0 0 4px; }
.plans ul { padding-left: 20px; }

/* Forms */
.field { margin: 0 0 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type='email'], input[type='text'], textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px;
  border: 2px solid rgba(42, 30, 63, 0.35); background: #FFFFFF; color: var(--ink);
  font: 400 17px/1.4 Manrope, system-ui, sans-serif;
}
textarea { min-height: 160px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--plum); outline: none; box-shadow: 0 0 0 3px rgba(106, 53, 192, 0.25); }
.hint { font-size: 15px; color: var(--muted); margin: 6px 0 0; }
.turnstile { min-height: 65px; margin: 4px 0 16px; }
.status { margin: 14px 0 0; font-weight: 600; }
.status:empty { display: none; }
.status.error { color: #A3123F; background: #FFE3EA; padding: 12px 14px; border-radius: 12px; }
.status.ok { color: #1D6B50; background: #E0F5EC; padding: 12px 14px; border-radius: 12px; }
.inline-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 520px; }
.inline-form .field, .inline-form .turnstile { margin: 0; }

/* Long reads: guides, terms, privacy, FAQ */
.toc { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: rgba(106, 53, 192, 0.1); text-decoration: none; }
.toc a:hover { background: var(--ink); color: var(--paper); }
.note { padding: 14px 16px; border-radius: 16px; background: rgba(106, 53, 192, 0.08); border: 1px solid rgba(106, 53, 192, 0.16); }
table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 16px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; }
.table-wrap { overflow-x: auto; margin: 0 0 16px; }
.table-wrap table { margin: 0; min-width: 480px; }

/* What's new */
.log h2 { margin-top: 0; }
.log ul { margin-bottom: 0; }

footer {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 12px;
  padding: 16px 16px 32px; max-width: 1080px; margin: 0 auto; width: 100%;
}
/* A dark chip under each link: the gradient behind the footer varies with page height. */
footer a, footer .legal { color: var(--paper); background: rgba(42, 30, 63, 0.66); padding: 8px 14px; border-radius: 999px; font-size: 15px; }
footer a:hover { color: #FFFFFF; background: rgba(42, 30, 63, 0.86); }
footer .legal { font-weight: 400; }

@media (max-width: 560px) {
  /* On a phone the links get their own row, spread across the bar. */
  .nav { width: 100%; justify-content: space-between; gap: 0; }
  .nav a { padding: 8px 6px; }
}
@media (max-width: 370px) { .nav a { font-size: 14px; padding: 8px 4px; } }
@media (max-width: 480px) {
  .card { padding: 26px 18px; border-radius: 22px; }
  .bar { padding: 10px; }
  .day > li { padding-left: 32px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
