@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/instrument-sans-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "EK Notice Sans";
  src: url("/assets/ek-notice-sans-bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

:root {
  --ink: #171512;
  --muted: #6f6962;
  --cream: #fffaf3;
  --paper: #fffefd;
  --line: #e9e1d8;
  --orange: #ffad58;
  --orange-dark: #a84e18;
  --orange-soft: #fff0e1;
  --sage: #eef5e8;
  --sage-dark: #55733a;
  --blue: #eaf4fb;
  --yellow: #fff5c9;
  --rose: #fff0ea;
  --shadow: 0 18px 55px rgba(72, 51, 29, .09);
  --shadow-small: 0 8px 26px rgba(72, 51, 29, .07);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 90% 8%, rgba(204, 222, 171, .28), transparent 22%),
    radial-gradient(circle at 6% 42%, rgba(255, 207, 173, .23), transparent 23%);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "EK Notice Sans", "Instrument Sans", sans-serif; }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link {
  position: absolute;
  left: 16px;
  top: -70px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--ink);
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(225, 215, 202, .82);
  background: rgba(255, 250, 243, .92);
  backdrop-filter: blur(14px);
}
.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { width: 42px; height: 42px; line-height: 0; }
.brand img {
  width: 100%;
  height: 100%;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(45, 29, 14, .1);
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 9px 13px;
  border-radius: 999px;
  color: #48423c;
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
}
.nav-link:hover, .nav-link:focus-visible { background: #fff; outline: none; }
.nav-link.active { color: #8f4314; background: var(--orange-soft); }

.breadcrumbs {
  padding: 23px 0 0;
  color: #80786f;
  font-size: 13px;
}
.breadcrumbs a { text-underline-offset: 3px; }
.breadcrumbs span { padding: 0 7px; }

.article-hero { padding: 48px 0 44px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.eyebrow {
  margin-bottom: 13px;
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1 {
  max-width: 850px;
  margin-bottom: 19px;
  font-size: clamp(43px, 5.8vw, 72px);
  line-height: 1;
  letter-spacing: -.055em;
}
.dek {
  max-width: 790px;
  margin-bottom: 21px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}
.review-meta { color: #817971; font-size: 13px; }
.hero-side {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.84);
  box-shadow: var(--shadow);
}
.icon-pair { display: flex; align-items: center; margin-bottom: 20px; }
.icon-pair img {
  width: 62px;
  height: 62px;
  border: 4px solid #fff;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: var(--shadow-small);
}
.icon-pair img + img { margin-left: -10px; }
.hero-side-label {
  margin-bottom: 6px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-side h2 { margin-bottom: 10px; font-size: 26px; line-height: 1.1; letter-spacing: -.03em; }
.hero-side p { margin-bottom: 0; color: var(--muted); font-size: 15px; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(230px, 300px);
  justify-content: space-between;
  gap: 60px;
  align-items: start;
  padding-bottom: 34px;
}
.article-body { min-width: 0; }
.article-body > section { scroll-margin-top: 92px; margin-bottom: 52px; }
.article-body h2 {
  margin-bottom: 15px;
  font-size: clamp(30px, 4vw, 43px);
  line-height: 1.08;
  letter-spacing: -.042em;
}
.article-body h3 { margin: 29px 0 9px; font-size: 23px; line-height: 1.18; letter-spacing: -.025em; }
.article-body p { color: #433e38; font-size: 17px; }
.article-body a { color: #924516; text-underline-offset: 3px; }
.article-body ul { margin: 0 0 20px; padding-left: 22px; color: #433e38; }
.article-body li { margin: 7px 0; }
.toc {
  position: sticky;
  top: 92px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255,255,255,.76);
  box-shadow: var(--shadow-small);
}
.toc strong { display: block; margin-bottom: 11px; font-size: 14px; }
.toc a {
  display: block;
  padding: 7px 0;
  color: #665f58;
  font-size: 13px;
  text-decoration: none;
}
.toc a:hover, .toc a:focus-visible { color: var(--orange-dark); outline: none; }

.direct-answer {
  margin-bottom: 52px;
  padding: 27px 29px;
  border: 1px solid #edcfb8;
  border-radius: 23px;
  background: linear-gradient(135deg, #fffefd, #fff0e3);
  box-shadow: var(--shadow-small);
}
.direct-answer .label, .section-label {
  margin-bottom: 8px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.direct-answer h2 { margin-bottom: 11px; font-size: clamp(29px, 4vw, 40px); }
.direct-answer p:last-child { margin-bottom: 0; }

.comparison-layer {
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.scenario {
  margin: 23px 0;
  padding: 24px 25px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-small);
}
.scenario:nth-of-type(even) { background: linear-gradient(145deg, #fff, #f5f8f1); }
.scenario-tag {
  display: inline-flex;
  margin-bottom: 11px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #527037;
  background: var(--sage);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.scenario h3 { margin: 0 0 9px; }
.scenario p:last-child { margin-bottom: 0; }
.source-note { color: #837a72 !important; font-size: 13px !important; }

.decision-grid, .related-grid, .price-grid, .layer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.decision-card, .related-card, .price-card, .layer-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.84);
  box-shadow: var(--shadow-small);
}
.decision-card.good { background: linear-gradient(145deg, #fff, #f3f8ee); }
.decision-card.simple { background: linear-gradient(145deg, #fff, #fff5eb); }
.decision-card h3, .price-card h3, .layer-card h3 { margin: 0 0 9px; }
.decision-card p:last-child, .price-card p:last-child, .layer-card p:last-child { margin-bottom: 0; }

.comparison-wrap {
  margin: 24px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-small);
}
.comparison-head, .comparison-row {
  display: grid;
  grid-template-columns: 1.3fr .85fr .85fr;
  align-items: stretch;
}
.comparison-head > div {
  padding: 20px;
  color: #514941;
  background: #f7f2ec;
  font-weight: 900;
}
.comparison-head > div:last-child { color: #8f4215; background: #ffe7d7; }
.comparison-row > div {
  min-height: 62px;
  padding: 15px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  color: #4b453f;
  font-size: 14px;
}
.comparison-row > div:first-child { color: var(--ink); font-weight: 800; }
.comparison-row > div:not(:first-child) { justify-content: center; text-align: center; }
.mark {
  display: inline-grid;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
}
.mark.yes { color: #416333; background: #e5efdd; }
.mark.no { color: #8a8178; background: #f1eee9; }
.cell-note { color: #685f57; font-size: 13px; }

.price-grid { margin-top: 22px; }
.price-card { min-height: 215px; }
.price-card.featured { border-color: #ffc795; background: linear-gradient(155deg, #fff8f1, #fff); }
.price-label { color: #797168; font-size: 13px; font-weight: 850; }
.price-number { margin: 5px 0 10px; font-size: 48px; line-height: 1; font-weight: 950; letter-spacing: -.05em; }
.price-number span { font-size: 16px; letter-spacing: 0; }
.billing-note { margin: -2px 0 17px !important; color: #5f5851 !important; font-size: 15px !important; font-weight: 850; }
.mini-list { margin: 14px 0 0 !important; padding: 0 !important; list-style: none; }
.mini-list li { position: relative; margin: 7px 0; padding-left: 22px; font-size: 14px; }
.mini-list li::before { content: "✓"; position: absolute; left: 0; color: #56743d; font-weight: 900; }

.ai-layer {
  position: relative;
  overflow: hidden;
  padding: 31px;
  border: 1px solid #f0c49e;
  border-radius: 25px;
  background: linear-gradient(135deg, #fff0e1, #fff9ef);
  box-shadow: var(--shadow);
}
.ai-layer::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -80px;
  top: -90px;
  border-radius: 50%;
  background: rgba(205, 221, 171, .38);
}
.ai-layer > * { position: relative; z-index: 1; }
.ai-layer h2 { max-width: 620px; }
.input-chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 21px 0; }
.input-chip {
  padding: 9px 12px;
  border: 1px solid rgba(230, 185, 148, .8);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: #5f4634;
  font-size: 13px;
  font-weight: 800;
}
.ai-note { margin-bottom: 0 !important; font-size: 14px !important; }

.callout {
  margin: 25px 0;
  padding: 20px 22px;
  border-left: 5px solid var(--orange);
  border-radius: 4px 18px 18px 4px;
  background: #fff6ec;
}
.callout p:last-child { margin-bottom: 0; }

.steps { counter-reset: steps; display: grid; gap: 14px; }
.step {
  counter-increment: steps;
  padding: 20px 21px 20px 66px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fff;
  position: relative;
}
.step::before {
  content: counter(steps);
  position: absolute;
  left: 19px;
  top: 19px;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #8f4315;
  background: var(--orange-soft);
  font-weight: 900;
}
.step h3 { margin: 0 0 5px; font-size: 19px; }
.step p { margin: 0; font-size: 15px; }

.faq details {
  border-top: 1px solid var(--line);
  padding: 18px 2px;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 850; }
.faq details p { margin: 12px 0 0; font-size: 15px; }

.disclosure {
  margin: 4px 0 45px;
  padding: 20px 22px;
  border-radius: 19px;
  background: linear-gradient(90deg, #fff2e4, #fff8ef);
  color: #584f47;
  font-size: 14px;
}
.disclosure p:last-child { margin-bottom: 0; }

.related { padding: 44px 0 70px; border-top: 1px solid var(--line); }
.related h2 { margin-bottom: 20px; font-size: 34px; letter-spacing: -.04em; }
.related-grid { grid-template-columns: repeat(3, 1fr); }
.related-card { display: flex; flex-direction: column; min-height: 190px; }
.related-card .section-label { margin-bottom: 10px; }
.related-card h3 { margin: 0 0 9px; font-size: 21px; line-height: 1.15; }
.related-card p { color: var(--muted); font-size: 14px; }
.related-card a { margin-top: auto; color: #8f4315; font-weight: 850; text-underline-offset: 3px; }

.article-cta {
  margin: 0 0 70px;
  padding: 32px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: #1f1b17;
  color: #fff;
}
.article-cta h2 { margin-bottom: 7px; font-size: 31px; letter-spacing: -.04em; }
.article-cta p { margin-bottom: 0; color: #d8d1c9; }
.cta-button {
  min-height: 52px;
  padding: 0 21px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #24170c;
  background: linear-gradient(110deg, #ffbc71, #ff9d3d);
  font-weight: 900;
  text-decoration: none;
}
.cta-button:hover, .cta-button:focus-visible { transform: translateY(-1px); outline: 3px solid rgba(255, 174, 91, .25); outline-offset: 3px; }

.site-footer { padding: 25px 0 70px; border-top: 1px solid var(--line); color: #766f68; font-size: 13px; }

@media (max-width: 900px) {
  .hero-grid, .article-layout { grid-template-columns: 1fr; }
  .hero-side { max-width: 620px; }
  .toc { position: static; order: -1; }
  .toc a { display: inline-block; margin-right: 12px; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .site-header { position: static; }
  .nav { min-height: 62px; }
  .nav-links { gap: 2px; overflow-x: auto; }
  .nav-link { padding: 8px 9px; font-size: 12px; white-space: nowrap; }
  .nav-link:nth-child(3), .nav-link:nth-child(4) { display: none; }
  .breadcrumbs { padding-top: 18px; }
  .article-hero { padding: 34px 0 32px; }
  h1 { font-size: clamp(40px, 12vw, 57px); }
  .hero-grid { gap: 23px; }
  .hero-side { padding: 20px; }
  .article-layout { gap: 32px; }
  .article-body > section { margin-bottom: 42px; }
  .direct-answer { padding: 23px 20px; }
  .scenario { padding: 21px 19px; }
  .decision-grid, .price-grid, .layer-grid { grid-template-columns: 1fr; }
  .comparison-wrap { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .comparison-head { display: none; }
  .comparison-row {
    margin-bottom: 11px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 17px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #fff;
    box-shadow: var(--shadow-small);
  }
  .comparison-row > div { min-height: 0; padding: 0; border: 0; }
  .comparison-row > div:first-child { grid-column: 1 / -1; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
  .comparison-row > div:not(:first-child) { justify-content: flex-start; text-align: left; }
  .comparison-row > div:nth-child(2)::before { content: "FamilyWall: "; margin-right: 5px; color: #756e66; font-size: 12px; font-weight: 800; }
  .comparison-row > div:nth-child(3)::before { content: "Nori: "; margin-right: 5px; color: #a44d18; font-size: 12px; font-weight: 800; }
  .ai-layer { padding: 25px 20px; }
  .article-cta { align-items: stretch; flex-direction: column; padding: 26px 22px; }
  .cta-button { width: 100%; }
}

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