/* =========================================================
   قراءات — Visual language
   Emerald 60% · Cream 30% · Gold 10%
   Everything derives from the mark: 33° angle, unit u,
   rounded bar ends, single pivot point, the open V.
   ========================================================= */

:root {
  --green: #0E5A45;
  --green-600: #14705A;
  --green-800: #0B4A39;
  --green-900: #083629;
  --cream: #FAF7EF;
  --cream-2: #F2ECDD;
  --paper: #FFFDF8;
  --gold: #B8913C;
  --gold-600: #9A7830;
  --gold-200: #E9DCBC;
  --mint: #BFD3CC;
  --mint-100: #E5EEEA;

  --ink: #12302A;
  --text: #34504A;
  --muted: #677A73;
  --line: #E3DCCB;

  --f-display: 'Reem Kufi', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans Arabic', system-ui, 'Segoe UI', Tahoma, sans-serif;
  --f-naskh: 'Amiri', 'Traditional Arabic', serif;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(14, 90, 69, .06), 0 4px 12px -6px rgba(14, 90, 69, .12);
  --shadow: 0 1px 2px rgba(14, 90, 69, .06), 0 18px 40px -18px rgba(14, 90, 69, .28);
  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* X-mark texture (48×31 grid, 33°) */
  --tex-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='31' viewBox='0 0 48 31'%3E%3Cg stroke='%23FAF7EF' stroke-width='3.6' stroke-linecap='round' fill='none'%3E%3Cpath d='M12 7.75 36 23.25M36 7.75 12 23.25'/%3E%3C/g%3E%3C/svg%3E");
  --tex-full: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='31' viewBox='0 0 48 31'%3E%3Crect width='48' height='31' fill='%23FAF7EF'/%3E%3Cg stroke-width='4.2' stroke-linecap='round' fill='none'%3E%3Cpath stroke='%23B8913C' d='M12 7.75 36 23.25'/%3E%3Cpath stroke='%230E5A45' d='M36 7.75 12 23.25'/%3E%3C/g%3E%3Ccircle cx='24' cy='15.5' r='1.3' fill='%23FAF7EF'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.35; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--gold-200); color: var(--green-900); }

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

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
@media (max-width: 560px) { .container { padding-inline: 16px; } }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -100px; z-index: 200;
  background: var(--gold); color: #fff; padding: 10px 18px; border-radius: var(--r-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; }

.t-gold { color: var(--gold); }

/* ---------- The mark (logo) ---------- */
.mark { overflow: visible; }
.mark line { stroke-width: 170; stroke-linecap: round; }
.mk-a { stroke: var(--mk-a, var(--gold)); }
.mk-b { stroke: var(--mk-b, var(--green)); }
.mk-edge { fill: none; stroke: var(--mk-edge, var(--green)); stroke-width: 30; stroke-linecap: round; stroke-linejoin: round; }
.mk-page { fill: var(--mk-page, var(--cream)); stroke: var(--mk-stroke, var(--green)); stroke-width: 14; stroke-linejoin: round; }
.mk-dot { fill: var(--mk-dot, var(--cream)); }
.mark--inverse { --mk-b: var(--cream); --mk-edge: var(--gold); --mk-stroke: var(--cream); --mk-dot: var(--green); }

.mark .mk-a, .mark .mk-b { transform-box: view-box; transform-origin: 870px 720px; }

/* Motion states (guideline 05): closed 0% → 55° 50% → open 100% */
.mark--s0 .mk-a { transform: rotate(52deg); }
.mark--s0 .mk-b { transform: rotate(-52deg); }
.mark--s50 .mk-a { transform: rotate(22deg); }
.mark--s50 .mk-b { transform: rotate(-22deg); }

/* ---------- Icons (stroke = u/3, round ends, 33°) ---------- */
.icon { width: 48px; height: 48px; flex: none; }
.icon-sm { width: 40px; height: 40px; }
.icon-xl { width: 76px; height: 76px; }
.icon path, .icon circle, .icon rect { fill: none; stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round; }
.icon .ic-g { stroke: var(--green); }
.icon .ic-y { stroke: var(--gold); }
.icon .ic-c { stroke: var(--cream); }
.icon .ic-dot { fill: var(--paper); stroke: none; }
.icon .ic-fill-y { fill: var(--gold); stroke: none; }
.icon-inverse .ic-g { stroke: var(--cream); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 10px 20px; font-size: .95rem; }
.btn-lg { padding: 16px 32px; font-size: 1.075rem; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 10px 24px -12px rgba(184, 145, 60, .8); }
.btn-gold:hover { background: var(--gold-600); }
.btn-cream { background: var(--cream); color: var(--green); }
.btn-cream:hover { background: #fff; box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .5); }
.btn-ghost-light { border-color: rgba(250, 247, 239, .4); color: var(--cream); }
.btn-ghost-light:hover { border-color: var(--cream); background: rgba(250, 247, 239, .08); }
.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green); color: var(--cream); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  height: var(--header-h);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), height .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 253, 248, .92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 var(--line);
  --header-h: 66px;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand .mark { width: 54px; height: auto; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 1.85rem; line-height: 1; color: var(--cream); transition: color .3s; }
.site-header:not(.is-scrolled) .brand .mark { --mk-b: var(--cream); --mk-edge: var(--gold); --mk-stroke: var(--cream); --mk-dot: var(--green); }
.site-header.is-scrolled .brand-name { color: var(--green); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 26px; }
.main-nav ul a {
  position: relative; font-weight: 500; font-size: .98rem; color: rgba(250, 247, 239, .85); padding-block: 6px; transition: color .2s;
}
.main-nav ul a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 2px; border-radius: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform .3s var(--ease);
}
.main-nav ul a:hover, .main-nav ul a.is-active { color: var(--cream); }
.main-nav ul a:hover::after, .main-nav ul a.is-active::after { transform: scaleX(1); }
.site-header.is-scrolled .main-nav ul a { color: var(--text); }
.site-header.is-scrolled .main-nav ul a:hover, .site-header.is-scrolled .main-nav ul a.is-active { color: var(--green); }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 0; cursor: pointer;
  background: rgba(250, 247, 239, .12); position: relative;
}
.site-header.is-scrolled .nav-toggle, .nav-open .nav-toggle { background: var(--mint-100); }
.nav-toggle span {
  position: absolute; inset-inline-start: 12px; width: 22px; height: 2.5px; border-radius: 2px; background: var(--cream);
  transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease);
}
.site-header.is-scrolled .nav-toggle span, .nav-open .nav-toggle span { background: var(--green); }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(33deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 22px; transform: rotate(-33deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset-inline: 0; top: var(--header-h); bottom: 0;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 24px 24px 40px; background: var(--paper);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s .3s;
    overflow-y: auto;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a, .site-header.is-scrolled .main-nav ul a {
    display: block; padding: 16px 4px; font-size: 1.15rem; color: var(--ink); border-bottom: 1px solid var(--line);
  }
  .main-nav ul a::after { display: none; }
  .nav-cta { padding: 16px; font-size: 1.05rem; }
  .nav-open .site-header { background: var(--paper); box-shadow: 0 1px 0 var(--line); }
  .nav-open .brand-name { color: var(--green); }
  .nav-open .site-header .brand .mark { --mk-b: var(--green); --mk-edge: var(--green); --mk-stroke: var(--green); --mk-dot: var(--cream); }
  body.nav-open { overflow: hidden; }
}

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  font-family: var(--f-body); font-weight: 600; font-size: .85rem; letter-spacing: .02em;
  color: var(--gold-600); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--gold); }
.eyebrow--light { color: var(--gold-200); }
.section-title {
  font-family: var(--f-display); font-weight: 700; color: var(--green);
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); line-height: 1.3;
}
.section-lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; margin-top: 16px; }
.section-head { text-align: center; margin-bottom: 56px; display: flex; flex-direction: column; align-items: center; }
.section-head .section-lead { margin-inline: auto; }
.section-head--start { text-align: start; align-items: flex-start; }
.section-head--start .section-lead { margin-inline: 0; margin-bottom: 28px; }
.section-head--light .section-title { color: var(--cream); }

.divider { display: flex; align-items: center; gap: 6px; width: min(320px, 80%); margin-top: 28px; }
.divider span { flex: 1; height: 2.5px; background: var(--green); border-radius: 2px; opacity: .85; }
.divider svg { width: 46px; height: 20px; flex: none; }
.divider path { fill: none; stroke: var(--gold); stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round; }
.divider--light span { background: rgba(250, 247, 239, .25); }
.divider--light { width: 100%; margin: 0 0 22px; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(72px, 9vw, 120px); }
.section--tint { background: var(--mint-100); }
.section--cream { background: var(--cream); }
.section--green { background: var(--green); color: rgba(250, 247, 239, .78); overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 20% 30%, var(--green-600) 0%, var(--green) 45%, var(--green-900) 100%);
  color: rgba(250, 247, 239, .82);
  padding: calc(var(--header-h) + 56px) 0 96px;
  min-height: min(100svh, 920px);
  display: flex; align-items: center;
}
.hero-texture {
  position: absolute; inset: 0; pointer-events: none;
  background-image: var(--tex-light); background-size: 72px 46.5px; opacity: .06;
  -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent 95%);
          mask-image: linear-gradient(to bottom, #000 20%, transparent 95%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-title {
  font-family: var(--f-display); font-weight: 700; color: var(--cream);
  font-size: clamp(2.4rem, 1.4rem + 4vw, 4.4rem); line-height: 1.22; margin-bottom: 24px;
}
.hero-title span { color: var(--gold); }
.hero-lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .97rem; color: rgba(250, 247, 239, .9); }
.hero-points li { display: inline-flex; align-items: center; gap: 10px; }
.hero-points li::before {
  content: ""; width: 14px; height: 9px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'%3E%3Cpath d='M3 3 L14 10.2 L25 3' fill='none' stroke='%23B8913C' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-visual .mark { width: 100%; max-width: 560px; position: relative; z-index: 1; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .25)); }
.hero-guides { position: absolute; inset: -8% -10% auto; width: 120%; max-width: none; height: auto; aspect-ratio: 1740/1000; overflow: visible; }
.hero-guides line, .hero-guides circle { fill: none; stroke: var(--mint); stroke-width: 3; stroke-dasharray: 14 14; opacity: .28; }
.hero-guides .g-gold { stroke: var(--gold); opacity: .55; }
.hero-tagline { font-family: var(--f-naskh); font-size: clamp(1.15rem, 1rem + .6vw, 1.55rem); color: var(--gold-200); margin-top: 26px; position: relative; z-index: 1; }

.hero-scroll {
  position: absolute; bottom: 24px; inset-inline-start: 50%; transform: translateX(50%);
  width: 44px; height: 44px; display: grid; place-items: center; opacity: .7;
}
.hero-scroll svg { width: 34px; height: 34px; animation: nudge 2.4s var(--ease) infinite; }
.hero-scroll path { fill: none; stroke: var(--gold); stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round; }
.hero-scroll path + path { stroke: var(--cream); opacity: .6; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* Hero mark animation: bars rotate around the pivot to 33°, then the mushaf opens */
.js .mark--anim .mk-a { animation: open-a 1.5s var(--ease) .25s both; }
.js .mark--anim .mk-b { animation: open-b 1.5s var(--ease) .25s both; }
.js .mark--anim .mk-book { animation: book-in .8s var(--ease) 1.35s both; transform-box: view-box; transform-origin: 870px 600px; }
@keyframes open-a { from { transform: rotate(55deg); } to { transform: rotate(0); } }
@keyframes open-b { from { transform: rotate(-55deg); } to { transform: rotate(0); } }
@keyframes book-in { from { opacity: 0; transform: translateY(60px) scaleY(.6); } to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 32px); padding-bottom: 88px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { order: -1; max-width: 360px; margin-inline: auto; width: 100%; }
  .hero-tagline { margin-top: 14px; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-points { justify-content: center; }
  .hero-scroll { display: none; }
}
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
}

/* Full-color pattern strip (guideline 02) */
.pattern-band { height: 46px; background-image: var(--tex-full); background-size: 72px 46.5px; background-position: center; }

/* ---------- Tracks ---------- */
.tracks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.track-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 32px 28px 26px; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.track-card::before {
  content: ""; position: absolute; inset-inline-end: -40px; bottom: -40px; width: 150px; height: 150px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 31'%3E%3Cg stroke='%230E5A45' stroke-width='3.6' stroke-linecap='round' fill='none'%3E%3Cpath d='M12 7.75 36 23.25M36 7.75 12 23.25'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 48px 31px; opacity: 0; transition: opacity .35s;
  -webkit-mask-image: radial-gradient(circle at 70% 70%, #000, transparent 70%); mask-image: radial-gradient(circle at 70% 70%, #000, transparent 70%);
}
.track-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.track-card:hover::before { opacity: .08; }
.track-num { position: absolute; top: 22px; inset-inline-end: 24px; font-family: var(--f-display); font-size: 1rem; color: var(--gold); font-weight: 600; }
.track-card .icon { margin-bottom: 22px; }
.track-card h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.4rem; color: var(--green); margin-bottom: 10px; }
.track-card p { color: var(--muted); font-size: 1rem; margin-bottom: 18px; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chips li { font-size: .82rem; font-weight: 500; padding: 4px 12px; border-radius: 999px; background: var(--mint-100); color: var(--green); }
.track-link {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  font-weight: 600; color: var(--green); position: relative;
}
.track-link::after {
  content: ""; width: 14px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 28'%3E%3Cpath d='M14 3 L5 14 L14 25' fill='none' stroke='%23B8913C' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform .3s var(--ease);
}
.track-link:hover::after { transform: translateX(-4px); }
.track-card--featured { background: var(--green); border-color: var(--green); }
.track-card--featured h3 { color: var(--cream); }
.track-card--featured p { color: rgba(250, 247, 239, .75); }
.track-card--featured .chips li { background: rgba(250, 247, 239, .12); color: var(--cream); }
.track-card--featured .track-link { color: var(--cream); }
.track-card--featured .icon .ic-g { stroke: var(--cream); }
.track-card--featured::before { filter: invert(1); }

@media (max-width: 960px) { .tracks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .tracks-grid { grid-template-columns: 1fr; } }

/* ---------- Method ---------- */
.method-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center; }
.method-visual { position: relative; padding-bottom: 70px; }
.frame-cover { position: relative; max-width: 460px; }
.frame-cover__box {
  background: var(--paper); border-radius: 4px; padding: 56px 40px 48px; text-align: center;
  box-shadow: var(--shadow-sm);
}
.frame-cover__box .mark { width: 78%; margin: 0 auto 28px; }
.frame-quote { font-family: var(--f-naskh); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); color: var(--green); }
.frame-cover__v { width: 100%; height: 56px; margin-top: 14px; }
.frame-cover__v path { fill: none; stroke: var(--gold); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-width: 7px; }

.mask-pages {
  background: var(--green); color: var(--cream);
  clip-path: polygon(0 0, 50% 18%, 100% 0, 100% 74%, 50% 100%, 0 74%);
}
.mask-pages--float {
  position: absolute; inset-inline-end: 0; bottom: 12px; width: 160px; aspect-ratio: 1 / 1.15;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 14px 36px; text-align: center;
}
.mask-pages--float span { font-family: var(--f-display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--gold-200); }
.mask-pages--float small { font-size: .82rem; margin-top: 8px; line-height: 1.5; }

.method-copy .section-lead { margin-bottom: 36px; }
.method-points { display: grid; gap: 14px; }
.method-points li {
  display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px;
  background: var(--paper); border-radius: var(--r); border-inline-start: 4px solid var(--gold);
}
.method-points h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; color: var(--green); margin-bottom: 2px; }
.method-points p { font-size: .97rem; color: var(--muted); }

@media (max-width: 960px) {
  .method-grid { grid-template-columns: 1fr; gap: 48px; }
  .method-visual { max-width: 460px; margin-inline: auto; width: 100%; }
}
@media (max-width: 480px) { .mask-pages--float { width: 130px; } .mask-pages--float span { font-size: 1.9rem; } .frame-cover__box { padding: 40px 24px 36px; } }

/* ---------- Journey ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; text-align: center; padding: 0 8px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 64px; inset-inline-start: calc(50% + 78px); width: calc(100% - 156px + 20px); height: 2px;
  background-image: linear-gradient(to left, var(--gold) 50%, transparent 0); background-size: 12px 2px;
}
.step-visual {
  width: 128px; height: 128px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--cream); display: grid; place-items: center; overflow: hidden;
  border: 1px solid var(--line);
}
.step-visual .mark { width: 92px; height: 92px; }
.step--final .step-visual { background: var(--green); border-color: var(--green); }
.step--final .icon .ic-g { stroke: var(--cream); }
.step-num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold); color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 12px;
}
.step h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; color: var(--green); margin-bottom: 8px; }
.step p { font-size: .97rem; color: var(--muted); max-width: 240px; margin-inline: auto; }

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 44px 20px; }
  .step::after { display: none; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 88px 1fr; grid-template-rows: auto auto auto; column-gap: 18px; text-align: start; padding: 0 0 28px; }
  .step-visual { grid-row: 1 / 4; width: 88px; height: 88px; margin: 0; }
  .step-visual .mark { width: 64px; height: 64px; }
  .step-visual .icon-xl { width: 54px; height: 54px; }
  .step-num { width: 28px; height: 28px; font-size: .9rem; margin-bottom: 6px; }
  .step p { margin: 0; max-width: none; }
  .step:not(:last-child)::before {
    content: ""; position: absolute; inset-inline-start: 43px; top: 96px; bottom: 6px; width: 2px;
    background-image: linear-gradient(to bottom, var(--gold) 50%, transparent 0); background-size: 2px 12px;
  }
}

/* ---------- Audience (image masks, guideline 03) ---------- */
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: end; }
.audience-card { text-align: center; }
.audience-card h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.45rem; color: var(--green); margin: 26px 0 8px; }
.audience-card p { color: var(--muted); max-width: 300px; margin-inline: auto; }
.mask { width: 100%; max-width: 260px; margin-inline: auto; display: grid; place-items: center; }
.mask-cover { display: block; }
.mask-cover__box { width: 100%; aspect-ratio: 1 / .9; background: var(--mint-100); display: grid; place-items: center; border-radius: 3px; }
.mask-cover__v { width: 100%; height: 36px; margin-top: 10px; }
.mask-cover__v path { fill: none; stroke: var(--gold); stroke-width: 6px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.audience-card .mask-pages { aspect-ratio: 1 / 1.12; }
.mask-diamond { aspect-ratio: 1 / .65; background: var(--mint); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); max-width: 300px; }

@media (max-width: 860px) {
  .audience-grid { grid-template-columns: 1fr; gap: 56px; }
  .mask { max-width: 220px; }
  .mask-diamond { max-width: 260px; }
}

/* ---------- Features ---------- */
.features-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(250, 247, 239, .14); }
.feature { padding: 36px 32px; border-bottom: 1px solid rgba(250, 247, 239, .14); }
.feature:not(:nth-child(3n)) { border-inline-end: 1px solid rgba(250, 247, 239, .14); }
.feature .icon { margin-bottom: 20px; }
.feature h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; color: var(--cream); margin-bottom: 8px; }
.feature p { font-size: 1rem; }
@media (max-width: 860px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature:not(:nth-child(3n)) { border-inline-end: 0; }
  .feature:nth-child(odd) { border-inline-end: 1px solid rgba(250, 247, 239, .14); }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature:nth-child(odd) { border-inline-end: 0; }
  .feature { padding: 28px 4px; }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .25s, box-shadow .25s; }
.faq-item[open] { border-color: transparent; box-shadow: var(--shadow-sm); background: #fff; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 600; font-size: 1.08rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 28px; height: 28px; flex: none; transition: transform .3s var(--ease); }
.faq-item summary path { fill: none; stroke: var(--gold); stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item[open] summary { color: var(--green); }
.faq-body { padding: 0 24px 22px; color: var(--muted); }
@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-grid .section-head { position: static; }
}

/* ---------- Register (CTA layout, guideline 06) ---------- */
.register-card {
  display: grid; grid-template-columns: 1fr 1.1fr; border-radius: var(--r-lg); overflow: hidden;
  background: #fff; box-shadow: var(--shadow);
}
.register-intro { position: relative; background: var(--green); color: rgba(250, 247, 239, .8); padding: 56px 48px 210px; overflow: hidden; }
.register-title { font-family: var(--f-display); font-weight: 700; color: var(--cream); font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.6rem); line-height: 1.3; margin-bottom: 18px; }
.register-title span { color: var(--gold); display: block; }
.register-lead { font-size: 1.08rem; margin-bottom: 28px; max-width: 420px; }
.check-list { display: grid; gap: 12px; position: relative; z-index: 1; }
.check-list li { display: flex; align-items: center; gap: 12px; color: var(--cream); }
.check-list li::before {
  content: ""; width: 26px; height: 26px; flex: none; border-radius: 50%; background: rgba(184, 145, 60, .2)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'%3E%3Cpath d='M5 4 L14 9.8 L23 4' fill='none' stroke='%23B8913C' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 13px;
}
.register-bars { position: absolute; inset-inline-end: 0; bottom: 0; width: 72%; max-width: 400px; height: auto; overflow: visible; }
.register-bars line { stroke-width: 70; stroke-linecap: round; }
.rb-a { stroke: var(--gold); }
.rb-b { stroke: var(--cream); }
.rb-dot { fill: var(--green); }

.register-form-wrap { padding: 48px; display: flex; align-items: center; }
.register-form { width: 100%; display: grid; gap: 18px; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .97rem; color: var(--ink); padding: 0; }
.hint { font-weight: 400; color: var(--muted); font-size: .87rem; }
.field input[type="text"], .field input[type="tel"], .field select {
  width: 100%; min-height: 54px; padding: 12px 18px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field input::placeholder { color: #A5B0AB; }
.field input[dir="ltr"] { text-align: right; }
.field input[dir="ltr"]:placeholder-shown { text-align: right; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-inline-end: 44px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'%3E%3Cpath d='M4 4 L14 10.5 L24 4' fill='none' stroke='%230E5A45' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat left 18px center / 14px;
}
.field input:hover, .field select:hover { border-color: var(--mint); }
.field input:focus, .field select:focus { outline: none; border-color: var(--green); background-color: #fff; box-shadow: 0 0 0 4px rgba(14, 90, 69, .1); }
.field.has-error input { border-color: #B54434; box-shadow: 0 0 0 4px rgba(181, 68, 52, .08); }
.field-error { font-size: .87rem; color: #B54434; min-height: 0; }
.field-error:empty { display: none; }
.field-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }

.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; background: var(--cream); border-radius: 14px; border: 1.5px solid var(--line); }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: block; text-align: center; padding: 9px 6px; border-radius: 10px; font-weight: 500; color: var(--muted); transition: background-color .2s, color .2s; }
.segmented input:checked + span { background: var(--green); color: var(--cream); }
.segmented input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#submitBtn { margin-top: 6px; position: relative; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-note { font-size: .85rem; color: var(--muted); text-align: center; }
.form-status:empty { display: none; }
.form-status { padding: 14px 18px; border-radius: 14px; background: #FBEDEA; color: #8E3326; font-size: .95rem; }
.form-status a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.register-success { width: 100%; text-align: center; padding: 24px 8px; }
.register-success:focus { outline: none; }
.register-success .mark { width: 150px; margin: 0 auto 26px; }
.register-success h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.7rem; color: var(--green); margin-bottom: 12px; }
.register-success p { color: var(--muted); margin: 0 auto 28px; max-width: 380px; }
.success-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

@media (max-width: 960px) {
  .register-card { grid-template-columns: 1fr; }
  .register-intro { padding: 40px 28px 170px; }
  .register-bars { width: 62%; max-width: 320px; }
  .register-form-wrap { padding: 32px 24px 36px; }
}
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
  .register-intro { padding: 32px 20px 150px; }
  .register-form-wrap { padding: 28px 18px 32px; }
}

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--green-900); color: rgba(250, 247, 239, .7); padding: 80px 0 32px; overflow: hidden; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; }
.lockup { display: inline-flex; flex-direction: column; align-items: center; text-align: center; }
.lockup .mark { width: 150px; }
.lockup-name { font-family: var(--f-display); font-weight: 700; font-size: 3.2rem; line-height: 1; color: var(--cream); margin-top: 18px; }
.lockup-tag { font-family: var(--f-naskh); font-size: 1.15rem; color: var(--gold-200); margin-top: 10px; }
.footer-title { font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; color: var(--gold); margin-bottom: 18px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a, .footer-contact a { transition: color .2s; }
.footer-links a:hover, .footer-contact a:hover { color: var(--cream); }
.footer-contact { display: grid; gap: 14px; }
.footer-contact li { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: baseline; }
.fc-label { font-size: .85rem; color: rgba(250, 247, 239, .45); }
.footer-contact a[dir="ltr"] { text-align: right; unicode-bidi: isolate; }
.footer-bottom { position: relative; text-align: center; font-size: .9rem; color: rgba(250, 247, 239, .45); }
.powered { margin-top: 8px; font-size: .82rem; direction: ltr; letter-spacing: .02em; }
.powered a { color: var(--gold-200); font-weight: 600; transition: color .2s; }
.powered a:hover { color: var(--gold); }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; display: flex; justify-content: center; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-contact li { grid-template-columns: 1fr; gap: 0; }
  .footer-contact a[dir="ltr"] { text-align: center; }
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; left: 20px; bottom: 20px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 16px; border-radius: 999px;
  background: var(--green); color: var(--cream);
  box-shadow: 0 0 0 3px var(--gold), 0 14px 30px -10px rgba(8, 54, 41, .6);
  transition: transform .25s var(--ease), background-color .25s;
}
.wa-float:hover { transform: translateY(-3px); background: var(--green-600); }
.wa-float svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.wa-label { font-weight: 600; font-size: .95rem; }
@media (max-width: 720px) {
  .wa-float { width: 56px; padding: 0; justify-content: center; left: 16px; bottom: 16px; }
  .wa-label { display: none; }
}

/* ---------- Reveal on scroll (only with JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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