/* THE INNERNET — the app's own styling, carried over to the site: its
   theme's colours (Minima's three by default: paper, stone, ink), Tiny5 LCD
   for the mark, outlines between lights, rounded 8, quiet stone labels.
   Each of the app's themes is a set of the same variables below (from its
   CSS file in the app's themes/), chosen by <html data-theme> (theme.js). */

@font-face {
  font-family: 'Tiny5';
  src: url('fonts/Tiny5-LCDRegular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root, [data-theme="minima"] {
  --paper: #F8F7F4;
  --stone: #776F64;
  --ink: #63605B;
  /* stone and paper, mixed, for hairlines and fills that aren't full stone */
  --line: color-mix(in srgb, var(--stone) 45%, var(--paper));
  --page: var(--paper);          /* what the page is drawn on */
  --selected: var(--stone);      /* the theme switch's indicator */
  --on-selected: var(--paper);
  --accent: var(--ink);          /* filled buttons */
  --on-accent: var(--paper);
  --wash: color-mix(in srgb, var(--stone) 8%, var(--paper));
  --deep: color-mix(in srgb, var(--stone) 16%, var(--paper));
  --radius: 8px;
}
[data-theme="dew"] {
  --paper: #FCFEFF; --stone: #5F6C78; --ink: #3F4952; --line: #B7C6D4; --page: #F1F8FD;
  --selected: #B7DCFD; --on-selected: #3F4952; --accent: #95CAF8; --on-accent: #3F4952;
}
[data-theme="blush"] {
  --paper: #FFFDFD; --stone: #79666B; --ink: #514347; --line: #D4BFC5; --page: #FDF4F6;
  --selected: #FAC8D6; --on-selected: #514347; --accent: #F3ADC2; --on-accent: #514347;
}
[data-theme="mint"] {
  --paper: #FCFEFD; --stone: #607067; --ink: #3F4B44; --line: #B7C9BF; --page: #F1F9F4;
  --selected: #B6E4CA; --on-selected: #3F4B44; --accent: #93D6B1; --on-accent: #3F4B44;
}
[data-theme="lilac"] {
  --paper: #FEFDFF; --stone: #6E6978; --ink: #494551; --line: #C8C2D4; --page: #F8F5FD;
  --selected: #DDCFFA; --on-selected: #494551; --accent: #CCB8F4; --on-accent: #494551;
}
[data-theme="clara"] {
  --paper: #FFFFFF; --stone: rgba(54, 54, 54, 0.75); --ink: #363636; --line: rgba(0, 0, 0, 0.3);
  --page: #F5F5F5; --selected: #3069D0; --on-selected: #FFFFFF; --accent: #3069D0; --on-accent: #FFFFFF;
}

/* A change of theme glides rather than snaps. */
body, a, h1, h2, h3, h4, .intro, .wordmark, .tagline, .quiet, footer, footer nav a,
figure.screen img, .rule, .beta input, .beta button, .theme-switch, .theme-switch button {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration-color: var(--stone); text-underline-offset: 3px; }
a:hover { color: var(--stone); }

h1, h2, h3, h4 { font-weight: 600; color: var(--ink); line-height: 1.25; }

main { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* The top of the home page: the wordmark centred in the space above the
   fold, and the next heading with the very top of the screenshot just
   peeking over the bottom edge (.mark) — a hint of what's below. */
.hero { padding: 44px 0 24px; }
.hero.mark {
  padding: 0;
  min-height: calc(100vh - 96px);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
}
.intro {
  font-size: 16px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--stone); margin: 0 0 14px;
}
.wordmark {
  font-family: 'Tiny5', monospace;
  font-size: 72px; letter-spacing: 8px; line-height: 1;
  color: var(--ink); margin: 0;
}
.home-card { text-align: center; }
.home-card h2 { font-size: 30px; margin: 0 0 26px; }
/* the caption's gone; the gap it left stays between image and tagline */
.home-card figure.screen { margin: 0 auto 52px; }
.tagline {
  font-size: 19px; color: var(--stone); max-width: 560px; margin: 0 auto;
}
.home-card { padding-bottom: 56px; }
.chip {
  display: inline-block; border: 1px solid var(--stone); color: var(--stone);
  border-radius: var(--radius); padding: 4px 12px; font-size: 12px;
  letter-spacing: 1.6px; text-transform: uppercase; font-weight: 600;
  margin: 0 0 26px;
}
.hero .lede { font-size: 19px; max-width: 600px; margin: 0 auto; color: var(--stone); }

/* Screen figures: stone-outlined, rounded like the app's cards */
figure.screen { margin: 48px auto; max-width: 720px; }
figure.screen img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: var(--radius);
}
figure.screen.portrait { text-align: center; }
figure.screen.portrait img { display: inline-block; max-width: 540px; }
figure.screen figcaption {
  font-size: 13px; color: var(--stone); margin: 10px 2px 0;
}

/* Feature cards */
.points {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px; padding: 20px 0 8px;
}
.points div {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; background: var(--paper);
}
.points h3 { margin: 0 0 8px; font-size: 16.5px; }
.points p { margin: 0; font-size: 15px; color: var(--stone); }

/* A word section beside or before a figure */
.walk { max-width: 640px; margin: 0; }
.walk.right { margin-left: auto; text-align: right; }
.walk.right h2, .walk.right p { max-width: 560px; margin-left: auto; }
.walk h2 { font-size: 26px; margin: 0 0 10px; }
.walk h3 { font-size: 18px; margin: 0 0 8px; }
.walk p { margin: 0 0 12px; color: var(--ink); }
.quiet { color: var(--stone); }

/* Lists styled like the app's quiet labels */
.list { padding-left: 0; list-style: none; margin: 14px 0; }
.list li {
  padding: 10px 0 10px 0; border-top: 1px solid var(--line);
  font-size: 15.5px; max-width: 640px;
}
.list li:last-child { border-bottom: 1px solid var(--line); }
.list b { font-weight: 600; }

/* Pricing */
.pricing { margin-top: 56px; }
.pricing h2 { font-size: 26px; margin: 0 0 8px; }
.sub { margin: 0 0 22px; color: var(--stone); max-width: 640px; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.tiers.two { max-width: 480px; }
.tier {
  border: 1px solid var(--stone); border-radius: var(--radius);
  padding: 20px 22px;
}
.tier h4 {
  margin: 0 0 10px; font-size: 13px; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--stone);
}
.tier.filled { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tier.filled, .tier.filled h4, .tier.filled .price span { color: var(--paper); }
.tier.filled h4 { color: color-mix(in srgb, var(--paper) 70%, var(--ink)); }
.price { font-size: 30px; font-weight: 600; margin-bottom: 10px; color: var(--ink); }
.price span { font-size: 14px; font-weight: 600; color: var(--stone); }
.tier p { margin: 0; font-size: 14.5px; color: var(--stone); }
.tier.filled .price { color: var(--paper); }
.tier.filled p { color: color-mix(in srgb, var(--paper) 80%, var(--stone)); }
.tiny { font-size: 13px; color: var(--stone); margin-top: 18px; }

/* Beta request: an email box and a filled send button, as the app's controls */
.beta-ask { text-align: center; margin: 48px 0 56px; }
.beta-ask h2 { font-size: 26px; margin: 0 0 22px; }
.beta { display: flex; gap: 12px; max-width: 520px; margin: 0 auto; }
.beta input {
  flex: 1; padding: 10px 14px; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid var(--stone);
  border-radius: var(--radius);
}
.beta input::placeholder { color: var(--stone); }
.beta input:focus { outline: none; border-color: var(--ink); }
.beta button {
  padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer;
  background: var(--accent); color: var(--on-accent);
  border: 1px solid var(--accent); border-radius: var(--radius);
}
.beta button:hover { background: color-mix(in srgb, var(--accent) 85%, var(--paper)); }

/* The themes: the app's view switch (SlideToggle) as a theme switch, a
   track outlined like the app's with a sliding indicator; clicking a
   segment, or dragging across them, redraws the page (and its pictures)
   in that theme. */
.themes { text-align: center; padding: 8px 0 8px; }
.themes h2 { font-size: 26px; margin: 0 0 22px; }
.theme-switch {
  display: inline-flex; position: relative; padding: 2px;
  border: 1px solid var(--line); border-radius: 6px;
  touch-action: none; user-select: none; -webkit-user-select: none;
  max-width: 100%;
}
.theme-switch .indicator {
  position: absolute; top: 2px; bottom: 2px; left: 2px;
  width: calc((100% - 4px) / var(--count)); border-radius: 4px;
  background: var(--selected);
  transform: translateX(calc(var(--at) * 100%));
  transition: transform .2s ease-out, background-color .35s ease;
}
.theme-switch button {
  position: relative; width: 120px; min-width: 0; height: 33px; padding: 0 4px;
  font: inherit; font-size: 14.4px; font-weight: 600; color: var(--stone);
  background: none; border: 0; border-radius: 4px; cursor: pointer;
}
.theme-switch button:hover:not([aria-checked="true"]) {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}
.theme-switch button[aria-checked="true"] { color: var(--on-selected); }
.theme-switch button:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
/* "and more…": the last segment, quieter and never chosen. */
.theme-switch .more {
  position: relative; width: 120px; height: 33px; display: flex;
  align-items: center; justify-content: center; padding: 0 4px;
  font-size: 14.4px; font-weight: 600; font-style: italic; line-height: 1.1;
  color: color-mix(in srgb, var(--stone) 60%, var(--page)); cursor: default;
}

/* Each screenshot shows the app in the page's theme: the next theme's
   picture fades in over the last. */
figure.screen .shots { position: relative; }
figure.screen .shots img + img { position: absolute; inset: 0; }
figure.screen .shots img { transition: opacity .35s ease, border-color .35s ease; }

/* Rules between sections: stone hairlines, as outlines separate lights */
.rule { border: 0; border-top: 1px solid var(--line); margin: 56px 0 0; }

/* Trial / footnotes / footer */
.trial { margin-top: 52px; }
.trial h2 { font-size: 22px; margin: 0 0 8px; }
.trial p { margin: 0; max-width: 640px; color: var(--ink); }
.footnotes { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--stone); }
.footnotes p { margin: 6px 0; }
footer {
  max-width: 880px; margin: 48px auto 0; padding: 22px 24px 44px;
  border-top: 1px solid var(--stone); font-size: 13px; color: var(--stone);
}
footer p { margin: 6px 0; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
footer nav a { color: var(--stone); }
footer nav a:hover { color: var(--ink); }

/* The AI page's reply echo: the reader's pale-stone bubble, as in the panel. */
.bubble {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; max-width: 620px; margin: 0 0 12px; font-size: 15.5px;
  background: var(--paper);
}
.bubble.you { background: var(--deep); border-color: var(--deep); margin-left: 15%; }
.bubble .who {
  font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase;
  font-weight: 600; color: var(--stone); margin: 0 0 6px;
}
.bubble p { margin: 0; }

/* Legal pages */
.doc { padding: 44px 0 24px; }
.doc h1 { font-size: 34px; margin: 0 0 18px; }
.doc h2 { font-size: 20px; margin: 30px 0 8px; }
.doc p, .doc li { max-width: 660px; }
.doc em { color: var(--stone); }

@media (max-width: 640px) {
  .wordmark { font-size: 44px; letter-spacing: 5px; }
  .hero h1 { font-size: 22px; }
  .hero { padding-top: 48px; }
  .hero.mark { padding: 0; }
  .bubble.you { margin-left: 0; }
  .beta { flex-direction: column; }
  .theme-switch { display: flex; }
  .theme-switch button, .theme-switch .more { flex: 1; width: auto; font-size: 12px; }
}