/* ExtraCourse: tema Deep Sea. Warna, huruf, dan jarak diatur di :root. */
:root {
  --deep: #04223d;        /* laut dalam: pembuka dan pendaftaran */
  --sea: #0b5c8e;         /* biru laut */
  --foam: #eef6fa;        /* putih kebiruan untuk latar terang */
  --white: #ffffff;
  --ink: #0a2236;         /* teks di latar terang */
  --ink-2: #3d5568;       /* teks kedua di latar terang */
  --line: #cfe0ea;
  --green: #8fd67c;       /* hijau dari garis logo, untuk tombol dan cahaya */
  --green-press: #7cc66a;
  --green-ink: #1f6b3a;   /* hijau untuk teks di latar terang */
  --on-deep: #e6f2f8;
  --on-deep-2: #a9c7da;

  --z1: #d9f0f5; --z2: #a6dcea; --z3: #66b8da;
  --z4: #155a83; --z5: #0e4670; --z6: #051c33;

  --font: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --gut: clamp(16px, 5vw, 64px);
  --nav: 76px;
  --padt: clamp(72px, 9vw, 128px);
  --padb: clamp(72px, 8vw, 112px);
  --r: 14px;
  --bar: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: proportional-nums;
  padding-bottom: var(--bar);
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--deep); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 16px/1.2 var(--font); text-decoration: none; text-align: center;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-wa { background: var(--green); color: var(--deep); box-shadow: 0 6px 18px -8px rgba(143, 214, 124, .8); }
.btn-wa:hover { background: var(--green-press); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.wa-ico {
  width: 22px; height: 22px; flex: none; background: currentColor;
  -webkit-mask: url(/img/icons/si-whatsapp.svg) center / contain no-repeat;
          mask: url(/img/icons/si-whatsapp.svg) center / contain no-repeat;
}

/* ---------- Bagian atas ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 32px; height: var(--nav); }
/* Logo asli tidak diubah. Bingkai ini hanya menyembunyikan ruang putih kosong di sekeliling logo. */
.logo {
  --lw: 104px;
  --s: calc(var(--lw) / 348);
  display: block; flex: none; overflow: hidden;
  width: var(--lw); height: calc(245 * var(--s));
  background: var(--white);
}
.logo img {
  width: calc(512 * var(--s)); height: auto; max-width: none;
  margin: calc(-133 * var(--s)) 0 0 calc(-61 * var(--s));
}
.menu { display: flex; gap: 28px; margin-left: auto; }
.menu a {
  font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink);
  background: linear-gradient(var(--sea), var(--sea)) 0 100% / 0 2px no-repeat;
  padding: 6px 0; transition: background-size .2s ease, color .2s ease;
}
.menu a:hover { background-size: 100% 2px; color: var(--sea); }
.top-cta { min-height: 44px; padding: 0 18px; font-size: 15px; }
.menu-btn { display: none; }

/* ---------- Pembuka ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #0a3a5e 0%, var(--deep) 70%);
  color: var(--on-deep);
}
.hero-in {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px;
  align-items: center;
  min-height: min(calc(100svh - var(--nav)), 820px);
  padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px);
}
.hero h1 {
  font-size: clamp(34px, 4.3vw, 58px); line-height: 1.1; font-weight: 800;
  letter-spacing: -0.025em; color: var(--white); max-width: 20ch;
  text-wrap: balance;
}
.hero-sub { margin-top: 24px; font-size: clamp(17px, 1.4vw, 19px); color: var(--on-deep-2); max-width: 46ch; }
.price {
  margin-top: 32px; font-size: clamp(20px, 2vw, 24px); font-weight: 500; color: var(--white);
}
.price strong { font-size: 1.5em; font-weight: 800; letter-spacing: -0.02em; color: var(--green); }
.hero-note { margin-top: 4px; font-size: 16px; color: var(--on-deep-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, .45); }

.hero-art { position: relative; height: 100%; min-height: 320px; }
.fish { position: absolute; height: auto; }
.fish-a { width: 62%; right: 6%; top: 18%; }
.fish-b { width: 30%; right: 58%; top: 52%; opacity: .7; }
.fish-c { width: 20%; right: 18%; top: 70%; opacity: .5; }
.fish .lights, .fish use { transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  /* Satu gerakan pelan saat halaman dibuka, lalu berhenti (kurang dari 5 detik). */
  .hero .fish { animation: drift 2.2s ease-in-out 2 alternate both; }
  .hero .fish-b { animation-delay: .3s; }
  .hero .fish-c { animation-delay: .5s; }
}
@keyframes drift { from { translate: 0 0; } to { translate: -14px 8px; } }

/* ---------- Pola bagian ---------- */
.sec { padding: var(--padt) 0 var(--padb); }
.sec h2 {
  font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; font-weight: 800;
  letter-spacing: -0.02em; max-width: 22ch; text-wrap: balance;
}
.lead { text-wrap: pretty; margin-top: 16px; font-size: clamp(17px, 1.3vw, 19px); color: var(--ink-2); max-width: 58ch; }

/* ---------- Untuk orang tua ---------- */
.feature-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.feature { border-radius: var(--r); padding: clamp(28px, 3.5vw, 48px); }
.feature h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; font-weight: 800; letter-spacing: -0.015em; }
.feature p { margin-top: 14px; font-size: 18px; max-width: 40ch; }
.feature-deep { background: var(--deep); color: var(--white); }
.feature-deep p { color: var(--on-deep); }
.feature-sea { background: var(--z1); color: var(--ink); }
.feature-sea p { color: var(--ink); }

.points {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line);
}
.points h3 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.points p, .gains p, .zone-desc, .feature p, .way p { text-wrap: pretty; }
.points p { margin-top: 8px; font-size: 16px; color: var(--ink-2); }

.promise {
  margin-top: 56px; padding-left: 24px; border-left: 4px solid var(--green);
  font-size: clamp(20px, 2vw, 26px); line-height: 1.4; font-weight: 600; max-width: 44ch;
}

/* ---------- Program: menyelam dari tepi pantai ke palung ---------- */
.programs { padding-bottom: 0; background: var(--foam); }
.depth { margin-top: 48px; }
.depth-group {
  font-size: 15px; font-weight: 700; color: #08507c; background: var(--z1);
  padding-top: 28px; padding-bottom: 0;
}
.depth-group-dark { color: var(--white); background: var(--z4); border-top: 1px solid rgba(255, 255, 255, .22); }
.depth-group { max-width: none; padding-left: max(var(--gut), calc((100% - var(--wrap)) / 2)); padding-right: max(var(--gut), calc((100% - var(--wrap)) / 2)); }

.zone { position: relative; }
.zone-in {
  position: relative;
  display: grid; grid-template-columns: 170px minmax(0, 300px) minmax(0, 1fr); gap: 32px;
  align-items: start;
  padding-top: clamp(32px, 4vw, 52px); padding-bottom: clamp(32px, 4vw, 52px);
}
.zone-where {
  font-size: 15px; font-weight: 600; padding-left: 22px; position: relative; padding-top: 10px;
}
.zone-where::before {
  content: ""; position: absolute; left: 0; top: 16px; width: 10px; height: 10px; border-radius: 50%;
  background: currentColor; opacity: .6;
}
.zone-name h3 { font-size: clamp(34px, 4vw, 52px); line-height: 1; font-weight: 800; letter-spacing: -0.025em; }
.zone-for { margin-top: 10px; font-size: 16px; font-weight: 600; }
.zone-desc { font-size: 17px; max-width: 56ch; padding-top: 6px; }

.z1 { background: var(--z1); color: var(--ink); }
.z2 { background: var(--z2); color: var(--ink); }
.z3 { background: var(--z3); color: var(--deep); }
.z4 { background: var(--z4); color: var(--white); }
.z5 { background: var(--z5); color: var(--white); }
.z6 { background: var(--z6); color: var(--white); }
.z1 .zone-where, .z2 .zone-where { color: #08507c; }
.z4 .zone-where { color: var(--white); }
.z5 .zone-where, .z6 .zone-where { color: #cfe6f3; }
.z4 .zone-desc { color: var(--white); }
.z5 .zone-desc, .z6 .zone-desc { color: #e3eff6; }
.z6 .zone-in { padding-bottom: clamp(48px, 6vw, 80px); }
.fish-deep { width: 120px; right: var(--gut); bottom: 24px; opacity: .9; }

.subjects { padding-top: clamp(56px, 6vw, 80px); padding-bottom: var(--padb); }
.subjects-title { font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.015em; }
.subject-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.subject-list li {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 24px;
}
.subject-list strong { font-size: 20px; font-weight: 800; }
.subject-list span { font-size: 16px; color: var(--ink-2); }
.subject-list em { font-style: normal; font-size: 15px; font-weight: 600; color: var(--green-ink); margin-top: 6px; }
.small-note { margin-top: 20px; font-size: 16px; color: var(--ink-2); }

/* ---------- Tarif ---------- */
.prices-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.fine { margin-top: 28px; display: grid; gap: 12px; }
.fine li { position: relative; padding-left: 22px; font-size: 16px; color: var(--ink-2); }
.fine li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--green-ink); }
.price-table { width: 100%; border-collapse: collapse; }
.price-table thead th {
  font-size: 14px; font-weight: 600; color: var(--ink-2); text-align: left; padding: 0 0 12px;
  border-bottom: 2px solid var(--ink);
}
.price-table thead th:last-child, .price-table td { text-align: right; }
.price-table tbody th, .price-table td { padding: 18px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.price-table tbody th { text-align: left; font-size: 19px; font-weight: 700; }
.price-table tbody th span { display: block; font-size: 15px; font-weight: 500; color: var(--ink-2); margin-top: 2px; }
.price-table td { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; padding-left: 16px; }
.price-table td.td-text { font-size: 15px; font-weight: 600; color: var(--ink-2); white-space: normal; letter-spacing: 0; }

/* ---------- Cara belajar ---------- */
.ways { background: var(--foam); }
.ways-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.way-group { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 3vw, 40px); }
.way-q { font-size: 15px; font-weight: 700; color: var(--sea); }
.way { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.way:first-of-type { border-top: 0; padding-top: 0; margin-top: 16px; }
.way h4 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.way p { margin-top: 6px; font-size: 16px; color: var(--ink-2); max-width: 44ch; }

/* ---------- Belajar di luar kelas ---------- */
.outside-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.outside-list li {
  border-radius: var(--r); padding: clamp(24px, 3vw, 40px);
  background: var(--deep); color: var(--on-deep);
}
.outside-list li:nth-child(2) { background: var(--sea); }
.outside-list h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; letter-spacing: -0.015em; color: var(--white); }
.outside-list p { margin-top: 10px; font-size: 17px; color: var(--white); max-width: 44ch; text-wrap: pretty; }

/* ---------- Yang didapat siswa ---------- */
.students { background: var(--foam); }
.gains { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; margin-top: 48px; }
.gains li { border-top: 3px solid var(--z3); padding-top: 16px; }
.gains h3 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.gains p { margin-top: 8px; font-size: 16px; color: var(--ink-2); }

/* ---------- Cara mendaftar ---------- */
.signup { background: var(--deep); color: var(--on-deep); }
.signup h2 { color: var(--white); }
.signup .lead { color: var(--on-deep-2); }
.wa-num { color: var(--green); font-weight: 700; white-space: nowrap; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.signup-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.signup-head { position: relative; }
.next-step { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .16); }
.next-step p { font-size: 16px; color: var(--on-deep-2); margin-bottom: 14px; }
.signup .btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, .45); }
.signup-title { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.fish-signup { position: static; width: 104px; opacity: .9; }
.steps { counter-reset: s; display: grid; gap: 0; }
.steps li {
  counter-increment: s; position: relative;
  padding: 20px 0 20px 64px; border-bottom: 1px solid rgba(255, 255, 255, .14);
  font-size: 18px; color: var(--white);
}
.steps li:first-child { border-top: 1px solid rgba(255, 255, 255, .14); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 17px; color: var(--deep); background: var(--green);
}

/* ---------- Pertanyaan umum ---------- */
.faq { background: var(--foam); }
.faq-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.qa-list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 700; line-height: 1.35;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--sea); }
.qa-mark { flex: none; position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); }
.qa-mark::before, .qa-mark::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px;
  background: var(--ink); border-radius: 2px; transition: transform .2s ease;
}
.qa-mark::after { transform: rotate(90deg); }
.qa[open] .qa-mark::after { transform: rotate(0deg); }
.qa p { padding: 0 48px 20px 0; font-size: 17px; color: var(--ink-2); max-width: 60ch; }

/* ---------- Bagian bawah ---------- */
.foot { background: var(--white); padding: 56px 0 40px; border-top: 1px solid var(--line); }
.foot-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px 48px; align-items: start; }
.logo-foot { --lw: 132px; }
.foot-brand p { margin-top: 10px; font-size: 16px; color: var(--ink-2); }
.foot-brand .logo + p { margin-top: 20px; }
.foot-links { display: grid; gap: 14px; justify-self: end; }
.foot-links a { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 16px; text-decoration: none; padding: 4px 0; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-links img { flex: none; }
.legal { grid-column: 1 / -1; font-size: 14px; color: var(--ink-2); padding-top: 24px; border-top: 1px solid var(--line); }

.actionbar { display: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .points { grid-template-columns: 1fr 1fr; }
  .gains { grid-template-columns: repeat(3, 1fr); }
  .zone-in { grid-template-columns: 150px minmax(0, 1fr); }
  .zone-desc { grid-column: 2; }
  .z6 .zone-in { padding-bottom: 104px; }
  .menu { gap: 20px; }
  .menu a { font-size: 14px; }
  .top-cta { display: none; }
}

@media (max-width: 860px) {
  :root { --nav: 64px; }
  .logo { --lw: 88px; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px; margin-left: auto;
    min-height: 44px; padding: 0 14px; border-radius: 999px;
    border: 1.5px solid var(--line); background: var(--white);
    font: 700 15px/1 var(--font); color: var(--ink); cursor: pointer;
  }
  .menu-lines, .menu-lines::before, .menu-lines::after {
    display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
    transition: transform .2s ease, background-color .2s ease;
  }
  .menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
  .menu-lines::before { top: -6px; }
  .menu-lines::after { top: 6px; }
  .menu-btn[aria-expanded="true"] .menu-lines { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-lines::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-lines::after { transform: translateY(-6px) rotate(-45deg); }
  .menu {
    position: fixed; inset: var(--nav) 0 0 0; z-index: 19;
    flex-direction: column; gap: 0; margin: 0; padding: 16px var(--gut) 32px;
    background: var(--white); display: none;
  }
  .menu.open { display: flex; }
  .menu a { font-size: 24px; font-weight: 700; padding: 18px 0; border-bottom: 1px solid var(--line); background: none; }

  .hero-in { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero-art { position: absolute; right: -24px; top: 12px; width: 46%; min-height: 0; height: 180px; opacity: .55; }
  .hero-text { position: relative; z-index: 1; }
  .hero .fish-b, .hero .fish-c { display: none; }
  .hero .fish-a { width: 100%; right: 0; top: 0; }

  .feature-pair, .prices-in, .signup-in, .faq-in { grid-template-columns: 1fr; }
  .subject-list { grid-template-columns: 1fr; gap: 12px; }
  .gains { grid-template-columns: 1fr 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  .foot-links { justify-self: start; }
}

/* ---------- HP ---------- */
@media (max-width: 640px) {
  :root { --bar: calc(76px + env(safe-area-inset-bottom)); }
  body { font-size: 16px; }
  .hero h1 { font-size: clamp(30px, 8.4vw, 38px); max-width: none; padding-right: 8%; }
  .hero-art { width: 40%; height: 120px; top: 4px; right: -16px; opacity: .45; }
  .actions .btn { width: 100%; }
  .points { grid-template-columns: 1fr; gap: 24px; }
  .ways-grid, .outside-list { grid-template-columns: 1fr; }
  .qa summary { font-size: 17px; }
  .qa p { padding-right: 0; font-size: 16px; }
  .gains { grid-template-columns: 1fr; gap: 20px; }
  .zone-in { grid-template-columns: 1fr; gap: 10px; }
  .zone-desc { grid-column: auto; }
  .zone-where { padding-top: 0; }
  .zone-where::before { top: 7px; }
  .zone-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
  .zone-for { margin-top: 0; }
  .fish-deep { width: 84px; bottom: 16px; }
  .z6 .zone-in { padding-bottom: 96px; }
  .price-table tbody th { font-size: 17px; }
  .price-table td { font-size: 19px; }
  .price-table td.td-text { font-size: 14px; max-width: 9em; }
  .steps li { font-size: 17px; padding-left: 56px; }
  .next-step .btn { width: 100%; }
  .fish-signup { width: 76px; }
  .signup-title { gap: 16px; }
  .actionbar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 18;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
    backdrop-filter: blur(8px);
    transition: transform .25s ease, visibility .25s;
  }
  .actionbar.is-hidden { transform: translateY(110%); visibility: hidden; }
  .actionbar .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.nw { white-space: nowrap; }
