/* ============================================================
   YUNELIO — Chinese Wedding Studio
   Design system per "视觉设计与配色规范 V1.0"
   Warm Ivory + Deep Vermilion + Ink + Jade (+ Soft Champagne accent)
   ============================================================ */

:root {
  /* Color tokens */
  --bg: #F8F4EC;            /* Warm Ivory — primary background (~60%) */
  --brand: #A93232;         /* Deep Vermilion — accent for key actions only */
  --brand-deep: #8E2828;    /* Vermilion hover/active */
  --brand-soft: #F8E5E5;    /* Vermilion tint for tags/hover fills */
  --ink: #252321;           /* Ink Black — primary text */
  --muted: #6D6862;         /* Warm Gray — secondary text */
  --jade: #718579;          /* Muted Jade — tool/status accent */
  --jade-deep: #5C6F64;
  --jade-soft: #E8EEEB;
  --gold: #C8A96B;          /* Champagne — premium accent (≤3%) */
  --gold-soft: #F3EBDD;
  --surface: #FFFCF6;       /* Card background */
  --line: #E5DED2;          /* Divider / border */
  --input-border: #D9CDC0;
  --warning: #A66A3F;       /* Warning */
  --warning-deep: #8A5633;

  /* Shadows — light, border-driven */
  --shadow-sm: 0 1px 2px rgba(37, 35, 33, .05), 0 2px 8px rgba(37, 35, 33, .05);
  --shadow-md: 0 4px 16px rgba(37, 35, 33, .08), 0 12px 32px rgba(37, 35, 33, .07);
  --shadow-lg: 0 16px 48px rgba(37, 35, 33, .14);

  /* Radius */
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Type */
  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, "Noto Serif SC", serif;
  --font-sans: "Inter", "DM Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;

  /* Layout */
  --container: 1160px;
  --container-narrow: 820px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: .005em;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.1; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.2; }
h4 { font-family: var(--font-sans); font-size: .95rem; }

p { margin: 0 0 1em; }

.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.container-narrow {
  width: min(var(--container-narrow), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.section { padding: clamp(3.2rem, 8vw, 5.5rem) 0; }
.section-tight { padding: 2.2rem 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-jade { background: var(--jade-soft); border-block: 1px solid var(--line); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .9rem;
}

.kicker::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--gold);
}

.section-head {
  max-width: 700px;
  margin: 0 auto clamp(2.2rem, 5vw, 3.2rem);
  text-align: center;
}

.section-head .kicker { justify-content: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Buttons (per spec: 8–10px radius, no gradient) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.4;
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 44px;
  text-decoration: none !important;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--brand);
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(169, 50, 50, .22);
}
.btn-primary:hover { background: var(--brand-deep); box-shadow: 0 8px 20px rgba(142, 40, 40, .26); }

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--input-border);
}
.btn-secondary:hover { background: #F2ECE4; border-color: var(--input-border); }

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-ghost:hover { background: var(--brand-soft); }

.btn-jade {
  background: var(--jade);
  color: #FFFFFF;
}
.btn-jade:hover { background: var(--jade-deep); }

.btn-sm { padding: .55rem 1rem; font-size: .88rem; min-height: 40px; }
.btn-lg { padding: 1rem 2rem; font-size: 1.02rem; min-height: 50px; }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--brand);
  color: #FFF6F4;
  text-align: center;
  font-size: .85rem;
  font-weight: 500;
  padding: .55rem 1rem;
  letter-spacing: .01em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 244, 236, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}

.site-header.scrolled { box-shadow: var(--shadow-sm); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
  text-decoration: none !important;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand);
  color: #FFFFFF;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.logo-sub {
  font-family: var(--font-sans);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink);
  font-size: .92rem;
  font-weight: 500;
  padding: .35rem 0;
}
.nav-links a:hover { color: var(--brand); text-decoration: none; }

.nav-cta { white-space: nowrap; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .55rem .7rem;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background:
    radial-gradient(ellipse 55% 45% at 88% 8%, rgba(200, 169, 107, .14), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 { margin-bottom: .45em; }

.hero h1 em {
  font-style: normal;
  color: var(--brand);
}

.hero .lede {
  font-size: 1.13rem;
  color: var(--muted);
  max-width: 32em;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin: 1.7rem 0 1.4rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  color: var(--muted);
  font-size: .86rem;
}

.hero-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-meta .tick { color: var(--jade); font-weight: 700; }

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  background: var(--surface);
}

.hero-media img {
  width: 100%;
  height: clamp(300px, 38vw, 470px);
  object-fit: cover;
  object-position: center;
}

.hero-media .hero-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(248, 244, 236, .92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .6rem .9rem;
  font-size: .8rem;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
}

/* ---------- Trust bar ---------- */
.trust-bar { border-bottom: 1px solid var(--line); background: var(--surface); }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  padding: 1.4rem 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .88rem;
  color: var(--muted);
}

.trust-item .tick {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--jade-soft);
  color: var(--jade);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .8rem;
}

/* ---------- Scenario cards ---------- */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}

.scenario-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease;
}

.scenario-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.scenario-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.scenario-card .sc-body {
  padding: 1.2rem 1.2rem 1.3rem;
}

.scenario-card h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.scenario-card p { font-size: .88rem; color: var(--muted); margin: 0; }
.scenario-card .sc-link { font-size: .86rem; font-weight: 600; color: var(--brand); margin-top: .6rem; display: inline-block; }

/* ---------- Tool cards ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}

.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.tool-card .tool-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--jade-soft);
  color: var(--jade);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.tool-card h3 { font-size: 1.22rem; margin-bottom: .35rem; }
.tool-card p { font-size: .92rem; color: var(--muted); flex-grow: 1; }
.tool-card .tool-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--jade-deep);
  background: var(--jade-soft);
  border-radius: var(--radius-pill);
  padding: .25rem .7rem;
  margin-bottom: .8rem;
  align-self: flex-start;
}

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  align-items: stretch;
}

.product-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.product-card.featured { border-color: var(--brand); }

.product-card .badge {
  position: absolute;
  top: .9rem;
  left: .9rem;
  z-index: 2;
  background: var(--brand);
  color: #FFFFFF;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .32rem .75rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.product-card .pc-media {
  height: 200px;
  overflow: hidden;
  background: var(--jade-soft);
  border-bottom: 1px solid var(--line);
}

.product-card .pc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.product-card:hover .pc-media img { transform: scale(1.03); }

.product-card .pc-body {
  padding: 1.4rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card h3 { font-size: 1.22rem; margin-bottom: .35rem; }
.product-card .p-desc { font-size: .9rem; color: var(--muted); flex-grow: 1; }

.product-card .p-feats {
  list-style: none;
  margin: .9rem 0 1.2rem;
  padding: 0;
  font-size: .86rem;
}

.product-card .p-feats li {
  display: flex;
  gap: .5rem;
  padding: .24rem 0;
  align-items: flex-start;
}

.product-card .p-feats li::before {
  content: "✓";
  color: var(--jade);
  font-weight: 700;
  flex: none;
}

.product-card .p-price {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: .8rem;
}

.product-card .p-price small {
  font-family: var(--font-sans);
  font-size: .78rem;
  color: var(--muted);
  font-weight: 400;
}

.product-card .btn { width: 100%; }

/* ---------- Why Yunelio ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem 2.5rem;
  max-width: 860px;
  margin-inline: auto;
}

.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.why-item .why-ico {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.why-item h3 { font-size: 1.08rem; margin-bottom: .2rem; }
.why-item p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------- Guides grid ---------- */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.guide-card .gc-media {
  height: 150px;
  overflow: hidden;
  background: var(--brand-soft);
}

.guide-card .gc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-card .gc-body {
  padding: 1.3rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.guide-card .gc-meta {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--jade);
  margin-bottom: .45rem;
}

.guide-card h3 { font-size: 1.18rem; }
.guide-card p { font-size: .9rem; color: var(--muted); flex-grow: 1; }
.guide-card .gc-link { font-weight: 600; font-size: .88rem; }

/* ---------- Steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.5rem;
  position: relative;
}

.step-num {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  margin-bottom: .6rem;
}

.step h3 { font-size: 1.15rem; }
.step p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------- Split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

/* ---------- Newsletter / lead magnet ---------- */
.newsletter {
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(200, 169, 107, .14), transparent 60%),
    var(--brand);
  color: #FFF6F4;
  text-align: center;
}

.newsletter h2 { color: #FFFFFF; }
.newsletter p { opacity: .9; max-width: 540px; margin-inline: auto; }
.newsletter .kicker { color: #E9D9B5; }
.newsletter .kicker::before { background: #E9D9B5; }

.news-form {
  display: flex;
  gap: .6rem;
  max-width: 480px;
  margin: 1.5rem auto 0;
}

.news-form input {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--radius);
  padding: .85rem 1.1rem;
  background: rgba(255, 255, 255, .12);
  color: #FFFFFF;
  font-size: .95rem;
  outline: none;
  min-height: 44px;
}

.news-form input::placeholder { color: rgba(255, 246, 244, .7); }
.news-form input:focus { border-color: #FFFFFF; background: rgba(255, 255, 255, .16); }
.newsletter .btn-primary { background: var(--surface); color: var(--brand); box-shadow: none; }
.newsletter .btn-primary:hover { background: var(--gold-soft); }

.form-note { font-size: .8rem; opacity: .7; margin-top: .8rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: .75rem;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 1.25rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--brand);
  flex: none;
  transition: transform .2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item .faq-body {
  padding: 0 1.25rem 1.1rem;
  color: var(--muted);
  font-size: .95rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #B9B2AA;
  font-size: .9rem;
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.4rem;
}

.site-footer h4 {
  color: #F3EEE7;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}

.site-footer .logo { color: #F3EEE7; margin-bottom: .8rem; }
.site-footer .logo-sub { color: #8F8A83; }
.site-footer .logo-mark { background: var(--brand); }

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #B9B2AA; }
.site-footer a:hover { color: var(--gold); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .8rem 1.5rem;
  font-size: .82rem;
}

.footer-links a { color: #B9B2AA; }
.footer-links a:hover { color: var(--gold); }

/* ---------- Inner page hero ---------- */
.page-hero {
  background:
    radial-gradient(ellipse 45% 55% at 90% 0%, rgba(200, 169, 107, .13), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.8rem, 7vw, 4.5rem) 0 clamp(2.2rem, 5vw, 3rem);
  text-align: center;
}

.page-hero h1 { margin-bottom: .35em; }
.page-hero .lede { color: var(--muted); max-width: 640px; margin-inline: auto; font-size: 1.05rem; }

.page-hero .breadcrumb {
  display: flex;
  justify-content: center;
  gap: .5rem;
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.page-hero .breadcrumb a { color: var(--muted); }
.page-hero .breadcrumb a:hover { color: var(--brand); }

/* ---------- Article / Guide ---------- */
.article {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.article .article-meta {
  color: var(--muted);
  font-size: .84rem;
  letter-spacing: .04em;
  margin-bottom: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.article h2 {
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  margin-top: 2.2rem;
}

.article h3 { margin-top: 1.6rem; }

.article p, .article li { color: #3D3833; }
.article ul, .article ol { padding-left: 1.3rem; }
.article li { margin-bottom: .45rem; }

.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  margin: 1.4rem 0;
}

.article th, .article td {
  border: 1px solid var(--line);
  padding: .6rem .8rem;
  text-align: left;
}

.article th { background: var(--bg); }

.article .callout {
  background: var(--jade-soft);
  border-left: 4px solid var(--jade);
  border-radius: 8px;
  padding: 1.05rem 1.25rem;
  margin: 1.5rem 0;
  font-size: .95rem;
}

.article .callout-red {
  background: var(--brand-soft);
  border-left-color: var(--brand);
}

.article .callout-gold {
  background: var(--gold-soft);
  border-left-color: var(--gold);
}

.article .toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.3rem 1.5rem;
  margin: 1.5rem 0 2rem;
  font-size: .95rem;
}

.article .toc strong { display: block; margin-bottom: .5rem; color: var(--brand); }
.article .toc ol { margin: 0; }

.article .article-hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 1.6rem 0;
  border: 1px solid var(--line);
}

.article-cta {
  margin-top: 3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.article-cta h3 { margin-bottom: .4rem; }
.article-cta p { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }

.byline {
  display: flex;
  align-items: center;
  gap: .8rem;
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  font-size: .86rem;
  color: var(--muted);
}

.byline .by-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ---------- Related articles ---------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1.1rem; }

.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: .35rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  padding: .8rem 1rem;
  font-family: var(--font-sans);
  font-size: .95rem;
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(169, 50, 50, .12);
}

.form-success {
  display: none;
  background: var(--jade-soft);
  border: 1px solid var(--jade);
  color: var(--jade-deep);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-top: 1rem;
  font-size: .92rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(37, 35, 33, .55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}

.modal-backdrop.open { display: flex; }

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 470px;
  width: 100%;
  padding: 2.2rem 2rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal .m-close {
  position: absolute;
  top: .8rem;
  right: .9rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--muted);
  padding: .4rem;
  line-height: 1;
}

.modal .m-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto .9rem;
  border-radius: 14px;
  background: var(--brand);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
}

.modal h3 { margin: .4rem 0 .3rem; }
.modal p { color: var(--muted); font-size: .94rem; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.price-card.featured {
  border: 2px solid var(--brand);
  box-shadow: var(--shadow-md);
}

.price-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #FFFFFF;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.price-card h3 { font-size: 1.25rem; }
.price-card .price {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
  margin: .5rem 0 .2rem;
}

.price-card .price small {
  font-family: var(--font-sans);
  font-size: .8rem;
  color: var(--muted);
  font-weight: 400;
}

.price-card .p-for { font-size: .86rem; color: var(--muted); margin-bottom: 1rem; }

.price-card ul {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  font-size: .9rem;
  flex-grow: 1;
}

.price-card ul li {
  display: flex;
  gap: .5rem;
  padding: .28rem 0;
  align-items: flex-start;
}

.price-card ul li::before {
  content: "✓";
  color: var(--jade);
  font-weight: 700;
  flex: none;
}

.price-card .btn { width: 100%; }

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  min-width: 680px;
  background: var(--surface);
}

.compare-table th, .compare-table td {
  padding: .85rem .9rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare-table thead th {
  background: var(--bg);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  border-bottom: 2px solid var(--line);
}

.compare-table .yes { color: var(--jade); font-weight: 700; }
.compare-table .no { color: var(--line); }

/* ---------- Planner mock ---------- */
.planner-mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.pm-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.pm-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.pm-addr { flex: 1; font-size: .8rem; color: var(--muted); }
.pm-actions { display: flex; gap: .5rem; }
.pm-actions span { font-size: .72rem; padding: .3rem .7rem; border-radius: var(--radius-pill); background: var(--jade-soft); color: var(--jade-deep); }

.pm-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 340px;
}

.pm-side {
  border-right: 1px solid var(--line);
  padding: 1.2rem 1rem;
  background: var(--bg);
}

.pm-side .pm-menu { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.pm-side .pm-menu li { padding: .5rem .8rem; border-radius: var(--radius); color: var(--muted); margin-bottom: .2rem; }
.pm-side .pm-menu li.active { background: var(--brand); color: #FFFFFF; font-weight: 600; }

.pm-main { padding: 1.4rem 1.5rem; }

.pm-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
  margin-top: 1rem;
}

.pm-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.pm-card .pm-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
}

.pm-card .pm-label { font-size: .8rem; color: var(--muted); }
.pm-card.progress .pm-num { color: var(--jade); }

.pm-list { margin-top: 1.2rem; }
.pm-list .pm-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .88rem;
}

.pm-list .pm-row .done { color: var(--jade); font-weight: 700; }

/* ---------- Tools ---------- */
.tool-shell {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}

.tool-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 92px;
}

.tool-panel h2 { font-size: 1.35rem; }
.tool-panel .form-group select, .tool-panel .form-group input { font-size: .92rem; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}

.count-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .6rem;
}

.count-field label {
  display: block;
  font-size: .76rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: .25rem;
}

.count-field input {
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  padding: .55rem .5rem;
  text-align: center;
  font-size: .95rem;
  font-family: var(--font-sans);
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.count-field input:focus { border-color: var(--brand); }

.tool-output {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
  min-height: 300px;
}

.tool-output .empty-state {
  text-align: center;
  color: var(--muted);
  padding: 3.5rem 1rem;
}

.tool-output .empty-state .es-ico {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 18px;
  background: var(--jade-soft);
  color: var(--jade);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.tool-output h3 { font-family: var(--font-serif); font-size: 1.6rem; }
.tool-output h4 { font-family: var(--font-sans); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--jade-deep); margin: 1.4rem 0 .6rem; }

.order-sheet ol, .order-sheet ul { padding-left: 1.2rem; }
.order-sheet li { margin-bottom: .4rem; }

.sheet-block {
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: .9rem;
  background: var(--bg);
}

.sheet-block .sb-title { font-weight: 700; margin-bottom: .3rem; }
.sheet-block .sb-time { font-size: .8rem; color: var(--muted); margin-bottom: .35rem; }
.sheet-block p, .sheet-block li { font-size: .92rem; color: #3D3833; }

.timeline-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.timeline-row .tl-time {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand);
}

.timeline-row .tl-title { font-weight: 600; font-size: .95rem; }
.timeline-row .tl-note { font-size: .86rem; color: var(--muted); }

.checklist-group { margin-bottom: 1.4rem; }
.checklist-group h4 { margin-bottom: .5rem; }
.checklist-group ul { list-style: none; margin: 0; padding: 0; }
.checklist-group li {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  padding: .3rem 0;
  font-size: .92rem;
  color: #3D3833;
}

.checklist-group li::before { content: "☐"; color: var(--jade); font-weight: 700; flex: none; }

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.tool-note {
  font-size: .84rem;
  color: var(--muted);
  background: var(--jade-soft);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  margin-top: 1rem;
}

/* ---------- Product detail ---------- */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.pd-gallery {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.pd-gallery img { width: 100%; }

.pd-info .price-line {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--brand);
  margin: .6rem 0 .3rem;
}

.pd-info .price-line small {
  font-family: var(--font-sans);
  font-size: .8rem;
  color: var(--muted);
  font-weight: 400;
}

.pd-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .9rem 0 1.3rem;
}

.pd-facts span {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: .3rem .8rem;
  background: var(--surface);
}

.pd-cta-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  margin-top: 1.2rem;
}

.pd-includes {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 2rem;
}

.pd-includes li {
  break-inside: avoid;
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  padding: .4rem 0;
  font-size: .94rem;
}

.pd-includes li::before {
  content: "✓";
  color: var(--jade);
  font-weight: 700;
  flex: none;
}

.bundle-upsell {
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(200, 169, 107, .16), transparent 60%),
    var(--brand);
  color: #FFF6F4;
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
}

.bundle-upsell h2 { color: #FFFFFF; }
.bundle-upsell p { opacity: .9; max-width: 560px; margin-inline: auto; }
.bundle-upsell .bundle-price {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: #F3E7CF;
  margin: .4rem 0 1rem;
}

/* ---------- Legal ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: clamp(2rem, 5vw, 3rem) 0 clamp(2.5rem, 6vw, 4rem); }
.legal h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin-top: 2rem; }
.legal p, .legal li { color: #3D3833; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: clamp(4rem, 10vw, 7rem) 0; }
.notfound .nf-mark {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.4rem;
  border-radius: 24px;
  background: var(--brand);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
}

.notfound h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.notfound p { color: var(--muted); max-width: 460px; margin-inline: auto; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Print (tool sheets) ---------- */
@media print {
  body { background: #FFFFFF; }
  .announce, .site-header, .site-footer, .tool-panel, .tool-actions, .newsletter, .tool-note, .no-print { display: none !important; }
  .tool-output {
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .sheet-block { border: 1px solid #ccc; background: #FFFFFF; break-inside: avoid; }
  .timeline-row { break-inside: avoid; }
  .checklist-group li { -webkit-print-color-adjust: exact; }
  .section { padding: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .scenario-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid, .guides-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-grid, .steps-grid, .pricing-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-shell { grid-template-columns: 1fr; }
  .tool-panel { position: static; }
  .pm-body { grid-template-columns: 1fr; }
  .pm-side { border-right: none; border-bottom: 1px solid var(--line); }
  .pm-side .pm-menu { display: flex; flex-wrap: wrap; gap: .3rem; }
}

@media (max-width: 920px) {
  .hero-grid, .split, .contact-grid, .product-detail-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: calc(var(--gutter) * -1);
    right: calc(var(--gutter) * -1);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem var(--gutter);
    gap: .3rem;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
}

@media (max-width: 600px) {
  .section { padding: 3rem 0; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .news-form { flex-direction: column; }
  .product-grid, .guides-grid, .tool-grid, .steps-grid, .pricing-grid, .scenario-grid, .related-grid { grid-template-columns: 1fr; }
  .field-row, .count-row { grid-template-columns: 1fr 1fr; }
  .pm-cards { grid-template-columns: 1fr; }
  .hero-media img { height: 280px; }
  .pd-includes { columns: 1; }
}
