@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/Manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* The app's palette: iOS system colors, no accent. Light by default, dark
   from the system or from the appearance menu (data-theme on <html>). */
:root {
  color-scheme: light;

  --bg: #f2f2f7;
  --surface: #ffffff;
  --text: #000000;
  --text-soft: rgb(60 60 67 / 0.74);
  --line: rgb(60 60 67 / 0.14);
  --fill: rgb(118 118 128 / 0.12);
  --button: #000000;
  --on-button: #ffffff;
  --glass: rgb(255 255 255 / 0.72);
  --glass-line: rgb(0 0 0 / 0.08);
  --glass-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 0.1);
  --glow: radial-gradient(closest-side, rgb(255 255 255 / 0.95), rgb(255 255 255 / 0));
  --device-shadow: 0 2.5rem 4rem -1rem rgb(0 0 0 / 0.28), 0 0.75rem 1.5rem -0.5rem rgb(0 0 0 / 0.18);
  --device-ring: 0 0 0 1px rgb(0 0 0 / 0.5);

  --wrap: 70rem;
  --prose: 42rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(4.5rem, 10vw, 8rem);
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #000000;
    --surface: #1c1c1e;
    --text: #ffffff;
    --text-soft: rgb(235 235 245 / 0.66);
    --line: rgb(84 84 88 / 0.6);
    --fill: rgb(118 118 128 / 0.24);
    --button: #ffffff;
    --on-button: #000000;
    --glass: rgb(44 44 46 / 0.66);
    --glass-line: rgb(255 255 255 / 0.12);
    --glass-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 0.5);
    --glow: radial-gradient(closest-side, rgb(120 120 128 / 0.28), rgb(120 120 128 / 0));
    --device-shadow: 0 2.5rem 5rem -1rem rgb(0 0 0 / 0.9);
    --device-ring: 0 0 0 1px rgb(255 255 255 / 0.16);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --surface: #1c1c1e;
  --text: #ffffff;
  --text-soft: rgb(235 235 245 / 0.66);
  --line: rgb(84 84 88 / 0.6);
  --fill: rgb(118 118 128 / 0.24);
  --button: #ffffff;
  --on-button: #000000;
  --glass: rgb(44 44 46 / 0.66);
  --glass-line: rgb(255 255 255 / 0.12);
  --glass-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 0.5);
  --glow: radial-gradient(closest-side, rgb(120 120 128 / 0.28), rgb(120 120 128 / 0));
  --device-shadow: 0 2.5rem 5rem -1rem rgb(0 0 0 / 0.9);
  --device-ring: 0 0 0 1px rgb(255 255 255 / 0.16);
}

/* Screenshots that follow the theme. */
.shot-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot-light {
    display: none;
  }

  :root:not([data-theme="light"]) .shot-dark {
    display: block;
  }
}

:root[data-theme="dark"] .shot-light {
  display: none;
}

:root[data-theme="dark"] .shot-dark {
  display: block;
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--button);
  color: var(--on-button);
  border-radius: 999px;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.kicker {
  margin-bottom: 0.9rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.lede {
  margin-top: 1.25rem;
  font-size: clamp(1.125rem, 1.9vw, 1.3rem);
  color: var(--text-soft);
  max-width: 34rem;
}

/* Header */

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.125rem;
  text-decoration: none;
}

.brand img {
  width: 2rem;
  height: 2rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.6vw, 1.6rem);
  font-size: 0.9375rem;
  font-weight: 600;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.nav a:hover {
  text-decoration: underline;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-soft);
}

.lang [aria-current] {
  color: var(--text);
}

@media (max-width: 44rem) {
  .nav .nav-section {
    display: none;
  }
}

/* Appearance menu: the one glass control, like in the app. */

.theme {
  position: relative;
}

.glass {
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
}

.theme-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
}

.theme-button svg {
  width: 1.3rem;
  height: 1.3rem;
}

.theme-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 13rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  border-radius: 1.25rem;
  transform-origin: top right;
  animation: menu-in 0.22s var(--ease);
}

.theme-menu[hidden] {
  display: none;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
}

.theme-menu button {
  display: grid;
  grid-template-columns: 1.25rem 1fr 1.25rem;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 0;
  border-radius: 0.85rem;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.theme-menu button:hover,
.theme-menu button:focus-visible {
  background: var(--fill);
  outline: none;
}

.theme-menu svg {
  width: 1.15rem;
  height: 1.15rem;
}

.theme-menu .check {
  visibility: hidden;
}

.theme-menu [aria-checked="true"] .check {
  visibility: visible;
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2.25rem;
}

.store-button {
  display: inline-flex;
  align-items: center;
  min-height: 3.25rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: var(--button);
  color: var(--on-button);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}

.store-button:hover {
  opacity: 0.86;
}

.store-button:active {
  transform: scale(0.97);
}

.promise {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-soft);
}

/* Devices, drawn around the screenshots. */

.device {
  position: relative;
  background:
    linear-gradient(145deg, #5a5a60 0%, #2a2a2e 18%, #18181b 50%, #2c2c30 82%, #4a4a50 100%);
  box-shadow:
    inset 0 0 0 1.5px rgb(255 255 255 / 0.16),
    inset 0 0 0 4px rgb(0 0 0 / 0.55),
    var(--device-ring),
    var(--device-shadow);
}

.device .screen {
  position: relative;
  overflow: hidden;
  background: #000;
}

.device .screen img {
  width: 100%;
}

.iphone {
  width: 100%;
  padding: 3.4%;
  border-radius: 15% / 7%;
}

.iphone .screen {
  border-radius: 12.4% / 5.75%;
}

/* Dynamic Island. */
.iphone .screen::after {
  content: "";
  position: absolute;
  top: 1.25%;
  left: 50%;
  width: 28.5%;
  height: 3.75%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}

/* Action and volume buttons on the left, side button on the right. */
.iphone::before,
.iphone::after {
  content: "";
  position: absolute;
  width: 0.9%;
  border-radius: 2px;
  background: linear-gradient(90deg, #2a2a2e, #4a4a50);
}

.iphone::before {
  left: -0.8%;
  top: 16%;
  height: 22%;
  background: linear-gradient(180deg, #3a3a40 0 20%, transparent 20% 32%, #3a3a40 32% 62%, transparent 62% 70%, #3a3a40 70% 100%);
}

.iphone::after {
  right: -0.8%;
  top: 25%;
  height: 9%;
}

.duo-open {
  width: 100%;
  padding: 1.7%;
  border-radius: 5.6% / 7.8%;
}

.duo-open .screen {
  border-radius: 4.1% / 5.8%;
}

.duo-closed {
  width: 100%;
  padding: 1.6%;
  /* Square on the hinge side, round on the open side. */
  border-radius: 2.4% 16% 16% 2.4% / 1.6% 11% 11% 1.6%;
}

.duo-closed .screen {
  border-radius: 1.2% 14.6% 14.6% 1.2% / 0.8% 10% 10% 0.8%;
}

/* The hinge along the left edge. */
.duo-closed::before {
  content: "";
  position: absolute;
  left: -2.6%;
  top: 1.4%;
  bottom: 1.4%;
  width: 4%;
  z-index: -1;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(90deg, #3c3c42, #232327);
}

/* Two buttons on the top edge. */
.duo-closed::after {
  content: "";
  position: absolute;
  top: -0.9%;
  left: 48%;
  width: 30%;
  height: 0.9%;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, #44444a 0 46%, transparent 46% 54%, #44444a 54% 100%);
}

/* Side button on the right edge. */
.duo-closed .side-button {
  position: absolute;
  right: -0.9%;
  top: 29%;
  width: 0.9%;
  height: 15%;
  border-radius: 0 2px 2px 0;
  background: #44444a;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0 var(--section);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.hero-device {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-device::before {
  content: "";
  position: absolute;
  inset: -20% -35%;
  z-index: -1;
  background: var(--glow);
}

.hero-device .iphone {
  max-width: 19rem;
}

@media (max-width: 48rem) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-device .iphone {
    max-width: 15rem;
  }
}

/* Sections */

.section {
  padding: var(--section) 0;
}

.section-alt {
  background: var(--surface);
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head p:not(.kicker) {
  margin-top: 1rem;
  font-size: 1.15rem;
  color: var(--text-soft);
}

/* Segmented control: radios, so it works without JavaScript. */

.segmented {
  display: inline-flex;
  gap: 0.2rem;
  margin: 0;
  padding: 0.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--fill);
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented label {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 1.15rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.segmented input:checked + label {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.14), 0 0 0 0.5px rgb(0 0 0 / 0.04);
}

.section-alt .segmented input:checked + label {
  background: var(--bg);
}

.segmented input:focus-visible + label {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* Stacked views that the segmented control switches between. */

.views {
  display: grid;
}

.views > * {
  grid-area: 1 / 1;
  transition: opacity 0.45s var(--ease), transform 0.55s var(--ease), visibility 0.45s;
}

.views > .off {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.94);
}

/* iPhone Duo */

.duo-demo {
  display: grid;
  justify-items: center;
  gap: clamp(2rem, 4vw, 3rem);
}

.duo-views {
  width: 100%;
  max-width: 54rem;
  align-items: center;
  justify-items: center;
}

.duo-view {
  isolation: isolate;
  margin: 0;
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 1.5rem;
}

.duo-view.closed .duo-closed {
  max-width: min(19rem, 62%);
}

.duo-view figcaption,
.access-device figcaption {
  font-size: 0.9375rem;
  color: var(--text-soft);
  text-align: center;
}

.duo-demo:has(#duo-closed:checked) .duo-view.open,
.duo-demo:has(#duo-open:checked) .duo-view.closed {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.94);
}

.duo-demo:has(#duo-closed:checked) .duo-view.closed,
.duo-demo:has(#duo-open:checked) .duo-view.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.duo-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  padding: clamp(2rem, 4vw, 2.5rem) 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.duo-facts p,
.more p {
  margin-top: 0.4rem;
  color: var(--text-soft);
}

@media (max-width: 48rem) {
  .duo-facts {
    grid-template-columns: 1fr;
  }
}

/* Accessibility */

.access {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.access-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.access-list li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0 0.85rem;
}

.access-list .icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
  background: var(--fill);
}

.access-list svg {
  width: 1.2rem;
  height: 1.2rem;
}

.access-list p {
  font-size: 0.9375rem;
  color: var(--text-soft);
}

.access-demo {
  display: grid;
  justify-items: center;
  gap: 1.75rem;
}

.access-views {
  width: 100%;
  max-width: 17.5rem;
}

.access-device {
  margin: 0;
}

.access-demo:has(#look-standard:checked) .access-device:not(.standard),
.access-demo:has(#look-large:checked) .access-device:not(.large),
.access-demo:has(#look-dark:checked) .access-device:not(.dark) {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.94);
}

.access-demo:has(#look-standard:checked) .access-device.standard,
.access-demo:has(#look-large:checked) .access-device.large,
.access-demo:has(#look-dark:checked) .access-device.dark {
  opacity: 1;
  visibility: visible;
  transform: none;
}

@media (max-width: 52rem) {
  .access {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 30rem) {
  .access-list {
    grid-template-columns: 1fr;
  }

  .segmented label {
    padding: 0 0.75rem;
    font-size: 0.875rem;
  }
}

/* Currencies */

.codes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.codes li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1.05rem 0 0.85rem;
  border-radius: 999px;
  background: var(--fill);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}

.codes li span {
  font-size: 1.15rem;
}

.more {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

@media (max-width: 48rem) {
  .more {
    grid-template-columns: 1fr;
  }
}

/* Free */

.free {
  text-align: center;
}

.free-line {
  font-size: clamp(2.2rem, 6.5vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.free-line span {
  color: var(--text-soft);
}

.free-note {
  max-width: 36rem;
  margin: 1.75rem auto 0;
  font-size: 1.15rem;
  color: var(--text-soft);
}

.closing {
  text-align: center;
}

.closing .app-icon {
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 1.5rem;
  border-radius: 22%;
  box-shadow: var(--device-ring), 0 1rem 2rem -0.5rem rgb(0 0 0 / 0.3);
}

.closing .lede {
  margin-inline: auto;
}

.closing .actions {
  justify-content: center;
}

/* Prose pages */

.page {
  padding: clamp(3rem, 7vw, 5rem) 0 var(--section);
}

.prose {
  max-width: var(--prose);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.prose h1 {
  font-size: clamp(2.25rem, 5vw, 3rem);
}

.prose h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 0.75rem;
}

.prose p,
.prose ul {
  margin: 0 0 1rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.meta {
  margin-top: 0.75rem !important;
  color: var(--text-soft);
}

.summary {
  margin: 2rem 0 !important;
  padding: 1.25rem 1.5rem;
  border-radius: 1.25rem;
  background: var(--surface);
  font-weight: 600;
}

.faq {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}

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

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  padding: 1rem 0;
  font-weight: 700;
}

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

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-soft);
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  padding-bottom: 1rem;
  color: var(--text-soft);
}

address {
  font-style: normal;
}

/* Footer */

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

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a,
.maker a {
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Keep each phrase of the free line whole. */
.free-line b {
  font-weight: inherit;
  white-space: nowrap;
}
