/* Hallmark · v2.0.0 · built: the project · redesign: polish · theme: brand · genre: editorial · scope: site
   Critique: preserve the brand artwork and content; give labels, controls and reading space one consistent system.
   Existing page order, content, calculator inputs and calculation logic are preserved. */
:root {
  --palette-01: #fff;
  --palette-02: rgba(4,18,43,.82);
  --palette-03: rgba(255,255,255,.1);
  --palette-04: #47a1ff;
  --palette-05: #dce8ff;
  --palette-06: transparent;
  --palette-07: rgba(255,107,24,.28);
  --palette-08: #ff7b32;
  --palette-09: rgba(255,255,255,.28);
  --palette-10: rgba(255,255,255,.08);
  --palette-11: #03142e;
  --palette-12: rgba(7,95,247,.3);
  --palette-13: #000;
  --palette-14: rgba(3,20,46,.96);
  --palette-15: rgba(3,20,46,.18);
  --palette-16: #83bbff;
  --palette-17: #78b6ff;
  --palette-18: #c7d5eb;
  --palette-19: rgba(255,255,255,.2);
  --palette-20: #96a9c5;
  --palette-21: rgba(17,56,116,.1);
  --palette-22: #bcd2f6;
  --palette-23: #31445f;
  --palette-24: #edf1f7;
  --palette-25: #051a3a;
  --palette-26: #b6c7df;
  --palette-27: #0b63ef;
  --palette-28: #063582;
  --palette-29: rgba(255,255,255,.16);
  --palette-30: #d8e8ff;
  --palette-31: rgba(255,255,255,.18);
  --palette-32: #0968ff;
  --palette-33: #063a9f;
  --palette-34: rgba(255,255,255,.09);
  --palette-35: #dbe9ff;
  --palette-36: #91a5c4;
  --palette-37: rgba(3,20,46,.4);
  --palette-38: #f4f2ed;
  --palette-39: #e65323;
  --palette-40: white;
  --palette-41: rgba(244,242,237,.95);
  --palette-42: #1717170a;
  --palette-43: #aaa69c;
  --palette-44: #e8e5de;
  --palette-45: #777;
  --palette-46: #171717;
  --palette-47: #ff865b;
  --palette-48: #555;
  --palette-49: #aaa;
  --palette-50: #444;
  --palette-51: #5b5953;
  --palette-52: #bbb8af;
  --palette-53: #eee8dc;
  --palette-54: #ebe8e1;
  --palette-55: #e8e5dd;
  --palette-56: #bbb7ab;
  --palette-57: #cfcbbf;
  --palette-58: #ffe7df;
  --palette-59: #333;
  --palette-60: #aaa79f;
  --palette-61: rgba(3,16,37,.95);
  --palette-62: rgba(3,16,37,.82);
  --palette-63: rgba(3,16,37,.28);
  --palette-64: rgba(3,16,37,.04);
  --palette-65: #c7d3e2;
  --palette-66: #ff945f;
  --palette-67: #d0d9e5;
  --palette-68: #75839a;
  --palette-69: #ffffff14;
  --palette-70: #ffffff30;
  --palette-71: #b8c5d8;
  --palette-72: #031025ee;
  --palette-73: #031025bc;
  --palette-74: #03102533;
  --palette-75: rgba(3,20,46,.08);
  --palette-76: #923311;
  --palette-77: #17171715;
  --palette-78: #091017;
  --palette-79: #b9c3cb;
  --palette-80: #47525a;
  --palette-81: #e9e4db;
  --palette-82: #62717d;
  --palette-83: #283039;
  --palette-84: #03142eb3;
  --palette-85: #f4f2edf5;
  --palette-86: #eceae4;
  --palette-87: #9c3010;
  --palette-88: #eeece7;
  --palette-89: #191b1a;
  --palette-90: #5a5c59;
  --palette-91: #dadbd6;
  --palette-92: #b9bcb5;
  --palette-93: #d3d7d0;
  --palette-94: #ffb8b8;
  --palette-95: #bce7cb;
  --palette-96: #55594e;
  --palette-97: #909c94;
  --palette-98: #f68758;
  --palette-99: #cbd0c7;
  --palette-100: #cdd1c9;
  --palette-101: #41443e;
  --palette-102: #b9bfb4;
  --palette-103: #777e70;
  --palette-104: #111;
  --palette-105: #d8d5cd;
  --color-paper: #f4f2ed;
  --color-ink: #171717;
  --color-muted: #5e5c56;
  --color-line: #d8d5cd;
  --color-accent: #e65323;
  --color-accent-ink: #923311;
  --color-light: #ffffff;
  --color-night: #03142e;
  --color-night-ink: #d0d9e5;
  --color-night-line: #75839a;
  --color-night-accent: #ff945f;
  --color-control-edge: #77746c;
  --color-error: #b42318;
  --font-body: "Be Vietnam Pro", system-ui, sans-serif;
  --space-gutter: clamp(20px, 4vw, 64px);
  --space-section: clamp(64px, 7vw, 104px);
}

html, body { overflow-x: clip; }
html { scroll-padding-top: 104px; }
body { font-family: var(--font-body); }
::selection { background: var(--color-accent); color: var(--color-ink); }
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--color-accent-ink);
  outline-offset: 4px;
  transition: none;
}
:where(button, input, select, textarea) { font-family: inherit; }
:where(button, a, summary) { -webkit-tap-highlight-color: transparent; }
:where(h1, h2, h3) { text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
p { text-wrap: pretty; }
:where(button):disabled {
  opacity: .55;
  cursor: not-allowed;
  filter: grayscale(1);
}
.wrap, .hero-content, .growth-experience .wrap {
  width: min(1320px, calc(100% - var(--space-gutter) * 2));
}
.brand { white-space: nowrap; }
.links { gap: clamp(18px, 2.3vw, 32px); }
.links > a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; }
.nav { transition: box-shadow 180ms ease-out; backdrop-filter: none; }
.btn {
  white-space: nowrap;
  transition: background-color 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out;
}
.btn:hover, .btn:active { transform: none; }
.btn:active { filter: brightness(.9); }
.btn:focus-visible { transition: none; }
.hero .btn:focus-visible, .hero-motion-toggle:focus-visible,
.story a:focus-visible, .growth-motion-toggle:focus-visible {
  outline-color: var(--color-night-accent);
  transition: none;
}
.hero .scroll-cue:focus-visible { outline-color: var(--color-night-accent); }

/* The existing illustration remains the brand's visual anchor. */
.hero { min-height: 760px; padding: 140px 0 40px; }
.hero .eyebrow, .kicker, .num, .chapter-output small {
  font-family: inherit;
  font-weight: 500;
  font-size: .875rem;
  text-transform: none;
  letter-spacing: normal;
  font-variant-numeric: tabular-nums;
}
.hero .eyebrow { color: var(--color-night-ink); }
.hero .eyebrow::before { display: none; }
.hero h1.copy-refined {
  font-size: clamp(3rem, 5.1vw, 5rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.045em;
  max-width: 790px;
  margin: 28px 0 24px;
  animation: none;
}
.hero h1 .growth { transform: none !important; will-change: auto; }
.hero p { line-height: 1.75; }
.hero .hero-bottom { animation: none; }
.hero .hero-actions { margin-top: 26px; }
.hero-meta { margin-top: 40px; font-size: .875rem; }
.scroll-cue { min-height: 44px; }
.scroll-cue i { display: none; }
.word-track { font-size: clamp(1.5rem, 3.5vw, 3.2rem); font-weight: 600; will-change: auto; }
.word-track b { font-size: .6em; }

/* Compact reading rhythm, without changing the sequence of the page. */
section { padding-block: var(--space-section); }
.growth-experience { height: auto; padding: 64px 0; }
.growth-stage { position: relative; top: 0; height: auto; min-height: 0; max-height: none; }
.growth-layout { gap: 48px; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.growth-copy h2 { font-size: clamp(2.4rem, 4.2vw, 4.4rem); }
.growth-phase-list { gap: 20px; }
.growth-phase-list li, .growth-phase-list span {
  letter-spacing: normal;
  text-transform: none;
  font-size: .875rem;
}
.growth-phase-list span { font-size: .8125rem; }
.growth-visual::after {
  content: "Quảng cáo / Bán hàng / Theo dõi";
  letter-spacing: normal;
  font-size: .8125rem;
}
.story-grid { gap: 64px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.story h2 { font-size: clamp(2.4rem, 4.1vw, 4.4rem); }
.story-chapter, .story-chapter:last-child { min-height: 0; padding: 40px 0 48px; }
.chapter-number { color: var(--color-night-ink); font-size: 3.5rem; font-variant-numeric: tabular-nums; }
.story-nav a { min-width: 48px; text-align: center; }
.story-nav a, .story-chapter, .chapter-number { transition: none; }
.story-nav a:not(.active) { color: var(--color-night-ink); }
.chapter-output small { margin-bottom: 8px; }
.section-head { gap: 48px; margin-bottom: 40px; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.section-head h2, .cta h2 { font-size: clamp(2rem, 3.8vw, 3.6rem); }
.section-head p, .card p, .step p, .deliverable p { color: var(--color-muted); }
#cong-cu .kicker { color: var(--color-accent-ink); }
.card { min-height: 0; transition: none; }
.card:hover { background: transparent; box-shadow: none; transform: none; }
.card h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
.card ul { padding-top: 22px; }
.card li { padding: 6px 10px; font-size: .8125rem; }
.reveal, .motion-ready .reveal, .motion-ready .reveal.show {
  opacity: 1;
  transform: none;
  transition: none;
}
.result-shell { gap: 48px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.metric { padding: 24px 16px; }
.metric strong { font-variant-numeric: tabular-nums; }
.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { padding: 28px 24px; }
.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; }
.cta { padding: 56px; gap: 40px; }
.cta h2 { max-width: 680px; }
.cta .btn { white-space: nowrap; }
.footer-note a { display: inline-flex; align-items: center; min-height: 44px; }

/* The calculator keeps its IDs, fields, outputs and all calculation modules. */
.eyebrow, .signal, .section-label, .result-top, .result-tag, .bar-legend {
  letter-spacing: normal;
  text-transform: none;
}
.signal::before { display: none; }
.result-top { font-size: .8125rem; }
.result-tag { font-size: .75rem; }
input[type="text"], input[type="number"], input[type="search"], select { border-color: var(--color-control-edge); }
input[aria-invalid="true"] {
  border: 1px solid var(--color-error) !important;
  box-shadow: inset 0 0 0 1px var(--color-error);
}
.result-panel :where(a, button, summary):focus-visible {
  outline-color: var(--color-night-accent);
  transition: none;
}
.shop-options label:has(input:focus-visible) > span {
  outline: 3px solid var(--color-accent-ink);
  outline-offset: 4px;
  transition: none;
}
.result-area { position: static; }
@media (min-width: 1051px) and (min-height: 1200px) {
  .result-area { position: sticky; }
}

@media (max-width: 1050px) {
  .links { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary {
    list-style: none; cursor: pointer; min-height: 44px;
    padding: 10px 14px; border: 1px solid var(--color-control-edge);
    font-size: .875rem; font-weight: 600;
  }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu[open] summary { background: var(--color-ink); color: var(--color-light); }
  .mobile-menu-panel {
    position: absolute; inset: 82px 0 auto; padding: 12px var(--space-gutter) 20px;
    background: var(--color-paper); border-bottom: 1px solid var(--color-line);
  }
  .mobile-menu-panel a {
    display: block; min-height: 48px; padding: 12px 0;
    border-bottom: 1px solid var(--color-line);
    white-space: nowrap;
  }
  .story-grid { gap: 40px; }
  .cta { padding: 40px; flex-wrap: wrap; }
}
@media (max-width: 860px) {
  .mobile-menu-panel { top: 70px; }
  .hero { min-height: auto; padding: 110px 0 0; }
  .hero h1.copy-refined { font-size: clamp(2.3rem, 6.5vw, 4rem); }
  .hero-meta { margin-top: 28px; }
  .growth-experience { height: auto; padding: 64px 0 32px; }
  .growth-stage { min-height: 0; }
  .growth-layout, .story-grid, .section-head, .result-shell { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .growth-copy h2 { font-size: clamp(2rem, 5.6vw, 2.8rem); }
  .story h2 { font-size: clamp(2rem, 5.6vw, 2.8rem); }
  .story-chapter, .story-chapter:last-child { padding: 28px 0 36px; }
  .section-head { margin-bottom: 32px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step, .step:first-child, .step:last-child { padding: 24px; }
  .step:nth-child(odd) { padding-left: 0; }
  .step:nth-child(even) { border-right: 0; }
}
@media (max-width: 540px) {
  .hero h1.copy-refined { font-size: clamp(2rem, 8.1vw, 2.7rem); margin: 22px 0; }
  .hero .eyebrow { max-width: none; font-size: .8125rem; line-height: 1.65; }
  .hero p { font-size: 1rem; }
  .hero .hero-actions { gap: 12px; }
  .hero .hero-actions .btn { width: 100%; min-height: 48px; }
  .hero-art { height: 180px; }
  .hero-meta { justify-content: space-between; gap: 12px; }
  .hero-meta > span { display: block; max-width: none !important; width: 100%; }
  .hero-meta { flex-wrap: wrap; }
  .hero-motion-toggle { margin-left: 0; }
  .hero-meta .scroll-cue { margin-left: auto; }
  .growth-phase-list { gap: 12px; }
  .growth-phase-list li { font-size: .8125rem; }
  .growth-phase-list span { font-size: .75rem; }
  .chapter-number { font-size: 2.75rem; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step:first-child, .step:last-child { padding: 24px 0; border-right: 0; }
  .cta { padding: 32px 24px; }
  .cta h2 { font-size: 1.9rem; }
  .cta .btn { width: 100%; padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .growth-experience { height: auto; padding: 64px 0; }
  .growth-stage { position: relative; top: 0; height: auto; min-height: 0; }
}
