/* SmartBox Organizer - smartboxorganizer.app */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --card: #ffffff;
  --card-alt: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: rgba(0, 0, 0, 0.1);
  --link: #0066cc;
  --accent: #007aff;
  --accent-strong: #0066cc;
  --accent-ink: #ffffff;
  --accent-soft: rgba(0, 122, 255, 0.12);
  --pink: #ff2d55;
  --orange: #ff9500;
  --yellow: #ffcc00;
  --blue: #007aff;
  --green: #34c759;
  --teal: #30b0c7;
  --indigo: #5856d6;
  --purple: #af52de;
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.25), 0 18px 36px -18px rgba(0, 0, 0, 0.2);
  --radius: 28px;
  --max: 1080px;
  --nav-h: 52px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #101012;
    --card: #1c1c1e;
    --card-alt: #2c2c2e;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #8e8e93;
    --line: rgba(255, 255, 255, 0.14);
    --link: #2997ff;
    --accent: #0a84ff;
    --accent-strong: #2997ff;
    --accent-soft: rgba(10, 132, 255, 0.18);
    --pink: #ff375f;
    --orange: #ff9f0a;
    --yellow: #ffd60a;
    --blue: #0a84ff;
    --green: #30d158;
    --teal: #40c8e0;
    --indigo: #5e5ce6;
    --purple: #bf5af2;
    --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.07; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 760px; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text); font-size: 14px; opacity: 0.85; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-links a[aria-current="page"] { opacity: 1; font-weight: 600; }
.nav-links a.btn-primary { color: var(--accent-ink); opacity: 1; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; color: var(--text); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; display: block; }

/* Language switcher */
.lang { position: relative; }
.lang summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text);
  font-size: 14px;
  opacity: 0.85;
  padding: 4px 0;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { opacity: 1; }
.lang summary svg { width: 10px; height: 10px; transition: transform 0.2s ease; }
.lang[open] summary svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: -8px;
  min-width: 160px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.25);
}
.lang-menu a { display: block; padding: 8px 12px; border-radius: 9px; font-size: 15px; color: var(--text); opacity: 1; }
.lang-menu a:hover { background: var(--card-alt); text-decoration: none; }
.lang-menu a[aria-current="true"] { font-weight: 600; color: var(--accent-strong); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 22px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; padding-top: 14px; }
  .nav-links a { display: block; padding: 14px 0; font-size: 17px; }
  .nav-links .btn { display: inline-flex; padding: 10px 18px; }
  .lang summary { padding: 14px 0; font-size: 17px; }
  .lang-menu { position: static; box-shadow: none; border: 0; padding: 0 0 8px 12px; background: transparent; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }

.link-arrow { font-size: 17px; font-weight: 400; }
.link-arrow::after { content: " \203A"; }

.appstore-badge { display: inline-block; line-height: 0; }
.appstore-badge img { height: 55px; width: auto; }

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

.section { padding: 120px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: #000; color: #f5f5f7; --bg: #000; --text: #f5f5f7; --text-2: #a1a1a6; --text-3: #8e8e93; --card: #1c1c1e; --card-alt: #2c2c2e; --line: rgba(255,255,255,.14); --link: #2997ff; --accent: #0a84ff; --accent-strong: #2997ff; --accent-soft: rgba(10,132,255,.18); }
.eyebrow { font-size: 17px; font-weight: 600; color: var(--accent-strong); margin-bottom: 12px; letter-spacing: -0.01em; }
.headline { font-size: clamp(40px, 6vw, 64px); }
.headline-md { font-size: clamp(32px, 4.6vw, 48px); }
.lede { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.38; color: var(--text-2); letter-spacing: -0.015em; font-weight: 400; }
.lede strong { color: var(--text); font-weight: 600; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

@media (max-width: 720px) {
  .section { padding: 80px 0; }
}

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

.hero { padding: 72px 0 0; text-align: center; overflow: hidden; position: relative; }
.hero-icon { width: 104px; height: 104px; margin: 0 auto 24px; border-radius: 24px; box-shadow: 0 12px 30px -10px rgba(0, 102, 204, 0.55); }
.hero h1 { font-size: clamp(48px, 8.5vw, 96px); letter-spacing: -0.045em; line-height: 1.02; }
.hero h1 .hl {
  white-space: nowrap;
  background: linear-gradient(100deg, var(--blue) 0%, var(--indigo) 55%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede { max-width: 680px; margin: 22px auto 0; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 28px; margin-top: 36px; }
.hero-meta { margin-top: 16px; font-size: 14px; color: var(--text-3); letter-spacing: -0.01em; }

.hero-stage { position: relative; margin: 8px auto 0; max-width: 980px; height: 620px; }
.hero-stage .phone { position: absolute; left: 50%; bottom: -150px; }
.hero-stage .phone-main { width: 320px; transform: translateX(-50%); z-index: 3; }
.hero-stage .phone-left { width: 270px; transform: translateX(-118%) rotate(-6deg); z-index: 2; bottom: -210px; }
.hero-stage .phone-right { width: 270px; transform: translateX(18%) rotate(6deg); z-index: 2; bottom: -210px; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.45; z-index: 0; pointer-events: none; }
.glow-a { width: 420px; height: 420px; background: var(--blue); left: 50%; top: 120px; transform: translateX(-50%); }
.glow-b { width: 300px; height: 300px; background: var(--purple); left: 8%; top: 260px; opacity: 0.22; }
.glow-c { width: 300px; height: 300px; background: var(--teal); right: 8%; top: 260px; opacity: 0.22; }
@media (prefers-color-scheme: dark) { .glow { opacity: 0.28; } .glow-b, .glow-c { opacity: 0.16; } }

@media (max-width: 860px) {
  .hero-stage { height: 520px; }
  .hero-stage .phone-main { width: 270px; }
  .hero-stage .phone-left, .hero-stage .phone-right { width: 220px; }
}
@media (max-width: 560px) {
  .hero { padding-top: 48px; }
  .hero-icon { width: 84px; height: 84px; border-radius: 20px; }
  .hero-stage { height: 440px; margin-top: 56px; }
  .hero-stage .phone-main { width: 240px; bottom: -120px; }
  .hero-stage .phone-left { width: 190px; transform: translateX(-102%) rotate(-6deg); bottom: -170px; }
  .hero-stage .phone-right { width: 190px; transform: translateX(2%) rotate(6deg); bottom: -170px; }
}

/* ---------- Phone frame ---------- */

.phone {
  /* Apple iPhone 17 Pro Max bezel (1470x3000) with the 1320x2868 screen at 75,66 */
  position: relative;
  aspect-ratio: 1470 / 3000;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.18));
}
.phone picture { display: block; }
.phone img {
  position: absolute;
  left: 5.102%;
  top: 2.2%;
  width: 89.796%;
  height: 95.6%;
  background: #f2f2f7;
  /* Cut to the exact shape of the bezel's screen opening */
  -webkit-mask: url(images/device/iphone-17-pro-max-screen.webp) center / 111.364% 104.603% no-repeat;
  mask: url(images/device/iphone-17-pro-max-screen.webp) center / 111.364% 104.603% no-repeat;
}
.phone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url(images/device/iphone-17-pro-max.webp) 0 0 / 100% 100% no-repeat;
  pointer-events: none;
}

/* ---------- Statement ---------- */

.statement { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 700; max-width: 960px; }
.statement .k-orange { color: var(--orange); }
.statement .k-blue { color: var(--blue); }
.statement .k-green { color: var(--green); }
.statement .k-purple { color: var(--purple); }
.statement .k-pink { color: var(--pink); }
.statement .muted { color: var(--text-3); }

/* ---------- Split feature ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-rev .split-media { order: -1; }
.split-media { display: flex; justify-content: center; position: relative; }
.split-media .phone { width: 300px; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 56px; }
  .split-rev .split-media { order: 0; }
  .split-media .phone { width: 260px; }
}

.points { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 22px; }
.points li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.points h3 { font-size: 19px; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 2px; }
.points p { color: var(--text-2); font-size: 17px; }
.pi {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.pi svg { width: 22px; height: 22px; }
.pi-blue { background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); }
.pi-pink { background: color-mix(in srgb, var(--pink) 14%, transparent); color: var(--pink); }
.pi-green { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.pi-purple { background: color-mix(in srgb, var(--purple) 14%, transparent); color: var(--purple); }
.pi-orange { background: color-mix(in srgb, var(--orange) 14%, transparent); color: var(--orange); }
.pi-teal { background: color-mix(in srgb, var(--teal) 16%, transparent); color: var(--teal); }
.pi-indigo { background: color-mix(in srgb, var(--indigo) 14%, transparent); color: var(--indigo); }

/* ---------- Label mock (QR section) ---------- */

.label-stage { position: relative; max-width: 420px; margin: 0 auto; }
.label {
  background: #fff;
  color: #1d1d1f;
  border-radius: 22px;
  padding: 26px 26px 22px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 22px;
  align-items: center;
  transform: rotate(-2deg);
}
.label-num { font-size: 64px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.label-name { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-top: 6px; }
.label-items { color: #6e6e73; font-size: 14px; line-height: 1.4; margin-top: 6px; letter-spacing: -0.01em; }
.label-qr { width: 120px; height: 120px; }
.label-qr svg { width: 100%; height: 100%; display: block; }
.label-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 12px; color: #86868b; border-top: 1px solid rgba(0,0,0,.08); padding-top: 12px; }
.scan-pill {
  position: absolute;
  right: -10px;
  bottom: -34px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 12px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transform: rotate(2deg);
  white-space: nowrap;
}
.scan-pill .pi { width: 30px; height: 30px; border-radius: 9px; background: var(--green); color: #fff; }
.scan-pill .pi svg { width: 16px; height: 16px; }
.scan-pill span { opacity: 0.75; font-weight: 400; }
@media (max-width: 480px) {
  .label { padding: 22px 20px 18px; gap: 14px 16px; }
  .label-num { font-size: 52px; }
  .label-qr { width: 96px; height: 96px; }
  .scan-pill { right: 0; }
}

/* ---------- Bento ---------- */

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 64px; }
.tile {
  grid-column: span 2;
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  position: relative;
  min-height: 280px;
}
.tile-wide { grid-column: span 3; }
.tile-xl { grid-column: span 4; }
.tile h3 { font-size: 24px; letter-spacing: -0.025em; line-height: 1.15; }
.tile p { color: var(--text-2); font-size: 17px; line-height: 1.4; }
.tile .tag { font-size: 14px; font-weight: 600; color: var(--accent-strong); letter-spacing: -0.01em; }
.tile .tag-soon { color: var(--text-3); }
.tile-visual { margin-top: auto; padding-top: 20px; }

/* Phone peeking up from the bottom edge of a tile */
.tile-shot {
  margin: auto -32px -32px;
  padding-top: 28px;
  flex: 1 0 340px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.tile-shot .phone { width: 270px; flex: none; align-self: flex-start; }
.tile-xl .tile-shot .phone { width: 300px; }
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile-wide, .tile-xl { grid-column: span 1; }
  .tile-xl { grid-column: span 2; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; gap: 16px; }
  .tile, .tile-wide, .tile-xl { grid-column: span 1; min-height: 0; padding: 28px 24px; }
  .tile-shot { margin: auto -24px -28px; flex-basis: 300px; }
  .tile-shot .phone, .tile-xl .tile-shot .phone { width: 250px; }
}

/* Hero news pill */
.hero-news {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.hero-news::after { content: "\203A"; font-size: 18px; line-height: 1; margin-left: -2px; }
.hero-news:hover { text-decoration: none; background: color-mix(in srgb, var(--accent) 20%, transparent); }
.hero-news-tag { padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 600; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--card-alt);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}
.chip svg { width: 14px; height: 14px; }
.chip-on { background: var(--accent); color: var(--accent-ink); }
.chip-blue { background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); }
.chip-pink { background: color-mix(in srgb, var(--pink) 14%, transparent); color: var(--pink); }
.chip-green { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.chip-orange { background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange); }
.chip-purple { background: color-mix(in srgb, var(--purple) 14%, transparent); color: var(--purple); }
.chip-teal { background: color-mix(in srgb, var(--teal) 16%, transparent); color: var(--teal); }

/* Segmented control */
.seg { display: flex; max-width: 100%; padding: 3px; border-radius: 12px; background: var(--card-alt); gap: 2px; }
.seg span { flex: 1 1 auto; min-width: 0; padding: 8px 10px; border-radius: 9px; font-size: 15px; font-weight: 600; color: var(--text-2); text-align: center; line-height: 1.2; display: grid; place-items: center; }
@media (max-width: 420px) { .seg span { padding: 8px 6px; font-size: 14px; } }
.seg .on { background: var(--card); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
@media (prefers-color-scheme: dark) { .seg .on { background: #636366; } }

/* Device row (sync tile) */
.devices { display: flex; align-items: flex-end; gap: 14px; }
.dev { border-radius: 10px; background: var(--card-alt); border: 2px solid var(--text-3); position: relative; }
.dev-phone { width: 44px; height: 86px; border-radius: 10px; }
.dev-pad { width: 96px; height: 72px; border-radius: 9px; }
.dev::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 4px; width: 32%; height: 3px; border-radius: 3px; background: var(--text-3); }
.dev-cloud { align-self: center; color: var(--blue); }
.dev-cloud svg { width: 34px; height: 34px; }

/* Search mock */
.search-mock { max-width: 360px; }
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 999px;
  background: var(--card-alt);
  font-size: 16px;
  color: var(--text);
}
.search-field svg { width: 18px; height: 18px; color: var(--text-3); flex: none; }
.search-field i { display: inline-block; width: 2px; height: 18px; background: var(--blue); margin-left: -6px; }
.search-hit {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--card-alt);
  font-size: 14px;
}
.search-hit .num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--card); font-weight: 600; box-shadow: 0 1px 0 var(--line); }
.search-hit b { display: block; font-weight: 600; }
.search-hit b mark { background: var(--yellow); color: #1d1d1f; border-radius: 3px; padding: 0 1px; }
.search-hit span { color: var(--text-2); font-size: 13px; }

/* ---------- Privacy grid ---------- */

.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; text-align: left; }
.privacy-grid div { background: var(--bg-alt); border-radius: 22px; padding: 26px; }
.section-alt .privacy-grid div { background: var(--card); }
.privacy-grid svg { width: 30px; height: 30px; color: var(--blue); margin-bottom: 14px; }
.privacy-grid h3 { font-size: 19px; letter-spacing: -0.02em; margin-bottom: 6px; line-height: 1.2; }
.privacy-grid p { color: var(--text-2); font-size: 15px; line-height: 1.45; }
@media (max-width: 900px) { .privacy-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .privacy-grid { grid-template-columns: 1fr; } }
.shield { width: 72px; height: 72px; margin: 0 auto 20px; color: var(--blue); }

/* ---------- FAQ ---------- */

.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  position: relative;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 24px; color: var(--text-2); font-size: 17px; }
.faq .answer > * + * { margin-top: 12px; }
.faq .answer a { color: var(--link); }
.faq .answer ul, .faq .answer ol { padding-left: 22px; margin-bottom: 0; }

/* ---------- CTA ---------- */

.cta { text-align: center; }
.cta > .wrap > img { width: 96px; height: 96px; margin: 0 auto 28px; border-radius: 22px; }
.cta .hero-cta { margin-top: 32px; }

/* ---------- Doc pages (help, legal, blog) ---------- */

.page-head { padding: 80px 0 48px; text-align: center; }
.page-head h1 { font-size: clamp(40px, 6vw, 64px); }
.page-head .lede { max-width: 620px; margin: 16px auto 0; }
.page-head .updated { margin-top: 16px; font-size: 14px; color: var(--text-3); }

.doc { padding: 0 0 120px; }
.doc h2 { font-size: clamp(26px, 3.4vw, 32px); letter-spacing: -0.025em; margin: 64px 0 16px; line-height: 1.15; }
.doc h3 { font-size: 21px; letter-spacing: -0.02em; margin: 36px 0 10px; line-height: 1.25; }
.doc p, .doc li { color: var(--text); font-size: 17px; line-height: 1.6; }
.doc p + p { margin-top: 14px; }
.doc ul, .doc ol { padding-left: 24px; margin: 14px 0; }
.doc li + li { margin-top: 8px; }
.doc .muted { color: var(--text-2); }
.doc table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
.doc th { font-weight: 600; color: var(--text-2); font-size: 13px; }
.table-scroll { overflow-x: auto; }
.callout { background: var(--bg-alt); border-radius: 20px; padding: 22px 24px; margin: 24px 0; }
.callout p { color: var(--text); }
.callout-accent { background: var(--accent-soft); }

.contact-card { text-align: center; background: var(--bg-alt); border-radius: 28px; padding: 48px 28px; margin-top: 80px; }
.contact-card h2 { margin: 0 0 10px; }
.contact-card p { color: var(--text-2); max-width: 520px; margin: 0 auto; }
.contact-card .btn { margin-top: 24px; }

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

.footer { background: var(--bg-alt); color: var(--text-2); font-size: 13px; padding: 40px 0 32px; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.footer-brand { display: flex; gap: 12px; align-items: center; color: var(--text); font-weight: 600; font-size: 15px; }
.footer-brand img { width: 36px; height: 36px; border-radius: 9px; }
.footer-brand span { display: block; font-weight: 400; color: var(--text-2); font-size: 13px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-cols h2 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 10px; letter-spacing: -0.01em; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--text); }
.footer-bottom { padding-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--card); color: var(--text-2); }
.footer-social a:hover { color: var(--text); }
.footer-social svg { width: 16px; height: 16px; }
.footer-note { margin-top: 12px; font-size: 12px; color: var(--text-3); line-height: 1.5; }

/* ---------- Reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: 0.08s; }
.js .reveal-d2 { transition-delay: 0.16s; }
.js .reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .faq summary::after, .lang summary svg { transition: none; }
}

/* ------------------------------------------------------------------
   Subpages: pricing, FAQ, blog, articles, privacy, beta, success, QR
   They keep their content markup; these rules give it the new look.
   ------------------------------------------------------------------ */
.page { padding: 72px 0 120px; }
.page-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.page-head h1,
.faq-title, .blog-title, .privacy-title { font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.045em; line-height: 1.05; }
.faq-subtitle, .blog-subtitle, .privacy-subtitle { margin-top: 18px; font-size: clamp(19px, 2.2vw, 22px); line-height: 1.4; color: var(--text-2); letter-spacing: -0.015em; }
.faq-header, .blog-header, .privacy-header { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.hero-accent { color: var(--accent); }

.back-link { display: inline-block; margin-bottom: 32px; font-size: 15px; color: var(--link); }
.back-link:hover { text-decoration: underline; }

/* FAQ page */
.faq-section { max-width: 760px; margin: 0 auto; }
.faq-cta { margin-top: 64px; padding: 40px 32px; border-radius: var(--radius); background: var(--bg-alt); text-align: center; }
.faq-cta h2 { font-size: 28px; }
.faq-cta p { margin-top: 10px; color: var(--text-2); font-size: 17px; }

/* Blog index */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); color: var(--text); transition: transform .25s ease, box-shadow .25s ease; }
.blog-card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card-image { aspect-ratio: 16 / 10; overflow: hidden; background: var(--card-alt); }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-content { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.blog-card-date { font-size: 13px; color: var(--text-3); font-weight: 500; }
.blog-card-title { font-size: 21px; letter-spacing: -0.02em; line-height: 1.2; margin-top: 8px; }
.blog-card-excerpt { margin-top: 10px; color: var(--text-2); font-size: 15px; line-height: 1.5; flex: 1; }
.read-more { margin-top: 16px; color: var(--link); font-size: 15px; font-weight: 500; }
.read-more::after { content: " \203A"; }
@media (max-width: 960px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } }

/* Articles and long text (blog posts, privacy) */
.article-section, .privacy-section { max-width: 720px; margin: 0 auto; }
.article-header { text-align: left; }
.article-date { font-size: 15px; color: var(--text-3); font-weight: 500; }
.article-title { margin-top: 10px; font-size: clamp(36px, 5.4vw, 52px); letter-spacing: -0.04em; line-height: 1.08; }
.article-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.article-meta-item { padding: 6px 12px; border-radius: 999px; background: var(--bg-alt); color: var(--text-2); font-size: 13px; font-weight: 500; }
.article-hero { margin: 36px 0 8px; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.article-hero img { width: 100%; height: auto; display: block; }
.article-content, .privacy-content { font-size: 19px; line-height: 1.6; letter-spacing: -0.01em; }
.article-content > * + *, .privacy-content > * + * { margin-top: 20px; }
.article-content h2, .privacy-content h2 { font-size: 30px; line-height: 1.15; margin-top: 48px; }
.article-content h3, .privacy-content h3 { font-size: 22px; line-height: 1.25; margin-top: 32px; letter-spacing: -0.02em; }
.article-content h4, .privacy-content h4 { font-size: 19px; margin-top: 24px; letter-spacing: -0.015em; }
.article-content ul, .article-content ol, .privacy-content ul, .privacy-content ol { padding-left: 24px; }
.article-content li + li, .privacy-content li + li { margin-top: 8px; }
.article-content img { max-width: 100%; height: auto; border-radius: 18px; }
.article-content a, .privacy-content a { color: var(--link); }
.article-intro { font-size: 22px; line-height: 1.5; color: var(--text-2); margin-top: 28px; }
.tip-number { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-right: 10px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 17px; font-weight: 600; vertical-align: 4px; letter-spacing: 0; }
.highlight-box, .reason-item, .summary-box { padding: 28px 30px; border-radius: 22px; background: var(--bg-alt); }
.highlight-box > * + *, .reason-item > * + *, .summary-box > * + * { margin-top: 12px; }
.highlight-box h3, .reason-item h3, .summary-box h2 { margin-top: 0; font-size: 21px; }
.highlight-box p, .reason-item p { font-size: 17px; }
.zone-list { list-style: none; padding-left: 0 !important; }
.zone-tag { display: inline-block; padding: 4px 12px; margin-right: 6px; border-radius: 999px; font-size: 15px; font-weight: 600; background: var(--card-alt); }
.zone-tag-orange { background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange); }
.zone-tag-blue { background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); }
.zone-tag-green { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.zone-tag-purple { background: color-mix(in srgb, var(--purple) 14%, transparent); color: var(--purple); }
.zone-tag-gray { color: var(--text-2); }
.step-list { list-style: none; padding-left: 0 !important; counter-reset: step; display: grid; gap: 14px; }
.step-list li { position: relative; padding: 20px 22px 20px 64px; border-radius: 18px; background: var(--bg-alt); font-size: 17px; color: var(--text-2); }
.step-list li + li { margin-top: 0; }
.step-list li::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 20px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 15px; font-weight: 600; }
.step-list strong { display: block; color: var(--text); font-size: 19px; margin-bottom: 4px; }
.cta-box { margin-top: 48px !important; padding: 40px 32px; border-radius: var(--radius); background: var(--bg-alt); text-align: center; }
.cta-box h3 { margin-top: 0; font-size: 28px; }
.cta-box p { margin-top: 12px; color: var(--text-2); font-size: 17px; }
.app-store-button { display: inline-block; margin-top: 22px; line-height: 0; }
.app-store-button img { height: 50px; width: auto; border-radius: 0; }
.last-updated { font-size: 15px; color: var(--text-3); margin-top: 14px; }

/* Pricing */
.pricing-hero { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.pricing-hero h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.045em; line-height: 1.05; }
.pricing-hero p { margin-top: 16px; font-size: clamp(19px, 2.2vw, 24px); color: var(--text-2); letter-spacing: -0.015em; }
.pricing-android-warning { max-width: 560px; margin: 0 auto 24px; padding: 14px 18px; border-radius: 14px; background: color-mix(in srgb, var(--orange) 14%, transparent); color: var(--text); text-align: center; font-size: 15px; }
.period-toggle { display: flex; width: fit-content; margin: 0 auto 40px; padding: 3px; border-radius: 12px; background: var(--bg-alt); gap: 2px; }
.period-toggle-btn { appearance: none; border: 0; background: none; font: inherit; padding: 9px 22px; border-radius: 9px; font-size: 15px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.period-toggle-btn:hover { color: var(--text); }
.period-toggle-btn.is-active { background: var(--card); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
@media (prefers-color-scheme: dark) { .period-toggle-btn.is-active { background: #636366; } }
.period-toggle-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pricing-grid { display: grid; gap: 24px; max-width: 820px; margin: 0 auto; }
.pricing-grid.is-pair { grid-template-columns: 1fr 1fr; }
.pricing-grid.is-single { max-width: 400px; }
.pricing-grid[hidden] { display: none; }
.pricing-card { position: relative; display: flex; flex-direction: column; padding: 32px 30px; border-radius: var(--radius); background: var(--bg-alt); }
.pricing-card.is-recommended { background: var(--card); box-shadow: var(--shadow); outline: 2px solid var(--accent); }
.recommended-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 5px 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.card-header h2 { font-size: 21px; letter-spacing: -0.02em; }
.price-block { margin-top: 14px; }
.price { font-size: 48px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.savings-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.savings-pill { padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.original-price { color: var(--text-3); text-decoration: line-through; font-size: 15px; }
.pricing-card .features { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 10px; flex: 1; align-content: start; font-size: 17px; }
.pricing-card .features li { position: relative; padding-left: 28px; }
.pricing-card .features li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.cta-button { display: block; text-align: center; padding: 14px 20px; border-radius: 999px; background: var(--card-alt); color: var(--text); font-size: 17px; font-weight: 600; }
.pricing-card:not(.is-recommended) .cta-button { background: var(--card); }
.is-recommended .cta-button { background: var(--accent); color: var(--accent-ink); }
.cta-button:hover { text-decoration: none; filter: brightness(0.95); }
.price-fallback-note { text-align: center; margin-top: 20px; color: var(--text-3); font-size: 14px; }
.price-fallback-note[hidden] { display: none; }
.pricing-faq { max-width: 760px; margin: 96px auto 0; }
.pricing-faq h2 { text-align: center; font-size: clamp(32px, 4.6vw, 48px); margin-bottom: 32px; }
.pricing-trust { text-align: center; margin-top: 48px; color: var(--text-3); font-size: 14px; }
@media (max-width: 720px) {
  .pricing-grid.is-pair { grid-template-columns: 1fr; max-width: 420px; gap: 32px; }
  .period-toggle-btn { padding: 9px 16px; }
}

/* Beta */
.beta-page { text-align: center; max-width: 640px; margin: 0 auto; }
.beta-icon { width: 120px; height: 120px; margin: 0 auto 28px; }
.beta-page h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.045em; }
.beta-lead { margin-top: 18px; font-size: clamp(19px, 2.2vw, 22px); line-height: 1.45; color: var(--text-2); }
.beta-button { display: inline-flex; margin-top: 32px; padding: 14px 28px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 17px; font-weight: 600; }
.beta-button:hover { text-decoration: none; filter: brightness(0.95); }
.beta-note { margin-top: 24px; color: var(--text-3); font-size: 15px; }
[data-beta-state="closed"] [data-when="open"],
[data-beta-state="open"] [data-when="closed"] { display: none; }

/* Purchase success */
.success-container { text-align: center; max-width: 560px; margin: 0 auto; }
.success-container h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.04em; }
.success-container .subhead { margin-top: 14px; font-size: 19px; color: var(--text-2); }
.redeem-cta { display: inline-flex; margin-top: 28px; padding: 15px 30px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 17px; font-weight: 600; }
.redeem-cta:hover { text-decoration: none; filter: brightness(0.95); }
.qr-divider { margin: 32px 0 16px; color: var(--text-3); font-size: 14px; }
.qr-wrap { display: inline-block; padding: 16px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); line-height: 0; }
.countdown { margin-top: 20px; color: var(--text-2); font-size: 15px; }
.expired-copy { margin-top: 16px; color: var(--pink); }
.appstore-fallback { margin-top: 36px; color: var(--text-2); }
.appstore-fallback a { display: inline-block; margin-top: 10px; }
.direct-landing > * + * { margin-top: 16px; }
[data-purchase-success][hidden], .direct-landing[hidden], .expired-copy[hidden] { display: none; }

/* Public QR box page (filled in by script) */
.box-info-section { max-width: 640px; margin: 0 auto; }
.box-header { text-align: center; }
.box-number { display: inline-grid; place-items: center; min-width: 88px; height: 88px; padding: 0 18px; border-radius: 24px; background: var(--accent); color: var(--accent-ink); font-size: 44px; font-weight: 700; letter-spacing: -0.04em; margin-bottom: 20px; }
.box-title { font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.04em; }
.box-subtitle { margin-top: 10px; color: var(--text-2); font-size: 19px; }
.items-container { margin-top: 40px; padding: 28px; border-radius: var(--radius); background: var(--bg-alt); }
.items-title { font-size: 21px; margin-bottom: 12px; }
.items-list { list-style: none; margin: 0; padding: 0; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.item:last-child { border-bottom: 0; }
.item-icon { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.cta-download { margin-top: 40px; text-align: center; }
.cta-text { color: var(--text-2); font-size: 17px; }

/* Legal pages (privacy policy) */
.legal-head { text-align: center; max-width: 760px; margin: 0 auto; }
.legal-head h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.045em; line-height: 1.05; }
.legal-head .lede { margin-top: 18px; }
.legal-date { margin-top: 16px; font-size: 14px; color: var(--text-3); }
.legal-summary { margin: 64px 0 88px; }
.legal-summary-title { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--text-2); text-align: center; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 20px; }
.legal-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.legal-card { padding: 26px 24px; border-radius: 22px; background: var(--bg-alt); }
.legal-card .pi { margin-bottom: 16px; }
.legal-card h3 { font-size: 19px; letter-spacing: -0.02em; line-height: 1.25; }
.legal-card p { margin-top: 8px; color: var(--text-2); font-size: 15px; line-height: 1.5; }
@media (max-width: 960px) { .legal-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .legal-cards { grid-template-columns: 1fr; } }

.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; }
.legal-toc { position: sticky; top: calc(var(--nav-h) + 32px); font-size: 14px; }
.legal-toc p { font-weight: 600; color: var(--text); margin-bottom: 12px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: block; padding: 5px 10px; margin-left: -10px; border-radius: 8px; color: var(--text-2); }
.legal-toc a::before { content: counter(toc) ". "; color: var(--text-3); }
.legal-toc a:hover { color: var(--text); background: var(--bg-alt); text-decoration: none; }
@media (max-width: 860px) {
  .legal { grid-template-columns: 1fr; gap: 40px; }
  .legal-toc { position: static; padding: 20px 22px; border-radius: 18px; background: var(--bg-alt); }
  .legal-toc ol { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .legal-toc a:hover { background: var(--card); }
}

.legal-body { counter-reset: sec; max-width: 760px; font-size: 17px; line-height: 1.6; letter-spacing: -0.01em; }
.legal-body section { counter-increment: sec; padding-top: 8px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.legal-body section + section { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--line); }
.legal-body h2 { font-size: 30px; line-height: 1.15; }
.legal-body h2::before { content: counter(sec, decimal-leading-zero); display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; color: var(--accent-strong); }
.legal-body h3 { font-size: 19px; letter-spacing: -0.02em; margin-top: 28px; }
.legal-body > section > * + * { margin-top: 16px; }
.legal-body ul { padding-left: 22px; color: var(--text-2); }
.legal-body ul strong, .legal-body p strong { color: var(--text); }
.legal-body li + li { margin-top: 8px; }
.legal-body p { color: var(--text-2); }
.legal-body a { color: var(--link); }

.kv { margin: 16px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.kv > div { display: grid; grid-template-columns: 200px 1fr; gap: 6px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.kv dt { font-weight: 600; color: var(--text); }
.kv dd { margin: 0; color: var(--text-2); }
.kv .opt { display: table; margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--purple) 14%, transparent); color: var(--purple); font-size: 12px; font-weight: 600; letter-spacing: 0.01em; }
@media (max-width: 620px) { .kv > div { grid-template-columns: 1fr; } }

.legal-panels { display: grid; gap: 16px; margin-top: 20px !important; }
.legal-panel { padding: 24px 26px; border-radius: 22px; background: var(--bg-alt); }
.legal-panel h3 { margin-top: 0; font-size: 21px; }
.legal-panel h3 span { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; color: var(--text-3); letter-spacing: -0.01em; }
.legal-panel .kv { border-top: 0; margin-top: 12px; }
.legal-panel .kv > div { grid-template-columns: 140px 1fr; padding: 10px 0; font-size: 15px; }
.legal-panel .kv > div:last-child { border-bottom: 0; }
.legal-panel .link-arrow { display: inline-block; margin-top: 12px; font-size: 15px; }
@media (max-width: 620px) { .legal-panel .kv > div { grid-template-columns: 1fr; gap: 2px; } }

.legal-callout { padding: 18px 22px; border-radius: 16px; background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--text) !important; }
.legal-grid-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; list-style: none; padding: 0 !important; }
.legal-grid-list li { margin: 0 !important; padding: 14px 16px; border-radius: 14px; background: var(--bg-alt); color: var(--text); font-size: 15px; line-height: 1.4; }
@media (max-width: 620px) { .legal-grid-list { grid-template-columns: 1fr; } }
.legal-contact { display: grid; gap: 0; border-radius: 18px; background: var(--bg-alt); padding: 6px 22px; }
.legal-contact > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); flex-wrap: wrap; }
.legal-contact > div:last-child { border-bottom: 0; }
.legal-contact span { color: var(--text-3); }
.legal-consent { font-size: 15px; color: var(--text-3) !important; }

/* Dark mode: colored pills need lighter ink and a stronger tint to stay readable */
@media (prefers-color-scheme: dark) {
  .chip-blue, .zone-tag-blue { color: color-mix(in srgb, var(--blue) 55%, #fff); background: color-mix(in srgb, var(--blue) 28%, transparent); }
  .chip-pink { color: color-mix(in srgb, var(--pink) 55%, #fff); background: color-mix(in srgb, var(--pink) 28%, transparent); }
  .chip-green, .zone-tag-green, .savings-pill { color: color-mix(in srgb, var(--green) 55%, #fff); background: color-mix(in srgb, var(--green) 26%, transparent); }
  .chip-orange, .zone-tag-orange { color: color-mix(in srgb, var(--orange) 55%, #fff); background: color-mix(in srgb, var(--orange) 28%, transparent); }
  .chip-purple, .zone-tag-purple, .kv .opt { color: color-mix(in srgb, var(--purple) 50%, #fff); background: color-mix(in srgb, var(--purple) 32%, transparent); }
  .chip-teal { color: color-mix(in srgb, var(--teal) 55%, #fff); background: color-mix(in srgb, var(--teal) 28%, transparent); }
  .legal-callout { background: color-mix(in srgb, var(--green) 22%, transparent); }
}

/* Japanese: break headlines at phrase boundaries instead of mid-word */
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) .statement, :lang(ja) .lede { word-break: auto-phrase; line-break: strict; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { text-wrap: balance; letter-spacing: -0.01em; }

/* Keep a phrase together (used in Japanese headlines) */
.nb { display: inline-block; }
