/* Schibsted Grotesk (SIL OFL 1.1, fonts/OFL.txt), self-hosted: the CSP's
   font-src is 'self' only. Latin subset, the two weights the site uses. */
@font-face {
  font-family: "Schibsted Grotesk";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-700.woff2") format("woff2");
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-800.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --bg: #faf8f5;
  --surface: #ffffff;
  --text: #1f1c24;
  --muted: #5f5a68;
  --accent: #4b3fa8;
  --on-accent: #ffffff;
  --border: #e3dfe8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131116;
    --surface: #1c1a21;
    --text: #efecf3;
    --muted: #a9a3b4;
    --accent: #a99cff;
    --on-accent: #17132e;
    --border: #2e2b36;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.5rem;
}

h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.35rem;
}

.card h3 {
  margin-top: 0;
}

p,
li {
  margin: 0 0 0.9rem;
}

ul {
  padding-left: 1.25rem;
}

a {
  color: var(--accent);
}

.brand {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.lede {
  margin-top: 1rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.25rem 0 0.75rem;
}

.button {
  display: block;
  font: inherit;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  padding: 0.85rem 1.25rem;
  border-radius: 0.75rem;
  border: 2px solid var(--accent);
  min-height: 48px;
}

.button.primary {
  background: var(--accent);
  color: var(--on-accent);
}

.button.secondary {
  color: var(--accent);
  background: transparent;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

.draft {
  border: 1px dashed var(--accent);
  border-radius: 0.5rem;
  padding: 0.6rem 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0.5rem 0 1rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.table-wrap {
  overflow-x: auto;
}

footer {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--muted);
}

footer a {
  margin-right: 1rem;
}

[hidden] {
  display: none !important;
}

@media (max-width: 600px) {
  .table-wrap table,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap td {
    display: block;
  }

  .table-wrap thead {
    display: none;
  }

  .table-wrap tr {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
  }

  .table-wrap td {
    border: 0;
    padding: 0.25rem 0;
  }

  .table-wrap td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
  }
}

@media (min-width: 720px) {
  main {
    padding-top: 4rem;
  }

  h1 {
    font-size: 2.6rem;
  }

  .actions {
    flex-direction: row;
  }

  .button {
    min-width: 12rem;
  }
}

main.home-main {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Shared by the homepage and the /waitlist pages. */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* The honeypot: off-screen for people, still in the form for bots. Hidden
   by a class (an inline style would be blocked by the CSP). */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.waitlist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.waitlist input[type="email"] {
  flex: 1 1 14rem;
  min-width: 0;
  min-height: 52px;
  padding: 0 1rem;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--field-border);
  border-radius: 0.75rem;
}

.waitlist input[type="email"]::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

.waitlist input[type="email"]:focus-visible,
.waitlist button:focus-visible,
.check input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.waitlist button {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 0 1.4rem;
  font: inherit;
  font-weight: 600;
  color: var(--on-ink);
  background: var(--ink);
  border: 0;
  border-radius: 0.75rem;
  cursor: pointer;
}

/* On a phone the button takes its own full-width row. */
@media (max-width: 520px) {
  .waitlist button {
    flex: 1 1 100%;
  }
}

.check {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  min-height: 44px;
  font-size: 0.95rem;
  line-height: 1.4;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  margin: 0;
  accent-color: var(--ink);
}

.fine {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Homepage (index.html): design A, "Duet split". The two halves are the
   app's per-person ink colours, as on the App Store screenshots; white text
   on either half is at least 4.5:1. */

body.home {
  --ink: #1a1b1f;
  --on-ink: #ffffff;
  --paper: #fbfaf6;
  --field-border: #8c8c84;
  --placeholder: #6b6b66;
  --link: #005f94;
  --focus: #0072b2;
  --split-blue: oklch(0.52 0.13 245);
  --split-vermilion: oklch(0.58 0.16 42);
  --tint-blue: oklch(0.94 0.03 245);
  --tint-vermilion: oklch(0.94 0.035 42);
  --kicker-blue: #005f94;
  --kicker-vermilion: #b0460a;
  background: var(--paper);
}

@media (prefers-color-scheme: dark) {
  body.home {
    --ink: #f3f1ec;
    --on-ink: #17181c;
    --paper: #131116;
    --field-border: #6f6f78;
    --placeholder: #9a9ca4;
    --link: #8fc8ff;
    --focus: #8fc8ff;
    --tint-blue: oklch(0.27 0.05 245);
    --tint-vermilion: oklch(0.27 0.05 42);
    --kicker-blue: #8fc8ff;
    --kicker-vermilion: #ffab7a;
  }
}

body.home h1,
body.home h2 {
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.split {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #ffffff;
  background: var(--split-blue);
}

/* The vermilion half is drawn from the phone's own centre line, so the
   phone always bridges the split: horizontal on a phone (vermilion starts
   behind the device, under all the text), vertical from 900px. */
.hero-shot::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 7rem;
  bottom: -10rem;
  left: -100vw;
  right: -100vw;
  background: var(--split-vermilion);
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: 76rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Schibsted Grotesk", -apple-system, sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: #ffffff;
  text-decoration: none;
}

.wordmark img {
  border-radius: 0.5rem;
}

.soon {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.25);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  max-width: 76rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.split h1 {
  margin: 0;
  font-size: clamp(2.6rem, 9vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero-lede {
  margin: 0;
  max-width: 34rem;
  font-size: 1.15rem;
  line-height: 1.5;
}

.signup {
  color: var(--text);
  background: var(--surface);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.45);
}

.signup a {
  color: var(--link);
}

.signup h2 {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-shot {
  position: relative;
  display: flex;
  justify-content: center;
  height: 22rem;
}

.device {
  display: block;
  width: 17rem;
  max-width: 100%;
  height: auto;
  aspect-ratio: 600 / 1215;
  border: 9px solid #0d0d0f;
  border-radius: 2.6rem;
  background: #0d0d0f;
  box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.45);
}

.hero-shot .device {
  align-self: flex-start;
  transform: rotate(-3deg);
}

.features {
  max-width: 76rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  padding: 3rem 0;
}

.feature-text h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.02;
}

.feature-text p {
  margin: 0;
  max-width: 28rem;
  font-size: 1.1rem;
  color: var(--muted);
}

.feature-text .kicker {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker.together {
  color: var(--kicker-blue);
}

.kicker.voice {
  color: var(--kicker-vermilion);
}

.feature-shot {
  display: flex;
  justify-content: center;
  overflow: hidden;
  height: 26rem;
  padding-top: 2.25rem;
  border-radius: 1.75rem;
}

.feature-shot .device {
  width: 15rem;
  align-self: flex-start;
}

.tint-blue {
  background: var(--tint-blue);
}

.tint-vermilion {
  background: var(--tint-vermilion);
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin: 1rem 0 0;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  background: var(--surface);
}

.price h2 {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
}

.price p {
  margin: 0;
  color: var(--muted);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1.25rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border: 1.5px solid var(--text);
  border-radius: 0.75rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.75rem;
  max-width: 76rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  font-size: 0.9rem;
}

.site-footer a {
  display: inline-block;
  padding: 0.75rem 0.5rem;
  margin-left: -0.5rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .topbar {
    padding: 1.5rem 4rem 0;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2.5rem;
    padding: 2.5rem 4rem 0;
    align-items: end;
  }

  .hero-shot::before {
    top: -40rem;
    left: 50%;
    right: -100vw;
  }

  .hero-copy {
    padding-bottom: 5rem;
  }

  /* The phone bridges the split and runs off the bottom of the band. */
  .hero-shot {
    height: 36rem;
  }

  .hero-shot .device {
    width: 19rem;
    margin-top: 1rem;
  }

  .features {
    padding: 2rem 4rem 0;
  }

  .feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
    padding: 4rem 0;
  }

  .feature.reverse .feature-text {
    order: 2;
  }

  .feature-shot {
    height: 32rem;
  }

  .feature-shot .device {
    width: 17.5rem;
  }

  .site-footer {
    padding: 3rem 4rem;
  }
}

/* The /waitlist result pages: the plain page layout with the form styles. */

main.page .waitlist {
  margin: 1.5rem 0;
}

main.page {
  --ink: var(--text);
  --on-ink: var(--bg);
  --field-border: var(--muted);
  --placeholder: var(--muted);
  --focus: var(--accent);
}
