/* talkoodle.com, the home page. The app's colours (mobile/src/theme.ts) and
   nothing from anyone else's servers. */
@font-face {
  font-family: Nunito;
  src: url(nunito.woff2) format('woff2');
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #2b3a55;
  --muted: #5f6d88;
  --bg: #eef7ff;
  --card: #ffffff;
  --line: #dbe6f3;
  --soft: #e6eff9;
  --sky: #cfe8f6;
  --accent: #e9652f;
  --accent-dark: #c24e1e;
  --help: #3f6fd8;
  --shadow: 0 6px 18px rgba(43, 58, 85, 0.12);
  --top: 68px;
}

* { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--top) + 12px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.6 Nunito, ui-rounded, "SF Pro Rounded", "Varela Round", "Segoe UI Rounded", "Segoe UI", system-ui, sans-serif;
}

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

h1, h2, h3 { font-weight: 800; line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.25rem; }
.h2-small { font-size: 1.6rem; }
.h3-big { font-size: 1.45rem; margin-top: 8px; }

p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 1.2em; }
li { margin-bottom: 8px; }

a { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--help); outline-offset: 2px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; background: var(--card); padding: 8px 14px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
section { padding: 64px 0; }
.band { background: var(--card); }
.band.soft { background: var(--soft); }
.lead { font-size: 1.2rem; max-width: 760px; }
.note { font-size: 1rem; color: var(--muted); }
.after { margin-top: 28px; max-width: 800px; }

/* The top bar. */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1120px;
  min-height: var(--top);
  margin: 0 auto;
  padding: 8px 20px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 800;
  text-decoration: none;
}
.logo img { border-radius: 10px; }
.nav { display: flex; gap: 20px; }
.nav a, .menu nav a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.nav a:hover, .menu nav a:hover { color: var(--accent-dark); text-decoration: underline; }

/* The phone menu: no script, so a <details>. */
.menu { display: none; position: relative; }
.menu summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.menu summary::-webkit-details-marker { display: none; }
.menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: grid;
  min-width: 200px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.menu nav a { padding: 11px 12px; }

.strip {
  margin: 0;
  padding: 10px 20px;
  background: var(--sky);
  text-align: center;
  font-size: 1rem;
}

/* Buttons. White on the app's orange only passes at large bold sizes, so the
   button text is 19px bold; the small one uses the darker orange. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 26px;
  border: 2px solid var(--accent);
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.small { min-height: 44px; padding: 6px 16px; font-size: 16px; background: var(--accent-dark); border-color: var(--accent-dark); white-space: nowrap; }
.btn.outline { background: var(--card); border-color: var(--help); color: var(--help); }
.btn.outline:hover { background: #e9f0fd; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 14px; }
.center .actions { justify-content: center; }

/* Hero. */
.hero { background: linear-gradient(var(--sky), var(--bg)); padding: 56px 0 72px; }
.hero-in { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: center; }
.for { color: var(--muted); font-weight: 700; }
.tablet {
  padding: 12px;
  border-radius: 28px;
  background: var(--ink);
  box-shadow: var(--shadow);
}
.tablet img { border-radius: 16px; }

/* Cards. */
.card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.band .card { background: var(--bg); box-shadow: none; }
.pad { padding: 24px; }
.pad > :last-child, .pad ul > li:last-child { margin-bottom: 0; }
.grid { display: grid; gap: 20px; margin-top: 24px; }
.grid + .h3-big { margin-top: 36px; }
.two { grid-template-columns: repeat(2, 1fr); }
.three { grid-template-columns: repeat(3, 1fr); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.steps li { display: flex; flex-direction: column; margin: 0; overflow: hidden; }
.steps img { width: 100%; border-bottom: 1px solid var(--line); }
.steps h3 { margin: 18px 20px 8px; }
.steps p { margin: 0 20px 20px; }
.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--help);
  color: #fff;
  font-size: 1rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
  margin-top: 44px;
}
.shot { border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }

.columns { columns: 2; column-gap: 36px; padding-left: 1.2em; }
.columns li { break-inside: avoid; }

/* Plans: rows line up across the four cards on a wide screen. */
.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto repeat(7, auto) auto;
  gap: 0 16px;
  margin-top: 28px;
}
.plan {
  display: grid;
  grid-row: span 10;
  grid-template-rows: subgrid;
  padding: 20px 18px;
}
.plan h3 { margin: 0; font-size: 1.5rem; }
.best { margin: 0 0 8px; color: var(--muted); font-weight: 700; }
.plan dl { display: grid; grid-row: span 7; grid-template-rows: subgrid; margin: 0; }
.plan dl > div { padding: 10px 0; border-top: 1px solid var(--line); }
.plan dt, .plan dd { margin: 0; }
.plan dt { color: var(--muted); font-size: 0.85rem; font-weight: 700; line-height: 1.25; }
.plan dd { font-size: 1rem; line-height: 1.35; }
.plan .btn { align-self: end; margin-top: 12px; padding: 8px 10px; font-size: 19px; text-align: center; }

.soon {
  display: inline-block;
  padding: 0 8px;
  border: 1.5px solid var(--help);
  border-radius: 999px;
  color: var(--help);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

/* Questions. */
.q {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}
.q summary {
  padding: 14px 20px;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
}
.q p { padding: 0 20px; }
.q p:last-child { padding-bottom: 6px; }

.foot { padding: 40px 0; background: var(--ink); color: #eaf0f8; font-size: 1rem; }
.foot a { color: #fff; }
.foot-title { font-weight: 800; font-size: 1.15rem; }

@media (max-width: 980px) {
  .nav { display: none; }
  .menu { display: block; }
  .hero-in, .split { grid-template-columns: 1fr; }
  .steps, .three { grid-template-columns: 1fr; }
  .plans { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; gap: 16px; }
  .plan { display: block; }
  .plan dl { display: grid; grid-template-columns: 1fr; grid-template-rows: none; }
  .plan .btn { display: flex; }
}

@media (max-width: 680px) {
  section { padding: 44px 0; }
  .hero { padding: 36px 0 48px; }
  .two, .plans { grid-template-columns: 1fr; }
  .columns { columns: 1; }
  .logo { font-size: 1.15rem; }
  .logo img { width: 30px; height: 30px; }
  .top-in { gap: 8px; padding: 8px 16px; }
  .wrap { padding: 0 16px; }
  .btn.small { padding: 6px 12px; }
}

@media (max-width: 370px) {
  .logo span { display: none; }
}
