/* ============================================================
   Máy Xay Đa Năng – landing page
   ============================================================ */

:root {
  --brand: #d1390f;
  --brand-dark: #ab2d0a;
  --brand-2: #f77f5e;
  --ink: #251b18;
  --body: #3f3431;
  --muted: #6c5d59;
  --bg: #fafafa;
  --bg-alt: #f3f2f1;
  --dark: #2a140e;
  --green: #158247;
  --green-dark: #0f6a39;
  --line: rgba(37, 27, 24, 0.1);
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(37, 27, 24, .06), 0 4px 12px rgba(37, 27, 24, .05);
  --shadow-md: 0 8px 28px rgba(37, 27, 24, .1);
  --shadow-lg: 0 24px 60px rgba(37, 27, 24, .14);
  --maxw: 1160px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
s { color: var(--muted); }

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

.accent { color: var(--brand); }
.accent-2 { color: var(--brand-2); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Two-tone ring: dark core + white halo so it stays visible on the light page,
   the yellow submit button and the green order band alike (WCAG 2.2 SC 1.4.11). */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .9);
  border-radius: 4px;
}

/* honeypot – hidden from humans, still reachable by bots that fill every input */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: 10px;
  padding: .72rem 1.25rem; line-height: 1.3; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, opacity .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(209, 57, 15, .28); }
.btn-primary:hover { background: var(--brand-dark); }

.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--brand-2); color: var(--brand); }

.btn-sm { padding: .5rem .95rem; font-size: .9rem; border-radius: 9px; }
.btn-lg { padding: .95rem 1.6rem; font-size: 1.05rem; border-radius: 12px; }

.btn-order {
  width: 100%; grid-column: 1 / -1;
  background: #ffcf33; color: #24160a; font-size: 1.1rem; font-weight: 800;
  letter-spacing: .02em; padding: 1rem; border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}
.btn-order:hover { background: #ffd94f; }

@keyframes softPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}
.pulse { animation: softPulse 3s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 250, 250, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 64px; }

.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--brand); }
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo-text { display: grid; line-height: 1; }
.logo-text strong { font-size: 1rem; letter-spacing: .12em; color: var(--ink); font-weight: 800; }
.logo-text small { font-size: .62rem; letter-spacing: .28em; color: var(--brand-2); font-weight: 600; }

.site-nav { display: none; gap: 1.5rem; margin-left: auto; }
.site-nav a { color: var(--body); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav a:hover { color: var(--brand); }

.header-cta { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.hotline { display: none; align-items: center; gap: .4rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; }
.hotline svg { width: 18px; height: 18px; color: var(--brand); }
.hotline:hover { color: var(--brand); }

@media (min-width: 900px) {
  .site-nav { display: flex; }
  .hotline { display: inline-flex; }
  /* nav already takes the auto margin once it is actually laid out */
  .site-nav + .header-cta { margin-left: 0; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 3rem 0 3.5rem; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.hero-glow {
  position: absolute; top: -160px; right: -120px; width: 460px; height: 460px;
  background: rgba(232, 88, 48, .16); filter: blur(120px); border-radius: 50%; pointer-events: none;
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand); background: rgba(247, 127, 94, .12);
  border: 1px solid rgba(247, 127, 94, .25); border-radius: 999px; padding: .35rem .8rem; margin-bottom: 1rem;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

.hero h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); margin-bottom: .4rem; }
.lede { font-size: clamp(1rem, 2.2vw, 1.18rem); color: var(--body); max-width: 34ch; margin-bottom: 1.5rem; }

.hero-points { display: grid; gap: .6rem; margin-bottom: 1.75rem; }
.hero-points li { display: flex; align-items: flex-start; gap: .6rem; font-size: .98rem; }
.hero-points svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--green); }

.price-row { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.price-now { font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 800; color: var(--brand); line-height: 1; letter-spacing: -0.03em; }
.price-now span { font-size: .5em; margin-left: 2px; }
.price-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.price-meta s { font-size: 1.05rem; }
.save-pill { background: rgba(21, 130, 71, .1); color: var(--green); font-weight: 700; font-size: .82rem; padding: .25rem .6rem; border-radius: 999px; }

.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.hero-note { font-size: .88rem; color: var(--muted); margin: 0; }

/* Badge nằm TRÊN ảnh, không chồng lên — ảnh sản phẩm đã có sẵn chữ ở góc. */
.hero-media {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-end; gap: .7rem;
}
.hero-media picture { display: block; width: 100%; }
.hero-media img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  background: #fff;
}
.discount-badge {
  position: static; flex: none;
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  place-content: center;
  column-gap: 1px;
  box-shadow: 0 10px 26px rgba(209, 57, 15, .38);
  font-weight: 800; line-height: 1;
}
.db-num { font-size: 1.9rem; grid-area: 1 / 1; margin: 0; }
.db-pct { font-size: .95rem; grid-area: 1 / 2; align-self: start; margin: 0; }
.db-label { grid-area: 2 / 1 / 3 / 3; justify-self: center; font-size: .6rem; letter-spacing: .14em; margin-top: 4px; }

@media (min-width: 900px) {
  .hero { padding: 4.5rem 0 5rem; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 3.5rem; }
  .discount-badge { width: 104px; height: 104px; }
  .db-num { font-size: 2.3rem; }
}

/* ---------- generic section ---------- */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: rgba(255, 255, 255, .78); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .sub { color: rgba(255, 255, 255, .62); }

@media (min-width: 900px) { .section { padding: 5rem 0; } }

.rule { display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--brand-2); margin-bottom: 1.1rem; }
.section-head { max-width: 660px; margin-bottom: 2.5rem; }
.section-head .rule { margin-inline: 0; }
.h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
.sub { color: var(--muted); font-size: 1.02rem; margin: 0; }
.body-lg { font-size: 1.05rem; }

/* ---------- two column + gallery ---------- */
.two-col { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.solve-list { display: grid; gap: .75rem; margin-top: 1.5rem; }
.solve-list li {
  position: relative; padding: .85rem 1rem .85rem 2.9rem;
  background: rgba(247, 127, 94, .1);
  border: 1px solid rgba(247, 127, 94, .2);
  border-radius: 12px; font-weight: 600; color: var(--ink);
}
.solve-list li::before {
  content: ""; position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.gallery-main {
  border-radius: var(--radius-lg); overflow: hidden; background: #fff;
  box-shadow: var(--shadow-md); margin-bottom: .75rem;
}
.gallery-main img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.thumb {
  padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden;
  background: #fff; cursor: pointer; line-height: 0; transition: border-color .15s ease;
}
.thumb img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.thumb.is-active { border-color: var(--brand); }
.thumb:hover { border-color: var(--brand-2); }

/* ---------- cards ---------- */
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .cards-3, .cards-5 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-5 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.card p { margin: 0; font-size: .96rem; color: var(--body); }
.card-plain { background: #fff; }

.card-icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1rem;
  border-radius: 12px; background: rgba(247, 127, 94, .14); color: var(--brand);
}
.card-icon svg { width: 26px; height: 26px; }

.tag {
  display: inline-block; margin-top: 1rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand); background: rgba(209, 57, 15, .09);
  border-radius: 999px; padding: .22rem .7rem;
}

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  text-align: center; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1rem; box-shadow: var(--shadow-sm);
}
.stat b { display: block; font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; color: var(--brand); letter-spacing: -0.02em; line-height: 1.1; }
.stat span { display: block; margin-top: .35rem; font-size: .9rem; color: var(--muted); }

/* ---------- testimonials ---------- */
.quote {
  margin: 0; background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; display: flex; flex-direction: column; gap: 1rem;
}
.stars { color: #ffae0f; letter-spacing: .12em; font-size: 1.05rem; }
.quote blockquote { margin: 0; font-size: .97rem; line-height: 1.7; color: rgba(255, 255, 255, .82); flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: .75rem; }
.quote figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.quote figcaption span { display: grid; line-height: 1.35; }
.quote figcaption b { color: #fff; font-size: .95rem; }
.quote figcaption small { color: rgba(255, 255, 255, .55); font-size: .84rem; }

/* ---------- offer ---------- */
.offer-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .offer-grid { grid-template-columns: .9fr 1.1fr; gap: 4rem; } }
.offer-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; }
.offer-price { display: flex; align-items: baseline; gap: 1rem; margin: .5rem 0 1.25rem; flex-wrap: wrap; }
.offer-price s { font-size: 1.3rem; }
.offer-price b { font-size: clamp(2.2rem, 6vw, 3rem); color: var(--brand); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.offer-price b span { font-size: .5em; }
.offer-list { display: grid; gap: .6rem; margin-bottom: 1.75rem; }
.offer-list li { position: relative; padding-left: 1.9rem; }
.offer-list li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- order band ---------- */
.order-band { padding: 3rem 0; background: linear-gradient(160deg, #1a9c56 0%, var(--green) 45%, var(--green-dark) 100%); }
.order-band-alt { background: linear-gradient(160deg, var(--green-dark) 0%, var(--green) 55%, #1a9c56 100%); }

/* Darkening wash, not lightening — the light gradient stop pushed every text
   token on this card below WCAG AA (errors landed at 2.5:1). */
.order-card {
  background: rgba(0, 0, 0, .32);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-lg); padding: 1.75rem 1.4rem;
  max-width: 880px; margin-inline: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
}
@media (min-width: 700px) { .order-card { padding: 2.5rem; } }

.order-head { text-align: center; margin-bottom: 1.75rem; }
.order-head h2 { color: #fff; font-size: clamp(1.5rem, 3.6vw, 2.1rem); margin-bottom: .35rem; }
.order-head p { color: rgba(255, 255, 255, .92); margin-bottom: 1.1rem; font-size: .98rem; }

.countdown { display: flex; align-items: flex-start; justify-content: safe center; gap: .35rem; }
.countdown i { color: rgba(255, 255, 255, .6); font-style: normal; font-size: 1.5rem; font-weight: 700; line-height: 1.6; }
.cd-unit { display: grid; justify-items: center; min-width: 58px; }
.cd-unit b {
  display: block; width: 100%; padding: .4rem .2rem;
  background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px;
  color: #fff; font-size: 1.5rem; font-weight: 800; line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.cd-unit span { font-size: .74rem; color: rgba(255, 255, 255, .92); margin-top: .3rem; letter-spacing: .04em; }

/* 4 tiles + 3 colons at min-width 58px floor the row at ~287px, wider than the
   card's content box on a 320px phone — let them shrink instead of escaping. */
@media (max-width: 400px) {
  .countdown { gap: .25rem; }
  .cd-unit { min-width: 0; flex: 1 1 0; }
  .cd-unit b { font-size: 1.25rem; }
  .countdown i { font-size: 1.1rem; }
}

.order-form { display: grid; gap: 1rem; }
@media (min-width: 640px) { .order-form { grid-template-columns: 1fr 1fr; } .field-wide { grid-column: 1 / -1; } }

.field { display: grid; gap: .35rem; }
.field label { color: #fff; font-size: .88rem; font-weight: 600; }
.field input {
  font: inherit; width: 100%; padding: .8rem .9rem;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 10px;
  background: rgba(255, 255, 255, .96); color: var(--ink);
}
.field input::placeholder { color: #9a8f8b; }
.field input:focus { outline: 3px solid rgba(255, 207, 51, .6); outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: #ffcf33; box-shadow: 0 0 0 2px rgba(255, 207, 51, .45); }
/* Error text sits on the lightest green stop in the second form, so it carries
   its own dark chip rather than relying on the band behind it. */
.err { color: #ffe08a; font-size: .8rem; min-height: 1em; align-self: start; }
.err:not(:empty) {
  background: rgba(0, 0, 0, .4);
  padding: .15rem .5rem;
  border-radius: 6px;
  font-weight: 600;
}

.field-total {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between;
  background: rgba(0, 0, 0, .18); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px; padding: .75rem 1rem;
}
.ft-label { color: rgba(255, 255, 255, .92); font-weight: 600; }
.ft-value { color: #ffcf33; font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; }

.form-note { grid-column: 1 / -1; text-align: center; color: rgba(255, 255, 255, .92); font-size: .85rem; margin: 0; }

/* ---------- policies ---------- */
.policies { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .policies { grid-template-columns: repeat(4, 1fr); } }
.policy {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.2rem; text-align: center; box-shadow: var(--shadow-sm);
}
.policy-icon {
  display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 1rem;
  border-radius: 50%; background: rgba(209, 57, 15, .09); color: var(--brand);
}
.policy-icon svg { width: 28px; height: 28px; }
.policy p { margin: 0; font-size: .93rem; font-weight: 600; color: var(--ink); }

/* ---------- faq ---------- */
.faq { display: grid; gap: .75rem; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem 3rem 1.05rem 1.25rem;
  font-weight: 700; color: var(--ink); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.25rem; top: 50%;
  width: 12px; height: 12px; margin-top: -6px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-body { padding: 0 1.25rem 1.15rem; }
.faq-body p { margin: 0; color: var(--body); font-size: .96rem; }

/* ---------- support ---------- */
.support { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .support { grid-template-columns: 1.2fr .8fr; gap: 3.5rem; } }
.contact-list { display: grid; gap: .75rem; }
.contact-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 1rem 1.2rem; text-decoration: none; box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, transform .15s ease;
}
.contact-list a:hover { border-color: var(--brand-2); transform: translateY(-2px); }
.contact-list span { color: var(--muted); font-size: .88rem; }
.contact-list b { color: var(--ink); font-size: 1.02rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .68); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr .8fr; gap: 3rem; } }
.logo-footer .logo-text strong { color: #fff; }
.footer-desc { margin-top: 1rem; font-size: .93rem; max-width: 46ch; }
.footer-contact { display: grid; gap: .6rem; font-size: .93rem; }
.footer-contact a { color: var(--brand-2); text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-cta { display: flex; align-items: flex-start; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12);
  display: grid; gap: .35rem; font-size: .84rem; color: rgba(255, 255, 255, .5);
}
.footer-bottom p { margin: 0; }
.footer-links a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.footer-links a:hover { color: var(--brand-2); text-decoration: underline; }
@media (min-width: 700px) { .footer-bottom { grid-template-columns: 1fr auto; } }

/* ---------- mobile sticky bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: grid; grid-template-columns: auto 1fr; gap: .6rem;
  padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(37, 27, 24, .1);
}
.mobile-bar .btn { padding: .8rem 1rem; font-size: .95rem; }
body { padding-bottom: 78px; }
@media (min-width: 900px) { .mobile-bar { display: none; } body { padding-bottom: 0; } }

/* ---------- policy / document pages ---------- */
.doc-page { padding-bottom: 0; }
.doc-page .site-footer { padding-top: 2rem; }
.doc h1 { margin-bottom: .25rem; }
.doc h2 {
  font-size: 1.15rem; margin-top: 2.25rem; margin-bottom: .6rem;
  padding-bottom: .4rem; border-bottom: 1px solid var(--line);
}
.doc p, .doc li { font-size: 1rem; }
.doc-meta { color: var(--muted); font-size: .9rem; margin-bottom: 2rem; }
.doc-list { display: grid; gap: .5rem; margin: 0 0 1rem; }
.doc-list li { position: relative; padding-left: 1.4rem; }
.doc-list li::before {
  content: ""; position: absolute; left: .3rem; top: .7em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand-2);
}
.doc-list-num { counter-reset: step; }
.doc-list-num li { padding-left: 2rem; }
.doc-list-num li::before {
  counter-increment: step; content: counter(step);
  left: 0; top: .15em; width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: rgba(209, 57, 15, .1); color: var(--brand);
  font-size: .78rem; font-weight: 700;
  display: grid; place-items: center;
}
.back-link {
  display: inline-block; margin-bottom: 1.5rem;
  color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 600;
}
.back-link:hover { color: var(--brand); }
.doc-cta { margin-top: 2.5rem; }

/* ---------- thank-you dialog ---------- */
/* Keyed on [open] rather than a bare display:none so it is a no-op where
   <dialog> is native, and still shows/hides on engines without it (older iOS
   Safari), where the element would otherwise render inline on every load. */
.thanks:not([open]) { display: none; }
.thanks[open] {
  display: block;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  background: #fff;
}
.thanks { border: none; border-radius: var(--radius-lg); padding: 0; max-width: 420px; width: calc(100% - 2rem); box-shadow: var(--shadow-lg); }
.thanks::backdrop { background: rgba(37, 27, 24, .6); backdrop-filter: blur(3px); }
.thanks-inner { padding: 2rem 1.75rem; text-align: center; }
.thanks-icon {
  display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 1.1rem;
  border-radius: 50%; background: rgba(21, 130, 71, .12); color: var(--green);
}
.thanks-icon svg { width: 32px; height: 32px; }
.thanks h3 { font-size: 1.35rem; }
.thanks p { font-size: .96rem; }
.thanks-sub { color: var(--muted); font-size: .9rem; }
.thanks .btn { margin-top: .5rem; }
