:root {
  --navy: #0b1f3a;
  --navy-deep: #07152a;
  --ice: #29b6f6;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #13213a;
  --muted: #56627a;
  --line: #e2e6ee;
  --link: #0277bd;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1424;
    --surface: #111e33;
    --text: #e6ebf3;
    --muted: #9aa7bd;
    --line: #22314b;
    --link: var(--ice);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero */

.hero {
  background:
    radial-gradient(circle at 78% 30%, rgba(41, 182, 246, 0.22), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 0;
}

.hero-text { padding-bottom: 72px; }

.app-icon {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(41, 182, 246, 0.25);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 28px 0 16px;
}

.hero .lead {
  font-size: 1.2rem;
  color: #c9d6ea;
  max-width: 30em;
  margin: 0 0 32px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}

.button.primary {
  background: var(--ice);
  border-color: var(--ice);
  color: var(--navy);
}

.button.soon {
  cursor: default;
  opacity: 0.85;
}

.button svg { width: 20px; height: 20px; fill: currentColor; }

/* Phones */

.phones {
  position: relative;
  height: 520px;
  align-self: end;
}

.phone {
  position: absolute;
  width: 240px;
  border-radius: 32px;
  border: 6px solid #1b2a44;
  background: #1b2a44;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.phone img { display: block; width: 100%; height: auto; }

.phone.back {
  right: 0;
  top: 70px;
  transform: rotate(6deg);
}

.phone.front {
  left: 10px;
  top: 30px;
  transform: rotate(-4deg);
  z-index: 1;
}

/* Features */

.features { padding: 40px 0; }

.feature {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 56px;
  align-items: center;
  padding: 48px 0;
}

.feature + .feature { border-top: 1px solid var(--line); }

.feature h2 {
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

/* A piece of the real app, cut from a screenshot. */
.excerpt {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(11, 31, 58, 0.06), 0 12px 32px rgba(11, 31, 58, 0.1);
}

.excerpt img { display: block; width: 100%; height: auto; }

/* The day tabs carry on past both edges in the app, so let them trail off here too. */
.excerpt.fade {
  box-shadow: none;
  border-radius: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.extras {
  list-style: none;
  margin: 24px 0 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  color: var(--muted);
}

.extras strong { display: block; color: var(--text); margin-bottom: 4px; }

/* Local name, set like a dictionary entry */

.local { padding: 56px 0 96px; }

.local .wrap > * { max-width: 600px; }

.kicker {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.headword {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(2.6rem, 7vw, 3.8rem);
  font-weight: 600;
  line-height: 1.1;
}

.headword dfn { font-style: normal; }

.pronunciation {
  margin: 6px 0 18px;
  color: var(--muted);
}

.pronunciation span { margin-right: 10px; }

.pronunciation i { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }

.definition {
  margin: 0;
  padding-left: 18px;
  border-left: 3px solid var(--ice);
  font-size: 1.15rem;
}

/* Footer */

footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 0.92rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 12px;
}

footer nav a { color: var(--text); text-decoration: none; font-weight: 600; }
footer nav a:hover { color: var(--ice); }
footer p { margin: 4px 0; }

/* Document pages (privacy policy) */

.doc-header {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
}

.doc-header .wrap {
  display: flex;
  align-items: center;
  padding-top: 18px;
  padding-bottom: 18px;
}

.doc-header a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}

.doc-header img { width: 40px; height: 40px; border-radius: 11px; }

.doc {
  max-width: 720px;
  padding-top: 48px;
  padding-bottom: 64px;
}

.doc h1 { font-size: 2.2rem; letter-spacing: -0.01em; margin: 0 0 4px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 1.25rem; margin: 36px 0 8px; }
.doc li { margin: 6px 0; }

.summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ice);
  border-radius: 12px;
  padding: 18px 22px;
}

.summary p { margin: 0; }

code {
  font-size: 0.92em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}

/* Small screens */

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-text { padding-bottom: 0; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .actions { justify-content: center; }
  .phones { height: 420px; max-width: 380px; width: 100%; margin: 0 auto; }
  .phone { width: 190px; }
  .feature { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; }
  .extras { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 560px) {
  .phones { height: 360px; }
  .phone { width: 160px; border-radius: 24px; border-width: 4px; }
}
