/* ── 0. VIEW TRANSITIONS ── */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: vt-fade-out 180ms ease forwards;
}
::view-transition-new(root) {
  animation: vt-fade-in 220ms ease forwards;
}
@keyframes vt-fade-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-6px); }
}
@keyframes vt-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}


/* ================================================================
   ALLERGYPASS — main.css
   Single consolidated stylesheet. Replaces style.css,
   inline-styles.css, and home-styles.css.

   Load order:
     1. Tokens
     2. Reset
     3. Layout
     4. Typography helpers
     5. Navigation
     6. Buttons
     7. Shared components (cards, tables, prose, FAQ...)
     8. Home page — hero + all homepage-specific sections
     9. Blog / article pages
    10. Legal pages
    11. About page
    12. Utility classes
    13. Responsive (consolidated, no duplicates)
    14. Accessibility
================================================================ */


/* ── 1. TOKENS ── */
:root {
  --clay:         #C4593A;
  --clay-dark:    #A3452A;
  --clay-light:   #FAF0EC;
  --clay-mid:     #F0D5CB;
  --amber:        #C8780A;
  --bark:         #2C1F14;
  --soil:         #5C4030;
  --dust:         #9C8070;
  --linen:        #FAF6F1;
  --linen-mid:    #F3EDE5;
  --linen-dark:   #E9DDD3;
  --border:       #E0D3C8;
  --border-dark:  #C8B8A8;
  --white:        #FFFFFF;
  --text-muted:   #9C8070;

  /* Severity — load-bearing, do not change */
  --red:          #B91C1C;
  --gold:         #F59E0B;
  --sev-ana:      #CC0000;
  --sev-sev:      #C8780A;
  --sev-int:      #5C4030;

  --font-body:    'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-display: 'Instrument Serif', 'Lora', Georgia, serif;
  --font-serif:   'Lora', Georgia, serif;
  --font-mono:    'Courier New', Courier, monospace;
  --ease:         cubic-bezier(0.23, 1, 0.32, 1);
  --radius-sm:    8px;
  --radius:       12px;
  --radius-lg:    16px;
  --radius-xl:    20px;
  --nav-h:        64px;
}


/* ── 2. RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--linen);
  color: var(--bark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
/* Instrument Serif is a serif display face — ensure UI elements stay on Plus Jakarta Sans */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); }
button, input, select, textarea, .btn, nav, .nav-link, .stat-item__label,
.badge, .tag, .chip, .eyebrow { font-family: var(--font-body); }


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


/* ── 3. LAYOUT ── */
.container         { max-width: 1120px; margin: 0 auto; padding: 0 2rem; }
.container--narrow { max-width: 720px;  margin: 0 auto; padding: 0 2rem; }
.section           { padding: 5rem 0; }
.section--alt      { background: var(--linen-mid); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--no-top   { padding-top: 0; }
.section--sm-top   { padding-top: 1rem; }
.section--hero-center { padding: 8rem 0; text-align: center; }


/* ── 4. TYPOGRAPHY HELPERS ── */
.eyebrow {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clay);
  margin-bottom: 0.75rem;
}
.eyebrow--tight { margin-bottom: 0.25rem; }

.lead {
  font-size: 1.0625rem;
  color: var(--soil);
  line-height: 1.75;
  max-width: 540px;
  margin: 0 auto;
}
.lead--reset { margin-left: 0; }

/* Section header */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.15;
  color: var(--bark);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-header h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--clay);
  font-weight: 600;
}
.section-header p {
  font-size: 1.0625rem;
  color: var(--soil);
  margin-top: 1.125rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
  line-height: 1.75;
}
.section-header--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}
.section-header--left h2 { margin-left: 0; }

/* Hero (inner pages) */
.hero {
  padding: 4rem 0 3.5rem;
  text-align: center;
  background: var(--linen);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1.1;
  color: var(--bark);
}
.hero h1 em { font-family: var(--font-serif); font-style: italic; color: var(--clay); }
.hero--left   { text-align: left; padding-bottom: 2rem; }
.hero-emoji   { font-size: 4rem; margin-bottom: 1.5rem; }

/* Display headings */
.display-heading    { font-family: var(--font-display); font-size: 2rem; color: var(--bark); }
.display-heading--lg { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.15; margin: 0.75rem 0 1.25rem; }
.heading-large      { font-size: 1.75rem; margin-bottom: 0.75rem; }
.heading-small      { font-size: 0.9375rem; font-weight: 700; color: var(--bark); margin-bottom: 0.375rem; }
.heading-strong     { font-size: 1.375rem; font-weight: 800; }
.hero-title-large   { font-family: var(--font-display); font-size: 2.5rem; color: var(--bark); margin-bottom: 1rem; }
.hero-copy          { font-size: 1rem; color: var(--soil); margin-bottom: 2.5rem; max-width: 360px; margin-left: auto; margin-right: auto; line-height: 1.7; }


/* ── 5. NAVIGATION ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--clay);
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }

:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 2px; }
:focus:not(:focus-visible) { outline: none; }
.nav-links a:focus-visible,
.nav-cta:focus-visible,
.btn:focus-visible,
.pillar-card:focus-visible,
.blog-preview-card:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.allergen-chip:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
.field-input:focus-visible { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px var(--clay-mid); }
.footer-links a:focus-visible,
.footer-legal-link:focus-visible { outline: 2px solid rgba(250,247,242,0.6); outline-offset: 3px; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}
.site-nav.is-scrolled {
  box-shadow: 0 2px 16px rgba(44,31,20,0.09);
}
.site-nav .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--bark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  transition: color 0.15s;
}
.nav-logo:hover { color: var(--clay); }

.nav-links { display: flex; align-items: center; gap: 0.25rem; flex: 1; justify-content: center; }
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--soil);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.nav-links a:hover { color: var(--bark); background: var(--linen-dark); }
.nav-links a[aria-current="page"] { color: var(--clay); font-weight: 600; background: var(--clay-light); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--clay);
  color: #fff;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: all 0.15s;
  border: none;
}
.nav-cta:hover { background: var(--clay-dark); transform: translateY(-1px); }

/* Mobile nav */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--bark);
  font-size: 1.375rem;
  line-height: 1;
  flex-shrink: 0;
}
.mobile-drawer {
  display: flex;
  position: fixed;
  top: 0; right: 0; bottom: 0;
  left: auto;
  width: min(320px, 85vw);
  z-index: 500;
  background: var(--linen);
  flex-direction: column;
  padding: 1.25rem 1.5rem 2rem;
  overflow-y: auto;
  box-shadow: -4px 0 32px rgba(44,31,20,0.18);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  visibility: hidden;
}
.mobile-drawer.open { transform: translateX(0); visibility: visible; }
.mobile-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.mobile-drawer__close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--bark); padding: 0.25rem; line-height: 1; }
.mobile-drawer a,
.mobile-drawer__link {
  display: block;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--bark);
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
  text-decoration: none;
  background: none;
  border-top: none; border-left: none; border-right: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
}
.mobile-drawer a:last-of-type { border-bottom: none; }
.mobile-drawer a:hover,
.mobile-drawer__link:hover { color: var(--clay); }
.mobile-drawer__cta {
  display: block;
  background: var(--clay);
  color: #fff;
  text-align: center;
  padding: 1rem;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 700;
  margin-top: 1.5rem;
  transition: background 0.15s;
  text-decoration: none;
}
.mobile-drawer__cta:hover { background: var(--clay-dark); }

/* Mobile nav backdrop */
.mobile-drawer-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 499;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.mobile-drawer-backdrop.open { opacity: 1; pointer-events: auto; }


/* ── 6. BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  text-decoration: none;
}
.btn--primary {
  background: var(--clay);
  color: #fff;
  padding: 1rem 2.25rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(196, 89, 58, 0.2), inset 0 1px 0 rgba(255,255,255,0.15);
  font-family: var(--font-body);
}
.btn--primary:hover { background: var(--clay-dark); transform: translateY(-1px); box-shadow: 0 8px 32px rgba(196, 89, 58, 0.35); }
.btn--primary:active { transform: translateY(0); }
/* btn--terra is a semantic alias for btn--primary */
.btn--terra { background: var(--clay); color: #fff; }
.btn--terra:hover { background: var(--clay-dark); transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  color: var(--bark);
  border: 1.5px solid var(--border-dark);
}
.btn--outline:hover { border-color: var(--bark); background: var(--linen-mid); }
.btn--dark { background: var(--bark); color: #fff; }
.btn--dark:hover { background: var(--soil); }
.btn--white { background: #fff; color: var(--clay); font-weight: 700; }
.btn--white:hover { background: var(--linen); transform: translateY(-1px); }
.btn--small { padding: 0.6rem 1rem; font-size: 0.875rem; }
.btn--full  { width: 100%; justify-content: center; }


/* ── 7. SHARED COMPONENTS ── */

/* Pillar cards */
.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.pillar-grid--spaced { margin-bottom: 3rem; }
.pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.pillar-card:hover { border-color: var(--clay); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(196, 89, 58, 0.1); }
.pillar-card[style*="opacity:0.6"],
.pillar-card[style*="opacity: 0.6"] { pointer-events: none; }
.pillar-icon { font-size: 2rem; margin-bottom: 0.875rem; }
.pillar-card h3 { font-family: var(--font-display); font-size: 1.125rem; margin-bottom: 0.5rem; color: var(--bark); }
.pillar-card p  { font-size: 0.875rem; color: var(--soil); line-height: 1.7; flex: 1; }
.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clay);
  margin-top: 1.25rem;
}
.pillar-link--muted { color: var(--dust); }
.tool-badge {
  display: inline-block;
  background: var(--clay-light);
  color: var(--clay);
  border: 1px solid var(--clay-mid);
  padding: 0.2rem 0.625rem;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.875rem;
}

/* Prose content */
.prose-block { max-width: 680px; }
.prose-block h2 { font-family: var(--font-display); font-size: 1.625rem; color: var(--bark); margin: 2.5rem 0 0.875rem; line-height: 1.2; }
.prose-block h2:first-child { margin-top: 0; }
.prose-block h3 { font-size: 1rem; font-weight: 700; color: var(--bark); margin: 1.75rem 0 0.5rem; }
.prose-block p  { font-size: 0.9375rem; color: var(--soil); line-height: 1.8; margin-bottom: 1rem; }
.prose-block strong { color: var(--bark); font-weight: 600; }
.prose-block ul, .prose-block ol { margin: 0.75rem 0 1.25rem 1.25rem; }
.prose-block li { font-size: 0.9375rem; color: var(--soil); line-height: 1.8; margin-bottom: 0.4rem; }
.prose-block li strong { color: var(--bark); }

/* Info boxes */
.info-box {
  background: var(--clay-light);
  border: 1px solid var(--clay-mid);
  border-left: 3px solid var(--clay);
  border-radius: var(--radius);
  padding: 1.125rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--bark);
  line-height: 1.7;
}
.info-box strong { color: var(--clay-dark); }
.info-box--urgent { background: #FFF5F5; border-color: #FFCFCF; border-left-color: var(--sev-ana); }
.info-box--urgent strong { color: var(--sev-ana); }

/* Allergen blocks */
.allergen-block { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin: 1.25rem 0; }
.allergen-block__header { display: flex; align-items: flex-start; gap: 0.875rem; margin-bottom: 0.875rem; }
.ab-emoji { font-size: 1.75rem; flex-shrink: 0; margin-top: 2px; }
.ab-thai  { font-size: 1.1rem; font-weight: 700; color: var(--bark); }
.ab-en    { font-size: 0.8rem; color: var(--soil); margin-top: 2px; }
.ab-risk  { margin-left: auto; flex-shrink: 0; font-size: 0.7rem; font-weight: 700; padding: 0.25rem 0.625rem; border-radius: 100px; }
.ab-risk--high   { background: #FFECEC; color: #CC0000; }
.ab-risk--medium { background: #FFF6EC; color: var(--amber); }
.allergen-block p { font-size: 0.875rem; color: var(--soil); line-height: 1.75; margin-bottom: 0.5rem; }
.allergen-block p:last-child { margin-bottom: 0; }

/* Risk table */
.risk-table { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin: 1.5rem 0; font-size: 0.875rem; }
.rt-header { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; background: var(--linen-mid); padding: 0.75rem 1.25rem; gap: 1rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--dust); border-bottom: 1px solid var(--border); }
.rt-row    { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; padding: 0.875rem 1.25rem; gap: 1rem; border-bottom: 1px solid var(--border); color: var(--soil); }
.rt-row:last-child { border-bottom: none; }
.rt-row:nth-child(even) { background: var(--linen); }

/* Inline CTA */
.cta-inline {
  background: var(--linen-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.cta-inline p { font-size: 0.9375rem; font-weight: 600; color: var(--bark); margin: 0; }

/* FAQ */
.faq-block h2 { font-family: var(--font-display); font-size: 1.625rem; }
.faq-qa { border-top: 1px solid var(--border); padding: 1.5rem 0; }
.faq-qa h3 { font-size: 0.9375rem; font-weight: 700; color: var(--bark); margin-bottom: 0.625rem; }
.faq-qa p  { font-size: 0.875rem; color: var(--soil); line-height: 1.8; margin: 0; }

/* Related articles block */
.related-articles { border-top: 1px solid var(--border); margin-top: 2.5rem; padding-top: 1.5rem; }
.related-articles h4 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--soil); margin: 0 0 0.875rem; }

.blog-coming-soon-note { font-size: 0.875rem; color: var(--soil); text-align: center; margin: 2rem 0 0.5rem; opacity: 0.7; }
.related-link { display: block; font-size: 0.9rem; color: var(--clay); text-decoration: none; padding: 0.625rem 0; border-bottom: 1px solid var(--border); line-height: 1.5; }
.related-link:last-child { border-bottom: none; }
.related-link:hover { color: var(--bark); }

/* Recommendation cards */
.rec-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; margin: 1.25rem 0; }
.rec-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.rec-name { font-size: 1rem; font-weight: 700; color: var(--bark); }
.rec-sub  { font-size: 0.8rem; color: var(--soil); margin-top: 0.25rem; }
.rec-badge { font-size: 0.7rem; font-weight: 700; padding: 0.3rem 0.75rem; border-radius: 100px; flex-shrink: 0; }
.rec-badge--recommended { background: var(--clay-light); color: var(--clay); border: 1px solid var(--clay-mid); }
.rec-badge--good        { background: #EEF7EE; color: #2E7D32; border: 1px solid #C8E6C9; }

/* Hospital blocks */
.hospital-block { margin: 1.5rem 0; }
.hospital-block h3 { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--dust); margin-bottom: 0.875rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.hospital-list { display: flex; flex-direction: column; gap: 1rem; }
.hospital-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.hospital-item strong { font-size: 0.9375rem; color: var(--bark); display: block; margin-bottom: 0.375rem; }
.hospital-item p { font-size: 0.875rem; color: var(--soil); margin-bottom: 0.375rem; }

/* Tool bubble */
.tool-bubble { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; margin-top: 1.5rem; }
.tool-bubble__header { background: var(--bark); padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tool-bubble__title  { font-family: var(--font-display); font-size: 1.1rem; color: #fff; }
.tool-bubble__badge  { font-size: 0.7rem; font-weight: 700; background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); padding: 0.2rem 0.625rem; border-radius: 100px; }
.tool-bubble__body   { padding: 1.5rem; }
.tool-bubble__desc   { font-size: 0.9rem; color: var(--soil); line-height: 1.75; margin-bottom: 1.25rem; }
.tool-bubble__cta    { display: inline-block; background: var(--clay); color: #fff; padding: 0.75rem 1.5rem; border-radius: var(--radius); font-size: 0.9rem; font-weight: 700; margin-top: 0.25rem; }
.tool-bubble__cta:hover { background: var(--clay-dark); }
.tool-bubble__cta:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 2px; }

/* Trust cards (shared component, used on home and elsewhere) */
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.trust-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--clay);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.1rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.trust-card__icon  { font-size: 2rem; }
.trust-card__title { font-size: 0.9375rem; font-weight: 700; color: var(--bark); }
.trust-card__desc  { font-size: 0.875rem; color: var(--soil); line-height: 1.65; }

/* Trust banner (legal pages) */
.trust-banner { display: flex; gap: 0.625rem; flex-wrap: wrap; margin-top: 1.5rem; }
.trust-badge  { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 600; color: var(--soil); background: var(--white); border: 1px solid var(--border); border-radius: 100px; padding: 0.35rem 0.75rem; }
.trust-badge span { font-size: 0.85rem; }

/* Note / panel */
.note-panel { margin-top: 1.5rem; padding: 1.25rem; background: var(--linen-mid); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.note-panel > :last-child { margin-bottom: 0; }
.note-panel a.text-clay:hover { text-decoration: underline; text-underline-offset: 2px; }
.note-panel a.text-clay:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; border-radius: 2px; }
.panel-lg   { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.375rem; }
.panel-sm   { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.125rem 1.25rem; }

/* Disclaimer block */
.disclaimer-block {
  background: var(--linen-mid);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.disclaimer-block__icon  { font-size: 1.25rem; flex-shrink: 0; margin-top: 1px; }
.disclaimer-block__title { font-size: 0.9rem; font-weight: 700; color: var(--bark); margin-bottom: 0.375rem; }
.disclaimer-block__text  { font-size: 0.875rem; color: var(--soil); line-height: 1.75; }
.disclaimer-block__text a { color: var(--clay); text-decoration: underline; text-underline-offset: 2px; }


/* ── 8. HOME PAGE ── */

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50%       { transform: translateY(-30px) translateX(20px); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-15px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Home hero — two-column layout */
.home-hero {
  padding: 5rem 0;
}
.home-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.home-hero__left { text-align: left; }
.home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--clay-light);
  color: var(--clay);
  border: 1px solid var(--clay-mid);
  padding: 0.3rem 0.875rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.home-hero__dot { width: 6px; height: 6px; background: var(--clay); border-radius: 50%; display: inline-block; }
.home-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.06;
  color: var(--bark);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.home-hero__title em { font-family: var(--font-serif); font-style: italic; color: var(--clay); }
.home-hero__sub {
  font-size: 1.0625rem;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--soil);
  line-height: 1.75;
  margin: 0 0 2rem;
}
.home-hero__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.home-hero__reassurance {
  font-size: 0.8rem;
  color: var(--dust);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.home-hero__reassurance span { display: inline-flex; align-items: center; gap: 0.35rem; }
.home-hero__card-wrap { position: relative; }

/* Hero card mockup */
.hero-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(44,31,20,0.18), 0 4px 16px rgba(44,31,20,0.08);
  border: 1px solid var(--border);
  max-width: 320px;
  margin: 0 auto;
}
.hero-card__banner     { background: #CC0000; padding: 1.25rem 1.5rem; }
.hero-card__banner-th  { font-size: 1.35rem; font-weight: 900; color: #fff; line-height: 1.25; display: block; }
.hero-card__banner-en  { font-size: 0.625rem; color: rgba(255,255,255,0.75); margin-top: 0.25rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; display: block; }
.hero-card__body       { padding: 1.25rem 1.5rem; }
.hero-card__row        { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.625rem 0; border-bottom: 1px solid var(--linen-mid); }
.hero-card__row:last-of-type { border-bottom: none; }
.hero-card__icon       { font-size: 1.375rem; flex-shrink: 0; }
.hero-card__th         { font-size: 1.2rem; font-weight: 900; color: var(--bark); display: block; line-height: 1.1; }
.hero-card__rom        { font-size: 0.6rem; color: var(--dust); font-style: italic; display: block; }
.hero-card__en         { font-size: 0.7rem; color: var(--soil); display: block; margin-top: 0.1rem; }
.hero-card__instr      { background: var(--linen-mid); border-radius: var(--hp-radius-sm); padding: 0.75rem 1rem; margin-top: 0.75rem; }
.hero-card__instr-th   { font-size: 0.8rem; font-weight: 700; color: var(--bark); }
.hero-card__instr-en   { font-size: 0.625rem; color: var(--soil); margin-top: 0.15rem; }
.hero-card__footer     { border-top: 1px solid var(--border); padding: 0.625rem 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.hero-card__footer-v   { font-size: 0.58rem; color: var(--soil); }
.hero-card__footer-b   { font-family: var(--font-display); font-size: 0.7rem; color: var(--clay); font-weight: 700; }

/* Interactive preview strip */
.preview-strip { background: var(--bark); padding: 3.5rem 0 0; }
.preview-strip__label  { text-align: center; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(250,247,242,0.38); margin-bottom: 1.5rem; }
.preview-controls      { display: flex; flex-direction: column; align-items: center; gap: 0.875rem; margin-bottom: 2.5rem; }
.preview-controls__row { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.preview-controls__group-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(250,247,242,0.3); text-align: center; }
.preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(250,247,242,0.07);
  border: 1.5px solid rgba(250,247,242,0.20);
  color: rgba(250,247,242,0.72);
  padding: 0.5rem 0.875rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 44px;
  font-family: var(--font-body);
}
.preview-chip:hover { background: rgba(250,247,242,0.13); border-color: rgba(250,247,242,0.35); color: rgba(250,247,242,0.92); }
.preview-chip.active { background: var(--clay); border-color: var(--clay); color: #fff; }
.preview-chip:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.preview-chip--lang.active { background: var(--soil); border-color: var(--soil); }
.preview-chip--lang[data-lang="ja"],
.preview-chip--lang[data-lang="ar"] { opacity: 0.65; }
.preview-chip--lang[data-lang="ja"].active,
.preview-chip--lang[data-lang="ar"].active { opacity: 1; background: rgba(250,247,242,0.15); border-color: rgba(250,247,242,0.25); }

.preview-strip__phone { max-width: 340px; margin: 0 auto; }
.preview-card         { background: var(--white); border-radius: 16px 16px 0 0; overflow: hidden; box-shadow: 0 -8px 40px rgba(0,0,0,0.35); min-height: 280px; }

/* Preview card internals */
.pc-banner            { padding: 1rem 1.25rem; text-align: center; }
.pc-banner--ana       { background: #CC0000; }
.pc-banner--sev       { background: var(--sev-sev); }
.pc-banner--int       { background: var(--sev-int); }
.pc-banner__th        { font-size: 0.95rem; font-weight: 800; color: #fff; line-height: 1.35; }
.pc-banner__en        { font-size: 0.6rem; color: rgba(255,255,255,0.75); margin-top: 0.15rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.pc-body              { padding: 1rem 1.25rem; }
.pc-row               { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--linen-mid); }
.pc-row:last-of-type  { border-bottom: none; }
.pc-icon              { font-size: 1.25rem; flex-shrink: 0; margin-top: 1px; }
.pc-th                { font-size: 1.15rem; font-weight: 800; color: var(--bark); display: block; line-height: 1.2; }
.pc-rom               { font-size: 0.6rem; color: var(--dust); font-style: italic; display: block; }
.pc-en                { font-size: 0.7rem; color: var(--soil); display: block; line-height: 1.4; }
.pc-instr             { background: var(--linen-mid); border-radius: var(--hp-radius-sm); padding: 0.75rem; margin-top: 0.75rem; }
.pc-instr__th         { font-size: 0.78rem; font-weight: 700; color: var(--bark); }
.pc-instr__en         { font-size: 0.62rem; color: var(--soil); margin-top: 0.15rem; }
.pc-footer            { border-top: 1px solid var(--border); padding: 0.6rem 1.25rem; display: flex; justify-content: space-between; align-items: center; }
.pc-footer__v         { font-size: 0.58rem; color: var(--soil); }
.pc-footer__b         { font-family: var(--font-display); font-size: 0.72rem; color: var(--clay); font-weight: 700; }
.pc-footer__free      { font-size: 0.55rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dust); background: var(--linen-mid); border: 1px solid var(--border); border-radius: 4px; padding: 0.15rem 0.4rem; }

/* Build CTA section */
.build-cta-section { background: var(--linen-mid); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.build-cta-inner   { text-align: center; max-width: 560px; margin: 0 auto; padding: 4rem 1.5rem; }
.build-cta-steps   { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 2rem; flex-wrap: wrap; }
.build-cta-step    { display: flex; align-items: center; gap: 0.5rem; }
.build-cta-step__num   { width: 26px; height: 26px; background: var(--bark); color: #fff; border-radius: 50%; font-size: 0.75rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.build-cta-step__label { font-size: 0.8125rem; font-weight: 600; color: var(--soil); }
.build-cta-step__arrow { color: var(--dust); font-size: 0.875rem; }
.build-cta-title   { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.1; color: var(--bark); margin-bottom: 0.875rem; letter-spacing: -0.02em; }
.build-cta-title em { font-family: var(--font-serif); font-style: italic; color: var(--clay); }
.build-cta-sub     { font-size: 0.9375rem; color: var(--soil); margin-bottom: 2rem; }
.build-cta-btn     { font-size: 1rem; padding: 0.875rem 2rem; }
.build-cta-note    { font-size: 0.775rem; color: var(--dust); margin-top: 0.875rem; }

/* How it works */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps-grid::before {
  content: '';
  position: absolute;
  top: 27px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: var(--border-dark);
  z-index: 0;
}
.step-item { text-align: center; padding: 0 1rem; position: relative; z-index: 1; }
.step-item__num {
  width: 54px; height: 54px;
  background: var(--bark); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem; font-weight: 800;
  margin: 0 auto 1.25rem;
  position: relative; z-index: 1;
  box-shadow: 0 0 0 4px var(--linen);
}
.step-item__num--last { background: var(--clay); }
.step-item__title { font-size: 0.9375rem; font-weight: 700; color: var(--bark); margin-bottom: 0.5rem; font-family: var(--font-display); }
.step-item__desc  { font-size: 0.875rem; color: var(--soil); line-height: 1.65; }

/* Severity compact cards */
.sev-compact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.sev-compact-card { border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; border: 1px solid transparent; }
.sev-compact-card--ana { background: #fff5f5; border-color: #fcd0d0; }
.sev-compact-card--sev { background: #fffbf0; border-color: #f5e2a0; }
.sev-compact-card--int { background: #f4f8ff; border-color: #c8daef; }
.sev-compact-card__top   { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.sev-compact-card__label { font-weight: 800; font-size: 1rem; color: var(--bark); }
.sev-compact-card--ana .sev-compact-card__label { color: #9b1a1a; }
.sev-compact-card--sev .sev-compact-card__label { color: #7a5a00; }
.sev-compact-card--int .sev-compact-card__label { color: #1a4a7a; }
.sev-compact-card__badge { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dust); }
.sev-compact-card__desc  { font-size: 0.9rem; color: var(--soil); line-height: 1.55; margin-bottom: 0.5rem; }
.sev-compact-card__eg    { font-size: 0.8rem; color: var(--dust); font-style: italic; }

/* Scenario cards */
.scenarios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.scenario-card  { background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--clay-mid); border-radius: var(--radius-xl); padding: 1.75rem; }
.scenario-card__location { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--clay); margin-bottom: 0.5rem; }
.scenario-card__problem  { font-family: var(--font-serif); font-style: italic; font-size: 1.0625rem; color: var(--bark); font-weight: 600; line-height: 1.4; margin-bottom: 0.625rem; }
.scenario-card__how      { font-size: 0.875rem; color: var(--soil); line-height: 1.7; margin-bottom: 1rem; }
.scenario-card__risks    { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.risk-tag { display: inline-block; background: #fff4f0; border: 1px solid #f5c4b2; border-radius: 100px; padding: 0.2rem 0.6rem; font-size: 0.72rem; font-weight: 600; color: #9b3a1a; }

/* Comparison table */
/* ── Comparison section ── */
.compare-header { text-align: center; }
.compare-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--white);
}

/* Three-column grid: feature label | neutral col | brand col */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: stretch;
}

/* Column header row */
.compare-thead {
  border-bottom: 2px solid var(--border);
}
.compare-feat-col {
  padding: 0.875rem 1.25rem;
}
.compare-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.875rem 1.25rem;
  border-left: 1px solid var(--border);
}
.compare-col--neutral { background: var(--linen-mid); }
.compare-col--brand   { background: var(--clay-light); }

.compare-col-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--dust);
}
.compare-col--brand .compare-col-label { color: var(--clay); }

/* Data rows */
.compare-row { border-top: 1px solid var(--border); }
.compare-row--last { /* no extra border needed */ }

.compare-feat {
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--bark);
  display: flex;
  align-items: center;
}

/* ✕ and ✓ badges */
.cmp-no, .cmp-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.625rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-bottom: 0.2rem;
}
.cmp-no  { background: var(--linen-dark); color: var(--dust); }
.cmp-yes { background: var(--clay); color: #fff; }

.cmp-note {
  font-size: 0.8125rem;
  color: var(--soil);
  line-height: 1.5;
}

/* Restaurant mode */
.rest-mode { background: var(--bark); border-radius: var(--radius-xl); overflow: hidden; }
.rest-mode__top { padding: 2.5rem 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.rest-mode__copy h3 { font-family: var(--font-display); font-size: 1.5rem; color: #fff; margin-bottom: 0.75rem; line-height: 1.2; }
.rest-mode__copy p  { font-size: 0.9375rem; color: rgba(250,247,242,0.65); line-height: 1.75; margin-bottom: 0.625rem; }
.rest-mode__copy p:last-child { margin-bottom: 0; }
.rest-mode__screen { background: #111; border-radius: var(--radius-lg); padding: 1.75rem 1.5rem; text-align: center; border: 1px solid rgba(255,255,255,0.08); }
.rest-mode__screen-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.3); margin-bottom: 1.25rem; font-weight: 700; }
.rest-mode__banner { background: #CC0000; border-radius: 10px 10px 0 0; padding: 1.125rem 1rem; }
.rest-mode__banner-th { font-size: 1.5rem; font-weight: 900; color: #fff; line-height: 1.25; }
.rest-mode__banner-en { font-size: 0.7rem; color: rgba(255,255,255,0.7); margin-top: 0.25rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.rest-mode__card-body { background: #fff; border-radius: 0 0 10px 10px; padding: 1rem; }
.rest-mode__allergen  { display: flex; align-items: flex-start; gap: 0.625rem; padding: 0.6rem 0; border-bottom: 1px solid var(--linen-mid); }
.rest-mode__allergen:last-of-type { border-bottom: none; }
.rest-mode__allergen-icon { font-size: 1.5rem; flex-shrink: 0; }
.rest-mode__allergen-th   { font-size: 1.5rem; font-weight: 900; color: var(--bark); display: block; line-height: 1.1; }
.rest-mode__allergen-en   { font-size: 0.65rem; color: var(--soil); display: block; margin-top: 0.15rem; }

/* Languages */
.lang-compact        { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.lang-compact__pills { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.lang-pill { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--white); border: 1px solid var(--border); border-radius: 100px; padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 600; color: var(--bark); }
.lang-pill--live { border-color: var(--clay); background: var(--clay-light); color: var(--clay); }
.lang-pill__dot  { width: 5px; height: 5px; border-radius: 50%; background: var(--clay); display: inline-block; }
.lang-pill--coming { opacity: 0.5; }

/* Founder compact */
.founder-compact { display: flex; align-items: center; gap: 1.25rem; background: var(--linen-mid); border: 1px solid var(--border-dark); border-radius: var(--radius-xl); padding: 1.5rem 2rem; }
.founder-compact__icon { font-size: 1.5rem; flex-shrink: 0; }
.founder-compact__text { font-size: 0.9375rem; color: var(--soil); line-height: 1.7; flex: 1; }
.founder-compact__link { font-size: 0.875rem; font-weight: 600; color: var(--clay); text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.founder-compact__link:hover { text-decoration: underline; }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.testimonial-card  { background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--clay-mid); border-radius: var(--radius-xl); padding: 1.5rem 1.75rem; display: flex; flex-direction: column; gap: 1.25rem; }
.testimonial-card__quote  { font-family: var(--font-serif); font-style: italic; font-size: 0.9375rem; color: var(--bark); line-height: 1.7; flex: 1; }
.testimonial-card__footer { display: flex; flex-direction: column; gap: 0.2rem; }
.testimonial-card__name   { font-size: 0.875rem; font-weight: 700; color: var(--bark); }
.testimonial-card__detail { font-size: 0.78rem; color: var(--dust); }
.testimonials-note { font-size: 0.78rem; color: var(--clay); text-align: center; margin-top: 1.5rem; padding: 0.625rem 1rem; background: var(--clay-light); border: 1px solid var(--clay-mid); border-radius: 6px; display: inline-block; }

/* Final CTA */
.cta-final {
  background: var(--clay);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0px,
    transparent 20px,
    rgba(255,255,255,0.035) 20px,
    rgba(255,255,255,0.035) 22px
  );
  pointer-events: none;
  border-radius: inherit;
}
.cta-final__title { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.5rem); color: #fff; line-height: 1.1; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.cta-final__title em { font-family: var(--font-serif); font-style: italic; }
.cta-final__sub  { font-size: 1.0625rem; color: rgba(255,255,255,0.75); margin-bottom: 2rem; line-height: 1.6; }
.cta-final__note { font-size: 0.8rem; color: rgba(255,255,255,0.45); margin-top: 0.875rem; display: block; }


/* ── 9. BLOG / ARTICLE PAGES ── */

.blog-categories   { display: flex; gap: 0.625rem; flex-wrap: wrap; margin-bottom: 3rem; }
.cat-pill { padding: 0.35rem 0.875rem; border-radius: 100px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; border: 1px solid var(--border); color: var(--soil); background: var(--white); cursor: pointer; transition: all 0.15s; text-decoration: none; }
.cat-pill:hover, .cat-pill--active { background: var(--bark); color: #fff; border-color: var(--bark); }
.cat-pill:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
button.cat-pill { font-family: inherit; }
.blog-section-label { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dust); margin-bottom: 1.25rem; margin-top: 3rem; padding-bottom: 0.625rem; border-bottom: 1px solid var(--border); }
.blog-section-label:first-of-type { margin-top: 0; }

/* Blog preview grid — authoritative definition */
.blog-preview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.blog-preview-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transition: all 0.2s var(--ease);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.blog-preview-card:hover { border-color: var(--clay); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(196,89,58,0.09); }
.blog-preview-card__tag  { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--clay); margin-bottom: 0.5rem; }
.blog-preview-card h3    { font-family: var(--font-display); font-size: 1.1rem; color: var(--bark); margin-bottom: 0.625rem; line-height: 1.3; }
.blog-preview-card p     { font-size: 0.9rem; color: var(--soil); line-height: 1.7; margin-bottom: 1rem; flex: 1; }
.blog-preview-card__link { font-size: 0.875rem; font-weight: 600; color: var(--clay); margin-top: auto; }

/* Article layout */
.article-layout  { display: grid; grid-template-columns: 1fr 280px; gap: 4rem; align-items: start; }
.article-sidebar { position: sticky; top: calc(var(--nav-h) + 2rem); }
.toc-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.toc-card h4 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dust); margin-bottom: 1rem; }
.toc-card a  { display: block; font-size: 0.875rem; color: var(--soil); padding: 0.375rem 0; border-bottom: 1px solid var(--border); transition: color 0.15s; }
.toc-card a:last-child { border-bottom: none; }
.toc-card a:hover { color: var(--clay); }
.card-cta-sidebar { background: var(--clay-light); border: 1px solid var(--clay-mid); border-radius: var(--radius-lg); padding: 1.25rem; margin-top: 1.25rem; text-align: center; }
.card-cta-sidebar p { font-size: 0.875rem; color: var(--soil); margin-bottom: 0.875rem; line-height: 1.6; }

.article-back { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8125rem; font-weight: 600; color: var(--soil); text-decoration: none; margin-bottom: 1rem; transition: color 0.15s; border-radius: var(--radius-sm); padding: 0.25rem 0; }
.article-back:hover { color: var(--clay); }
.article-back:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.article-meta { display: flex; align-items: center; gap: 0.875rem; margin-top: 1rem; font-size: 0.8rem; color: var(--dust); flex-wrap: wrap; }
.article-meta__sep { opacity: 0.4; }

/* Verdict box */
.verdict-box { background: var(--linen-mid); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; margin-top: 1.25rem; }
.verdict-box--spaced { margin-bottom: 2rem; }
.verdict-box h4 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dust); margin-bottom: 0.875rem; }
.verdict-row { display: flex; justify-content: space-between; font-size: 0.875rem; padding: 0.375rem 0; border-bottom: 1px solid var(--border); }
.verdict-row:last-child { border-bottom: none; }
.verdict-winner { font-weight: 700; color: var(--clay); }

/* Takeaways and article extras */
.takeaways { background: var(--linen-mid); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem 1.75rem; margin-top: 2rem; }
.takeaways h2 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 1rem; }
.takeaways ul  { margin: 0 0 0 1.25rem; }
.takeaways li  { font-size: 0.875rem; color: var(--soil); line-height: 1.75; margin-bottom: 0.5rem; }
.jay-box { background: #F0F7EE; border: 1px solid #C8E6C9; border-left: 3px solid #4CAF50; border-radius: 0 var(--radius) var(--radius) 0; padding: 1.125rem 1.25rem; margin: 1.5rem 0; font-size: 0.9rem; color: var(--bark); line-height: 1.7; }
.jay-box strong { color: #2E7D32; }


/* ── 10. LEGAL PAGES ── */

.legal-layout { max-width: 680px; }
.legal-prose h2 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: var(--bark); margin: 2rem 0 0.75rem; line-height: 1.3; }
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose p  { font-size: 0.9375rem; color: var(--soil); line-height: 1.85; margin-bottom: 0.875rem; }
.legal-prose p:last-child { margin-bottom: 0; }
.legal-prose ul { margin: 0.5rem 0 1rem 1.25rem; padding: 0; }
.legal-prose li { font-size: 0.9375rem; color: var(--soil); line-height: 1.8; margin-bottom: 0.375rem; }
.legal-prose li:last-child { margin-bottom: 0; }
.legal-section  { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 2rem; margin-bottom: 1.25rem; }
.legal-meta     { font-size: 0.8125rem; color: var(--dust); margin-bottom: 2rem; }

.disclaimer-layout { max-width: 680px; }
.disclaimer-prose h2 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: var(--bark); margin: 0 0 0.75rem; line-height: 1.3; }
.disclaimer-prose p  { font-size: 0.9375rem; color: var(--soil); line-height: 1.85; margin-bottom: 0.875rem; }
.disclaimer-prose p:last-child { margin-bottom: 0; }
.disclaimer-prose ul { margin: 0.5rem 0 1rem 1.25rem; padding: 0; }
.disclaimer-prose li { font-size: 0.9375rem; color: var(--soil); line-height: 1.8; margin-bottom: 0.375rem; }
.disclaimer-section { padding: 2.25rem 0; border-bottom: 1px solid var(--border); }
.disclaimer-section:last-of-type { border-bottom: none; padding-bottom: 0; }


/* ── 11. ABOUT PAGE ── */

.about-layout  { display: grid; grid-template-columns: 1fr 320px; gap: 5rem; align-items: start; }
.about-prose h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--bark); margin: 2.5rem 0 0.875rem; }
.about-prose h2:first-child { margin-top: 0; }
.about-prose p  { font-size: 0.9375rem; color: var(--soil); line-height: 1.8; margin-bottom: 1rem; }
.about-prose p:last-child { margin-bottom: 0; }
.about-prose hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.about-prose strong a { color: var(--bark); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--border-dark); }
.about-prose strong a:hover { color: var(--clay); text-decoration-color: var(--clay); }
.about-prose strong a:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; border-radius: 2px; }
.about-what { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.about-what__item { padding: 1.125rem 0; border-bottom: 1px solid var(--border); }
.about-what__item:first-child { padding-top: 0; }
.about-what__item:last-child { border-bottom: none; padding-bottom: 0; }
.about-what dt { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--bark); margin-bottom: 0.25rem; }
.about-what dt a { color: var(--bark); text-decoration: none; }
.about-what dt a:hover { color: var(--clay); text-decoration: underline; text-underline-offset: 2px; }
.about-what dt a:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; border-radius: 2px; }
.about-what dd { margin: 0; font-size: 0.9375rem; color: var(--soil); line-height: 1.7; }
.about-aside { position: sticky; top: calc(var(--nav-h) + 2rem); }

.social-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; }
.social-card__header { background: var(--bark); padding: 1.25rem 1.5rem; }
.social-card__title  { font-family: var(--font-display); font-size: 1.1rem; color: #fff; }
.social-card__sub    { font-size: 0.8rem; color: rgba(250, 247, 242, 0.6); margin-top: 0.2rem; }
.social-card__body   { padding: 1.25rem 1.5rem; }
.social-card__desc   { font-size: 0.875rem; color: var(--soil); line-height: 1.7; margin-bottom: 1.25rem; }
.social-btn { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border-radius: var(--radius); font-size: 0.9rem; font-weight: 600; color: #fff; margin-bottom: 0.625rem; transition: opacity 0.15s; }
.social-btn:last-child { margin-bottom: 0; }
.social-btn:hover { opacity: 0.9; }
.social-btn--ig { background: linear-gradient(135deg, #f9ed32 0%, #ee2a7b 50%, #002aff 100%); }
.social-btn--tt { background: #010101; }

.site-summary { background: var(--linen-mid); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 1.5rem; margin-top: 1.25rem; }
.site-summary h4 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dust); margin-bottom: 1rem; }
.site-summary a  { display: flex; align-items: center; gap: 0.625rem; font-size: 0.875rem; font-weight: 600; color: var(--bark); padding: 0.5rem 0; border-bottom: 1px solid var(--border); transition: color 0.15s; }
.site-summary a:last-child { border-bottom: none; }
.site-summary a:hover { color: var(--clay); }


/* ── 12. FOOTER ── */

.site-footer { background: var(--bark); color: rgba(250,247,242,0.55); padding: 0; }

.footer-inner { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 3rem; padding: 3.5rem 0 2.5rem; margin-bottom: 0; border-bottom: 1px solid rgba(255,255,255,0.07); }

.footer-brand {}
.footer-logo { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; letter-spacing: -0.01em; }
.footer-logo-icon { width: 28px; height: 28px; background: rgba(196,89,58,0.2); border: 1px solid rgba(196,89,58,0.35); border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.footer-tagline { font-size: 0.82rem; line-height: 1.7; max-width: 210px; color: rgba(250,247,242,0.42); margin-bottom: 1.5rem; }
.footer-cta { display: inline-flex; align-items: center; background: var(--clay); color: #fff; border-radius: 10px; padding: 0.65rem 1.25rem; font-size: 0.85rem; font-weight: 700; text-decoration: none; letter-spacing: -0.01em; transition: background 0.15s; }
.footer-cta:hover { background: var(--clay-dark); }

.footer-col h5 { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(250,247,242,0.25); margin-bottom: 1rem; }
.footer-links a { display: block; font-size: 0.85rem; color: rgba(250,247,242,0.55); margin-bottom: 0.6rem; transition: color 0.15s; }
.footer-links a:hover { color: #fff; }

.footer-copy-wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; align-items: center; justify-content: space-between; padding: 1.25rem 0; }
.footer-copy { font-size: 0.75rem; color: rgba(250,247,242,0.22); white-space: nowrap; }
.footer-legal-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0 1.25rem; }
.footer-legal-link { font-size: 0.75rem; color: rgba(250,247,242,0.3); text-decoration: none; transition: color 0.15s; }
.footer-legal-link:hover { color: rgba(250,247,242,0.7); }
.footer-legal-divider { display: inline-block; width: 1px; height: 10px; background: rgba(255,255,255,0.12); }


/* ── 13. UTILITY CLASSES ── */

/* Text */
.text-muted        { color: var(--dust); }
.text-clay         { color: var(--clay); }
.text-soil         { color: var(--soil); }
.text-bark         { color: var(--bark); }
.text-danger       { color: #CC0000; }
.text-small        { font-size: 0.875rem; }
.text-xsmall       { font-size: 0.8125rem; }
.text-strong       { font-weight: 700; }
.text-muted-small  { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.75rem; }
.text-center       { text-align: center; }
.text-left         { text-align: left; display: block; }
.no-decoration     { text-decoration: none; color: inherit; }

/* Body text helpers */
.body-note         { font-size: 0.875rem; color: var(--soil); line-height: 1.75; margin-bottom: 0.875rem; }
.body-note-alt     { font-size: 0.875rem; color: var(--soil); line-height: 1.7; margin-bottom: 1rem; }
.body-note-compact { font-size: 0.875rem; color: var(--soil); line-height: 1.75; margin-bottom: 0.75rem; }
.body-tight        { font-size: 0.8125rem; color: var(--soil); line-height: 1.65; margin: 0; }
.body-tight-sm     { font-size: 0.8125rem; color: var(--soil); margin: 0; line-height: 1.6; }

/* Margin / spacing */
.mt-1     { margin-top: 0.5rem; }
.mt-2     { margin-top: 1rem; }
.mt-4     { margin-top: 2.5rem; }
.mb-2     { margin-bottom: 1rem; }
.m-0      { margin: 0; }
.mt-1-25  { margin-top: 1.25rem; }
.mb-0-875 { margin-bottom: 0.875rem; }
.mt-1-5   { margin-top: 1.5rem; }

/* Layout helpers */
.flex-gap       { display: flex; align-items: center; gap: 0.5rem; }
.flex-gap-start { display: flex; gap: 1.125rem; align-items: flex-start; }
.button-row     { display: flex; justify-content: center; gap: 0.875rem; flex-wrap: wrap; }
.center-margin-top  { text-align: center; margin-top: 2.5rem; }
.section-center     { text-align: center; margin-bottom: 3rem; }
.section-center-top { text-align: center; margin-top: 2.5rem; }
.column-stack   { display: flex; flex-direction: column; gap: 1.25rem; max-width: 520px; margin: 0 auto; }
.grid-2-gap     { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.5rem; }
.grid-3         { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.hidden         { display: none; }
.pill-disabled  { opacity: 0.55; cursor: default; }

/* Component helpers */
.group-heading--small { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dust); margin-bottom: 1rem; }
.card-number { width: 36px; height: 36px; border-radius: 50%; background: var(--bark); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.875rem; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.card-heading { font-size: 1rem; font-weight: 600; color: var(--bark); margin-bottom: 0.25rem; display: block; }
.text-large   { font-size: 2rem; }
.hero-text-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--soil);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--clay-mid);
  transition: all 0.2s ease-out;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.hero-text-link:hover { color: var(--clay); text-decoration-color: var(--clay); transform: translateX(2px); }
.hero-text-link:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }


/* ── 14. RESPONSIVE ── */

/* Tablet — 960px */
@media (max-width: 960px) {
  .footer-inner    { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .nav-links       { display: none; }
  .nav-cta         { display: none; }
  .nav-hamburger   { display: block; }
  .rt-header, .rt-row { grid-template-columns: 1fr 1fr; }
  .rt-header span:last-child, .rt-row span:last-child { display: none; }

  /* Home hero collapses to single column */
  .home-hero__inner     { grid-template-columns: 1fr; gap: 3rem; }
  .home-hero            { text-align: center; }
  .home-hero__left      { text-align: center; }
  .home-hero__actions   { justify-content: center; }
  .home-hero__reassurance { justify-content: center; }
  .hero-card            { max-width: 300px; }
}

/* Large tablet — 900px */
@media (max-width: 900px) {
  .steps-grid          { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .steps-grid::before  { display: none; }
  .trust-row           { grid-template-columns: repeat(2, 1fr); }
  .sev-compact-grid    { grid-template-columns: 1fr; }
  .scenarios-grid      { grid-template-columns: 1fr; }
  .testimonials-grid   { grid-template-columns: 1fr; }
  .blog-preview-grid   { grid-template-columns: 1fr; }
  .lang-compact        { grid-template-columns: 1fr; gap: 1.5rem; }
  .rest-mode__top      { grid-template-columns: 1fr; padding: 2rem; gap: 2rem; }
  /* compare: shrink feature label col slightly on tablet */
  .compare-grid        { grid-template-columns: 1.1fr 1fr 1fr; }
  .article-layout      { grid-template-columns: 1fr; }
  .article-sidebar     { position: static; }
  .about-layout        { grid-template-columns: 1fr; }
  .about-aside         { position: static; }
}

/* Mobile — 640px */
@media (max-width: 640px) {
  .container, .container--narrow { padding: 0 1.25rem; }
  .section { padding: 3rem 0; }
  .hero    { padding: 2.5rem 0 2rem; }
  .hero h1 { font-size: 2rem; }
  .home-hero { padding: 3rem 0; }

  .footer-inner    { grid-template-columns: 1fr; gap: 2rem; }
  .footer-tagline  { max-width: 100%; }
  .footer-copy-wrap { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .footer-copy     { white-space: normal; }

  .pillar-grid { grid-template-columns: 1fr; }
  .rt-header, .rt-row { grid-template-columns: 1fr; }
  .rt-header span:nth-child(2), .rt-header span:last-child,
  .rt-row span:nth-child(2), .rt-row span:last-child { display: none; }
  .allergen-block__header { flex-wrap: wrap; }
  .cta-inline { flex-direction: column; align-items: flex-start; }

  .steps-grid        { grid-template-columns: 1fr; }
  .trust-row         { grid-template-columns: 1fr; }
  .cta-final         { padding: 3rem 1.5rem; }
  .founder-compact   { flex-direction: column; text-align: center; }
  .founder-compact__link { margin-top: 0.25rem; }
  .disclaimer-block  { flex-direction: column; gap: 0.75rem; }

  /* Compare: stack to two rows per feature on small screens */
  .compare-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .compare-thead     { display: none; }
  .compare-feat      { padding: 0.875rem 1rem 0.5rem; background: var(--linen-mid); border-top: 2px solid var(--border); font-size: 0.8125rem; }
  .compare-col       { border-left: none; border-top: 1px solid var(--border); padding: 0.75rem 1rem; }
  .compare-col--neutral::before { content: "Translation app"; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--dust); display: block; margin-bottom: 0.35rem; }
  .compare-col--brand::before   { content: "AllergyPass";      font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--clay); display: block; margin-bottom: 0.35rem; }

  .proof-divider { display: none; }
}


/* ── 15. ACCESSIBILITY ── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── SCROLL ANIMATION SYSTEM ──────────────────────────────────────────────── *
 * Single source of truth for all scroll-triggered animations.
 * Usage: <div class="animate" data-animation="fade-up">
 * Variants: fade-up (default) | fade-down | fade-left | scale
 * Delay:    data-delay="1" through "4" (80ms stagger each)
 * ─────────────────────────────────────────────────────────────────────────── */

@keyframes ap-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes ap-fade-down {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0);     }
}
@keyframes ap-fade-left {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0);    }
}
@keyframes ap-scale {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1);    }
}

.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.animate.is-visible {
  opacity: 1;
  transform: translateY(0);
  animation-duration: 0.55s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: both;
  animation-name: ap-fade-up; /* default */
}
.animate.is-visible[data-animation="fade-down"] { animation-name: ap-fade-down; }
.animate.is-visible[data-animation="fade-left"] { animation-name: ap-fade-left; }
.animate.is-visible[data-animation="scale"]     { animation-name: ap-scale;     }

.animate.is-visible[data-delay="1"] { animation-delay: 0.08s; }
.animate.is-visible[data-delay="2"] { animation-delay: 0.16s; }
.animate.is-visible[data-delay="3"] { animation-delay: 0.24s; }
.animate.is-visible[data-delay="4"] { animation-delay: 0.32s; }

/* ── HERO AUTO-PLAY ANIMATIONS ────────────────────────────────────────────── *
 * For above-fold hero content that should animate on page load (no observer). *
 * Usage: <div class="animate-hero animate-hero-delay-1">                      *
 * ─────────────────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .animate-hero {
    opacity: 0;
    transform: translateY(16px);
    animation: ap-fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .animate-hero-delay-1 { animation-delay: 0.10s; }
  .animate-hero-delay-2 { animation-delay: 0.22s; }
  .animate-hero-delay-3 { animation-delay: 0.34s; }
  .animate-hero-delay-4 { animation-delay: 0.46s; }
}

/* ================================================================
   BLOG INDEX
   Styles migrated from blog/index.html inline <style> block
   ================================================================ */

/* Hero */
.blog-hero {
  position: relative;
  padding: 5rem 0 4rem;
  background: var(--linen);
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 50%, rgba(196,89,58,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 90% 20%, rgba(200,120,10,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.blog-hero .container { position: relative; z-index: 1; }
.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.08;
  color: var(--bark);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.blog-hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--clay);
  font-weight: 600;
}
.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--clay-light);
  border: 1px solid var(--clay-mid);
  color: var(--clay);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.875rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.blog-hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}
.blog-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.blog-hero-stat strong {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--bark);
  line-height: 1;
}
.blog-hero-stat span {
  font-size: 0.75rem;
  color: var(--dust);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.blog-hero-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-dark);
  opacity: 0.5;
}

/* Category filter */
.blog-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.filter-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dust);
  margin-right: 0.25rem;
}
.cat-pill {
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1.5px solid var(--border);
  color: var(--soil);
  background: var(--white);
  cursor: pointer;
  transition: all 0.18s var(--ease);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.cat-pill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s var(--ease);
  z-index: 0;
  border-radius: 100px;
}
.cat-pill span { position: relative; z-index: 1; }
.cat-pill:hover { border-color: var(--bark); color: var(--white); }
.cat-pill:hover::after { transform: scaleX(1); }
.cat-pill--active { background: var(--bark); color: #fff; border-color: var(--bark); }
.cat-pill--active::after { transform: scaleX(1); }
button.cat-pill { font-family: inherit; }

/* Section label */
.blog-section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dust);
  margin-bottom: 1.25rem;
  margin-top: 3.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.blog-section-label:first-of-type { margin-top: 0; }
.blog-section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--clay);
  border-radius: 1px;
  flex-shrink: 0;
}

/* Pillar grid */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clay), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.pillar-card:hover {
  border-color: var(--clay);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(196, 89, 58, 0.12);
}
.pillar-card:hover::before { transform: scaleX(1); }
.pill-disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: default;
}
.pill-disabled::before { display: none; }

/* Featured card */
.pillar-card--featured {
  grid-column: span 2;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
  background: linear-gradient(135deg, #FDF8F5 0%, #FAF0EC 100%);
  border-color: var(--clay-mid);
}
.pillar-card--featured .pillar-icon {
  font-size: 3rem;
  margin-bottom: 0;
  flex-shrink: 0;
  margin-top: 0.25rem;
}
.pillar-card--featured .pillar-card-body { flex: 1; }
.pillar-card--featured h3 { font-size: 1.25rem; }
@media (max-width: 620px) {
  .pillar-card--featured {
    grid-column: span 1;
    flex-direction: column;
  }
}

/* Stat strip */
.blog-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3.5rem;
}
.blog-stat-strip-item {
  background: var(--white);
  padding: 1.25rem 1.5rem;
  text-align: center;
}
.blog-stat-strip-item strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--clay);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.blog-stat-strip-item span {
  font-size: 0.75rem;
  color: var(--dust);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* Coming soon note */
.blog-coming-soon-note {
  font-size: 0.875rem;
  color: var(--soil);
  text-align: center;
  margin: 2.5rem 0 0.5rem;
  opacity: 0.65;
}

/* ================================================================
   HOMEPAGE
   Styles migrated from index.html inline <style> block
   ================================================================ */

/* ── ROOT OVERRIDES ── */
:root {
  --hp-radius: 16px;
  --hp-radius-sm: 10px;
  --hp-radius-xs: 6px;
  --hp-transition: 0.22s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ── FOCUS ── */
:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── HERO ── */
.home-hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 70% 50% at 65% 35%, rgba(196,89,58,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(200,120,10,0.05) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(196,89,58,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  pointer-events: none;
  z-index: 0;
}
.home-hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}
.home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--clay-light);
  border: 1px solid var(--clay-mid);
  color: var(--clay-dark);
  padding: 0.3rem 0.875rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.home-hero__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clay);
  flex-shrink: 0;
  animation: pulse-dot 2.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}
.home-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--bark);
  margin-bottom: 1.25rem;
}
.home-hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--clay);
}
.home-hero__sub {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.75;
  color: var(--soil);
  margin-bottom: 2rem;
  max-width: 430px;
  font-family: var(--font-body);
}
.home-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.home-hero__actions .btn--outline {
  color: var(--clay);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  padding: 0.25rem 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
}
.home-hero__actions .btn--outline:hover {
  color: var(--clay-dark);
  background: none;
  text-decoration-thickness: 2px;
}
.home-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.78rem;
  color: var(--dust);
}
.home-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.home-hero__meta .check {
  color: var(--clay);
  font-weight: 700;
  font-size: 0.85rem;
}
.home-hero__price-note {
  margin-top: 0.65rem;
  font-size: 0.79rem;
  color: var(--dust);
}
.home-hero__price-note strong {
  color: var(--soil);
  font-weight: 700;
}
.home-hero__card-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
@keyframes hero-float {
  0%, 100% { transform: rotate(-1.5deg) translateY(0px); }
  50%       { transform: rotate(-1.5deg) translateY(-7px); }
}
.hero-card-outer {
  position: relative;
  width: 100%;
  max-width: 330px;
  animation: hero-float 3.5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hero-card-outer { animation: none; }
}
.hero-card-outer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--clay-mid);
  border-radius: 22px;
  transform: rotate(4deg) translateY(6px);
  opacity: 0.55;
  z-index: 0;
}
.hero-card {
  position: relative;
  z-index: 1;
  display: block;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(44,31,20,0.07), 0 16px 48px rgba(44,31,20,0.14);
  border: 1px solid rgba(44,31,20,0.08);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  text-decoration: none;
  cursor: pointer;
}
.hero-card-outer:hover {
  animation-play-state: paused;
}
.hero-card:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: 0 4px 12px rgba(44,31,20,0.07), 0 24px 64px rgba(44,31,20,0.18);
}
.hero-card__banner {
  background: #CC0000;
  padding: 1rem 1.25rem;
}
.hero-card__banner-th {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 0.25rem;
}
.hero-card__banner-en {
  display: block;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.hero-card__body { padding: 1rem 1.25rem; }
.hero-card__row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--linen-mid);
}
.hero-card__row:last-of-type { border-bottom: none; }
.hero-card__icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.hero-card__th { display: block; font-size: 1.15rem; font-weight: 800; color: var(--bark); line-height: 1.15; }
.hero-card__rom { display: block; font-size: 0.62rem; color: var(--dust); font-style: italic; margin-top: 1px; }
.hero-card__en { display: block; font-size: 0.72rem; color: var(--soil); margin-top: 0.1rem; line-height: 1.4; }
.hero-card__instr {
  background: var(--linen-mid);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  margin-top: 0.65rem;
}
.hero-card__instr-th { font-size: 0.78rem; font-weight: 700; color: var(--bark); }
.hero-card__instr-en { font-size: 0.65rem; color: var(--soil); margin-top: 0.12rem; }
.hero-card__footer {
  border-top: 1px solid var(--border);
  padding: 0.55rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--linen-mid);
}
.hero-card__footer-v { font-size: 0.6rem; color: var(--dust); }
.hero-card__badge {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clay-dark);
  background: var(--clay-light);
  border: 1px solid var(--clay-mid);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
}

/* ── STATS STRIP ── */
.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--linen-mid);
}
.stats-strip__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat-item {
  padding: 1.75rem 2rem;
  border-right: none;
  text-align: center;
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 22%; bottom: 22%;
  width: 1px;
  background: var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-item__num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--bark);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.6rem;
}
.stat-item__num em { color: var(--clay); font-style: normal; }
.stat-item__label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--dust);
  line-height: 1.4;
}

/* ── SECTION PRIMITIVES ── */
.hp-section { padding: 5rem 0; }
.hp-section--alt {
  padding: 5rem 0;
  background: var(--linen-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hp-section--dark { background: var(--bark); }
.hp-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.875rem;
  font-family: var(--font-body);
}
.hp-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  font-weight: 800;
  color: var(--bark);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.hp-h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--clay);
}
.hp-subtext {
  font-size: 0.98rem;
  color: var(--soil);
  line-height: 1.75;
  max-width: 540px;
  margin: 0;
}
.hp-header { margin-bottom: 3.25rem; }
.hp-header--center { text-align: center; }
.hp-header--center .hp-subtext { margin: 0 auto; }

/* ── HOW IT WORKS ── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--hp-radius);
  overflow: hidden;
  position: relative;
}
.how-step {
  background: var(--white);
  padding: 2.25rem 2rem;
  position: relative;
}
.how-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bark);
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.how-step--last .how-step__num { background: var(--clay); }
.how-step__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bark);
  margin-bottom: 0.65rem;
  line-height: 1.25;
}
.how-step__desc {
  font-size: 0.9rem;
  color: var(--soil);
  line-height: 1.7;
}
.how-step__tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--clay-dark);
  background: var(--clay-light);
  border: 1px solid var(--clay-mid);
  border-radius: 100px;
  padding: 0.2rem 0.6rem;
}
.how-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  top: 2.3rem;
  right: -14px;
  width: 28px;
  height: 28px;
  background: var(--linen);
  border: 1px solid var(--clay-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--clay);
  z-index: 2;
  line-height: 28px;
  text-align: center;
  padding-left: 1px;
}

/* ── INTERACTIVE PREVIEW STRIP ── */
.preview-strip {
  background: var(--bark);
  padding: 4.5rem 0 4rem;
}
.preview-strip__header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.preview-strip__eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,247,242,0.4);
  margin-bottom: 0.6rem;
}
.preview-strip__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--linen);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.preview-strip__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: rgba(250,247,242,0.55);
}
.preview-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.75rem;
}
.preview-controls__group-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(250,247,242,0.28);
  text-align: center;
}
.preview-controls__row {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(250,247,242,0.06);
  border: 1.5px solid rgba(250,247,242,0.20);
  color: rgba(250,247,242,0.72);
  padding: 0.5rem 0.875rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 44px;
  font-family: var(--font-body);
}
.preview-chip:hover {
  background: rgba(250,247,242,0.12);
  border-color: rgba(250,247,242,0.35);
  color: rgba(250,247,242,0.92);
}
.preview-chip.active {
  background: var(--clay);
  border-color: var(--clay);
  color: #fff;
}
.preview-chip:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.preview-chip--lang.active { background: var(--soil); border-color: var(--soil); }
.preview-lang-note {
  font-size: 0.72rem;
  color: rgba(250,247,242,0.35);
  text-align: center;
  margin-top: 0.35rem;
}
.preview-lang-note a {
  color: rgba(250,247,242,0.58);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.preview-strip__phone {
  max-width: 360px;
  margin: 0 auto;
}
.preview-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.22), 0 16px 48px rgba(0,0,0,0.3);
  min-height: 280px;
  transition: opacity 0.15s ease;
}
.preview-card.is-swapping { opacity: 0; }
.pc-banner { padding: 1rem 1.25rem; text-align: center; }
.pc-banner--ana { background: #CC0000; }
.pc-banner--sev { background: var(--sev-sev); }
.pc-banner--int { background: var(--sev-int); }
.pc-banner__th  { font-size: 1rem; font-weight: 800; color: #fff; line-height: 1.35; }
.pc-banner__en  { font-size: 0.6rem; color: rgba(255,255,255,0.72); margin-top: 0.15rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.pc-body        { padding: 1rem 1.25rem; }
.pc-row         { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.6rem 0; border-bottom: 1px solid var(--linen-mid); }
.pc-row:last-of-type { border-bottom: none; }
.pc-icon        { font-size: 1.25rem; flex-shrink: 0; margin-top: 1px; }
.pc-th          { font-size: 1.15rem; font-weight: 800; color: var(--bark); display: block; line-height: 1.2; }
.pc-rom         { font-size: 0.6rem; color: var(--dust); font-style: italic; display: block; }
.pc-en          { font-size: 0.7rem; color: var(--soil); display: block; line-height: 1.4; }
.pc-instr       { background: var(--linen-mid); border-radius: 8px; padding: 0.7rem; margin-top: 0.7rem; }
.pc-instr__th   { font-size: 0.78rem; font-weight: 700; color: var(--bark); }
.pc-instr__en   { font-size: 0.62rem; color: var(--soil); margin-top: 0.15rem; }
.pc-footer      { border-top: 1px solid var(--border); padding: 0.55rem 1.25rem; display: flex; justify-content: space-between; align-items: center; background: var(--linen-mid); }
.pc-footer__v   { font-size: 0.58rem; color: var(--soil); }
.pc-footer__free { font-size: 0.55rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dust); background: var(--white); border: 1px solid var(--border); border-radius: 4px; padding: 0.15rem 0.4rem; }
.preview-cta {
  text-align: center;
  padding: 2.5rem 0;
}

/* ── COMPARISON TABLE ── */
.compare-wrap {
  border: 1px solid var(--border);
  border-radius: var(--hp-radius);
  overflow: hidden;
  background: var(--white);
}
.compare-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  align-items: stretch;
}
.compare-thead { border-bottom: 2px solid var(--border); }
.compare-feat-col { padding: 1rem 1.5rem; }
.compare-col {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.1rem 1.35rem;
  border-left: 1px solid var(--border);
}
.compare-col--neutral { background: var(--linen-mid); }
.compare-col--brand {
  background: #fdf5f2;
  border-left: 2px solid var(--clay-mid);
}
.compare-thead .compare-col--brand {
  background: var(--clay-light);
  border-top: 3px solid var(--clay);
  border-left: 2px solid var(--clay-mid);
}
.compare-row .compare-col--brand { border-left: 2px solid var(--clay-mid); }
.compare-col-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--dust);
}
.compare-col--brand .compare-col-label { color: var(--clay); font-weight: 800; }
.compare-row { border-top: 1px solid var(--border); }
.compare-feat {
  padding: 1.1rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bark);
  display: flex;
  align-items: center;
}
.cmp-no, .cmp-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-bottom: 0.2rem;
}
.cmp-no  { background: var(--linen-dark); color: var(--dust); }
.cmp-yes { background: var(--clay); color: #fff; }
.cmp-note { font-size: 0.825rem; color: var(--soil); line-height: 1.55; }

/* ── FEATURES ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
/* Hero feature — first card full width with horizontal layout */
.feature-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
}
.feature-card:first-child .feature-card__icon {
  width: 52px;
  height: 52px;
  font-size: 1.4rem;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--hp-radius);
  padding: 1.85rem 1.75rem;
  transition: box-shadow var(--hp-transition), transform var(--hp-transition), border-color var(--hp-transition);
}
.feature-card:nth-child(odd) { border-top: 2px solid var(--clay-mid); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(44,31,20,0.09);
    border-color: var(--border-dark);
  }
}
.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--clay-light);
  border: 1px solid var(--clay-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.feature-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--bark);
  margin-bottom: 0.6rem;
}
.feature-card__desc { font-size: 0.88rem; color: var(--soil); line-height: 1.7; }
.feature-card__detail { margin-top: 0.75rem; font-size: 0.78rem; color: var(--dust); font-style: italic; }

/* ── ALLERGEN PILLS ── */
.allergen-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
/* Fade mask hinting at more pills */
.allergen-section::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 80px;
  background: linear-gradient(to right, transparent, var(--linen-mid));
  pointer-events: none;
  z-index: 1;
}
.allergen-section__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dust);
  margin-bottom: 1rem;
}
.allergen-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.allergen-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.4rem 0.85rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--bark);
  line-height: 1.4;
}
.allergen-pill--more {
  background: var(--linen-mid);
  color: var(--dust);
  border-style: dashed;
}

/* ── RESTAURANT MODE ── */
.rest-mode-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: center;
}
.rest-mode__copy-heading {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--bark);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.rest-mode__copy p { font-size: 0.9rem; color: var(--soil); line-height: 1.72; margin-bottom: 0.85rem; }
.rest-mode__features {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.rest-mode__features li {
  font-size: 0.875rem;
  color: var(--soil);
  padding-left: 1.35rem;
  position: relative;
  line-height: 1.6;
}
.rest-mode__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--clay);
  font-weight: 700;
}
.rest-mode__screen {
  background: #181008 !important;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25), 0 24px 64px rgba(0,0,0,0.3);
  padding: 0 !important;
}
.rest-mode__screen-label {
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  text-align: center;
  padding: 0.65rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.rest-mode__banner {
  background: #CC0000;
  padding: 1.25rem 1.5rem;
  text-align: center;
  border-radius: 0 !important;
}
.rest-mode__banner-th { font-size: 1.75rem; font-weight: 800; color: #fff; line-height: 1.2; }
.rest-mode__banner-en { font-size: 0.72rem; color: rgba(255,255,255,0.68); margin-top: 0.3rem; letter-spacing: 0.04em; }
.rest-mode__card-body {
  padding: 1.25rem 1.5rem !important;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: transparent !important;
  border-radius: 0 !important;
}
.rest-mode__allergen {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  padding: 0.75rem 0 !important;
}
.rest-mode__allergen:last-of-type { border-bottom: none !important; }
.rest-mode__allergen-icon { font-size: 1.6rem; flex-shrink: 0; }
.rest-mode__allergen-th {
  display: block;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  line-height: 1.2;
}
.rest-mode__allergen-en {
  display: block;
  font-size: 0.78rem !important;
  color: rgba(255,255,255,0.5) !important;
  margin-top: 0.2rem;
}
.rest-mode__divider { border: none; border-top: 1px solid rgba(255,255,255,0.07); }

/* ── SCENARIOS ── */
.scenarios-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.scenario-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--clay);
  border-radius: 14px;
  padding: 1.85rem 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .scenario-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(44,31,20,0.1);
    border-color: var(--border-dark);
  }
  .scenario-card:hover .risk-tag:nth-child(1) { animation: tag-pop 0.18s ease 0.00s both; }
  .scenario-card:hover .risk-tag:nth-child(2) { animation: tag-pop 0.18s ease 0.06s both; }
  .scenario-card:hover .risk-tag:nth-child(3) { animation: tag-pop 0.18s ease 0.12s both; }
}
@keyframes tag-pop {
  from { opacity: 0.5; transform: scale(0.9); }
  to   { opacity: 1;   transform: scale(1); }
}
.scenario-card__location {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.75rem;
}
.scenario-card__problem {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--bark);
  line-height: 1.5;
  margin-bottom: 0.85rem;
  font-weight: 600;
}
.scenario-card__how { font-size: 0.9rem; color: var(--soil); line-height: 1.7; margin-bottom: 1.1rem; }
.scenario-card__risks { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.risk-tag {
  font-size: 0.72rem;
  padding: 0.22rem 0.65rem;
  background: rgba(175,74,52,0.08);
  color: var(--clay);
  border: 1px solid rgba(175,74,52,0.22);
  border-radius: 100px;
  font-weight: 600;
}

/* ── TRUST + FOUNDER ── */
.trust-founder-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.trust-pills { display: flex; flex-direction: column; gap: 0.75rem; }
.trust-pill {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.1rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.trust-pill:first-child { border-left: 3px solid var(--clay); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .trust-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(44,31,20,0.08);
    border-color: var(--border-dark);
  }
}
.trust-pill__icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 1px; }
.trust-pill__title { font-weight: 700; font-size: 0.9rem; color: var(--bark); margin-bottom: 0.2rem; }
.trust-pill__desc { font-size: 0.83rem; color: var(--soil); line-height: 1.6; margin: 0; }
.founder-block {
  padding: 2.25rem;
  background: var(--bark);
  border-radius: var(--hp-radius);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.founder-block::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(196,89,58,0.12);
}
.founder-block__icon { font-size: 1.75rem; margin-bottom: 1rem; position: relative; }
.founder-block__text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(250,247,242,0.82);
  margin-bottom: 1.5rem;
  position: relative;
}
.founder-block__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--linen);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
  position: relative;
}
.founder-block__link:hover { color: #fff; }

/* ── BLOG PREVIEW ── */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
  align-items: stretch;
}
.blog-preview-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--clay-mid);
  border-radius: var(--hp-radius);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .blog-preview-card:hover {
    box-shadow: 0 4px 20px rgba(44,31,20,0.09);
    transform: translateY(-2px);
    border-color: var(--border-dark);
    border-top-color: var(--clay);
  }
  .blog-preview-card:hover .blog-preview-card__arrow { transform: translateX(3px); }
}
.blog-preview-card__tag {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.65rem;
}
.blog-preview-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--bark);
  line-height: 1.3;
  margin-bottom: 0.55rem;
}
.blog-preview-card p {
  flex: 1;
  font-size: 0.85rem;
  color: var(--soil);
  line-height: 1.7;
  margin-bottom: 1.1rem;
}
.blog-preview-card__arrow {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--clay);
  display: inline-block;
  transition: transform 0.18s;
  margin-top: auto;
}
/* F9: Image header areas for blog cards */
.blog-preview-card__img {
  margin: -1.75rem -1.75rem 1.25rem;
  height: 120px;
  border-radius: var(--hp-radius) var(--hp-radius) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.blog-preview-card__img--th {
  background: linear-gradient(135deg, #A8260E 0%, #CC3300 45%, #E8580A 100%);
}
.blog-preview-card__img--jp {
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 45%, #0F3460 100%);
}
.blog-preview-card__img--vn {
  background: linear-gradient(135deg, #C8380A 0%, #D44A1C 45%, #BA4E14 100%);
}
.blog-preview-card__img-flag {
  font-size: 2.5rem;
  opacity: 0.85;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
  transform: rotate(-5deg);
  transition: transform 0.3s var(--ease);
}
.blog-preview-card:hover .blog-preview-card__img-flag {
  transform: rotate(0deg) scale(1.1);
}
.blog-links-extra {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* ── DISCLAIMER ── */
.disclaimer-block {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: var(--linen-mid);
  border: 1px solid var(--border);
  border-radius: var(--hp-radius-sm);
  padding: 1.1rem 1.35rem;
}
section[aria-label="Disclaimer"] { padding: 1.5rem 0 2.5rem; }
.disclaimer-block__icon { font-size: 1.05rem; flex-shrink: 0; margin-top: 2px; }
.disclaimer-block__title { font-weight: 700; font-size: 0.82rem; color: var(--bark); margin-bottom: 0.3rem; }
.disclaimer-block__text { font-size: 0.8rem; color: var(--soil); line-height: 1.65; margin: 0; }

/* ── SEVERITY EXPLAINER ── */
.sev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.sev-card {
  border-radius: 14px;
  padding: 1.5rem 1.6rem;
  border: 1px solid transparent;
}
.sev-card--ana { background: #fff2f2; border: 1.5px solid #f5b8b8; border-top: 4px solid #CC0000; }
.sev-card--sev { background: #fffbef; border: 1.5px solid #e8d080; border-top: 4px solid var(--amber); }
.sev-card--int { background: #f2f6fb; border: 1.5px solid #b8cfe0; border-top: 4px solid #4a80b0; }
.sev-card__dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-bottom: 0.85rem; }
.sev-card--ana .sev-card__dot { background: #CC0000; }
.sev-card--sev .sev-card__dot { background: var(--amber); }
.sev-card--int .sev-card__dot { background: #4a80b0; }
.sev-card__label { font-weight: 800; font-size: 1rem; color: var(--bark); margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.sev-card--ana .sev-card__label { color: #9b1a1a; }
.sev-card--sev .sev-card__label { color: #7a5500; }
.sev-card--int .sev-card__label { color: #1a4a7a; }
.sev-card__desc { font-size: 0.875rem; color: var(--soil); line-height: 1.65; }
.sev-card__eg { font-size: 0.79rem; color: var(--dust); font-style: italic; margin-top: 0.65rem; }

/* ── FINAL CTA ── */
.cta-final { text-align: center; padding: 6rem 1rem; }
.cta-final__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.9rem);
  font-weight: 800;
  color: var(--linen);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
.cta-final__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: rgba(250,247,242,0.6);
}
.cta-final__sub {
  font-size: 1.05rem;
  color: rgba(250,247,242,0.62);
  max-width: 420px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}
.cta-final__note {
  display: block;
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: rgba(250,247,242,0.32);
  letter-spacing: 0.04em;
}

/* ── MOBILE COMPARISON ── */
.compare-mobile {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
}
.compare-mobile-row {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--hp-radius-sm);
  overflow: hidden;
}
.compare-mobile-feat {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--bark);
  padding: 0.65rem 1rem;
  background: var(--linen-mid);
  border-bottom: 1px solid var(--border);
}
.compare-mobile-cols { display: grid; grid-template-columns: 1fr 1fr; }
.compare-mobile-col {
  padding: 0.75rem 0.9rem;
  font-size: 0.82rem;
  color: var(--soil);
  line-height: 1.5;
}
.compare-mobile-col:first-child { border-right: 1px solid var(--border); }
.compare-mobile-col--brand { background: #fdf5f2; }
.compare-mobile-col-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.3rem;
}
.compare-mobile-col:first-child .compare-mobile-col-label { color: var(--dust); }
.compare-mobile-col--brand .compare-mobile-col-label { color: var(--clay); }

/* ── SCROLL TO TOP ── */
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bark);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  box-shadow: 0 2px 12px rgba(44,31,20,0.25);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, background 0.15s;
  pointer-events: none;
  z-index: 100;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { background: var(--clay); }

/* ── HOMEPAGE RESPONSIVE ── */
@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; }
  .sev-grid { grid-template-columns: 1fr; gap: 0.85rem; }
  .how-step:not(:last-child)::after { display: none; }
}
@media (max-width: 768px) {
  .home-hero { padding: 3rem 0 2.5rem; }
  .home-hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .home-hero__card-wrap { order: -1; }
  .hero-card-outer { max-width: 290px; }
  .stats-strip__inner { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding: 1.5rem 1.5rem; }
  .stat-item:last-child { border-bottom: none; }
  .hp-section { padding: 3.5rem 0; }
  .hp-section--alt { padding: 3.5rem 0; }
  .features-grid,
  .scenarios-grid,
  .blog-grid,
  .trust-founder-inner,
  .rest-mode-layout { grid-template-columns: 1fr; }
  .compare-grid { display: none; }
  .compare-wrap { border: none; background: transparent; }
  .compare-mobile { display: flex !important; }
  .home-hero__sub { font-size: 0.97rem; }
  .rest-mode-layout { gap: 2.5rem; }
  .rest-mode__screen { margin-top: 0.5rem; }
  .trust-founder-inner { gap: 2rem; }
  .founder-block { order: -1; }
  .scenario-card { padding: 1.5rem 1.35rem; }
  .cta-final { padding: 4rem 0.5rem; }
}
@media (max-width: 540px) {
  .home-hero__title { font-size: 2rem; }
  .home-hero__actions { flex-direction: column; align-items: flex-start; }
  .home-hero__actions .btn--primary { width: 100%; text-align: center; }
  .home-hero__actions .btn--outline {
    background: none !important;
    border: none !important;
    padding: 0.25rem 0;
    color: var(--clay);
    font-size: 0.88rem;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .cta-final { padding: 3.5rem 0.5rem; }
  .sev-grid { grid-template-columns: 1fr; }
  .sev-card { padding: 1.25rem 1.35rem; }
  .stat-item__num { font-size: 2rem; }
  .feature-card { padding: 1.5rem; }
  .scroll-top { bottom: 1rem; right: 1rem; width: 36px; height: 36px; }
}


/* ══════════════════════════════════════════════════
   PRICING
══════════════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 680px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}
.pricing-card--featured {
  border-color: var(--clay);
  border-width: 2px;
  background: var(--clay-light);
}
.pricing-card__badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--clay);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.25rem 0.875rem;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-card__tier {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--soil);
}
.pricing-card__price {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--bark);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.pricing-card__once {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--soil);
}
.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.pricing-card__features li {
  font-size: 0.875rem;
  color: var(--soil);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.45;
}
.pricing-card__features .check {
  color: var(--clay);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}
.pricing-card__btn {
  width: 100%;
  text-align: center;
}
.pricing-card__note {
  font-size: 0.75rem;
  color: var(--soil);
  opacity: 0.7;
  text-align: center;
  margin: -0.5rem 0 0;
}

@media (max-width: 540px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; }
  .pricing-card--featured { margin-top: 0.75rem; }
}
