/* Notes Plus website — shared layout (nav, homepage, footer, download blocks). */

@font-face { font-family: "SF Pro Display Local"; src: url("/assets/fonts/sf-pro-display-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "SF Pro Display Local"; src: url("/assets/fonts/sf-pro-display-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "SF Pro Display Local"; src: url("/assets/fonts/sf-pro-display-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #ffffff;
  --bg-elevated: #f7f7f8;
  --surface: #f0f0f2;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --ink-faint: #a1a1a6;
  --line: rgb(0 0 0 / 0.08);
  --cta-bg: #1d1d1f;
  --cta-ink: #ffffff;
  --highlight: #f7b2bd;
  --marker: #F8D24D;
  --scribble: #b98cf5;
  --shadow-cta: 0 20px 25px -5px rgb(0 0 0 / 0.18), 0 8px 10px -6px rgb(0 0 0 / 0.18);
  --shadow-frame: 0 30px 60px -20px rgb(0 0 0 / 0.22);
  --radius-lg: 40px;
  --font: system-ui, -apple-system, "SF Pro Display Local", "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, video { display: block; max-width: 100%; height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  transition: box-shadow .2s;
}
.nav.is-scrolled { box-shadow: 0 8px 15px -4px rgb(0 0 0 / 0.06); }
.nav-inner {
  max-width: 1720px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 32px;
  transition: padding .3s cubic-bezier(.22, .61, .36, 1);
}
.nav.is-scrolled .nav-inner { padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; height: 40px; gap: 12px; text-decoration: none; font-weight: 600; font-size: 19px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; filter: drop-shadow(0 1px 1.5px rgb(0 0 0 / .12)) drop-shadow(0 3px 6px rgb(0 0 0 / .08)); }
.brand-name {
  font-family: "SF Pro Display Local", system-ui, -apple-system, sans-serif;
  font-size: 25px; font-weight: 700; line-height: 1;
  letter-spacing: -0.045em; color: var(--ink); white-space: nowrap;
}
.version {
  align-self: flex-start; margin-top: 4px; margin-left: -4px;
  padding: .25em .5em .33em; border-radius: .5em;
  background: #ffe58a; color: #5c4600;
  font-size: 9.5px; font-weight: 600; line-height: 1; letter-spacing: -0.025em;
  box-shadow: 0 1px 3.5px rgb(157 119 21 / .22);
  transition: font-size .45s cubic-bezier(.22, .61, .36, 1), margin-top .45s cubic-bezier(.22, .61, .36, 1);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 11px; border-radius: 11px;
  color: var(--ink); font-size: 14px; font-weight: 600; line-height: 20px; text-decoration: none;
  transition: background .15s;
}
.nav-link:hover, .nav-link:visited { color: var(--ink); }
.nav-link:hover { background: var(--surface); }
.nav-link svg { width: 16px; height: 16px; }
.nav-link.nav-cta { gap: 5px; }
.nav-link.nav-cta .cta-apple { width: 12px; height: 15px; transform: translateY(-1px); }
.nav-link.nav-cta .cta-windows { width: 13px; height: 13px; margin-right: 3px; }
.nav-link.nav-cta { background: var(--surface); padding: 8px 14px; margin-left: 6px; }
.nav-link.nav-cta:hover { background: color-mix(in oklab, var(--surface) 80%, var(--ink) 8%); }

/* Language menu (static links in each page, one per hreflang alternate that exists) */
.lang-switch { position: relative; }
.lang-switch > summary { gap: 6px; cursor: pointer; list-style: none; user-select: none; }
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch[open] > summary { background: var(--surface); }
.lang-switch > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.lang-flag { display: block; flex: none; width: 20px; height: 15px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.nav-link svg.lang-chevron { width: 12px; height: 12px; margin-left: -1px; color: var(--ink-soft); transition: transform .2s; }
.lang-switch[open] .lang-chevron { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 210px; margin: 0; padding: 6px; list-style: none;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg);
  box-shadow: 0 12px 32px -8px rgb(0 0 0 / .18), 0 2px 6px rgb(0 0 0 / .06);
}
/* Phones: long "Download" labels (uk, fr, ja) push the flag button left, so a
   menu aligned to it would leave the screen. Align it to the screen edge instead;
   the nav's backdrop-filter makes .nav the containing block for fixed children. */
@media (max-width: 640px) {
  .lang-menu { position: fixed; top: calc(100% - 4px); right: 16px; }
}
.lang-menu li { margin: 0; padding: 0; }
.lang-menu li > a,
.lang-menu li > span {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 9px;
  color: var(--ink); font-size: 14px; font-weight: 500; line-height: 20px; white-space: nowrap;
  text-decoration: none;
}
.lang-menu li > a:hover { background: var(--surface); }
.lang-menu li > a:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.lang-menu li > [aria-current] { font-weight: 600; background: var(--surface); cursor: default; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 22px; border-radius: 16px;
  font: 600 17px/1.2 var(--font);
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-dark { background: var(--cta-bg); color: var(--cta-ink); box-shadow: var(--shadow-cta); }
.btn-dark svg { fill: currentColor; }
.btn-soft { background: var(--surface); color: var(--ink); }
.btn-soft svg { fill: currentColor; }
.badge {
  display: inline-block; padding: 3px 7px; border-radius: 7px;
  background: var(--cta-bg); color: var(--cta-ink);
  font-size: 13px; font-weight: 700;
}
.btn small { font-weight: 500; opacity: .6; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { max-width: 1600px; margin: 0 auto; padding: clamp(56px, 7vw, 104px) 24px 0; text-align: center; }
.hero h1 {
  margin: 0 auto;
  font-size: clamp(44px, 7.6vw, 96px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 700;
  /*max-width: 13em;*/
  text-wrap: balance;
}
.marker {
  position: relative; white-space: nowrap; isolation: isolate;
}
.marker::after {
  content: ""; position: absolute; z-index: -1;
  left: -0.08em; right: -0.08em; bottom: 0.02em; height: 0.42em;
  background: var(--marker);
  transform: skewX(-4deg);
}
.hero-sub {
  max-width: 36em; margin: 32px auto 0;
  font-size: 21px; line-height: 1.5; color: var(--ink-soft);
  text-wrap: balance;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 36px; }
.hero .dl-row { margin-top: 40px; }
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-sub a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, currentColor 28%, transparent);
  transition: text-decoration-color .15s ease;
}
.hero-sub a:hover, .hero-sub a:focus-visible {
  text-decoration-style: solid;
  text-decoration-color: currentColor;
}
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 18px; margin-top: 24px;
  font-size: 14px; line-height: 20px; color: var(--ink-soft);
}
.hero-status { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 10px; margin: 0; }
.status-pill {
  display: inline-flex; white-space: nowrap; flex-shrink: 0; align-items: center; gap: 7px;
  padding: 3px 10px 3px 8px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-elevated);
  color: var(--ink); font-size: 13px; font-weight: 600;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #f5a623;
  box-shadow: 0 0 0 3px color-mix(in oklab, #f5a623 22%, transparent);
}
.status-dot-free { background: #34c759; box-shadow: 0 0 0 3px color-mix(in oklab, #34c759 22%, transparent); }
.hero-meta-divider { width: 1px; height: 16px; background: var(--line); }
.hero-meta-links { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; }
.hero-meta-links a {
  color: var(--ink-soft); font-weight: 500; text-decoration: none;
  transition: color .15s;
}
.hero-meta-links a + a::before {
  content: "·"; display: inline-block; margin: 0 10px; color: var(--ink-faint);
}
.hero-meta-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- Media frame ---------- */
.stage { max-width: 1120px; margin: 80px auto 0; padding: 0 24px; text-align: center; }
.frame { margin: 0; }
.frame video, .frame img { width: 100%; border-radius: 12px; }
/* Break out of the 1120px column to show an image at its native width (max 1400px). */
.frame-wide, .card .frame-wide {
  --wide: min(var(--max-wide, 1400px), calc(100vw - 48px));
  width: var(--wide);
  max-width: none;
  margin-left: calc((100% - var(--wide)) / 2);
  align-self: flex-start;
}
@media (max-width: 640px) { .frame-wide, .card .frame-wide { --wide: calc(100vw - 32px); } }
.psst {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px; font-size: 14px; font-weight: 600; color: var(--ink-faint);
  text-decoration: none;
}
.psst:hover { color: var(--ink-soft); }
.psst svg { width: 14px; height: 14px; fill: currentColor; }

/* ---------- Story ---------- */
.story { max-width: 760px; margin: 120px auto 0; padding: 0 24px; text-align: center; }
.story p { font-size: 22px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 20px; text-wrap: pretty; }
.story p strong { color: var(--ink); }
.story a { color: var(--ink); font-weight: 600; text-decoration-color: currentColor; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.story a:hover { text-decoration-thickness: 2px; }

/* ---------- Icon grid ---------- */
.icon-grid {
  max-width: 1120px; margin: 120px auto 0; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px 24px;
}
.icon-item { text-align: center; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.icon-item svg { width: 60px; height: 60px; stroke: currentColor; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.icon-item:hover svg { transform: scale(1.12) rotate(-4deg); }
.icon-item strong { font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; font-weight: 700; max-width: 7.5em; }
.scribble { position: relative; display: inline-block; }
.scribble svg.circle { position: absolute; inset: -18% -10%; width: 120%; height: 136%; stroke: var(--scribble); stroke-width: 2.5; fill: none; pointer-events: none; transform: none !important; }

/* ---------- Format chips ---------- */
.formats { max-width: 980px; margin: 100px auto 0; padding: 0 24px; text-align: center; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 18px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip {
  padding: 10px 16px; border-radius: 14px;
  background: var(--surface); font-weight: 600; text-decoration: none;
  transition: background .15s, transform .15s;
}
.chip:hover { background: var(--cta-bg); color: var(--cta-ink); transform: translateY(-2px); }

/* ---------- Showcases ---------- */
.showcase { max-width: 1120px; margin: 160px auto 0; padding: 0 24px; }
.showcase-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.showcase h2 {
  margin: 0; font-size: clamp(34px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 700;
  text-wrap: balance;
}
.showcase-head p { margin: 20px 0 0; font-size: 20px; color: var(--ink-soft); text-wrap: pretty; }
.more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 22px;
  font-weight: 700; text-decoration: none; padding: 10px 16px; border-radius: 14px; background: var(--surface);
}
.more:hover { background: var(--cta-bg); color: var(--cta-ink); }

.split { display: flex; flex-direction: column; gap: 64px; }
.split .frame video {
  /* Show only the top half of each recording (videos are ~1040×448). */
  aspect-ratio: 1040 / 224;
  object-fit: cover;
  object-position: top;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 18px 40px -16px rgb(0 0 0 / 0.16);
}

.duo { display: flex; flex-direction: column; gap: 160px; max-width: 1120px; margin: 160px auto 0; padding: 0 24px; }
.card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.card .eyebrow { margin-bottom: 14px; }
.card h3 { margin: 0; font-size: clamp(34px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
.card p { margin: 20px auto 48px; max-width: 760px; font-size: 20px; color: var(--ink-soft); text-wrap: pretty; }
.card p a { color: var(--ink); font-weight: 600; text-decoration-color: currentColor; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.card p a:hover { text-decoration-thickness: 2px; }
.card img, .card video { width: 100%; border-radius: 12px; }

/* ---------- Final CTA ---------- */
.final { max-width: 860px; margin: 180px auto 0; padding: 0 24px; text-align: center; }
.final h2 { margin: 0; font-size: clamp(38px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }
.final > p { font-size: 20px; color: var(--ink-soft); margin: 20px auto 0; max-width: 560px; }
.download-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }

.subscribe { margin: 32px auto 0; max-width: 480px; text-align: left; }
.subscribe-row {
  display: flex; align-items: center; gap: 6px;
  height: 54px; padding: 6px 6px 6px 16px;
  border: 1px solid color-mix(in oklab, var(--ink) 14%, transparent); border-radius: 14px;
  background: var(--bg);
  box-shadow: 0 1px 2px rgb(0 0 0 / .04);
  transition: border-color .15s, box-shadow .15s;
}
.subscribe-row:focus-within {
  border-color: color-mix(in oklab, var(--ink) 40%, transparent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--ink) 7%, transparent);
}
.subscribe-icon { width: 19px; height: 19px; flex: none; color: var(--ink-faint); }
.subscribe input[type="email"] {
  flex: 1; min-width: 0; height: 100%; padding: 0 6px;
  border: 0; outline: 0; background: transparent;
  color: var(--ink); font: 400 15px var(--font);
}
.subscribe input[type="email"]::placeholder { color: var(--ink-faint); }
.subscribe button {
  flex: none; height: 100%; padding: 0 18px; border: 0; border-radius: 9px;
  background: var(--cta-bg); color: var(--cta-ink);
  font: 600 14px var(--font); cursor: pointer;
  transition: background .15s, transform .15s;
}
.subscribe button:hover { background: color-mix(in oklab, var(--cta-bg) 85%, var(--cta-ink)); }
.subscribe button:active { transform: scale(.97); }
.subscribe button:disabled { opacity: .6; cursor: default; }
.consent {
  display: flex; gap: 8px; align-items: flex-start; justify-content: center;
  margin-top: 10px; font-size: 12.5px; line-height: 1.4; color: var(--ink-faint);
  text-align: left; cursor: pointer;
}
.consent input { margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.subscribe.has-consent-error .consent { color: #c2410c; }
.subscription-message { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; text-align: center; }
.subscription-message:empty { display: none; }

/* ---------- Footer ---------- */
/* ---------- Footer (shared footer.js, same content as v2) ---------- */
.site-footer-listed { margin-top: 26px; }
.site-footer-listed h2 { margin: 0 0 10px; font-size: 14px; line-height: 1.5; font-weight: 600; }
.site-footer-listed a { display: inline-flex; padding: 8px 12px; border: 1px solid #1a1a1a; border-radius: 8px; background: var(--bg); transition: opacity .15s; }
.site-footer-listed a:hover { opacity: .85; }
.site-footer-listed img { display: block; width: 130px; height: auto; }
.site-footer-badges { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.site-footer-listed a.site-footer-badge-plain { padding: 0; border: 0; background: none; border-radius: 0; transition: opacity .15s; }
.site-footer-listed a.site-footer-badge-plain:hover { opacity: .85; }
.site-footer-listed .site-footer-badge-plain img { width: 156px; }
.site-footer { margin-top: 140px; border-top: 1px solid var(--line); background: var(--bg-elevated); }
.site-footer-inner { max-width: 1320px; margin: 0 auto; padding: 48px 24px 56px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; }
.site-footer-brand { min-width: 0; }
.site-footer-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 22px; font-weight: 600; text-decoration: none; }
.site-footer-logo img { display: block; border-radius: 10px; }
.site-footer-brand p { margin: 16px 0 12px; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.site-footer-contact { color: var(--ink); font-size: 14px; text-underline-offset: 3px; }
.site-footer-privacy { display: block; width: fit-content; margin-top: 8px; color: var(--ink-soft); font-size: 14px; text-underline-offset: 3px; }
.site-footer-feedback { margin-top: 26px; }
.site-footer-feedback h2 { margin: 0 0 8px; font-size: 14px; line-height: 1.5; font-weight: 600; }
.site-footer-feedback p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.site-footer-feedback a { color: var(--ink); text-underline-offset: 3px; }
.site-footer-nav { min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 28px; }
.site-footer-group { min-width: 0; overflow-wrap: anywhere; }
.site-footer-group h2 { margin: 0 0 16px; font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--ink); }
.site-footer-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer-group a { color: var(--ink-soft); font-size: 14px; line-height: 1.5; text-decoration: none; }
.site-footer-group a:hover, .site-footer-group a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:focus-visible { outline: 2px solid var(--scribble); outline-offset: 4px; border-radius: 2px; }
@media (max-width: 760px) {
  .site-footer-inner { grid-template-columns: 1fr; gap: 36px; padding: 40px 16px 48px; }
}

/* Content stays visible when JavaScript is disabled or fails to load. */
.reveal { opacity: 1; transform: none; filter: none; }
#primary-download { scroll-margin-top: 112px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .icon-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 16px; }
}
@media (max-width: 640px) {
  .nav-inner { padding: 14px 16px; }
  .nav-link:not(.nav-cta) > span { display: none; }
  .brand { white-space: nowrap; font-size: 17px; gap: 10px; }
  .brand img { width: 32px; height: 32px; }
  .brand-name { font-size: 20px; }
  .nav.is-scrolled .nav-inner { padding-top: 8px; padding-bottom: 8px; }
  .nav-link { padding: 8px; }
  .nav-link.nav-cta { padding: 8px 12px; margin-left: 4px; }
  .brand { flex-shrink: 0; }
  .nav-inner { gap: 8px; }
  .nav-links { gap: 0; }
  .hero { padding: 40px 16px 0; }
  .hero-sub { font-size: 18px; margin-top: 24px; }
  .hero .dl-row { margin-top: 32px; }
  .hero-meta { flex-direction: column; gap: 12px; margin-top: 20px; }
  .hero-meta-divider { display: none; }
  .hero-meta-links { gap: 8px 18px; }
  .hero-meta-links a + a::before { display: none; }
  .stage { margin-top: 56px; }
  .stage, .story, .icon-grid, .formats, .showcase, .duo, .final { padding-left: 16px; padding-right: 16px; }
  .story p { font-size: 19px; }
  .icon-item strong { font-size: 21px; }
  .icon-item svg { width: 48px; height: 48px; }
  .card p { font-size: 18px; margin-bottom: 32px; }
  .duo { gap: 120px; }
}
@media (max-width: 400px) {
  .version { display: none; }
  .btn { padding: 14px 18px; font-size: 16px; }
  .nav-link { padding: 7px; }
  .nav-link.nav-cta { padding: 8px 10px; margin-left: 2px; }
}

/* Two blocks side by side (Priority + Tags) */
.duo.duo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.duo-pair .card h3 { font-size: clamp(28px, 3.2vw, 40px); }
.duo-pair .card p { font-size: 18px; margin-bottom: 32px; }
@media (max-width: 900px) {
  .duo.duo-pair { grid-template-columns: 1fr; gap: 120px; }
}
.duo-pair .card img {
  width: auto;           /* never upscale beyond the image's own size */
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid var(--line);
}

/* ---------- Download buttons (v2 content, v3 look) ---------- */
.dl-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.dl {
  display: inline-grid; grid-template-columns: 40px 1fr; gap: 11px; align-items: center;
  min-width: 220px; min-height: 75px; padding: 10px 30px 10px 22px; border-radius: 14px;
  border: 1px solid var(--cta-bg); background: var(--cta-bg); color: var(--cta-ink);
  text-decoration: none; text-align: left; line-height: 1;
  box-shadow: inset 0 1px rgb(255 255 255 / .16), 0 2px 5px rgb(0 0 0 / .16);
  transition: box-shadow .2s ease-out;
}
/* Hover: no movement, only a deeper shadow */
.dl:hover { box-shadow: inset 0 1px rgb(255 255 255 / .16), 0 8px 22px rgb(0 0 0 / .24); }
.dl:active { box-shadow: inset 0 1px rgb(255 255 255 / .16), 0 1px 3px rgb(0 0 0 / .16); transition-duration: .06s; }
.dl:focus-visible { outline: 3px solid var(--scribble); outline-offset: 3px; }
.dl-logo { justify-self: center; fill: currentColor; }
.dl-logo-apple { width: 31px; height: 37px; }
.dl-logo-windows { width: 31px; height: 31px; }
.dl-copy { display: grid; gap: 3px; }
.dl-copy small { font-size: 12px; font-weight: 400; letter-spacing: .01em; }
.dl-copy strong { font-size: 18px; font-weight: 500; letter-spacing: -.025em; }
.dl-size { opacity: .65; }
.dl-secondary { --dl-bg: #6e6e73; background: var(--dl-bg); border-color: var(--dl-bg); }
.final .dl-row { --row: min(1240px, calc(100vw - 48px)); width: var(--row); margin-left: calc((100% - var(--row)) / 2); }
.dl-copy small { white-space: nowrap; }
@media (min-width: 641px) { .dl { min-width: 328px; } }

@media (max-width: 640px) {
  .dl { min-width: 0; width: 100%; }
  .final .dl-row { --row: calc(100vw - 32px); }
}

/* Translated homepages: "translated with AI" note under the story */
.story p.translation-note { font-size: 15px; line-height: 1.5; color: var(--ink-faint); margin-top: 8px; }
.story p.translation-note a { color: var(--ink-soft); font-weight: 500; }

/* Japanese: break lines between phrases, not inside words (Chrome/Edge; ignored elsewhere) */
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) strong, :lang(ja) .hero-sub { word-break: auto-phrase; }
