/* =========================================================
   P3TGAI.com — Portal Informasi Tata Guna Air Irigasi
   Ubah warna utama cukup dari :root
   ========================================================= */
:root {
  --primary: #123458;
  --primary-deep: #0b2440;
  --secondary: #1f7ea8;
  --secondary-light: #8cc6df;
  --accent: #4f8f62;
  --accent-light: #8fc59c;
  --background: #f7f9fb;
  --surface: #ffffff;
  --text: #17202a;
  --muted: #4a5866;
  --line: #dbe3ea;
  --water-soft: #e8f2f8;
  --paddy-soft: #ebf3ec;
  --focus: #e0a526;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow: 0 1px 2px rgba(18, 52, 88, .06), 0 10px 28px rgba(18, 52, 88, .09);
  --header-h: 70px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--text);
  background: var(--background);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }

h1, h2, h3, h4 { color: var(--primary); line-height: 1.2; letter-spacing: -.018em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 2.7vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.17rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; }
li { margin-bottom: .4em; }
a { color: var(--secondary); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--primary); }
strong { color: var(--primary); font-weight: 700; }
svg { display: block; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 100;
  background: var(--primary); color: #fff; padding: .7rem 1.1rem; border-radius: var(--radius-s);
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247, 249, 251, .86);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(18, 52, 88, .07); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--primary); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name { font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; line-height: 1.1; display: block; }
.brand-tag { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); line-height: 1.2; }
.brand:hover { color: var(--primary); }

.nav-list { list-style: none; display: flex; align-items: center; gap: .1rem; margin: 0; padding: 0; }
.nav-list > li { margin: 0; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: .3rem;
  padding: .55rem .68rem; font: inherit; font-size: .9rem; font-weight: 600;
  color: var(--text); text-decoration: none; background: none; border: 0; cursor: pointer;
  border-radius: var(--radius-s);
}
.nav-link::after {
  content: ""; position: absolute; left: .68rem; right: .68rem; bottom: .32rem; height: 2px;
  background: var(--secondary); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav-link:hover { color: var(--primary); }
.nav-link:hover::after,
.nav-link[aria-current="page"]::after,
.has-dd.is-active > .nav-link::after { transform: scaleX(1); }
.nav-link[aria-current="page"], .has-dd.is-active > .nav-link { color: var(--primary); }
.chev { width: 13px; height: 13px; transition: transform .25s; }
.has-dd.is-open .chev { transform: rotate(180deg); }

.has-dd { position: relative; }
.dd {
  position: absolute; top: calc(100% + 8px); left: -.5rem; min-width: 280px;
  list-style: none; margin: 0; padding: .5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.dd li { margin: 0; }
.dd a { display: block; padding: .6rem .8rem; border-radius: var(--radius-s); color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 600; }
.dd a span { display: block; font-size: .8rem; font-weight: 400; color: var(--muted); }
.dd a:hover, .dd a[aria-current="page"] { background: var(--water-soft); color: var(--primary); }
.has-dd.is-open > .dd { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1121px) {
  .has-dd:hover > .dd, .has-dd:focus-within > .dd { opacity: 1; visibility: visible; transform: none; }
}

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--surface); cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--primary); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    background: var(--surface); border-top: 1px solid var(--line);
    padding: .75rem 1.25rem 2.5rem; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .28s, transform .28s, visibility .28s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { width: 100%; justify-content: space-between; padding: .95rem .25rem; font-size: 1.04rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"], .has-dd.is-active > .nav-link { color: var(--secondary); }
  .dd { position: static; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; padding: .35rem 0 .75rem .5rem; }
  .has-dd.is-open > .dd { display: block; }
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .88rem 1.4rem; border-radius: 10px; border: 2px solid transparent;
  font: inherit; font-size: .98rem; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--secondary); color: #fff; box-shadow: 0 8px 20px rgba(31, 126, 168, .28); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--secondary-light); color: var(--primary-deep); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .12); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------------- Hero (beranda) ---------------- */
.hero {
  position: relative; overflow: hidden; color: #d7e5ef;
  background:
    radial-gradient(900px 480px at 88% -8%, rgba(31, 126, 168, .5), transparent 62%),
    radial-gradient(600px 400px at 0% 110%, rgba(79, 143, 98, .28), transparent 60%),
    linear-gradient(162deg, var(--primary-deep) 0%, var(--primary) 55%, #17507a 100%);
}
.hero::before {
  content: ""; position: absolute; width: 420px; height: 420px; right: 38%; top: -180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 198, 223, .16), transparent 70%);
  animation: float 14s ease-in-out infinite;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 3.5rem; align-items: center; padding: 5rem 0 5.5rem; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.3vw, 3.35rem); max-width: 18ch; }
.hero .lead { font-size: 1.16rem; color: #c3d6e4; max-width: 54ch; margin-bottom: 2rem; }
.hero-note { margin-top: 1.75rem; font-size: .86rem; color: #9fb8cb; max-width: 52ch; padding-left: .9rem; border-left: 2px solid rgba(143, 197, 156, .6); }
.hero-figure {
  margin: 0; padding: 1.1rem 1.1rem .9rem; border-radius: var(--radius-l);
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .13);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-figure svg { width: 100%; height: auto; }
.hero-figure figcaption { font-size: .82rem; color: #9fb8cb; padding: .6rem .3rem 0; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.legend-dot { display: inline-flex; align-items: center; gap: .4rem; }
.legend-dot::before { content: ""; width: 14px; height: 3px; border-radius: 2px; background: var(--c, #8cc6df); }

.flow-line { stroke-dasharray: 3 11; animation: flow 2.2s linear infinite; }
.flow-line.slow { animation-duration: 3.2s; }
@keyframes flow { to { stroke-dashoffset: -28; } }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, 24px); } }

/* ---------------- Page hero (halaman dalam) ---------------- */
.page-hero {
  position: relative; overflow: hidden; color: #cfe0ec; padding: 2.2rem 0 3.6rem;
  background:
    radial-gradient(700px 360px at 95% 0%, rgba(31, 126, 168, .45), transparent 62%),
    linear-gradient(162deg, var(--primary-deep), var(--primary) 62%, #17507a);
}
.page-hero .contours { position: absolute; right: -40px; bottom: -10px; width: min(560px, 70%); opacity: .5; pointer-events: none; }
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #fff; max-width: 24ch; font-size: clamp(1.95rem, 3.8vw, 2.9rem); }
.page-hero .lead { font-size: 1.12rem; max-width: 62ch; color: #c3d6e4; margin: 0; }

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1.9rem; padding: 0; font-size: .87rem; }
.breadcrumb li { margin: 0; color: #a9c2d4; }
.breadcrumb li + li::before { content: "›"; margin-right: .4rem; opacity: .7; }
.breadcrumb a { color: #e4eef5; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: #fff; }

/* ---------------- Sections ---------------- */
.section { padding: 5rem 0; }
.section--tint { background: #edf4f8; }
.section--paddy { background: var(--paddy-soft); }
.section--line { border-top: 1px solid var(--line); }
.section-head { max-width: 740px; margin-bottom: 2.6rem; }
.section-head p { color: var(--muted); font-size: 1.07rem; margin: 0; }
.section-head h2 { position: relative; padding-top: 1.15rem; }
.section-head h2::before {
  content: ""; position: absolute; top: 0; left: 0; width: 46px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
}
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.5em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li::marker { color: var(--secondary); }
.muted { color: var(--muted); }
.lead-text { font-size: 1.12rem; color: var(--muted); }

.split { display: grid; grid-template-columns: 1.12fr .88fr; gap: 3.5rem; align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; }
.split--center { align-items: center; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.8rem; }
.panel h3:first-child { margin-top: 0; }
.panel--navy { background: var(--primary); border: 0; color: #cfe0ec; position: relative; overflow: hidden; }
.panel--navy h3 { color: #fff; }
.panel--navy strong { color: #fff; }
.panel--navy a { color: var(--secondary-light); }
.panel > :last-child { margin-bottom: 0; }

/* ---------------- Cards ---------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
@media (min-width: 1021px) { .cards--2 { grid-template-columns: repeat(2, 1fr); } }
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.65rem;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c4d5e3; }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); font-size: .98rem; }
.card > :last-child { margin-bottom: 0; }
.card .more { margin-top: auto; padding-top: .4rem; font-weight: 700; font-size: .94rem; text-decoration: none; }
.card .more:hover { text-decoration: underline; }
.ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1.05rem; background: var(--water-soft); color: var(--secondary); }
.ico svg { width: 24px; height: 24px; }
.ico--green { background: var(--paddy-soft); color: var(--accent); }
.ico--navy { background: #e3e9f1; color: var(--primary); }
.card--link { text-decoration: none; color: inherit; }
.card--link h3 { color: var(--primary); }
.card--link:hover h3 { color: var(--secondary); }
.card .tag { font-size: .8rem; font-weight: 600; color: var(--accent); margin-bottom: .55rem; }

/* ---------------- Lists ---------------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 1rem; }
.checklist li { display: grid; grid-template-columns: 30px 1fr; gap: .8rem; margin: 0; }
.checklist .ck { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--paddy-soft); color: var(--accent); }
.checklist .ck svg { width: 17px; height: 17px; }
.checklist strong { display: block; margin-bottom: .1rem; }
.checklist span.d { color: var(--muted); font-size: .98rem; }
.checklist--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem 2rem; }

.deflist { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 2.5rem; margin: 0; }
.deflist div { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.deflist dt { font-weight: 700; color: var(--primary); margin-bottom: .2rem; }
.deflist dd { margin: 0; color: var(--muted); font-size: .98rem; }

/* Hirarki saluran / jenjang */
.ladder { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.ladder li {
  margin: 0; display: grid; grid-template-columns: 6px 1fr; gap: 1.1rem; align-items: stretch;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.1rem 1.25rem 1.1rem 1rem;
}
.ladder li::before { content: ""; border-radius: 4px; background: var(--c, var(--secondary)); }
.ladder strong { display: block; }
.ladder span { color: var(--muted); font-size: .96rem; }
.ladder li:nth-child(1) { --c: var(--primary); }
.ladder li:nth-child(2) { --c: var(--secondary); margin-left: 1rem; }
.ladder li:nth-child(3) { --c: #4aa3c7; margin-left: 2rem; }
.ladder li:nth-child(4) { --c: var(--accent); margin-left: 3rem; }
.ladder li:nth-child(5) { --c: var(--accent-light); margin-left: 4rem; }

/* ---------------- Stats ---------------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255, 255, 255, .14); border-radius: var(--radius-m); overflow: hidden; }
.stat { background: var(--primary); padding: 1.4rem 1.3rem; }
.stat-num { display: block; font-size: 2.4rem; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-label { display: block; margin-top: .5rem; font-size: .9rem; color: #b9cfde; }

/* ---------------- Flow steps (beranda) ---------------- */
.flow-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; position: relative; }
.flow-steps::before {
  content: ""; position: absolute; top: 27px; left: 10%; right: 10%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--secondary) 0 10px, transparent 10px 18px);
  animation: dashmove 1.4s linear infinite;
}
@keyframes dashmove { to { background-position: 18px 0; } }
.flow-steps li { position: relative; text-align: center; margin: 0; }
.flow-steps .num {
  position: relative; z-index: 1; width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; color: var(--primary);
  background: var(--surface); border: 2px solid var(--secondary); box-shadow: 0 0 0 6px #edf4f8;
}
.flow-steps h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.flow-steps p { font-size: .94rem; color: var(--muted); margin: 0; }

/* ---------------- Timeline (vertikal) ---------------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; max-width: 860px; }
.timeline::before { content: ""; position: absolute; left: 25px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--secondary), var(--accent)); opacity: .5; }
.timeline > li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 1.4rem; margin: 0 0 1.5rem; }
.timeline .num {
  position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-weight: 800; box-shadow: 0 0 0 6px var(--background);
}
.section--tint .timeline .num { box-shadow: 0 0 0 6px #edf4f8; }
.timeline .tl-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.4rem 1.6rem; }
.timeline .tl-body > :last-child { margin-bottom: 0; }
.timeline .tl-body p, .timeline .tl-body li { color: var(--muted); font-size: .98rem; }
.timeline .tl-body ul { padding-left: 1.2rem; }
.tl-meta { font-size: .85rem; font-weight: 600; color: var(--accent); margin-bottom: .3rem; }

/* ---------------- Chain (rantai dampak) ---------------- */
.chain { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; counter-reset: c; }
.chain li { margin: 0; position: relative; padding: 1.15rem 1.15rem 1.15rem 1.15rem; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); font-size: .96rem; color: var(--muted); }
.chain li strong { display: block; margin-bottom: .25rem; font-size: 1rem; }
.chain li::before { counter-increment: c; content: counter(c); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--paddy-soft); color: var(--accent); font-weight: 800; font-size: .85rem; margin-bottom: .6rem; }

/* ---------------- Tables ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); margin: 0 0 1.4em; }
table { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 560px; }
th, td { text-align: left; padding: .95rem 1.1rem; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: #eef4f8; color: var(--primary); font-weight: 700; font-size: .9rem; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; color: var(--primary); }

/* ---------------- FAQ ---------------- */
.faq { max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  position: relative; width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 1.3rem 3rem 1.3rem 0; font: inherit; font-size: 1.06rem; font-weight: 700; color: var(--primary); line-height: 1.45;
}
.faq-q:hover { color: var(--secondary); }
.faq-q .pm { position: absolute; right: .3rem; top: 50%; width: 22px; height: 22px; margin-top: -11px; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: currentColor; border-radius: 2px; transform: translate(-50%, -50%); transition: transform .3s; }
.faq-q .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 1fr; }
.js .faq-a { grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.js .faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 2.5rem 1.4rem 0; color: var(--muted); }

/* ---------------- Related / CTA ---------------- */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.related a {
  display: block; padding: 1.3rem 1.4rem; border-radius: var(--radius-m); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--secondary);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.related a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-left-color: var(--accent); }
.related strong { display: block; color: var(--primary); margin-bottom: .2rem; }
.related span { display: block; color: var(--muted); font-size: .94rem; line-height: 1.55; }

.cta-band {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.5fr auto; gap: 2rem; align-items: center;
  padding: 3rem 3.2rem; border-radius: var(--radius-l); color: #c9dbe8;
  background: radial-gradient(500px 260px at 100% 0%, rgba(79, 143, 98, .35), transparent 60%), linear-gradient(135deg, var(--primary-deep), var(--primary) 55%, #1a5a85);
}
.cta-band h2 { color: #fff; margin-bottom: .4em; }
.cta-band p { margin: 0; max-width: 58ch; }
.cta-band .waves { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; opacity: .35; pointer-events: none; }
.cta-band > *:not(.waves) { position: relative; }

/* ---------------- Notice / form ---------------- */
.notice { display: grid; grid-template-columns: 26px 1fr; gap: .8rem; padding: 1.1rem 1.25rem; border-radius: var(--radius-m); background: var(--water-soft); border: 1px solid #c9e0ec; color: var(--primary); font-size: .95rem; margin-bottom: 1.6rem; }
.notice svg { width: 22px; height: 22px; color: var(--secondary); margin-top: .15rem; }
.notice p { margin: 0; }

.form { display: grid; gap: 1.15rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.field label { display: block; font-weight: 700; font-size: .93rem; color: var(--primary); margin-bottom: .4rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--surface);
  border: 1.5px solid #c8d4df; border-radius: 10px; padding: .85rem 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 4px rgba(31, 126, 168, .16); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #b4423a; }
.field .hint { display: block; font-size: .84rem; color: var(--muted); margin-top: .35rem; }
.form-status { min-height: 1.5em; font-weight: 600; color: var(--accent); margin: 0; }
.form-status.is-error { color: #b4423a; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--primary-deep); color: #a9bfd0; padding: 4.2rem 0 0; font-size: .95rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: 1rem; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: #d3e1ec; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand-tag { color: #8fa9bd; }
.disclaimer { font-size: .88rem; line-height: 1.65; padding: 1.1rem 1.2rem; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-m); background: rgba(255, 255, 255, .03); margin: 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.3rem 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .87rem; }
.footer-bottom p { margin: 0; }

/* ---------------- Reveal ---------------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .08s; }
.js .reveal-d2 { transition-delay: .16s; }
.js .reveal-d3 { transition-delay: .24s; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; padding: 3.8rem 0 4.2rem; }
  .hero-figure { max-width: 620px; }
  .split, .split--even { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 2.5rem 2rem; }
}
@media (max-width: 820px) {
  .flow-steps { grid-template-columns: 1fr; gap: 0; }
  .flow-steps::before { top: 10px; bottom: 10px; left: 27px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--secondary) 0 10px, transparent 10px 18px); animation: none; }
  .flow-steps li { display: grid; grid-template-columns: 56px 1fr; gap: 1.1rem; text-align: left; padding-bottom: 1.6rem; }
  .flow-steps .num { margin: 0; }
  .ladder li:nth-child(n) { margin-left: 0; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .section { padding: 3.6rem 0; }
  .wrap { width: min(100% - 2rem, var(--wrap)); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .timeline::before { left: 19px; }
  .timeline > li { grid-template-columns: 40px 1fr; gap: 1rem; }
  .timeline .num { width: 40px; height: 40px; font-size: .9rem; }
  .timeline .tl-body { padding: 1.2rem 1.2rem; }
  .brand-tag { display: none; }
  .btn-row .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 2rem; }
  .panel { padding: 1.4rem; }
}

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
