:root {
  --cream: #ffffff;
  --cream-dark: #f5f5f5;
  --navy: #1c1b1a;
  --rust: #c0392b;
  --rust-light: #fdecea;
  --rust-mid: rgba(192, 57, 43, 0.08);
  --gold: #f1b35b;
  --green: #2e7d32;
  --green-light: #e8f5e9;
  --muted: #6b6b68;
  --muted-light: #9b9b98;
  --surface: #ffffff;
  --border: #e8e5e0;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  overscroll-behavior-y: none;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  background-color: #ffffff;
  color: var(--navy);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

input, textarea, [contenteditable] {
  user-select: text;
}

button, a, [role="button"] {
  cursor: pointer;
  transition: transform 0.1s ease, opacity 0.1s ease;
}

button:active, a:active, [role="button"]:active {
  transform: scale(0.97);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.screen-enter {
  animation: fadeUp 0.3s ease both;
}

.app-shell {
  min-height: 100dvh;
  background: var(--cream);
  display: flex;
  flex-direction: column;
}

.app-main {
  flex: 1;
}

.container-narrow {
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
}

.section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--rust);
  color: #fff;
  box-shadow: 0 10px 25px rgba(192, 57, 43, 0.2);
}

.btn-secondary {
  background: var(--surface);
  color: var(--navy);
  border-color: var(--border);
}

.btn-quiet {
  background: transparent;
  color: var(--rust);
  font-size: 0.875rem;
  padding: 0.75rem;
}

.landing {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.landing-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
}

.landing-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.7), var(--cream));
}

.landing-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  flex: 1;
}

.landing-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.landing-title .accent {
  color: var(--rust);
}

.landing-subtitle {
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
  margin: 0 0 2rem;
}

.landing-mascot {
  width: 10rem;
  height: 10rem;
  object-fit: contain;
  margin-bottom: 2rem;
}

.landing-actions {
  width: 100%;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-error {
  color: var(--rust);
  font-size: 0.8125rem;
  margin: 0.5rem 0 0;
}

.form-success {
  background: var(--green-light);
  border: 1px solid var(--green);
  color: var(--green);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.join-form input {
  width: 100%;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 0.75rem;
}

/* ---------- Landing (/) ---------- */

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

.lp,
.lp-header,
.lp-footer {
  --lp-green: #0d6b4a;
  --lp-green-dark: #0a5740;
  --lp-ink: #1c2b4a;
  --lp-muted: #5a6a86;
  --lp-line: #e2eae5;
  --lp-script: 'Caveat', cursive;
}

.lp {
  background: #f2f9f4;
  color: var(--lp-ink);
}

.lp a:focus-visible,
.lp button:focus-visible,
.lp summary:focus-visible,
.lp input:focus-visible {
  outline: 2px solid var(--lp-green);
  outline-offset: 2px;
}

.lp-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem max(1.5rem, calc((100% - 1120px) / 2 + 1.5rem));
  background: #fff;
  border-bottom: 1px solid var(--lp-line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--lp-ink);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.lp-nav {
  display: flex;
  gap: 1.5rem;
  margin-left: 2rem;
}

.lp-nav a {
  color: var(--lp-ink);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
}

.lp-nav a:hover {
  color: var(--lp-green);
}

.lp-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.lp-icon-btn {
  color: var(--lp-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
}

.lp-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: var(--lp-ink);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font: inherit;
}

.lp-menu-btn:hover {
  background: #eef4ff;
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--lp-green);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  min-height: 2.75rem;
  font-weight: 600;
  font-size: 0.925rem;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  width: auto;
}

.lp-btn:hover {
  background: var(--lp-green-dark);
}

.lp-btn-lg {
  padding: 0.8rem 1.8rem;
}

/* Image placeholders: hatched slot + label until real art lands. */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: #64748b;
  font-size: 0.85rem;
  line-height: 1.5;
  background: repeating-linear-gradient(45deg, #e8eef4, #e8eef4 14px, #dfe8f0 14px, #dfe8f0 28px);
  border: 2px dashed #9db2c5;
  border-radius: 1rem;
}

.img-placeholder span {
  background: rgba(255, 255, 255, 0.88);
  padding: 0.35rem 0.7rem;
  border-radius: 0.5rem;
}

.lp-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 2rem 2rem;
  /* Stay near the art's ~3:1 ratio so cover doesn't crop the traveler. */
  min-height: clamp(18rem, 33vw, 26rem);
}

.lp-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.lp-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% center;
  display: block;
}

/* Soft left wash so copy stays readable over the bay. */
.lp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(242, 249, 244, 0.88) 0%,
    rgba(242, 249, 244, 0.62) 26%,
    rgba(242, 249, 244, 0.18) 48%,
    transparent 62%
  );
}

.lp-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
  min-height: inherit;
}

.lp-script {
  font-family: var(--lp-script);
  font-weight: 700;
  line-height: 1.1;
}

.lp-hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  margin: 0 0 1rem;
  letter-spacing: 0;
}

.lp-script-green {
  color: #0d7a4e;
}

.lp-script-navy {
  color: var(--lp-ink);
}

.lp-hero-sub {
  color: #33415c;
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 34rem;
  margin: 0 0 1.5rem;
}

.lp-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.35rem 0.35rem 1.1rem;
  box-shadow: 0 10px 30px rgba(28, 43, 74, 0.12);
  max-width: 34rem;
}

.lp-search:focus-within {
  box-shadow: 0 0 0 3px rgba(13, 107, 74, 0.25);
}

.lp-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.925rem;
  font-family: inherit;
  color: var(--lp-ink);
}

.lp-search-icon {
  color: var(--lp-ink);
  flex-shrink: 0;
}

.lp-hero-art {
  position: relative;
  align-self: stretch;
  min-height: 12rem;
}

.lp-handnote {
  font-family: var(--lp-script);
  font-weight: 700;
  color: var(--lp-ink);
  font-size: 1.35rem;
  line-height: 1.15;
  transform: rotate(4deg);
}

.lp-hero-note {
  position: absolute;
  right: 0.5rem;
  top: 1rem;
  margin: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.lp-cats-wrap {
  max-width: 1120px;
  margin: -3rem auto 0;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.lp-cats {
  list-style: none;
  margin: 0;
  padding: 1.25rem;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 12px 32px rgba(28, 43, 74, 0.1);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.lp-cat {
  background: var(--cat-bg);
  border-radius: 1rem;
  padding: 1.1rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.lp-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 0;
}

.lp-h2 {
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

.lp-sub {
  color: var(--lp-muted);
  margin: 0 0 1.75rem;
}

.lp-center {
  text-align: center;
}

.lp-sub.lp-center {
  margin-left: auto;
  margin-right: auto;
}

.lp-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.lp-card {
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(28, 43, 74, 0.08);
  display: flex;
  flex-direction: column;
}

.lp-card-img {
  border: none;
  border-radius: 0;
  aspect-ratio: 16 / 9;
}

.lp-card-body {
  padding: 1.25rem;
  position: relative;
  flex: 1;
}

.lp-card-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

.lp-card-body p {
  margin: 0;
  color: var(--lp-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  padding-right: 2.5rem;
}

.lp-arrow {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #eef4ff;
  color: var(--lp-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lp-arrow:hover {
  background: var(--lp-green);
  color: #fff;
}

.lp-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.lp-feature {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0 1.5rem;
}

.lp-feature + .lp-feature {
  border-left: 1px solid var(--lp-line);
}

.lp-feature svg {
  flex-shrink: 0;
}

.lp-feature h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.lp-feature p {
  margin: 0;
  color: var(--lp-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.lp-faq-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.lp-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.lp-qa {
  background: #fff;
  border: 1px solid var(--lp-line);
  border-radius: 0.9rem;
  padding: 0.9rem 1.1rem;
}

.lp-qa summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

.lp-qa summary::after {
  content: '+';
  font-size: 1.25rem;
  line-height: 1;
  color: var(--lp-ink);
}

.lp-qa[open] summary::after {
  content: '×';
}

.lp-qa p {
  margin: 0.7rem 0 0.2rem;
  color: var(--lp-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.lp-faq-art {
  overflow: hidden;
}

.lp-faq-art .lp-handnote {
  margin: 0 0 0.75rem;
  text-align: right;
}

.lp-faq-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 1rem;
  display: block;
}

.lp-cta {
  background: #e3f3e9;
  border-radius: 1.5rem;
  padding: 2.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.lp-cta-title {
  font-size: 2rem;
  margin: 0 0 0.4rem;
}

.lp-cta p {
  margin: 0;
  color: #33415c;
}

.lp-footer {
  background: #fff;
  border-top: 1px solid var(--lp-line);
  margin-top: 3.5rem;
  padding: 1.75rem max(1.5rem, calc((100% - 1120px) / 2 + 1.5rem));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.lp-footer-brand {
  margin-right: auto;
}

.lp-tagline {
  margin: 0.35rem 0 0;
  color: var(--lp-muted);
  font-size: 0.8rem;
}

.lp-footer-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.lp-footer-nav a {
  color: var(--lp-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}

.lp-footer-nav a:hover {
  color: var(--lp-green);
}

.lp-footer-note {
  margin: 0;
  font-size: 1.1rem;
  text-align: right;
}

.lp-copy {
  flex-basis: 100%;
  text-align: center;
  color: var(--lp-muted);
  font-size: 0.8rem;
  margin: 0.5rem 0 0;
}

@media (max-width: 900px) {
  .lp-hero {
    min-height: 0;
  }

  .lp-hero-bg img {
    /* Bias toward the traveler's face in the stacked layout. */
    object-position: 78% 28%;
  }

  .lp-hero::before {
    background: linear-gradient(
      180deg,
      rgba(242, 249, 244, 0.95) 0%,
      rgba(242, 249, 244, 0.82) 38%,
      rgba(242, 249, 244, 0.35) 62%,
      rgba(242, 249, 244, 0.08) 78%,
      transparent 100%
    );
  }

  .lp-hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 2.25rem 1.25rem 4.25rem;
    min-height: 0;
  }

  /* Keep character in the background; don't reserve empty column height. */
  .lp-hero-art {
    position: absolute;
    inset: 0;
    min-height: 0;
    pointer-events: none;
  }

  .lp-hero-note {
    display: none;
  }

  .lp-hero-title {
    font-size: clamp(2.2rem, 7vw, 3.25rem);
  }

  .lp-hero-sub {
    font-size: 0.98rem;
    max-width: 28rem;
  }

  .lp-search {
    max-width: 28rem;
  }

  .lp-cats-wrap {
    margin-top: -2.25rem;
    padding: 0 1.25rem;
  }

  .lp-cats {
    /* 3 on top, 2 centered below — avoids a dangling empty cell. */
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
    padding: 1rem;
  }

  .lp-cat:nth-child(-n + 3) {
    grid-column: span 2;
  }

  .lp-cat:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .lp-cat:nth-child(5) {
    grid-column: 4 / span 2;
  }

  .lp-cards {
    grid-template-columns: 1fr;
    max-width: 32rem;
    margin: 0 auto;
  }

  .lp-features {
    grid-template-columns: 1fr;
  }

  .lp-feature {
    padding: 0;
  }

  .lp-feature + .lp-feature {
    border-left: none;
    border-top: 1px solid var(--lp-line);
    padding-top: 1.5rem;
  }

  .lp-faq-grid {
    grid-template-columns: 1fr;
  }

  .lp-faq-art {
    max-width: 28rem;
  }

  .lp-faq-art .lp-handnote {
    text-align: left;
    transform: none;
  }

  .lp-faq-img {
    aspect-ratio: 16 / 10;
  }

  .lp-cta {
    flex-direction: column;
    text-align: center;
  }

  .lp-h2 {
    font-size: clamp(1.35rem, 3.5vw, 1.7rem);
  }
}

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

  .lp-header.is-menu-open .lp-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0.5rem;
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: 0.9rem;
    box-shadow: 0 12px 32px rgba(28, 43, 74, 0.14);
  }

  .lp-header.is-menu-open .lp-nav a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 0.75rem;
    border-radius: 0.6rem;
  }

  .lp-header.is-menu-open .lp-nav a:hover {
    background: #eef4ff;
  }

  .lp-header {
    gap: 0.75rem;
    padding-inline: 1rem;
  }

  .lp-brand-name {
    font-size: 0.95rem;
  }

  .lp-header-actions {
    gap: 0.35rem;
  }

  .lp-header-actions .lp-btn {
    display: none;
  }

  .lp-menu-btn {
    display: inline-flex;
  }

  .lp-footer {
    justify-content: center;
    text-align: center;
  }

  .lp-footer-brand,
  .lp-footer-note {
    margin: 0 auto;
    text-align: center;
  }

  .lp-footer-nav {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .lp-hero-inner {
    padding: 1.75rem 1rem 3.75rem;
  }

  .lp-hero-bg img {
    object-position: 82% 22%;
  }

  .lp-search {
    flex-wrap: wrap;
    border-radius: 1.25rem;
    padding: 0.55rem;
  }

  .lp-search input {
    flex: 1 1 100%;
    padding: 0.45rem 0.7rem;
  }

  .lp-search-icon {
    display: none;
  }

  .lp-search .lp-btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .lp-cats-wrap {
    padding: 0 1rem;
    margin-top: -2rem;
  }

  .lp-cats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    padding: 0.85rem;
  }

  .lp-cat:nth-child(n) {
    grid-column: auto;
  }

  .lp-cat:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 0.325rem);
    justify-self: center;
  }

  .lp-cat {
    padding: 0.9rem 0.4rem;
    font-size: 0.8rem;
  }

  .lp-section {
    padding: 2.75rem 1rem 0;
  }

  .lp-qa {
    padding: 0.85rem 1rem;
  }

  .lp-qa summary {
    font-size: 0.9rem;
    min-height: 2.75rem;
  }

  .lp-cta {
    padding: 1.75rem 1.25rem;
  }

  .lp-cta-title {
    font-size: 1.65rem;
  }

  .lp-faq-art {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp *,
  .lp *::before,
  .lp *::after {
    animation: none;
    transition: none;
  }
}

/* ---------- Food / Coffee (/food/coffee) ---------- */

.cf {
  --cf-bg: #f2f9f4;
  --cf-green: #0d6b4a;
  --cf-green-dark: #0a5740;
  --cf-coral: #e4574f;
  --cf-ink: #1c2b4a;
  --cf-muted: #5a6a86;
  --cf-line: #e2eae5;
  --cf-radius: 1.15rem;
  background: var(--cf-bg);
  color: var(--cf-ink);
  font-family: var(--sans);
  min-height: 100dvh;
}

.cf a:focus-visible,
.cf button:focus-visible {
  outline: 2px solid var(--cf-green);
  outline-offset: 2px;
}

.cf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cf-green);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  min-height: 2.75rem;
  font-weight: 600;
  font-size: 0.925rem;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.1s ease;
}

.cf-btn:hover {
  background: var(--cf-green-dark);
}

.cf-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.75rem 1.5rem 2rem;
}

.cf-eyebrow {
  margin: 0 0 0.75rem;
  color: var(--cf-green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cf-hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.cf-hero-sub {
  margin: 0 0 1.5rem;
  color: var(--cf-muted);
  font-size: 1.05rem;
  max-width: 28ch;
  line-height: 1.5;
}

.cf-media {
  width: 100%;
  min-height: 16rem;
  border-radius: var(--cf-radius);
  aspect-ratio: 4 / 3;
}

.cf-hero-media {
  min-height: 18rem;
}

img.cf-media {
  display: block;
  height: auto;
  object-fit: cover;
}

.cf-lessons {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem 3rem;
  scroll-margin-top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 3.25rem;
}

.cf-section-head {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.35rem;
}

.cf-num {
  flex: 0 0 auto;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  background: var(--cf-coral);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  margin-top: 0.15rem;
}

.cf-section-head h2 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.cf-section-head p {
  margin: 0;
  color: var(--cf-muted);
  font-size: 0.95rem;
}

.cf-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
  align-items: stretch;
}

.cf-split-flip .cf-phrases {
  order: 0;
}

.cf-split-flip .cf-media {
  order: 1;
}

.cf-phrases {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.cf-phrases-2 {
  grid-template-columns: 1fr 1fr;
}

.cf-phrase {
  background: #fff;
  border: 1px solid var(--cf-line);
  border-radius: 0.95rem;
  padding: 0.95rem 1rem;
  box-shadow: 0 1px 0 rgba(26, 36, 51, 0.03);
}

.cf-phrase-vi {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.cf-phrase-text {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
}

.cf-audio {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--cf-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.cf-audio:hover {
  background: var(--cf-green);
  color: #fff;
}

.cf-audio.is-playing {
  background: var(--cf-green);
  color: #fff;
}

.cf-audio:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.cf-audio-status.is-visible {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  z-index: 20;
  width: min(30rem, calc(100% - 2rem));
  height: auto;
  margin: 0;
  padding: 0.8rem 1rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
  color: #fff;
  background: var(--cf-ink);
  border: 0;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(28, 43, 74, 0.2);
  text-align: center;
  transform: translateX(-50%);
}

.cf-phrase-phonetic {
  margin: 0.35rem 0 0.2rem;
  color: var(--cf-muted);
  font-size: 0.88rem;
  font-style: italic;
}

.cf-pronunciation-label {
  color: var(--cf-ink);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cf-phrase-en {
  margin: 0;
  color: var(--cf-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.cf-enjoy {
  align-items: center;
}

.cf-enjoy-copy {
  background: #fff;
  border: 1px solid var(--cf-line);
  border-radius: var(--cf-radius);
  padding: 1.5rem 1.6rem;
}

.cf-enjoy-copy p {
  margin: 0;
  color: var(--cf-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 42ch;
}

.cf-dialogue {
  background: #fff;
  border: 1px solid var(--cf-line);
  border-radius: var(--cf-radius);
  padding: 0.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 0 rgba(26, 36, 51, 0.03);
}

.cf-msg {
  margin: 0;
  padding: 0.8rem 0;
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 1rem;
  line-height: 1.5;
}

.cf-msg + .cf-msg {
  border-top: 1px solid var(--cf-line);
}

.cf-role {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cf-msg-you .cf-role {
  color: var(--cf-green);
}

.cf-msg-staff .cf-role {
  color: var(--cf-muted);
}

@media (max-width: 900px) {
  .cf-hero,
  .cf-split {
    grid-template-columns: 1fr;
  }

  .cf-split-flip .cf-media {
    order: 0;
  }

  .cf-split-flip .cf-phrases {
    order: 1;
  }

  .cf-hero {
    padding-top: 2rem;
  }

  .cf-hero-sub {
    max-width: none;
  }

  .cf-media {
    min-height: 14rem;
  }
}

@media (max-width: 700px) {
  .cf-phrases-2 {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cf *,
  .cf *::before,
  .cf *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Data-driven SEO pages ---------- */

.cf-hero-no-media {
  grid-template-columns: 1fr;
  max-width: 760px;
}

.cf-split-no-media {
  grid-template-columns: 1fr;
  max-width: 760px;
}

.cf-prose {
  max-width: 760px;
  background: #fff;
  border: 1px solid var(--cf-line);
  border-radius: var(--cf-radius);
  padding: 1.35rem 1.6rem;
}

.cf-prose p {
  margin: 0;
  color: var(--cf-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.cf-prose p + p {
  margin-top: 1rem;
}

.cf-msg-translation {
  grid-column: 2;
  color: var(--cf-muted);
  font-size: 0.9rem;
}

.seo-page .cf-lessons {
  max-width: 900px;
}

.seo-related {
  width: min(900px, calc(100% - 2rem));
  margin: 0 auto 4.5rem;
  padding-top: 1rem;
}

.seo-related h2 {
  margin: 0.35rem 0 1.25rem;
  color: var(--cf-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.seo-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.seo-related-grid a {
  display: flex;
  min-width: 0;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  color: var(--cf-ink);
  background: #fff;
  border: 1px solid var(--cf-line);
  border-radius: var(--cf-radius);
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.seo-related-grid a:hover {
  border-color: var(--cf-coral);
  color: var(--cf-coral);
}

.seo-related-grid a:focus-visible {
  outline: 3px solid var(--cf-gold);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .seo-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .lp-footer-nav {
    column-gap: 1rem;
    row-gap: 0.75rem;
  }
}