/* Newsreader (OFL 1.1), cut by website/scripts/build_fonts.py to weight 400 with
   the optical-size axis kept: every serif line is set at 400, never bold. */
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-roman.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* The app's tokens (docs/guidelines/design-system-guideline.md), plus tints mixed from them. */
:root {
  color-scheme: light;
  --bg: #FAF6F0;
  --surface: #FFFFFF;
  --surface-variant: #F0EDE7;
  --primary: #2D4A3E;
  --primary-deep: #22392F;
  --on-primary: #FAF6F0;
  --text: #1A1A1A;
  --text-secondary: #6B6560;
  --border: #E8E4DE;
  --danger: #C4544A;
  --accent: #5B8A72;
  --rule: color-mix(in srgb, var(--primary) 15%, transparent);
  --on-primary-soft: color-mix(in srgb, var(--on-primary) 80%, var(--primary));
  --on-primary-rule: color-mix(in srgb, var(--on-primary) 16%, transparent);
  --serif: "Newsreader", ui-serif, "New York", "Noto Serif", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --wrap: 72rem;
  --gutter: 1.25rem;
  /* The app's 24dp vectors (composeResources/drawable), plus Material's airplane. */
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.7 6 9.53 15.17 5.28 10.93 3.87 12.35 9.53 18 20.13 7.4z'/%3E%3C/svg%3E");
  --i-bulb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zM8 17h8v2H8zM12 2C7.86 2 4.5 5.36 4.5 9.5c0 3.82 2.66 5.86 3.77 6.5h7.46c1.11-.64 3.77-2.68 3.77-6.5C19.5 5.36 16.14 2 12 2zm3.15 12h-6.3C7.99 13.39 6.5 11.97 6.5 9.5 6.5 6.47 8.97 4 12 4s5.5 2.47 5.5 5.5c0 2.47-1.49 3.89-2.35 4.5z'/%3E%3C/svg%3E");
  --i-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 21.35-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54z'/%3E%3C/svg%3E");
  --i-spa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.49 9.63c-.18-2.79-1.31-5.51-3.43-7.63-2.14 2.14-3.32 4.86-3.55 7.63 1.28.68 2.46 1.56 3.49 2.63 1.03-1.06 2.21-1.94 3.49-2.63zm-3.44-4.44c.63 1.03 1.07 2.18 1.3 3.38-.47.3-.91.63-1.34.98-.42-.34-.87-.67-1.33-.97.25-1.2.71-2.35 1.37-3.39zM12 15.45c-.82-1.25-1.86-2.34-3.06-3.2-.13-.09-.27-.16-.4-.26.13.09.27.17.39.25C6.98 10.83 4.59 10 2 10c0 5.32 3.36 9.82 8.03 11.49.63.23 1.29.4 1.97.51.68-.12 1.33-.29 1.97-.51C18.64 19.82 22 15.32 22 10c-4.18 0-7.85 2.17-10 5.45zm1.32 4.15c-.44.15-.88.27-1.33.37-.44-.09-.87-.21-1.28-.36-3.29-1.18-5.7-3.99-6.45-7.35 1.1.26 2.15.71 3.12 1.33l-.02.01c.13.09.26.18.39.25l.07.04c.99.72 1.84 1.61 2.51 2.65L12 19.1l1.67-2.55c.69-1.05 1.55-1.95 2.53-2.66l.07-.05c.09-.05.18-.11.27-.17l-.01-.02c.98-.65 2.07-1.13 3.21-1.4-.75 3.37-3.15 6.18-6.42 7.35z'/%3E%3C/svg%3E");
  --i-plane: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5z'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* A column, so a short page (the 404) still puts its footer at the bottom. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-synthesis: none;
  color: var(--primary);
  text-wrap: balance;
}

p,
li,
dd {
  text-wrap: pretty;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

::selection {
  background: color-mix(in srgb, var(--primary) 18%, transparent);
}

main {
  flex: 1 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.eyebrow {
  display: block;
  margin: 0 0 1.1rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

/* Header and footer, shared by every page. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}

/* Where the browser can tie it to scrolling, the hairline appears once the page moves. */
@supports (animation-timeline: scroll()) {
  .site-header {
    border-bottom-color: transparent;
    animation: header-edge linear both;
    animation-timeline: scroll(root);
    animation-range: 0 4rem;
  }
}

@keyframes header-edge {
  to {
    border-bottom-color: var(--border);
  }
}

.bar,
.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.bar {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: auto;
  font-family: var(--serif);
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--primary);
  text-decoration: none;
}

.brand img {
  width: 1.45rem;
  height: auto;
  margin-top: -0.3rem;
}

.sections {
  display: flex;
  gap: 2rem;
}

.sections a {
  color: var(--text);
  font-size: 0.9375rem;
  text-decoration: none;
}

.sections a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.get {
  padding: 0.5rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.get:hover {
  background: var(--primary);
  color: var(--on-primary);
}

.site-footer {
  padding: 3rem 0 3.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.site-footer .wrap {
  display: grid;
  gap: 0.75rem 2rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-footer nav a {
  color: var(--text);
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.site-footer .trademarks {
  font-size: 0.8125rem;
}

.site-footer .sign {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.sign .brand {
  margin: 0;
}

/* Legal pages: one reading column. */

.page {
  width: min(100% - 2 * var(--gutter), 44rem);
  margin: 0 auto;
  padding: clamp(2.5rem, 1.5rem + 3vw, 4.5rem) 0 5rem;
}

.page h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.4rem, 1.7rem + 2.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.page h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.65rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.page ul,
.page ol {
  padding-left: 1.3rem;
}

.page li {
  margin-bottom: 0.5rem;
}

.meta {
  margin: 0 0 2rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.crisis {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent);
  border-radius: 1.25rem;
  background: var(--surface);
}

.crisis h2 {
  margin-top: 0;
  color: var(--danger);
}

/* Product page (index.html). */

.band {
  padding-block: clamp(4.5rem, 2.5rem + 6vw, 8rem);
}

.band.sand {
  background: var(--surface-variant);
}

.product h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.022em;
}

.section-head {
  max-width: 46rem;
}

.section-head p:not(.eyebrow) {
  margin: 0;
  color: var(--text-secondary);
}

.section-head .lede {
  font-size: 1.1875rem;
}

/* Store buttons. Apple and Google each require their own badge artwork for a
   logo, so these stay text: the store's name, no mark. */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Official store badges, shown unaltered at one visible height (Apple's minimum is 40px).
   Neither may be recoloured, so they stay black on cream and on the forest CTA. */
.badge img {
  display: block;
  width: auto;
  height: 3rem;
}

/* Hero. */

.hero {
  padding: clamp(2.5rem, 1rem + 5vw, 5.5rem) 0 clamp(3.5rem, 2rem + 5vw, 7rem);
  overflow: clip;
}

.hero-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

/* Positioned so the quote mark behind the phone can never paint over it. */
.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
}

.display {
  display: block;
  font-size: clamp(3rem, 1.5rem + 5.6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero .lede {
  max-width: 34rem;
  margin: 1.75rem 0 2.25rem;
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3rem);
  line-height: 1.6;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.35rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.facts li::before,
.plan li::before,
.v-saved::after,
.offline li::after,
.more li::after,
.offline-toggle span:first-child::before {
  content: "";
  flex: none;
  background: currentColor;
  -webkit-mask: var(--i-check) center / contain no-repeat;
  mask: var(--i-check) center / contain no-repeat;
}

.facts li::before {
  width: 1rem;
  height: 1rem;
  background: var(--accent);
}

.hero-art {
  --phone: 18.5rem;
  position: relative;
  display: grid;
  place-items: center;
}

/* The brand's open quote, large and faint: the phone rises out of its second mark. */
.hero-art::before {
  --mark: clamp(10rem, 16vw, 15rem);
  content: "";
  position: absolute;
  top: 2.5rem;
  left: calc(50% - var(--phone) / 2 + 1.5rem - var(--mark));
  width: var(--mark);
  aspect-ratio: 576 / 475;
  background: color-mix(in srgb, var(--primary) 10%, var(--bg));
  -webkit-mask: url("/img/mark.svg") center / contain no-repeat;
  mask: url("/img/mark.svg") center / contain no-repeat;
}

.phone {
  position: relative;
  width: var(--phone);
  padding: 0.55rem;
  border-radius: 3rem;
  background: #161817;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.12),
    0 60px 90px -45px color-mix(in srgb, var(--primary-deep) 55%, transparent),
    0 26px 44px -26px color-mix(in srgb, var(--primary-deep) 40%, transparent);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2.5rem;
}

/* Camera cut-out. The bezel greys are the device's, not the brand's. */
.phone::after {
  content: "";
  position: absolute;
  top: 1.2rem;
  left: 50%;
  width: 0.7rem;
  height: 0.7rem;
  translate: -50% 0;
  border-radius: 50%;
  background: #0B0C0C;
  box-shadow: 0 0 0 2px #1F2221;
}

/* What it does: three small scenes drawn from the app's own screens. */

.modes {
  display: grid;
  gap: 3rem 1.5rem;
  margin: 3.5rem 0 0;
  padding: 0;
  list-style: none;
}

.modes > li > h3 {
  margin: 1.6rem 0 0.4rem;
  font-size: 1.6rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.modes > li > p {
  margin: 0;
  color: var(--text-secondary);
}

.vignette {
  position: relative;
  height: 17rem;
  padding: 1.4rem 1.4rem 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--bg);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.vignette p {
  margin: 0;
}

.v-write::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4rem;
  background: linear-gradient(transparent, var(--bg));
}

.vignette .v-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.v-saved {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 400;
}

.v-saved::after {
  width: 0.85rem;
  height: 0.85rem;
}

.v-caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--primary);
}

.v-voice {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.v-prompt {
  max-width: 15rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--text-secondary);
}

.vignette .v-time {
  margin-top: 0.9rem;
  font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.v-wave {
  width: 100%;
  max-width: 14rem;
  height: 2.5rem;
  margin: 0.35rem 0 1.1rem;
  fill: none;
  stroke: color-mix(in srgb, var(--primary) 70%, transparent);
  stroke-width: 2;
  stroke-linecap: round;
}

/* The stop button, with the arc of the take so far: 1:56 of a 5:00 ceiling, as in the capture. */
.v-stop {
  position: relative;
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: var(--primary);
}

.v-stop::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 1rem;
  height: 1rem;
  margin: auto;
  border-radius: 2px;
  background: var(--on-primary);
}

.v-stop::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: conic-gradient(color-mix(in srgb, var(--primary) 40%, var(--bg)) 0 39%, transparent 0);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
}

.v-chat {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.bubble {
  align-self: flex-start;
  max-width: 85%;
  padding: 0.6rem 0.95rem;
  border-radius: 1.15rem;
  background: var(--surface-variant);
}

.bubble.mine {
  align-self: flex-end;
  border: 1px solid var(--border);
  border-bottom-right-radius: 0.3rem;
  background: var(--surface);
}

.more {
  display: grid;
  gap: 2rem 3rem;
  margin: 4rem 0 0;
  padding: 3rem 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.more li {
  position: relative;
  min-height: 2.75rem;
  padding-left: 4rem;
}

/* A round tile with the app's icon on it: the tile is ::before, the glyph ::after. */
.more li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--border);
}

.more li::after {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--primary);
}

.more .i-insight::after {
  -webkit-mask-image: var(--i-bulb);
  mask-image: var(--i-bulb);
}

.more .i-care::after {
  -webkit-mask-image: var(--i-heart);
  mask-image: var(--i-heart);
}

.more .i-calm::after {
  -webkit-mask-image: var(--i-spa);
  mask-image: var(--i-spa);
}

.more h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  line-height: 1.25;
}

.more p {
  margin: 0;
  color: var(--text-secondary);
}

/* Privacy: the one full-bleed forest band. */

.band.forest {
  background: var(--primary);
  color: var(--on-primary);
}

.forest h2,
.forest .eyebrow,
.forest a {
  color: var(--on-primary);
}

.privacy-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.privacy-copy p:not(.eyebrow) {
  max-width: 36rem;
  color: var(--on-primary-soft);
}

.offline {
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--on-primary-rule);
  border-radius: 1.5rem;
  background: color-mix(in srgb, var(--on-primary) 6%, var(--primary));
}

.offline-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--on-primary-rule);
  font-weight: 600;
}

.offline-toggle span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.offline-toggle span:first-child::before {
  width: 1.3rem;
  height: 1.3rem;
  -webkit-mask-image: var(--i-plane);
  mask-image: var(--i-plane);
}

.switch {
  position: relative;
  flex: none;
  width: 3.1rem;
  height: 1.85rem;
  border-radius: 999px;
  background: var(--accent);
}

.switch::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  right: 0.15rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--on-primary);
}

.offline ul {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.offline li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--on-primary-soft);
}

.offline li::after {
  width: 1.15rem;
  height: 1.15rem;
  background: color-mix(in srgb, var(--accent) 45%, var(--on-primary));
}

/* Pricing. */

.plans {
  display: grid;
  gap: 1.25rem;
  margin-top: 3rem;
}

.plan {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  gap: 0;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--surface);
}

.plan.pro {
  padding: calc(2rem - 1px);
  border: 2px solid var(--primary);
}

.plan h3 {
  margin: 0;
  font-size: 1.5rem;
}

.price {
  margin: 0.9rem 0 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.amount {
  margin-right: 0.15rem;
  font-family: var(--serif);
  font-size: 3.4rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.terms {
  display: block;
  margin-top: 0.6rem;
}

.plan ul {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan li {
  display: flex;
  gap: 0.7rem;
}

.plan li::before {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  background: var(--primary);
}

.fine {
  margin: 1.5rem 0 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Requirements and FAQ: heading on the left, content on the right. */

.split {
  display: grid;
  gap: 2.5rem;
}

.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2rem;
  margin: 0;
}

.specs div {
  padding: 1.1rem 0 1.25rem;
  border-top: 1px solid var(--rule);
}

.specs dt {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.specs dd {
  margin: 0.35rem 0 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.3;
}

.note {
  margin: 1.25rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--text-secondary);
}

.faq details {
  border-top: 1px solid var(--rule);
}

.faq details:last-child {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.3rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.35;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* A plus drawn from two bars; open turns it into a cross. */
.faq summary::after {
  content: "";
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--rule);
  background:
    linear-gradient(var(--primary), var(--primary)) center / 0.8rem 1.5px no-repeat,
    linear-gradient(var(--primary), var(--primary)) center / 1.5px 0.8rem no-repeat;
  transition: transform 0.25s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq summary:hover::after {
  background-color: var(--surface-variant);
}

.faq details p {
  max-width: 40rem;
  margin: -0.4rem 0 1.5rem;
  color: var(--text-secondary);
}

/* Closing call to action. */

#download {
  padding-top: 0;
  padding-bottom: clamp(3.5rem, 2rem + 4vw, 5.5rem);
}

.cta {
  padding: clamp(3.5rem, 2rem + 5vw, 6rem) 1.5rem;
  border-radius: 2rem;
  background: var(--primary);
  color: var(--on-primary);
  text-align: center;
}

.cta-icon {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.75rem;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px var(--on-primary-rule), 0 18px 30px -18px rgba(0, 0, 0, 0.5);
}

.product .cta h2 {
  color: var(--on-primary);
}

.cta p {
  max-width: 30rem;
  margin: 0 auto 2.25rem;
  color: var(--on-primary-soft);
  font-size: 1.1875rem;
}

.cta .stores {
  justify-content: center;
}

.forest :focus-visible,
.cta :focus-visible {
  outline-color: var(--on-primary);
}

@media (min-width: 44rem) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 40rem) and (max-width: 51.99rem) {
  .modes > li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: "scene ." "scene title" "scene body" "scene .";
    column-gap: 2rem;
  }

  .modes .vignette {
    grid-area: scene;
  }

  .modes > li > h3 {
    grid-area: title;
    margin-top: 0;
  }

  .modes > li > p {
    grid-area: body;
  }
}

/* Two hero columns only once the phone fits its column. */
@media (min-width: 60rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 4rem;
  }
}

@media (min-width: 52rem) {
  .modes,
  .more {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .privacy-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 5rem;
  }

  .site-footer .wrap {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .site-footer .wrap > :nth-child(even) {
    justify-self: end;
  }
}

@media (min-width: 62rem) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 5rem;
  }
}

/* Stacked hero: the phone's top two-thirds, fading out. */
@media (max-width: 59.99rem) {
  .hero-art {
    --phone: 15rem;
    max-height: 25rem;
    margin-inline: calc(-1 * var(--gutter));
    overflow: hidden;
    -webkit-mask-image: linear-gradient(#000 70%, transparent);
    mask-image: linear-gradient(#000 70%, transparent);
  }

  .hero-art::before {
    display: none;
  }

  .phone {
    align-self: start;
    margin-top: 1rem;
  }
}

@media (max-width: 51.99rem) {
  .sections {
    display: none;
  }

  .vignette {
    height: auto;
    padding-bottom: 1.6rem;
  }

  .v-write::after {
    display: none;
  }
}

@media (max-width: 30rem) {
  .specs {
    grid-template-columns: minmax(0, 1fr);
  }

  .specs div {
    padding: 0.8rem 0 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .get,
  .faq summary::after {
    transition: none;
  }
}
