/* ============================================================
   HanaLoop CBAM Supplier Site — shared chrome & layout
   Direction A · "Clarity"
   ============================================================ */

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-size: 17px; line-height: 1.6; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 44px; }

/* ---------- Top nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand img { width: 38px; height: 22px; display: block; }
.brand span { font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-weight: 500; font-size: 15.5px; color: var(--ink-2); text-decoration: none; white-space: nowrap;
  position: relative; padding: 6px 0; transition: color .15s ease;
}
.nav-link:hover { color: var(--hana-green-deep); }
.nav-link.active { color: var(--ink); font-weight: 700; }
.nav-link.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -27px; height: 3px;
  background: var(--grad-brand); border-radius: 3px 3px 0 0;
}
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px;
  background: #fff; cursor: pointer; transition: border-color .15s ease;
}
.lang-pill:hover { border-color: var(--hana-green); }
.lang-pill .on { color: var(--hana-green-deep); }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section.tight { padding: 72px 0; }
.section.tint { background: var(--bg-cloud); }
.section.mint { background: var(--bg-mint); }
.section.sky  { background: var(--bg-sky); }
.section.ink  { background: var(--bg-ink); color: #fff; }

.section-head.center { margin: 0 auto; text-align: center; }
.eyebrow {
  font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--hana-green-deep); margin: 0 0 16px;
}
.section.ink .eyebrow { color: #5fe0a8; }
h1.custom, h2.custom, h3.custom { font-family: var(--font-display); letter-spacing: -.02em; font-weight: 700; }
h2.custom { font-size: 40px; line-height: 1.1; margin: 0 0 18px; }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.section.ink .lead { color: rgba(255,255,255,.78); }
.muted { color: var(--ink-3); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); padding: 30px;
}
.card-grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.icon-badge {
  width: 54px; height: 54px; border-radius: 15px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-mint); margin-bottom: 20px;
}
.icon-badge.sky { background: var(--bg-sky); }
.icon-badge svg { width: 28px; height: 28px; }
.card h3.custom { font-size: 21px; margin: 0 0 10px; line-height: 1.2; }
.card p { font-size: 15.5px; color: var(--ink-2); margin: 0; line-height: 1.55; }

/* ---------- Pills / tags ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px;
  padding: 9px 15px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2);
}
.pill svg { width: 17px; height: 17px; }
.pill.green { background: var(--bg-mint); border-color: #cdeadb; color: var(--hana-green-deep); }
.pill.blue  { background: var(--bg-sky);  border-color: #cfe0f8; color: var(--hana-blue-deep); }

/* ---------- Breadcrumb / page hero ---------- */
.page-hero { padding: 64px 0 0; }
.page-tag {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; white-space: nowrap;
  letter-spacing: .04em; color: var(--hana-green-deep); background: var(--bg-mint);
  border: 1px solid #cdeadb; border-radius: 999px; padding: 7px 14px; margin-bottom: 22px;
}
.page-step-index { font-size: 13px; font-weight: 700; color: var(--ink-4); letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-ink); color: rgba(255,255,255,.74); padding: 70px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand span { color: #fff; }
.site-footer h4 { font-family: var(--font-body); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); margin: 0 0 16px; font-weight: 700; }
.site-footer a { display: block; color: rgba(255,255,255,.74); text-decoration: none; font-size: 15px; margin-bottom: 11px; transition: color .15s; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.5); }
.footer-note { max-width: 320px; font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,.6); margin: 18px 0 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--grad-brand); border-radius: var(--r-xl); padding: 56px 60px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; box-shadow: var(--shadow-brand);
}
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.9); font-size: 18px; }
.cta-band .h-btn-primary { background: #fff; color: var(--hana-green-deep); box-shadow: 0 12px 30px rgba(0,0,0,.16); }
.cta-band .h-btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Misc helpers ---------- */
.stack-sm > * + * { margin-top: 12px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-2); margin-bottom: 14px; line-height: 1.5; }
.check-list li svg { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ============================================================
   Tabs (included vs excluded emissions, etc.)
   ============================================================ */
.tabs-bar { display: inline-flex; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px; box-shadow: var(--shadow-sm); }
.tab-btn {
  font-family: var(--font-body); font-weight: 600; font-size: 15px; color: var(--ink-2);
  background: transparent; border: 0; border-radius: 999px; padding: 10px 22px; cursor: pointer; transition: all .18s ease;
}
.tab-btn.active { color: #fff; background: var(--grad-brand); box-shadow: var(--shadow-sm); }
[data-tab-panel] { display: none; }
[data-tab-panel].active { display: block; animation: fadeUp .35s ease; }
@keyframes fadeUp { from { transform: translateY(10px); } to { transform: none; } }

/* ============================================================
   Accordion
   ============================================================ */
.acc-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 14px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.acc-item.open { border-color: #cdeadb; box-shadow: var(--shadow-md); }
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; cursor: pointer; font-weight: 600; font-size: 18px; color: var(--ink); }
.acc-head .acc-icon { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-mint); display: flex; align-items: center; justify-content: center; color: var(--hana-green-deep); font-size: 20px; transition: transform .25s ease; }
.acc-item.open .acc-head .acc-icon { transform: rotate(45deg); background: var(--grad-brand); color: #fff; }
.acc-body { max-height: 0; opacity: 0; transition: max-height .35s ease, opacity .3s ease, padding .35s ease; padding: 0 26px; }
.acc-item.open .acc-body { max-height: 420px; opacity: 1; padding: 0 26px 24px; }
.acc-body p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.6; }

/* ============================================================
   Responsibility matrix
   ============================================================ */
.matrix { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.matrix th, .matrix td { text-align: left; padding: 20px 24px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.matrix thead th { background: var(--bg-cloud); font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: 0; }
.matrix tbody tr:last-child td { border-bottom: 0; }
.matrix td:first-child { font-weight: 600; color: var(--ink); width: 30%; }
.matrix .who { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.g { background: var(--hana-green); } .dot.b { background: var(--hana-blue); } .dot.s { background: var(--ink-3); }
.yes svg { color: var(--hana-green); width: 20px; height: 20px; }
.partial { color: var(--hana-blue-deep); font-weight: 600; font-size: 14px; }
.no { color: var(--ink-4); font-size: 18px; }

/* ============================================================
   Timeline
   ============================================================ */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 50px; }
.timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 19px; height: 3px; background: linear-gradient(90deg, var(--hana-green), var(--hana-blue)); border-radius: 3px; }
.tl-item { position: relative; padding: 0 18px; }
.tl-node { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 3px solid var(--hana-green); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--hana-green-deep); position: relative; z-index: 1; box-shadow: 0 0 0 6px #fff; }
.tl-item:nth-child(n+3) .tl-node { border-color: var(--hana-blue); color: var(--hana-blue-deep); }
.tl-date { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin: 20px 0 6px; }
.tl-item p { font-size: 15px; color: var(--ink-2); margin: 0; }
.tl-badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.tl-badge.now { background: var(--bg-mint); color: var(--hana-green-deep); }
.tl-badge.next { background: var(--bg-sky); color: var(--hana-blue-deep); }

/* ============================================================
   Process flow (5 steps)
   ============================================================ */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: stretch; }
.flow-step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 22px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.flow-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.flow-step .step-num { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: #fff; width: 30px; height: 30px; border-radius: 9px; background: var(--grad-brand); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.flow-step h3.custom { font-size: 17px; margin: 0 0 8px; line-height: 1.2; }
.flow-step p { font-size: 13.5px; color: var(--ink-3); margin: 0; line-height: 1.5; }
.flow-arrow { position: absolute; right: -11px; top: 42px; width: 22px; height: 22px; color: var(--hana-blue); z-index: 2; background: #fff; border-radius: 50%; }
.section.tint .flow-step { box-shadow: var(--shadow-md); }

/* big detailed step cards */
.step-detail { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 30px; align-items: start; }
.step-detail .sd-num { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: #fff; width: 56px; height: 56px; border-radius: 16px; background: var(--grad-brand); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-brand); }
.step-detail h3.custom { font-size: 22px; margin: 4px 0 10px; }
.step-detail .hana-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--hana-blue-deep); background: var(--bg-sky); border: 1px solid #cfe0f8; border-radius: 999px; padding: 4px 11px; margin-bottom: 12px; }

/* ============================================================
   Key message banner
   ============================================================ */
.keymsg { text-align: center; padding: 60px 40px; }
.keymsg .quote { font-family: var(--font-display); font-size: 34px; line-height: 1.25; font-weight: 700; max-width: 760px; margin: 0 auto; letter-spacing: -.02em; }

/* ============================================================
   Resource & download cards
   ============================================================ */
.res-card { display: flex; flex-direction: column; height: 100%; }
.res-card .res-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.res-card .res-ic { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; flex: none; }
.res-card h3.custom { font-size: 19px; margin: 0; }
.res-card ul { list-style: none; padding: 0; margin: 0 0 20px; }
.res-card ul li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 15.5px; color: var(--ink-2); }
.res-card ul li:last-child { border-bottom: 0; }
.res-card ul li svg { width: 18px; height: 18px; color: var(--ink-4); flex: none; }
.res-link { margin-top: auto; font-weight: 600; color: var(--hana-green-deep); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; font-size: 15px; }
.res-link:hover { gap: 11px; }

.download-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 14px; transition: border-color .18s, box-shadow .18s; }
.download-row:hover { border-color: #cdeadb; box-shadow: var(--shadow-md); }
.download-row .dl-left { display: flex; align-items: center; gap: 16px; }
.download-row .dl-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--bg-mint); display: flex; align-items: center; justify-content: center; color: var(--hana-green-deep); flex: none; }
.download-row .dl-meta strong { display: block; font-size: 16.5px; color: var(--ink); font-weight: 600; }
.download-row .dl-meta span { font-size: 13.5px; color: var(--ink-3); }
.dl-btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; color: var(--ink); border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 18px; text-decoration: none; transition: all .18s; white-space: nowrap; }
.dl-btn:hover { border-color: var(--hana-green); color: var(--hana-green-deep); }

.qr-card { display: flex; gap: 20px; align-items: center; }
.qr-box { width: 92px; height: 92px; border-radius: 14px; background: #fff; border: 1px solid var(--line); padding: 8px; flex: none; }

/* ============================================================
   Readiness assessment widget
   ============================================================ */
.assess { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 40px; max-width: 640px; margin: 0 auto; }
.assess-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.assess-step-label { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ink-3); text-transform: uppercase; white-space: nowrap; }
.assess-progress { height: 7px; background: var(--line-soft); border-radius: 99px; overflow: hidden; margin-bottom: 30px; }
.assess-progress-fill { height: 100%; width: 0; background: var(--grad-brand); border-radius: 99px; transition: width .4s ease; }
.assess-q { display: none; }
.assess-q.active { display: block; animation: fadeUp .35s ease; }
.assess-q h3.custom { font-size: 23px; margin: 0 0 22px; line-height: 1.25; }
.assess-opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--bg-cloud); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; margin-bottom: 12px; cursor: pointer; font-size: 16px; font-weight: 500; color: var(--ink); font-family: var(--font-body); transition: all .16s ease; }
.assess-opt:hover { border-color: var(--hana-green); background: var(--bg-mint); transform: translateX(3px); }
.assess-opt .opt-key { width: 28px; height: 28px; border-radius: 8px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: var(--ink-3); flex: none; }
.assess-result { display: none; text-align: center; }
.assess-ring { position: relative; width: 132px; height: 132px; margin: 6px auto 20px; }
.assess-ring svg { transform: rotate(-90deg); }
.assess-ring-fg { transition: stroke-dashoffset 1s ease; }
.assess-score-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--ink); }
.assess-verdict { font-family: var(--font-display); font-size: 26px; font-weight: 700; margin: 0 0 10px; }
.assess-blurb { color: var(--ink-2); font-size: 16.5px; max-width: 420px; margin: 0 auto 26px; line-height: 1.6; }
.assess-restart { background: none; border: 0; color: var(--hana-green-deep); font-weight: 600; cursor: pointer; font-size: 14.5px; font-family: var(--font-body); }

/* ============================================================
   Stat strip
   ============================================================ */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: left; }
.stat .num { font-family: var(--font-display); font-size: 42px; font-weight: 700; line-height: 1; }
.stat .num .h-gradient-text { display: inline; }
.stat .lbl { font-size: 15px; color: var(--ink-2); margin-top: 8px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow-arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .timeline::before { display: none; }
  h2 { font-size: 32px; }
}

