/* AI Notepad — site styles
   Palette comes from the app icon (deep navy, amber) on a warm paper background.
   Dark mode follows the system setting. */

:root {
  color-scheme: light dark;

  --paper: #f5f3ee;
  --paper-2: #ebe7de;
  --surface: #ffffff;
  --ink: #0c1f33;
  --ink-2: #43536a;
  --muted: #5c6a80;
  --line: rgba(12, 31, 51, 0.12);
  --dot: rgba(12, 31, 51, 0.17);

  --navy: #12304f;
  --navy-deep: #0a2036;
  --navy-lift: #1d4a78;
  --amber: #e8a028;
  --amber-shadow: #f8c878;
  --amber-ink: #8a5200;
  --amber-tint: #fbebcd;
  --blue: #2a7bf5;

  --btn-bg: var(--navy);
  --btn-fg: #ffffff;

  --shadow: 0 1px 2px rgba(12, 31, 51, 0.05), 0 20px 40px -28px rgba(12, 31, 51, 0.35);
  --radius-lg: 28px;
  --radius: 18px;
  --container: 1120px;
  --gutter: clamp(18px, 4vw, 40px);

  --font: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #071827;
    --paper-2: #0a2034;
    --surface: #0f2840;
    --ink: #f4f0e7;
    --ink-2: #bcc7d4;
    --muted: #93a3b5;
    --line: rgba(255, 255, 255, 0.12);
    --dot: rgba(255, 255, 255, 0.13);

    --amber-shadow: #9c6410;
    --amber-ink: #f3b655;
    --amber-tint: rgba(232, 160, 40, 0.16);

    --btn-bg: #f4f0e7;
    --btn-fg: #0c1f33;

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 20px 40px -28px rgba(0, 0, 0, 0.7);
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure {
  margin: 0;
}

img, svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Type ---------- */

.display,
.section-head h2,
.devices-copy h2,
.cta h2,
.prose h1 {
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-wrap: balance;
}

.display {
  font-size: clamp(1.85rem, 6.4vw, 4.25rem);
  text-shadow: 0.05em 0.05em 0 var(--amber-shadow);
}

.display-xl {
  display: block;
  font-size: 1.55em;
  font-weight: 900;
  line-height: 1;
}

.section-head h2,
.devices-copy h2,
.cta h2 {
  font-size: clamp(1.7rem, 3.8vw, 2.75rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--amber-ink);
  font-size: 0.8125rem;
  font-stretch: 112%;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.lead {
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 0.9rem + 0.7vw, 1.3125rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.fineprint {
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---------- Buttons, pills, badges ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  opacity: 0.88;
}

.btn:active {
  transform: scale(0.97);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease;
}

.pill:hover {
  border-color: var(--amber);
}

.pill-tag {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--amber);
  color: #231500;
  font-size: 0.6875rem;
  font-stretch: 112%;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.store-badge {
  display: block;
  border-radius: 9px;
  transition: transform 0.15s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
}

.store-badge img {
  width: auto;
  height: 52px;
}

/* ---------- Header ---------- */

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

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--ink);
  font-size: 1rem;
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(40px, 7vw, 88px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.4px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 10%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 10%, transparent 78%);
  pointer-events: none;
}

.hero > * {
  position: relative;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.hero-copy .display {
  max-width: 14em;
  margin-top: 4px;
}

.hero-copy .lead {
  max-width: 36em;
}

.hero-copy .store-badges {
  justify-content: center;
  margin-top: 6px;
}

.hero-copy .fineprint {
  margin-top: -8px;
}

/* Screenshot switcher: radio buttons + :has(), no JavaScript. */

.showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: clamp(36px, 6vw, 64px);
}

.segmented {
  position: relative;
  display: inline-flex;
  gap: 2px;
  max-width: 100%;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.segmented::-webkit-scrollbar {
  display: none;
}

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

.segmented label {
  flex: none;
  padding: 7px 18px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.segmented label:hover {
  color: var(--ink);
}

.segmented input:checked + label {
  background: var(--btn-bg);
  color: var(--btn-fg);
}

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

.stage {
  position: relative;
  display: grid;
  width: 100%;
  border-radius: var(--radius-lg);
  padding: clamp(14px, 4.4vw, 56px) clamp(12px, 4vw, 56px) 0;
  background: radial-gradient(120% 90% at 50% 0%, var(--navy-lift) 0%, var(--navy) 48%, var(--navy-deep) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.1px, transparent 1.4px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(#000, transparent 70%);
  mask-image: linear-gradient(#000, transparent 70%);
}

.shot {
  position: relative;
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s 0.35s;
}

.shot img {
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
  /* The window's rounded corners are in the image's alpha channel */
  filter: drop-shadow(0 18px 30px rgba(2, 10, 20, 0.5)) drop-shadow(0 0 1px rgba(2, 10, 20, 0.6));
}

.shot figcaption {
  padding: clamp(16px, 3.2vw, 30px) 8px clamp(18px, 3.4vw, 32px);
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.9375rem, 0.85rem + 0.4vw, 1.125rem);
  font-weight: 500;
  text-align: center;
}

.showcase:has(#shot-1:checked) .shot[data-shot="1"],
.showcase:has(#shot-2:checked) .shot[data-shot="2"],
.showcase:has(#shot-3:checked) .shot[data-shot="3"],
.showcase:has(#shot-4:checked) .shot[data-shot="4"],
.showcase:has(#shot-5:checked) .shot[data-shot="5"] {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

/* Browsers without :has() get all three screenshots stacked. */
@supports not selector(:has(*)) {
  .segmented {
    display: none;
  }

  .shot {
    grid-area: auto;
    opacity: 1;
    visibility: visible;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(64px, 9vw, 120px);
}

.section-tint {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 44rem;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head > p:not(.eyebrow) {
  color: var(--ink-2);
  font-size: 1.125rem;
}

/* ---------- Feature cards ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 6px;
  font-size: 1.3125rem;
  font-stretch: 112%;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.card p {
  color: var(--ink-2);
  font-size: 1rem;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--amber-tint);
  color: var(--amber-ink);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-wide {
  grid-column: span 4;
  flex-direction: row;
  gap: 32px;
}

.card-wide .card-body {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 12px;
}

.card-wide .vignette {
  flex: 1.15 1 0;
  align-self: stretch;
  justify-content: center;
  margin-top: 0;
}

.card-dark {
  border-color: transparent;
  background:
    radial-gradient(rgba(255, 255, 255, 0.12) 1.1px, transparent 1.4px) 0 0 / 18px 18px,
    radial-gradient(130% 100% at 100% 0%, var(--navy-lift) 0%, var(--navy) 50%, var(--navy-deep) 100%);
  color: #ffffff;
}

.card-dark p {
  color: rgba(255, 255, 255, 0.82);
}

.card-dark .card-icon {
  background: rgba(232, 160, 40, 0.2);
  color: #f6bd5e;
}

.checks {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 16px 0 0;
  list-style: none;
  font-weight: 600;
}

.checks li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checks li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23231500' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* Small decorative UI sketches inside the cards. */

.vignette {
  margin-top: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 0.875rem;
  line-height: 1.35;
}

.v-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v-bubble {
  align-self: flex-end;
  max-width: 88%;
  padding: 9px 14px;
  border-radius: 14px 14px 4px 14px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 500;
}

.v-resend {
  align-self: flex-end;
  color: var(--muted);
  font-size: 0.75rem;
}

.v-models {
  display: flex;
  gap: 2px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.6875rem;
  white-space: nowrap;
}

.v-models span {
  padding: 3px 7px;
  border-radius: 6px;
  color: var(--muted);
}

.v-models .is-active {
  background: var(--line);
  background: color-mix(in srgb, var(--ink) 12%, transparent);
  color: var(--ink);
  font-weight: 600;
}

.v-lines {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.v-lines i {
  height: 8px;
  border-radius: 4px;
  background: var(--line);
  background: color-mix(in srgb, var(--ink) 13%, transparent);
}

.v-lines i:nth-child(1) { width: 94%; }
.v-lines i:nth-child(2) { width: 78%; }
.v-lines i:nth-child(3) { width: 86%; }
.v-lines i:nth-child(4) { width: 42%; }

.v-folders {
  display: grid;
  gap: 2px;
  padding: 10px;
}

.v-folders span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 9px;
  color: var(--ink-2);
  font-weight: 500;
}

.v-folders span::before {
  content: "";
  flex: none;
  width: 16px;
  height: 12px;
  border: 1.6px solid #e0586c;
  border-radius: 3px;
}

.v-folders b {
  margin-left: auto;
  color: var(--muted);
  font-weight: 500;
}

.v-folders .is-active {
  background: var(--line);
  background: color-mix(in srgb, var(--blue) 14%, transparent);
  color: var(--blue);
}

.v-params {
  display: grid;
  gap: 14px;
}

.v-params div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  color: var(--ink-2);
  font-weight: 500;
}

.v-params b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.v-params i {
  position: relative;
  grid-column: 1 / -1;
  height: 5px;
  border-radius: 3px;
  background: var(--blue);
  background: linear-gradient(to right, var(--blue) var(--v), color-mix(in srgb, var(--ink) 14%, transparent) var(--v));
}

.v-params i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: var(--v);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(12, 31, 51, 0.12), 0 2px 5px rgba(12, 31, 51, 0.3);
  transform: translate(-50%, -50%);
}

.v-sync {
  display: grid;
  gap: 2px;
  padding: 10px;
}

.v-sync span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  color: var(--ink);
  font-weight: 600;
}

.v-sync b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--muted);
  font-weight: 500;
}

.v-sync b::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2fb36a;
}

/* ---------- iPhone and iPad ---------- */

.devices {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.devices-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.devices-copy > p:not(.eyebrow):not(.fineprint) {
  color: var(--ink-2);
  font-size: 1.125rem;
}

.devices-copy .store-badges {
  margin-top: 8px;
}

/* An iPad with an iPhone in front of it. Bezels and corner radii are fractions
   of each device's width, the same proportions as the App Store slides. */
.devices-visual {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 100 / 74;
}

.device {
  position: absolute;
}

.device-ipad {
  top: 0;
  left: 0;
  width: 86%;
}

.device-iphone {
  right: 0;
  bottom: 0;
  width: 27%;
}

.device-body {
  padding: 1.92%;
  border-radius: 14.9% / 7%;
  background: #08090b;
  box-shadow: 0 0 0 1px #34373c, inset 0 0 0 1px #1c1e22, 0 26px 44px -14px rgba(2, 10, 20, 0.55);
}

.device-screen {
  position: relative;
  border-radius: 13.5% / 6.21%;
  overflow: hidden;
}

.device-ipad .device-body {
  padding: 1.37%;
  border-radius: 2.98% / 3.94%;
}

.device-ipad .device-screen {
  border-radius: 1.66% / 2.21%;
}

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

/* Simulator captures leave the Dynamic Island out */
.device-island {
  position: absolute;
  top: 1.46%;
  left: 50%;
  width: 28.6%;
  height: 3.87%;
  border-radius: 999px;
  background: #000000;
  transform: translateX(-50%);
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 22px;
  border-top: 2px solid var(--ink);
  counter-increment: step;
}

.steps li::before {
  content: "0" counter(step);
  font-size: 2.5rem;
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  text-shadow: 0.06em 0.06em 0 var(--amber-shadow);
}

.steps h3 {
  margin-top: 8px;
  font-size: 1.1875rem;
  font-stretch: 112%;
  font-weight: 700;
  line-height: 1.25;
}

.steps p {
  color: var(--ink-2);
  font-size: 1rem;
}

/* ---------- Call to action ---------- */

.section-cta {
  padding-top: 0;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: clamp(44px, 8vw, 96px) clamp(22px, 6vw, 80px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(rgba(255, 255, 255, 0.13) 1.1px, transparent 1.4px) 0 0 / 18px 18px,
    radial-gradient(120% 120% at 50% 0%, var(--navy-lift) 0%, var(--navy) 50%, var(--navy-deep) 100%);
  color: #ffffff;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta h2 {
  max-width: 16em;
  text-shadow: 0.05em 0.05em 0 rgba(232, 160, 40, 0.55);
}

.cta > p:not(.fineprint) {
  max-width: 34em;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.125rem;
}

.cta .store-badges {
  justify-content: center;
  margin-top: 12px;
}

.cta .fineprint {
  color: rgba(255, 255, 255, 0.66);
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 56px 40px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
}

.footer-brand p {
  max-width: 22em;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer h2 {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.75rem;
  font-stretch: 112%;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.site-footer li a {
  color: var(--ink-2);
  font-size: 0.9375rem;
  text-decoration: none;
}

.site-footer li a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-underline-offset: 4px;
}

.footer-legal {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}

/* ---------- FAQ, privacy policy, license page, 404 ---------- */

.page {
  padding-block: clamp(40px, 7vw, 88px) clamp(64px, 9vw, 120px);
}

.prose {
  max-width: 44rem;
  margin-inline: auto;
}

.prose h1 {
  margin: 0.4em 0 0.7em;
  font-size: clamp(1.7rem, 4.2vw, 2.75rem);
  text-shadow: 0.05em 0.05em 0 var(--amber-shadow);
}

.prose h1 strong {
  font-weight: inherit;
}

.prose h2 {
  margin: 2.2em 0 0.6em;
  padding-top: 1.5em;
  border-top: 1px solid var(--line);
  font-size: 1.3125rem;
  font-stretch: 112%;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.prose h1 + h2 {
  margin-top: 0;
}

.prose h3 {
  margin: 1.6em 0 0.5em;
  font-size: 1.0625rem;
  font-weight: 700;
}

.prose p,
.prose ul,
.prose ol {
  margin-block: 0.9em;
  color: var(--ink-2);
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li {
  margin-block: 0.35em;
}

.prose li::marker {
  color: var(--amber);
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-color: currentColor;
}

.not-found .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-height: 46vh;
  justify-content: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .card {
    grid-column: span 1;
  }

  .card-wide {
    grid-column: span 2;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 28px;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }

  .devices {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .card,
  .card-wide {
    grid-column: auto;
  }

  .card {
    padding: 22px;
  }

  .card-wide {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .devices-visual {
    aspect-ratio: 100 / 96;
  }

  .device-ipad {
    width: 94%;
  }

  .device-iphone {
    width: 38%;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .store-badges {
    gap: 12px;
  }

  .store-badge img {
    height: 44px;
  }

  /* Like the app: older model tabs scroll off to the left. */
  .v-models {
    justify-content: flex-end;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 400px) {
  .header-inner {
    gap: 12px;
  }

  .brand {
    gap: 10px;
    font-size: 0.9375rem;
  }

  .btn {
    padding: 8px 14px;
  }

  .segmented label {
    padding: 7px 12px;
    font-size: 0.875rem;
  }
}

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

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