/* ==========================================================
   BRAZILING — design system
   Palette from the city: Atlantic blue, azulejo cobalt, ipê yellow.
   Type: Archivo (wide, for display and UI), Newsreader (reading).
   ========================================================== */

:root {
  --ink: #0e2a47;      /* Atlantic */
  --ink-2: #3b526b;
  --muted: #627589;
  --bg: #ffffff;
  --surface: #eef0ec;  /* Paulista concrete */
  --line: #d9dde2;
  --blue: #2350c8;     /* azulejo */
  --yellow: #f2b630;   /* ipê */
  --green: #0a7d4b;    /* Brazil green */
  --green-deep: #0b4f33;
  --ink-soft: #163a60;

  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --r: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.55; font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--yellow); color: var(--ink); font-weight: 600; border-radius: var(--r); }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }

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

/* display type: wide Archivo */
h1, h2, h3, .hero-title, .footer-pitch, .q-text, .cover-title { font-family: var(--sans); font-stretch: 125%; letter-spacing: -0.02em; }
h1 { font-weight: 800; line-height: 0.95; }
h2 { font-weight: 750; line-height: 1.02; font-size: clamp(30px, 3.6vw, 48px); }
h3 { font-weight: 700; line-height: 1.12; }
.lead { font-family: var(--serif); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.45; color: var(--ink-2); max-width: 40em; }
.text-link { display: inline-block; font-weight: 600; color: var(--green); border-bottom: 1.5px solid currentColor; padding-bottom: 1px; transition: color 0.2s; }
.text-link:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r);
  font-family: var(--sans); font-weight: 650; font-size: 16px; font-stretch: 105%; white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 17px; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #ffc94f; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--blue); }
.btn-line { border: 1.5px solid rgba(255, 255, 255, 0.6); color: #fff; }
.btn-line:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-line-ink { border: 1.5px solid var(--line); color: var(--ink); }
.btn-line-ink:hover { border-color: var(--ink); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); transition: background 0.3s, color 0.3s, border-color 0.3s; }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; font-weight: 800; font-size: 21px; font-stretch: 125%; letter-spacing: -0.02em; }
.logo-mark { width: 26px; height: 26px; flex: none; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: 15.5px; font-weight: 550; padding: 6px 0; border-bottom: 1.5px solid transparent; transition: border-color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { border-color: currentColor; }
.menu-toggle { display: none; width: 44px; height: 44px; place-items: center; }
.menu-toggle svg { width: 24px; height: 24px; }

body.home .site-header { position: fixed; left: 0; right: 0; background: transparent; color: #fff; border-color: transparent; }
body.home .site-header.scrolled { background: var(--bg); color: var(--ink); border-color: var(--line); }

.mobile-menu { position: fixed; inset: 72px 0 0; z-index: 49; background: var(--bg); color: var(--ink); padding: 24px var(--gutter) 40px; display: flex; flex-direction: column; gap: 28px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { font-size: 32px; font-weight: 750; font-stretch: 125%; letter-spacing: -0.02em; padding: 10px 0; border-bottom: 1px solid var(--line); }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: var(--bg) !important; color: var(--ink) !important; border-color: var(--line) !important; }

@media (max-width: 920px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: grid; }
  .nav { height: 64px; }
  .mobile-menu { inset: 64px 0 0; }
}

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; max-height: 1080px; color: #fff; overflow: hidden; background: var(--ink); }
.hero-media { position: absolute; inset: 0; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(14, 42, 71, 0.82) 0%, rgba(14, 42, 71, 0.35) 42%, rgba(14, 42, 71, 0) 70%),
    linear-gradient(to bottom, rgba(14, 42, 71, 0.45), rgba(14, 42, 71, 0) 22%);
}
.hero-inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(28px, 5vh, 56px); }
.hero-title { font-size: clamp(52px, min(10.6vw, 15vh), 170px); font-weight: 800; line-height: 0.86; letter-spacing: -0.035em; max-width: 11ch; }
.hero-title span { display: block; }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; margin-top: clamp(24px, 4vh, 44px); }
.hero-copy { display: grid; gap: 18px; max-width: 560px; }
.hero-copy > p { font-family: var(--serif); font-size: clamp(19px, 1.6vw, 22px); line-height: 1.4; color: rgba(255, 255, 255, 0.9); }
.hero-meta { display: grid; justify-items: end; gap: 6px; text-align: right; font-size: 14px; color: rgba(255, 255, 255, 0.82); }
.rio-clock { display: flex; align-items: center; gap: 8px; }
.rio-clock time { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.clock-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }
.hero-caption { color: rgba(255, 255, 255, 0.6); }
.video-toggle { width: 40px; height: 40px; margin-top: 6px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.5); color: #fff; transition: border-color 0.2s; }
.video-toggle:hover { border-color: #fff; }
.video-toggle svg { width: 16px; height: 16px; }

/* the one orchestrated moment: the headline sets itself as the page loads */
@media (prefers-reduced-motion: no-preference) {
  .hero-title span { animation: set-in 1.1s var(--ease) both; }
  .hero-title span + span { animation-delay: 0.14s; }
  .hero-foot { animation: fade-in 1s 0.5s var(--ease) both; }
  .hero-video { animation: fade-in 1.6s ease both; }
}
@keyframes set-in { from { opacity: 0; transform: translateY(0.35em); font-stretch: 100%; } }
@keyframes fade-in { from { opacity: 0; } }

@media (max-width: 760px) {
  .hero-foot { grid-template-columns: 1fr; }
  .hero-meta { justify-items: start; text-align: left; grid-auto-flow: column; align-items: center; justify-content: space-between; }
  .hero-caption { display: none; }
  .video-toggle { margin: 0; }
}

/* ---------- search ---------- */
.search-box { position: relative; }
.search-field { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 18px; border-radius: var(--r); background: #fff; color: var(--ink); }
.search-field svg { width: 20px; height: 20px; flex: none; color: var(--muted); }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16.5px; }
.search-field input::placeholder { color: var(--muted); }
.search-field:focus-within { box-shadow: 0 0 0 2px var(--yellow); }
.search-results { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 20; display: none; max-height: 380px; overflow: auto; padding: 6px; border-radius: var(--r); background: #fff; color: var(--ink); box-shadow: 0 18px 50px rgba(14, 42, 71, 0.28); }
.search-results.below { bottom: auto; top: calc(100% + 8px); }
.search-results.open { display: block; }
.search-results a { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: var(--r); }
.search-results a:hover, .search-results a.active { background: var(--surface); }
.search-results .thumb { width: 56px; height: 40px; border-radius: 2px; object-fit: cover; background: var(--surface); }
.search-results strong { display: block; font-size: 15px; line-height: 1.3; font-weight: 650; }
.search-results small { color: var(--muted); font-size: 13px; }
.search-results .empty { padding: 14px; color: var(--muted); font-size: 15px; }

/* ---------- home sections ---------- */
.questions, .places, .shop, .speak, .tools, .about-strip { padding: clamp(72px, 10vw, 140px) 0; }
.questions + .places, .speak + .tools, .tools + .about-strip { padding-top: 0; }

.q-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 6vw, 96px); position: relative; }
.q-intro { position: sticky; top: 110px; align-self: start; display: grid; gap: 18px; justify-items: start; }
.q-intro p { color: var(--ink-2); max-width: 30ch; }
.q-list { border-top: 1px solid var(--ink); }
.q-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); transition: color 0.2s; }
.q-text { font-size: clamp(22px, 2.6vw, 36px); font-weight: 650; font-stretch: 112%; line-height: 1.12; }
.q-meta { flex: none; font-size: 14px; color: var(--muted); }
.q-list a:hover, .q-list a:focus-visible { color: var(--green); }
.peek { position: fixed; left: 0; top: 0; z-index: 30; width: 260px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); pointer-events: none; opacity: 0; transform: translate(-50%, -110%) scale(0.92); transition: opacity 0.2s, transform 0.25s var(--ease); box-shadow: 0 20px 50px rgba(14, 42, 71, 0.3); }
.peek.on { opacity: 1; transform: translate(-50%, -110%) scale(1); }
@media (max-width: 900px) {
  .q-grid { grid-template-columns: 1fr; }
  .q-intro { position: static; }
  .q-list a { flex-direction: column; gap: 6px; }
  .peek { display: none; }
}

.places-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 32px; align-items: end; margin-bottom: 36px; }
.places-head p { color: var(--ink-2); max-width: 46ch; }
.scroller-ctrl { display: flex; gap: 8px; }
.scroller-ctrl button { width: 48px; height: 48px; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: 50%; transition: border-color 0.2s, background 0.2s; }
.scroller-ctrl button:hover { border-color: var(--ink); }
.scroller-ctrl button:disabled { opacity: 0.35; cursor: default; }
.scroller-ctrl svg { width: 20px; height: 20px; }
.places-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 24vw, 340px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 12px; scrollbar-width: none; cursor: grab;
}
.places-track::-webkit-scrollbar { display: none; }
.places-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.places-track.dragging a { pointer-events: none; }
.place { scroll-snap-align: start; }
.place-media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--surface); }
.place-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.place a:hover .place-media img { transform: scale(1.04); }
.place h3 { margin-top: 16px; font-size: 24px; }
.place-line { margin-top: 4px; font-family: var(--serif); font-size: 18px; color: var(--ink-2); }
.place-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 900px) { .places-head { grid-template-columns: 1fr; } .scroller-ctrl { display: none; } }

/* ---------- shop ---------- */
.shop { background: var(--surface); }
.shop-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: end; margin-bottom: 40px; }
.shop-head p, .page-head .lead { color: var(--ink-2); }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.products-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product { display: flex; flex-direction: column; }
.product-cover { display: block; }
.cover { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r); background: var(--ink); box-shadow: 0 1px 0 rgba(14, 42, 71, 0.1), 0 22px 40px -24px rgba(14, 42, 71, 0.6); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.product-cover:hover .cover img { transform: scale(1.04); }
.cover-band { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 4px; padding: 18px 18px 20px; background: var(--ink); color: #fff; }
.cover-sunset .cover-band { background: var(--yellow); color: var(--ink); }
.cover-jungle .cover-band { background: var(--green); }
.cover-ocean .cover-band { background: var(--blue); }
.cover-brand { font-size: 12px; font-weight: 600; opacity: 0.8; }
.cover-title { font-size: clamp(20px, 1.9vw, 26px); font-weight: 800; line-height: 1; }
.product-body { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; flex: 1; }
.product-body h3 { font-size: 22px; }
.product-body h3 a:hover { color: var(--green); }
.product-body > p:not(.price) { color: var(--ink-2); flex: 1; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--muted); }
.price strong { font-size: 28px; font-weight: 800; font-stretch: 112%; color: var(--ink); }
.product-body .btn { align-self: flex-start; margin-top: 6px; }
.bundle { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; margin-top: 48px; padding: 24px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); }
.bundle-covers { display: flex; }
.bundle-covers .cover { width: 64px; box-shadow: 0 6px 16px -8px rgba(14, 42, 71, 0.6); }
.bundle-covers .cover + .cover { margin-left: -22px; }
.bundle-covers .cover-band { padding: 6px; }
.bundle-covers .cover-brand, .bundle-covers .cover-title { display: none; }
.bundle-copy h3 { font-size: 21px; }
.bundle-copy p { color: var(--ink-2); margin-top: 4px; }
@media (max-width: 960px) {
  .products { grid-template-columns: 1fr 1fr; }
  .shop-head { grid-template-columns: 1fr; }
  .bundle { grid-template-columns: 1fr; justify-items: start; }
}
@media (max-width: 600px) { .products, .products-2 { grid-template-columns: 1fr; } }

/* ---------- budget calculator ---------- */
.budget-band { background: var(--ink); color: #fff; padding: clamp(72px, 9vw, 120px) 0; }
.budget { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.budget-controls > p { margin-top: 16px; color: rgba(255, 255, 255, 0.78); max-width: 46ch; }
.bc-group { border: 0; margin: 28px 0 0; padding: 0; min-width: 0; }
.bc-group legend, .bc-legend { display: block; padding: 0; margin-bottom: 12px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.7); }
.bc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bc-chip, .bc-seg label { position: relative; }
.bc-chip input, .bc-seg input { position: absolute; opacity: 0; pointer-events: none; }
.bc-chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--r); border: 1.5px solid rgba(255, 255, 255, 0.28); font-size: 15px; font-weight: 550; cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.bc-chip span:hover { border-color: #fff; }
.bc-chip input:checked + span { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.bc-chip input:focus-visible + span, .bc-seg input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }
.bc-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bc-seg span { display: grid; gap: 2px; height: 100%; padding: 14px; border-radius: var(--r); border: 1.5px solid rgba(255, 255, 255, 0.28); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.bc-seg b { font-size: 16px; }
.bc-seg small { font-size: 13px; color: rgba(255, 255, 255, 0.65); line-height: 1.35; }
.bc-seg input:checked + span { border-color: var(--yellow); background: rgba(242, 182, 48, 0.12); }
.bc-row { display: grid; grid-template-columns: minmax(0, 1.5fr) auto; gap: 32px; align-items: end; }
.bc-range-row { display: flex; align-items: center; gap: 16px; }
.bc-range { flex: 1; accent-color: var(--yellow); height: 28px; }
.bc-days-out { min-width: 2ch; font-size: 26px; font-weight: 800; font-stretch: 112%; }
.bc-step { display: inline-flex; align-items: center; gap: 6px; }
.bc-step button { width: 40px; height: 40px; border-radius: var(--r); border: 1.5px solid rgba(255, 255, 255, 0.28); font-size: 20px; transition: border-color 0.2s; }
.bc-step button:hover { border-color: #fff; }
.bc-step output { min-width: 34px; text-align: center; font-size: 22px; font-weight: 800; }
.budget-result { position: sticky; top: 100px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r); background: var(--ink-soft); }
.bc-label { font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.bc-total { margin-top: 4px; font-size: clamp(56px, 6.4vw, 92px); font-weight: 800; font-stretch: 125%; line-height: 1; letter-spacing: -0.03em; color: var(--yellow); font-variant-numeric: tabular-nums; }
.bc-sub { margin-top: 10px; color: rgba(255, 255, 255, 0.8); }
.bc-sub span { font-weight: 700; color: #fff; }
.bc-bars { display: grid; gap: 14px; margin-top: 28px; }
.bc-bars li { display: grid; grid-template-columns: 1fr auto; gap: 6px; font-size: 15px; }
.bc-bars .bv { font-weight: 700; font-variant-numeric: tabular-nums; }
.bc-bars .bt { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.bc-bars i { display: block; height: 100%; background: var(--yellow); transform-origin: 0 50%; transform: scaleX(0); transition: transform 0.6s var(--ease); }
.bc-ctas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
@media (max-width: 960px) { .budget { grid-template-columns: 1fr; } .budget-result { position: static; } }
@media (max-width: 560px) { .bc-seg { grid-template-columns: 1fr; } .bc-row { grid-template-columns: 1fr; } }

/* ---------- phrase deck ---------- */
.speak-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.speak-grid > div:first-child { display: grid; gap: 18px; justify-items: start; }
.speak-grid > div:first-child > p { color: var(--ink-2); max-width: 42ch; }
.deck-score { font-size: 15px; }
.deck-score b { font-size: 22px; font-weight: 800; color: var(--green); }
.deck { display: grid; justify-items: center; gap: 28px; }
.deck-stack { position: relative; width: min(420px, 100%); aspect-ratio: 5 / 4; }
.deck-card { position: absolute; inset: 0; perspective: 1400px; touch-action: pan-y; user-select: none; outline: 0; transform: translateY(calc(var(--d) * 12px)) scale(calc(1 - var(--d) * 0.04)); transition: transform 0.45s var(--ease), opacity 0.3s; z-index: calc(10 - var(--d)); }
.deck-card[style*="--d:2"] { opacity: 0.5; }
.deck-card.dragging { transition: none; }
.deck-card.gone { transition: transform 0.35s ease-in, opacity 0.35s; opacity: 0; }
.dc-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.55s var(--ease); }
.deck-card.flipped .dc-inner { transform: rotateY(180deg); }
.dc-face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 32px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 50px -30px rgba(14, 42, 71, 0.5); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.deck-card:focus-visible .dc-front { outline: 2px solid var(--blue); outline-offset: 3px; }
.dc-back { transform: rotateY(180deg); background: var(--green); color: #fff; border-color: var(--green); }
.dc-face small { position: absolute; top: 22px; left: 32px; font-size: 13px; font-weight: 600; color: var(--muted); }
.dc-back small { color: rgba(255, 255, 255, 0.75); }
.dc-face b { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; font-stretch: 115%; line-height: 1.02; letter-spacing: -0.02em; }
.dc-face i { font-family: var(--serif); font-size: 21px; color: var(--green); }
.dc-back span { font-family: var(--serif); font-size: 18px; opacity: 0.9; }
.dc-tip { position: absolute; bottom: 20px; left: 32px; font-size: 13px; color: var(--muted); }
.dc-stamp { position: absolute; top: 20px; z-index: 5; padding: 4px 12px; border-radius: var(--r); border: 2px solid; font-weight: 700; font-size: 15px; background: #fff; pointer-events: none; }
.dc-stamp.yes { right: 20px; color: var(--green); opacity: var(--yes, 0); }
.dc-stamp.no { left: 20px; color: #b4472f; opacity: var(--no, 0); }
.deck-controls { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.deck-done { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; border-radius: var(--r); border: 1px solid var(--line); }
.deck-done b { font-size: 30px; font-weight: 800; font-stretch: 115%; }
@media (max-width: 860px) { .speak-grid { grid-template-columns: 1fr; } }

/* ---------- tools ---------- */
.tools-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 6vw, 96px); }
.tools-grid > div { display: grid; gap: 18px; align-content: start; justify-items: start; }
.tools-grid > div p { color: var(--ink-2); max-width: 36ch; }
.tool-list { border-top: 1px solid var(--ink); }
.tool-row { display: grid; grid-template-columns: 150px 120px minmax(0, 1fr) auto; gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.tool-name { font-weight: 750; font-stretch: 112%; font-size: 18px; }
.tool-cat { font-size: 14px; color: var(--muted); }
.tool-desc { color: var(--ink-2); }
.tool-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--green); white-space: nowrap; }
.tool-link svg { width: 15px; height: 15px; }
.tool-link:hover { color: var(--ink); }
@media (max-width: 900px) {
  .tools-grid { grid-template-columns: 1fr; }
  .tool-row { grid-template-columns: 1fr auto; gap: 4px 16px; }
  .tool-cat { grid-row: 1; grid-column: 2; text-align: right; }
  .tool-desc, .tool-link { grid-column: 1 / -1; }
}

/* ---------- about strip ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.about-grid > div { display: grid; gap: 20px; justify-items: start; }
.about-grid p { font-family: var(--serif); font-size: 21px; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- newsletter ---------- */
.newsletter { padding: clamp(56px, 7vw, 96px) 0; background: var(--green-deep); color: #fff; }
.nl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.nl-grid h2 { font-size: clamp(28px, 3vw, 40px); }
.nl-grid p { margin-top: 14px; color: rgba(255, 255, 255, 0.8); max-width: 46ch; }
.nl-form label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.nl-row { display: flex; gap: 8px; }
.nl-row input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: var(--r); border: 1.5px solid transparent; background: #fff; color: var(--ink); outline: 0; }
.nl-row input:focus { border-color: var(--yellow); }
.nl-msg { margin-top: 10px !important; min-height: 1.5em; font-weight: 600; color: var(--yellow) !important; }
.newsletter :focus-visible { outline-color: var(--yellow); }
@media (max-width: 760px) { .nl-grid { grid-template-columns: 1fr; } .nl-row { flex-direction: column; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: clamp(56px, 7vw, 96px) 0 28px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; }
.footer-pitch { font-size: clamp(26px, 3vw, 40px); font-weight: 750; line-height: 1.05; max-width: 16ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-cols h2 { font-size: 14px; font-stretch: 100%; font-weight: 600; letter-spacing: 0; color: rgba(255, 255, 255, 0.6); margin-bottom: 14px; }
.footer-cols ul { display: grid; gap: 8px; }
.footer-cols a { font-size: 15px; color: rgba(255, 255, 255, 0.9); }
.footer-cols a:hover { color: var(--yellow); }
.footer-word { margin: clamp(48px, 7vw, 96px) 0 0; font-size: clamp(64px, 17vw, 260px); font-weight: 800; font-stretch: 125%; letter-spacing: -0.04em; line-height: 0.8; color: var(--yellow); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.footer-bottom a:hover { color: #fff; }
.footer-bottom span a + a { margin-left: 16px; }
.socials { display: flex; gap: 6px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); }
.socials a:hover { border-color: #fff; }
.socials svg { width: 17px; height: 17px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; } .footer-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- inner pages ---------- */
.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 56px); }
.page-head h1 { margin-top: 18px; font-size: clamp(48px, 8vw, 116px); letter-spacing: -0.035em; }
.page-head .lead { margin-top: 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--muted); }
.crumbs > * + *::before { content: "/"; margin: 0 10px; color: var(--line); }
.crumbs a:hover { color: var(--ink); }
.listing { padding-bottom: clamp(56px, 7vw, 100px); }
.listing-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.listing > .filters { margin-bottom: 28px; }
.filter { min-height: 38px; padding: 0 14px; border-radius: var(--r); border: 1.5px solid var(--line); font-size: 14.5px; font-weight: 550; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.filter:hover { border-color: var(--ink); }
.filter.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-search { display: flex; align-items: center; gap: 10px; width: min(320px, 100%); height: 42px; padding: 0 14px; border-radius: var(--r); border: 1.5px solid var(--line); }
.filter-search:focus-within { border-color: var(--ink); }
.filter-search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.filter-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; }
.no-results { display: none; padding: 40px 0; color: var(--muted); }

.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px clamp(20px, 3vw, 40px); }
.post-card { display: flex; flex-direction: column; }
.post-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r); background: var(--surface); margin-bottom: 18px; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.04); }
.post-cat { font-size: 14px; font-weight: 600; color: var(--green); }
.post-card h3 { margin-top: 6px; font-size: 22px; font-stretch: 110%; }
.post-card h3 a:hover { color: var(--green); }
.post-excerpt { margin-top: 10px; font-family: var(--serif); font-size: 18px; line-height: 1.45; color: var(--ink-2); }
.post-meta { margin-top: 12px; font-size: 14px; color: var(--muted); }
@media (max-width: 960px) { .posts-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .posts-grid { grid-template-columns: 1fr; } }

.related { padding: clamp(56px, 7vw, 100px) var(--gutter); }
.related h2 { margin-bottom: 36px; }
.faq-block { padding-top: clamp(56px, 7vw, 100px); padding-bottom: clamp(56px, 7vw, 100px); }
.faq-block h2 { margin-bottom: 24px; }

/* ---------- article ---------- */
.progress { position: fixed; top: 0; left: 0; z-index: 60; width: 100%; height: 3px; background: var(--yellow); transform-origin: 0 50%; transform: scaleX(0); }
.article-head { max-width: 1000px; padding-top: clamp(40px, 6vw, 80px); }
.article-head h1 { margin-top: 22px; font-size: clamp(38px, 5.6vw, 76px); font-stretch: 115%; letter-spacing: -0.03em; }
.article-head .lead { margin-top: 22px; }
.article-meta { margin-top: 22px; font-size: 14.5px; color: var(--muted); }
.article-cover { margin-top: clamp(32px, 5vw, 56px); }
.article-cover img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--r); }
@media (max-width: 700px) { .article-cover img { aspect-ratio: 4 / 3; } }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 700px); gap: clamp(32px, 6vw, 96px); padding-top: clamp(40px, 5vw, 64px); }
.toc { position: sticky; top: 104px; align-self: start; font-size: 14.5px; }
.toc h2 { font-size: 14px; font-stretch: 100%; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-bottom: 12px; }
.toc ol { display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--green); border-left-color: var(--green); font-weight: 600; }
.share { display: flex; gap: 6px; margin-top: 28px; }
.share button, .share a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); }
.share button:hover, .share a:hover { border-color: var(--ink); }
.share svg { width: 16px; height: 16px; }
@media (max-width: 1040px) { .article-layout { grid-template-columns: minmax(0, 1fr); max-width: 760px; } .toc { display: none; } }

.prose { font-family: var(--serif); font-size: 20px; line-height: 1.65; color: var(--ink); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 2em; font-family: var(--sans); font-size: clamp(26px, 2.6vw, 34px); font-stretch: 112%; }
.prose h3 { margin-top: 1.6em; font-family: var(--sans); font-size: 22px; font-stretch: 110%; }
.prose strong { font-weight: 650; }
.prose a:not(.btn) { color: var(--green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--green); }
.prose blockquote { margin: 1.6em 0; padding-left: 22px; border-left: 3px solid var(--yellow); font-size: 25px; line-height: 1.4; font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15.5px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.prose th { font-size: 14px; font-weight: 600; color: var(--muted); border-bottom-color: var(--ink); }
.prose td:first-child { font-weight: 650; }
.prose code { font-size: 0.85em; }
.prose .disclosure { font-family: var(--sans); }

.callout { display: block; padding: 18px 22px; border-left: 3px solid var(--blue); background: var(--surface); font-family: var(--sans); font-size: 16.5px; line-height: 1.55; border-radius: 0 var(--r) var(--r) 0; }
.callout strong { display: block; margin-bottom: 4px; font-weight: 700; }
.callout.warn { border-left-color: var(--yellow); }
.callout.info { border-left-color: var(--green); }

.pt-phrase { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: center; padding: 14px 0 14px 18px; border-left: 3px solid var(--yellow); }
.pt-phrase b { font-family: var(--sans); font-weight: 700; font-stretch: 110%; font-size: 20px; grid-column: 1; }
.pt-phrase i { grid-column: 1; color: var(--green); }
.pt-phrase span { grid-column: 1; font-size: 17px; color: var(--ink-2); }
.pt-phrase button { grid-column: 2; grid-row: 1 / span 3; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); color: var(--blue); }
.pt-phrase button:hover { border-color: var(--blue); }
.pt-phrase button svg { width: 18px; height: 18px; }

.aff { display: grid; gap: 6px; justify-items: start; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r); font-family: var(--sans); }
.aff-kind { font-size: 14px; color: var(--muted); }
.aff-name { font-size: 22px; font-weight: 750; font-stretch: 115%; line-height: 1.1; }
.aff-desc { font-family: var(--serif); font-size: 18px; color: var(--ink-2); margin-bottom: 8px; }

.product-cta { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: center; padding: 24px; border-radius: var(--r); background: var(--surface); font-family: var(--sans); }
.product-cta .cover-band { padding: 8px; }
.product-cta .cover-brand { display: none; }
.product-cta .cover-title { font-size: 12px; }
.product-cta-kind { font-size: 14px; color: var(--muted); }
.product-cta-title { margin-top: 2px; font-size: 22px; font-weight: 750; font-stretch: 115%; line-height: 1.1; }
.product-cta p:not(.product-cta-kind):not(.product-cta-title) { margin: 8px 0 14px; font-family: var(--serif); font-size: 17px; color: var(--ink-2); }
.listing .product-cta { margin-top: 56px; max-width: 760px; }
@media (max-width: 560px) { .product-cta { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; padding: 18px; } }

.faq details { border-bottom: 1px solid var(--line); font-family: var(--sans); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-size: 18px; font-weight: 650; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 26px; font-weight: 400; color: var(--green); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; font-family: var(--serif); font-size: 18px; color: var(--ink-2); }

.disclosure { font-size: 14px; color: var(--muted); }
.disclosure a { text-decoration: underline; }

.checklist { list-style: none !important; padding: 0 !important; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; margin: 0 !important; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 16px; height: 9px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.faq-block .checklist, .pd-info .checklist { font-size: 18px; }
.faq-block .checklist a { color: var(--green); text-decoration: underline; }

/* ---------- product page ---------- */
.pd { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(32px, 4vw, 56px); }
.pd-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); margin-top: 32px; align-items: start; }
.pd-cover { position: sticky; top: 100px; }
.pd-info { display: grid; gap: 18px; justify-items: start; }
.pd-info h1 { font-size: clamp(40px, 5vw, 68px); }
.pd-info h2 { margin-top: 24px; font-size: 26px; }
.pd-info .price strong { font-size: 40px; }
.pd-note { font-size: 14.5px; color: var(--muted); }
.pd-why { margin-top: 12px; padding-left: 18px; border-left: 3px solid var(--yellow); font-family: var(--serif); font-size: 19px; color: var(--ink-2); }
@media (max-width: 860px) { .pd-grid { grid-template-columns: 1fr; } .pd-cover { position: static; max-width: 380px; } }

/* ---------- phrasebook ---------- */
.pb-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); }
.pb-item { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.pb-pt { font-size: 21px; font-weight: 700; font-stretch: 110%; line-height: 1.2; }
.pb-say { margin-top: 4px; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--green); }
.pb-en { margin-top: 6px; font-family: var(--serif); font-size: 17px; color: var(--ink-2); }
.pb-en span { display: block; color: var(--muted); }
.pb-item button { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); color: var(--blue); transition: border-color 0.2s, background 0.2s, color 0.2s; }
.pb-item button:hover { border-color: var(--blue); }
.pb-item.playing button { background: var(--blue); border-color: var(--blue); color: #fff; }
.pb-item button svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .pb-list { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.nf { display: grid; gap: 24px; justify-items: start; padding-top: clamp(64px, 10vw, 140px); padding-bottom: clamp(64px, 10vw, 140px); max-width: 860px; }
.nf h1 { font-size: clamp(44px, 7vw, 96px); }
.nf-search { width: min(560px, 100%); }
.nf-search .search-field { border: 1.5px solid var(--line); }

/* ---------- misc ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: var(--r); background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; transition: opacity 0.3s, transform 0.3s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; max-width: 760px; margin: 0 auto; padding: 16px 18px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(14, 42, 71, 0.22); font-size: 15px; }
.consent[hidden] { display: none; }
.consent p { flex: 1 1 320px; color: var(--ink-2); }
.consent a { text-decoration: underline; }
.consent-actions { display: flex; gap: 8px; }

@view-transition { navigation: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .place-media img, .post-media img, .cover img { transition: none; }
}
.btn.soon { cursor: default; color: var(--muted); }
