/*
 * Laterleaf's landing page (Figma «Site — Landing», 1440 and 375; «Interactive states»;
 * «Header while scrolling»; «Menu open»). Colours are the extension's (variant B «Grove»,
 * packages/ui/src/base.css); head.js puts the theme in data-theme before the first paint.
 */
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/geist-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/geist-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Literata Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url('/fonts/literata-latin-ext-opsz-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Literata Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url('/fonts/literata-latin-opsz-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root,
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f6f7f5;
  --surface: #ffffff;
  --surface-2: #edf0ec;
  --fg: #18201b;
  --muted: #5e6a62;
  --border: #dfe4de;
  --border-strong: #c3cbc4;
  --accent: #2e6a4f;
  --accent-hover: #24563f;
  --accent-fg: #ffffff;
  --accent-soft: #e1eee6;
  --success: #2e6a4f;
  --focus: #2e6a4f;
  --shadow-rgb: 20 15 10;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #121614;
    --surface: #1a1f1c;
    --surface-2: #232a26;
    --fg: #e6ece7;
    --muted: #9aa79f;
    --border: #2c3430;
    --border-strong: #3e4842;
    --accent: #7cc4a0;
    --accent-hover: #98d4b5;
    --accent-fg: #0e1a14;
    --accent-soft: #1f3329;
    --success: #7cc4a0;
    --focus: #7cc4a0;
    --shadow-rgb: 0 0 0;
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #121614;
  --surface: #1a1f1c;
  --surface-2: #232a26;
  --fg: #e6ece7;
  --muted: #9aa79f;
  --border: #2c3430;
  --border-strong: #3e4842;
  --accent: #7cc4a0;
  --accent-hover: #98d4b5;
  --accent-fg: #0e1a14;
  --accent-soft: #1f3329;
  --success: #7cc4a0;
  --focus: #7cc4a0;
  --shadow-rgb: 0 0 0;
}

:root {
  --sans: 'Geist Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Literata Variable', Georgia, 'Times New Roman', serif;
  --gutter: 120px;
  --content: 1200px;
  --nav-height: 76px;
  --ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--focus);
  --shadow-window: 0 8px 24px rgb(var(--shadow-rgb) / 0.14), 0 24px 64px rgb(var(--shadow-rgb) / 0.22);
  --shadow-popup: 0 4px 12px rgb(var(--shadow-rgb) / 0.1), 0 12px 32px rgb(var(--shadow-rgb) / 0.14);
  --shadow-card: 0 1px 2px rgb(var(--shadow-rgb) / 0.06), 0 1px 3px rgb(var(--shadow-rgb) / 0.08);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
@media (max-width: 1279.98px) {
  :root {
    --gutter: 48px;
  }
}
@media (max-width: 767.98px) {
  :root {
    --gutter: 20px;
    --nav-height: 60px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  /* Nothing scrolls sideways, in Safari too (it pans a page whose body alone clips). Clip, not hidden: the header stays sticky. */
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/24px var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
::selection {
  background: rgb(46 106 79 / 0.2);
}
img,
svg {
  display: block;
}
h1,
h2,
h3,
p,
ul,
fieldset {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 500;
}
.skip:focus {
  top: 12px;
}

/* Which device and width show what. head.js sets data-device (phone: nothing to install). */
:root[data-device='phone'] .computer-only,
:root:not([data-device='phone']) .phone-only {
  display: none !important;
}
@media (max-width: 767.98px) {
  .wide-only {
    display: none !important;
  }
}
@media (min-width: 768px) {
  .narrow-only {
    display: none !important;
  }
  /* A headline's sentences (page.mjs: lines). */
  .line {
    display: block;
    text-wrap: balance;
  }
}

/* Type (Figma text styles site/* and ui/*). */
.h2 {
  font: 600 44px/52px var(--serif);
  letter-spacing: -1px;
  text-wrap: balance;
}
.h3 {
  font: 600 24px/30px var(--serif);
  letter-spacing: -0.3px;
}
.lead {
  font-size: 20px;
  line-height: 30px;
  color: var(--muted);
}
.body {
  font-size: 16px;
  line-height: 24px;
}
.small {
  font-size: 14px;
  line-height: 20px;
}
.strong {
  font-weight: 600;
}
.caption {
  font-size: 12px;
  line-height: 16px;
}
.caption a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent);
}
@media (max-width: 767.98px) {
  .h2 {
    font-size: 30px;
    line-height: 36px;
    letter-spacing: -0.5px;
  }
  .lead {
    font-size: 17px;
    line-height: 26px;
  }
}
:lang(ja) :is(h1, h2, h3, .lead, .body) {
  word-break: auto-phrase;
}
:lang(ja) body {
  --sans: 'Geist Variable', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Yu Gothic', 'Noto Sans JP', system-ui, sans-serif;
  --serif: 'Literata Variable', 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif JP', serif;
}

/* Buttons (Figma: Button, IconButton, StoreButton). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    transform 160ms var(--ease-out),
    box-shadow 150ms ease;
}
.btn:active,
.store:active {
  transform: scale(0.97);
}
.btn:focus-visible,
.store:focus-visible,
.icon-btn:focus-visible,
.lang__button:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-fg);
}
.btn--primary:active {
  background: var(--accent-hover);
  box-shadow: inset 0 1px 3px rgb(0 0 0 / 0.18);
}
.btn--secondary {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--fg);
}
.btn--secondary:active {
  background: var(--border);
  box-shadow: inset 0 1px 3px rgb(0 0 0 / 0.18);
}
.btn--block {
  width: 100%;
  white-space: normal;
  text-align: center;
}
.btn .icon {
  width: 18px;
  height: 18px;
}
@media (hover: hover) {
  .btn--primary:hover {
    background: var(--accent-hover);
  }
  .btn--secondary:hover {
    background: var(--surface-2);
  }
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition:
    background-color 150ms ease,
    transform 160ms var(--ease-out);
}
.icon-btn:active {
  background: var(--border);
  transform: scale(0.94);
}
@media (hover: hover) {
  .icon-btn:hover {
    background: var(--surface-2);
  }
}

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 200px;
  height: 56px;
  padding: 0 22px 0 16px;
  border-radius: 12px;
  background: var(--fg);
  color: var(--bg);
  transition:
    background-color 150ms ease,
    transform 160ms var(--ease-out),
    box-shadow 150ms ease;
}
.store__text {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.store__add {
  font-size: 12px;
  line-height: 16px;
  opacity: 0.8;
}
.store__name {
  font-size: 18px;
  line-height: 22px;
  font-weight: 600;
}
.store:active {
  background: color-mix(in srgb, var(--fg) 86%, var(--bg));
  box-shadow: inset 0 1px 3px rgb(0 0 0 / 0.18);
}
@media (hover: hover) {
  .store:hover {
    background: color-mix(in srgb, var(--fg) 86%, var(--bg));
  }
}

/* The install button shows the browser the page is open in. */
.install__item {
  display: none;
}
:root[data-browser='chrome'] .install__item[data-for='chrome'],
:root[data-browser='edge'] .install__item[data-for='edge'],
:root[data-browser='firefox'] .install__item[data-for='firefox'],
:root[data-browser='other'] .install__item[data-for='other'] {
  display: inline-flex;
}

.pro-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  font: 600 11px/14px var(--sans);
  letter-spacing: 0.44px;
  text-transform: uppercase;
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
}
.icon-tile--large {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
}
.icon-tile--large .icon {
  width: 24px;
  height: 24px;
}
.icon-tile--on-accent {
  border-radius: 10px;
  background: var(--band-tile);
  color: var(--accent-fg);
}

/* Language menu (Figma: SiteLanguage, SiteLanguageMenu). */
.lang {
  position: relative;
}
.lang__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition:
    background-color 150ms ease,
    color 150ms ease;
}
.lang__button::-webkit-details-marker {
  display: none;
}
.lang__button .icon {
  width: 16px;
  height: 16px;
}
.lang--outline .lang__button {
  padding: 7px 8px 7px 10px;
  border: 1px solid var(--border);
  color: var(--fg);
}
.lang[open] .lang__button {
  background: var(--surface-2);
  color: var(--fg);
}
@media (hover: hover) {
  .lang__button:hover {
    background: var(--surface-2);
    color: var(--fg);
  }
}
.lang__menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  padding: 4px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow:
    inset 0 0 0 1px var(--border),
    var(--shadow-popup);
  transform-origin: top right;
  animation: menu-in 160ms var(--ease-out);
}
.footer .lang__menu {
  top: auto;
  bottom: calc(100% + 6px);
  transform-origin: bottom right;
}
.lang__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 20px;
  color: var(--fg);
}
.lang__menu a[aria-current] {
  font-weight: 600;
}
.lang__menu .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
@media (hover: hover) {
  .lang__menu a:hover {
    background: var(--surface-2);
  }
}
@keyframes menu-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}

/* Header: stays on top; once the page moves it gets a background, a blur and a line. */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  transition:
    background-color 200ms ease,
    box-shadow 200ms ease;
}
.nav[data-scrolled] {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 -1px 0 var(--border);
}
.nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-height);
  padding: 0 var(--gutter);
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
}
.brand__name {
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
  letter-spacing: -0.1px;
}
.brand--small {
  gap: 10px;
}
.brand--small .brand__name {
  font-size: 16px;
  line-height: 22px;
}
.nav__links {
  display: flex;
  gap: 32px;
}
.nav__links a,
.footer__links > a {
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  border-radius: 4px;
  transition: color 150ms ease;
}
@media (hover: hover) {
  .nav__links a:hover {
    color: var(--fg);
  }
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.menu-toggle,
.menu-toggle__close,
.theme-toggle__sun,
:root[data-theme='dark'] .theme-toggle__moon {
  display: none;
}
:root[data-theme='dark'] .theme-toggle__sun {
  display: block;
}
/* The phone menu lies over the page under the header, down to the bottom of the screen: nothing moves. */
.menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100dvh - var(--nav-height));
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--border);
  padding: 8px var(--gutter) 24px;
  background: var(--bg);
  animation: menu-drop 200ms var(--ease-out);
}
@keyframes menu-drop {
  from {
    opacity: 0;
    translate: 0 -8px;
  }
}
:root[data-menu-open] {
  overflow: hidden;
}
.menu[hidden] {
  display: none;
}
.menu__links {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}
.menu__links a {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
}
.menu .lang__menu {
  left: 0;
  right: auto;
  transform-origin: top left;
}
/* Below 1280 the links, the language and a long install button (German, Portuguese) don't fit in one row: the menu holds them. */
@media (max-width: 1279.98px) {
  .nav__links,
  .nav__lang {
    display: none;
  }
  .menu-toggle {
    display: inline-grid;
  }
  .nav[data-menu-open] .menu-toggle__open {
    display: none;
  }
  .nav[data-menu-open] .menu-toggle__close {
    display: block;
  }
  .nav[data-menu-open] {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@media (min-width: 1280px) {
  .menu {
    display: none !important;
  }
}
@media (max-width: 767.98px) {
  .nav__bar {
    padding: 0 12px 0 20px;
    gap: 12px;
  }
  .nav__actions {
    gap: 4px;
  }
  .nav__install {
    display: none;
  }
  .brand {
    gap: 8px;
  }
  .nav .brand .logo {
    width: 26px;
    height: 26px;
  }
}

/* First screen. */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 72px var(--gutter) 0;
  text-align: center;
}
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
}
.eyebrow-pill .icon {
  width: 16px;
  height: 16px;
}
.hero__title {
  font: 600 64px/70px var(--serif);
  letter-spacing: -1.5px;
  text-wrap: balance;
  max-width: var(--content);
}
.hero__lead {
  max-width: 720px;
  font-size: 20px;
  line-height: 30px;
  color: var(--muted);
}
.hero__get {
  padding-top: 8px;
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  /* Each sentence of the headline keeps to one line on tablets. */
  .hero__title {
    font-size: 52px;
    line-height: 58px;
    letter-spacing: -1.2px;
  }
}
.fine-print {
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}
.phone-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
@media (max-width: 767.98px) {
  .hero {
    gap: 18px;
    padding-top: 32px;
  }
  .eyebrow-pill {
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    line-height: 16px;
  }
  .eyebrow-pill .icon {
    width: 14px;
    height: 14px;
  }
  .hero__title {
    font-size: 40px;
    line-height: 46px;
    letter-spacing: -0.8px;
  }
  :lang(ja) .hero__title {
    font-size: 32px;
    line-height: 40px;
  }
  :lang(ja) .h2 {
    font-size: 26px;
    line-height: 34px;
  }
  .hero__lead {
    font-size: 17px;
    line-height: 26px;
  }
  .hero__get {
    width: 100%;
    padding-top: 6px;
  }
}

/* The screens under the first screen; drawn at 1440 × 860 and scaled with the page (1 unit = 1 px of the 1440 frame). */
.hero-visual {
  position: relative;
  /* Leaves stay inside the page width; the shadows of the phone and the window fall below freely. */
  overflow-x: clip;
  margin-top: 0;
}
.hero-visual__backdrop {
  position: absolute;
  inset: calc(280 / 860 * 100%) 0 0;
  background: var(--surface-2);
}
.hero-visual__stage {
  position: relative;
  container-type: inline-size;
  width: min(100%, 1440px);
  aspect-ratio: 1440 / 860;
  margin: 0 auto;
  --u: calc(100cqw / 1440);
}
.leaf {
  position: absolute;
  color: var(--accent);
  overflow: visible;
}
.leaf--1 {
  left: calc(-40 * var(--u));
  top: calc(300 * var(--u));
  width: calc(360 * var(--u));
  rotate: -10deg;
  opacity: 0.1;
}
.leaf--2 {
  left: calc(1250 * var(--u));
  top: calc(230 * var(--u));
  width: calc(240 * var(--u));
  rotate: 35deg;
  opacity: 0.14;
}
.leaf--3 {
  left: calc(1180 * var(--u));
  top: calc(640 * var(--u));
  width: calc(140 * var(--u));
  rotate: -60deg;
  opacity: 0.12;
}
.hero-visual__window {
  position: absolute;
  left: calc(170 * var(--u));
  top: calc(32 * var(--u));
  width: calc(1102 * var(--u));
}
.hero-visual__phone {
  position: absolute;
  left: calc(56 * var(--u));
  top: calc(210 * var(--u));
  width: calc(286 * var(--u));
  padding: calc(8 * var(--u));
  border-radius: calc(40 * var(--u));
}
.hero-visual__phone .phone__screen {
  border-radius: calc(32 * var(--u));
}
.hero-visual__popup {
  position: absolute;
  left: calc(1050 * var(--u));
  top: calc(96 * var(--u));
  width: calc(320 * var(--u));
}
@media (max-width: 1023.98px) {
  .hero-visual__window .window__bar {
    height: calc(44 * var(--u));
    padding: 0 calc(16 * var(--u));
    gap: calc(8 * var(--u));
  }
  .hero-visual__window .window__dot {
    width: calc(10 * var(--u));
    height: calc(10 * var(--u));
  }
  .hero-visual__window .window__address {
    display: none;
  }
}
@media (max-width: 767.98px) {
  .hero-visual {
    height: 606px;
    margin-top: 0;
  }
  .hero-visual__backdrop {
    inset: 180px 0 0;
  }
  .hero-visual__stage {
    aspect-ratio: auto;
    width: 100%;
    height: 100%;
  }
  .leaf {
    display: none;
  }
  .hero-visual__phone {
    left: 0;
    right: 0;
    top: 28px;
    width: 262px;
    margin: 0 auto;
    padding: 7px;
    border-radius: 36px;
  }
  .hero-visual__phone .phone__screen {
    border-radius: 30px;
  }
}

/* A drawn browser window and phone around the real screens. */
.window {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-window);
}
.window__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.window__dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}
.window__address {
  overflow: hidden;
  max-width: 316px;
  margin-left: 2px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.window__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.window__screen .shot,
.phone__screen .shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}
.phone {
  background: var(--fg);
  box-shadow: var(--shadow-window);
}
.phone__screen {
  overflow: hidden;
  aspect-ratio: 375 / 812;
  background: var(--bg);
}
.popup {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--bg);
  box-shadow: var(--shadow-popup);
}
.popup::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--border);
  pointer-events: none;
}
.phone__screen {
  position: relative;
}
.popup .shot {
  width: 100%;
  height: auto;
}
.shot--dark,
:root[data-theme='dark'] .shot--light {
  display: none;
}
:root[data-theme='dark'] .shot--dark {
  display: block;
}

/* Sections. */
.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: var(--gutter);
}
.section > * {
  width: 100%;
  max-width: var(--content);
}
.heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.heading .eyebrow {
  justify-content: center;
}
.heading .lead {
  max-width: 800px;
}
/* Figma: the pricing lead keeps to one line where it fits (the features lead is 720 wide). */
.pricing .heading .lead {
  max-width: none;
}
@media (max-width: 767.98px) {
  .heading {
    gap: 10px;
  }
}

.moving {
  padding: 64px var(--gutter) 0;
}
.moving__card {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--content);
  margin: 0 auto;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}
.moving__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
}
.moving__button {
  flex: none;
}
@media (max-width: 1023.98px) {
  /* The text gets the width; the button goes under it. */
  .moving__card {
    flex-wrap: wrap;
  }
  .moving__text {
    flex-basis: calc(100% - 76px);
  }
  .moving__button {
    margin-left: 76px;
  }
}
@media (max-width: 767.98px) {
  .moving {
    padding-top: 40px;
  }
  .moving__card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 20px;
  }
  .moving__text {
    flex-basis: auto;
    gap: 12px;
  }
  .moving__button {
    margin-left: 0;
    white-space: normal;
    text-align: center;
  }
  .moving .icon-tile--large {
    width: 44px;
    height: 44px;
  }
}

.how {
  gap: 48px;
  padding-top: 120px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.step {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}
.step__visual {
  position: relative;
  flex: none;
  height: 280px;
  overflow: hidden;
  background: var(--surface-2);
}
.step__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 28px 28px;
}
.step__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 24px/30px var(--serif);
  letter-spacing: -0.3px;
}
.step__number {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-fg);
  font: 600 14px/20px var(--sans);
  letter-spacing: 0;
}
.step__popup {
  position: absolute;
  left: 50%;
  top: 24px;
  width: 320px;
  translate: -50% 0;
}
.step__crop .shot {
  position: absolute;
  max-width: none;
}
.step__crop--highlights .shot {
  left: -800px;
  top: -56px;
  width: 1152px;
}
.step__crop--search .shot {
  left: -175px;
  top: -8px;
  width: 893px;
}
@media (max-width: 1023.98px) {
  .steps {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}
@media (max-width: 767.98px) {
  .how {
    gap: 28px;
    padding-top: 72px;
  }
  .steps {
    gap: 28px;
  }
}

.rows {
  display: flex;
  flex-direction: column;
  gap: 140px;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 140px var(--gutter) 0;
}
.row {
  display: flex;
  align-items: center;
  gap: 80px;
}
.row--flip {
  flex-direction: row-reverse;
}
.row__copy {
  display: flex;
  flex: 0 0 440px;
  flex-direction: column;
  gap: 18px;
}
.row__visual {
  position: relative;
  flex: 1;
  min-width: 0;
}
.row__visual--read,
.row__visual--listen {
  padding: 40px 0 20px;
}
.row__visual--devices {
  aspect-ratio: 680 / 690;
  container-type: inline-size;
  --u: calc(100cqw / 680);
}
.row__window {
  position: absolute;
  left: calc(80 * var(--u));
  top: 0;
  width: calc(602 * var(--u));
}
.row__phone {
  position: absolute;
  left: 0;
  top: calc(150 * var(--u));
  width: calc(249 * var(--u));
  padding: calc(8 * var(--u));
  border-radius: calc(40 * var(--u));
}
.row__phone .phone__screen {
  border-radius: calc(32 * var(--u));
}
.points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}
.points li,
.checks li {
  display: flex;
  gap: 10px;
}
.points .icon,
.checks .icon {
  flex: none;
  color: var(--accent);
}
.points li {
  font-size: 16px;
  line-height: 24px;
}
.points .icon {
  margin-top: 2px;
}
@media (max-width: 1023.98px) {
  .row,
  .row--flip {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }
  .row__copy {
    flex-basis: auto;
  }
}
@media (max-width: 767.98px) {
  .rows {
    gap: 72px;
    padding-top: 80px;
  }
  .row,
  .row--flip {
    gap: 16px;
  }
  .row__copy {
    gap: 16px;
  }
  .row__copy .points {
    gap: 10px;
    padding-top: 0;
  }
  .row__visual--read,
  .row__visual--listen {
    padding: 12px 0 0;
  }
  .row__visual .window {
    border-radius: 10px;
  }
  .row__visual .window__bar {
    height: 21px;
    padding: 0 10px;
    gap: 5px;
  }
  .row__visual .window__dot {
    width: 7px;
    height: 7px;
  }
  .row__visual .window__address {
    display: none;
  }
  .row__visual--devices {
    aspect-ratio: auto;
    height: 562px;
    padding-top: 12px;
    container-type: normal;
  }
  .row__phone {
    position: relative;
    top: 0;
    width: 262px;
    margin: 0 auto;
    padding: 7px;
    border-radius: 36px;
  }
  .row__phone .phone__screen {
    border-radius: 30px;
  }
}

.features {
  gap: 56px;
  padding-top: 160px;
  padding-bottom: 140px;
}
.features .heading .lead {
  max-width: 720px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 48px 60px;
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (max-width: 1023.98px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 40px;
  }
}
@media (max-width: 767.98px) {
  .features {
    gap: 32px;
    padding-top: 88px;
    padding-bottom: 80px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* A green band: accent in the light theme; in the dark one a full-width accent would glare, so a deep green. */
.privacy {
  --band: var(--accent);
  --band-fg: var(--accent-fg);
  --band-eyebrow: var(--accent-fg);
  --band-tile: var(--accent-hover);
  gap: 56px;
  padding-block: 120px;
  background: var(--band);
  color: var(--band-fg);
}
:root[data-theme='dark'] .privacy {
  --band: var(--accent-soft);
  --band-fg: var(--fg);
  --band-eyebrow: var(--accent);
  --band-tile: var(--accent);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .privacy {
    --band: var(--accent-soft);
    --band-fg: var(--fg);
    --band-eyebrow: var(--accent);
    --band-tile: var(--accent);
  }
}
.privacy .eyebrow {
  color: var(--band-eyebrow);
}
.privacy__points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}
.privacy__point {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.privacy__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto !important;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  border-radius: 4px;
}
.privacy__link .icon {
  width: 16px;
  height: 16px;
  transition: translate 160ms var(--ease-out);
}
.privacy :focus-visible {
  outline-color: var(--band-fg);
}
@media (hover: hover) {
  .privacy__link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .privacy__link:hover .icon {
    translate: 2px 0;
  }
}
@media (max-width: 1023.98px) {
  .privacy__points {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 560px;
  }
}
@media (max-width: 767.98px) {
  .privacy {
    align-items: flex-start;
    gap: 32px;
    padding-block: 72px;
  }
}

.pricing {
  gap: 56px;
  padding-top: 140px;
}
.pricing__cards {
  display: grid;
  grid-template-columns: minmax(0, 384fr) minmax(0, 792fr);
  gap: 24px;
}
.card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: var(--surface);
  padding: 32px;
}
.plan-free {
  gap: 20px;
  border: 1px solid var(--border);
}
.plan-free__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 6px;
}
.plan-free__price .h2 {
  font-size: 44px;
  line-height: 52px;
  letter-spacing: -1px;
}
.plan-free__action {
  margin-top: auto;
}
.checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.checks li {
  font-size: 14px;
  line-height: 20px;
}
.plan-pro {
  gap: 24px;
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-card);
}
.plan-pro__name {
  display: flex;
  align-items: center;
  gap: 10px;
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background-color 150ms ease;
}
.plan input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.plan__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.plan__title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.plan__radio {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--border-strong);
  transition: box-shadow 150ms var(--ease-out);
}
.plan__name {
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}
.plan__badge {
  flex-shrink: 0;
  max-width: 100%;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font: 600 11px/14px var(--sans);
  letter-spacing: 0.44px;
  text-transform: uppercase;
}
.plan__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 6px;
}
.plan__amount {
  font-size: 28px;
  line-height: 34px;
  font-weight: 600;
  letter-spacing: -0.28px;
}
.plan__hint {
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}
/* Figma: the chosen plan's outline is 2 px and part of its size. */
.plan:has(input:checked) {
  border: 2px solid var(--accent);
  background: var(--accent-soft);
}
.plan:has(input:checked) .plan__radio {
  box-shadow: inset 0 0 0 6px var(--accent);
}
.plan:has(input:focus-visible) {
  box-shadow: var(--ring);
}
@media (hover: hover) {
  .plan:hover:not(:has(input:checked)) {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-card);
  }
}
.plan-pro__includes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
}
.divider {
  width: 100%;
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--border);
}
.purchase {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.purchase__status {
  display: flex;
  gap: 10px;
  font-size: 14px;
  line-height: 20px;
}
.purchase__status .icon {
  flex: none;
}
.purchase__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.purchase__actions--stack {
  flex-direction: column;
  gap: 10px;
}
/* Below 1280 the three plans would be too narrow next to Free: Pro on top, Free under it. */
@media (max-width: 1279.98px) {
  .pricing__cards {
    grid-template-columns: 1fr;
    max-width: 760px;
  }
  .plan-pro {
    order: -1;
  }
}
@media (max-width: 767.98px) {
  .pricing {
    gap: 28px;
    padding-top: 80px;
  }
  .pricing__cards {
    gap: 28px;
  }
  .card {
    padding: 24px 20px;
  }
  .plans {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .plan-pro__includes {
    grid-template-columns: 1fr;
  }
  .plan-free__action .btn {
    width: 100%;
  }
}

.faq {
  gap: 40px;
  padding-top: 140px;
}
.faq > .h2 {
  text-align: center;
}
.faq__list {
  max-width: 800px;
}
.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-radius: 6px;
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  transition: color 150ms ease;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary .icon {
  flex: none;
  color: var(--muted);
  transition:
    rotate 200ms var(--ease-out),
    color 150ms ease;
}
.faq__item[open] summary .icon {
  rotate: 180deg;
}
.faq__item summary:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
.faq__item p {
  padding-bottom: 20px;
  margin-top: -10px;
  color: var(--muted);
}
@media (hover: hover) {
  .faq__item summary:hover,
  .faq__item summary:hover .icon {
    color: var(--accent);
  }
}
@media (max-width: 767.98px) {
  .faq {
    gap: 16px;
    padding-top: 80px;
  }
}

.cta {
  padding: 140px var(--gutter) 120px;
}
.cta__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: var(--content);
  margin: 0 auto;
  padding: 72px 48px;
  border-radius: 20px;
  background: var(--accent-soft);
  text-align: center;
}
@media (max-width: 767.98px) {
  .cta {
    padding: 72px var(--gutter) 56px;
  }
  .cta__card {
    padding: 40px 20px;
  }
  .cta .phone-actions {
    padding-top: 6px;
  }
}

.footer {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 40px var(--gutter) 48px;
  border-top: 1px solid var(--border);
}
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}
@media (hover: hover) {
  .footer__links > a:hover {
    color: var(--fg);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}
@media (max-width: 767.98px) {
  .footer {
    padding: 28px var(--gutter) 36px;
  }
  .footer__top {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .footer .lang__menu {
    left: 0;
    right: auto;
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  max-width: calc(100% - 32px);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--fg);
  color: var(--bg);
  font-size: 14px;
  line-height: 20px;
  box-shadow: var(--shadow-popup);
  translate: -50% 16px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 200ms ease,
    translate 200ms var(--ease-out);
}
.toast[data-shown] {
  opacity: 1;
  translate: -50% 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
}

/* 404.html (build.mjs). */
.not-found__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* No word left alone on the last line of a paragraph. */
.lead,
.body,
.hero__lead,
.faq__item p,
.points li,
.checks li {
  text-wrap: pretty;
}

/* Figma: the window around a picture is 2 px wider than its row's picture box (the outline sits outside). */
.row__visual--read .window,
.row__visual--listen .window {
  margin-right: -2px;
}
@media (max-width: 767.98px) {
  .row__visual--read .window,
  .row__visual--listen .window {
    margin-inline: -1px;
  }
}

/* Tablets: the three plans one under another, as on phones (side by side they'd be too narrow). */
@media (max-width: 1023.98px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}
