/* ============================================================
   Aku Bebysitter — landing page styles
   ============================================================ */

:root {
  /* themable via Tweaks */
  --c-primary: #ff7a59;      /* coral */
  --c-primary-deep: #ef5b38;
  --c-yellow:  #ffc94d;
  --c-mint:    #43c9b0;
  --c-sky:     #5bb8ef;
  --c-lav:     #b79ced;

  --c-bg:      #fff7ef;       /* warm cream */
  --c-bg-2:    #fdeee2;
  --c-card:    #ffffff;
  --c-ink:     #3a2b25;       /* warm near-black */
  --c-ink-soft:#7b685f;
  --c-line:    #f0e2d6;

  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;

  --radius-s: 14px;
  --radius-m: 22px;
  --radius-l: 34px;
  --shadow-soft: 0 18px 50px -22px rgba(120, 70, 40, .35);
  --shadow-lift: 0 28px 70px -28px rgba(120, 70, 40, .45);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display { font-family: var(--font-display); font-weight: 600; line-height: 1.08; margin: 0; }

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Photo placeholder ---------- */
.ph {
  position: relative;
  background-color: var(--c-bg-2);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(58, 43, 37, .05) 0 12px,
    rgba(58, 43, 37, .0) 12px 24px
  );
  border-radius: var(--radius-m);
  display: grid;
  place-items: center;
  color: var(--c-ink-soft);
  overflow: hidden;
  isolation: isolate;
}
.ph::after {
  content: attr(data-label);
  font-family: "Plus Jakarta Sans", monospace;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: .65;
  padding: 6px 12px;
  border: 1.5px dashed rgba(58,43,37,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.5);
  text-align: center;
}

/* ---------- Real photos (replace placeholder) ---------- */
.ph.has-img { display: block; width: 100%; background-image: none; background-color: transparent; }
.ph.has-img::after { content: none; }
.ph.has-img > picture { position: absolute; inset: 0; display: block; }
.ph .photo-fill { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-photo .photo-fill { object-position: 50% 42%; }
.svc-photo.qmark { display: grid; place-items: center; background-image: none; background-color: var(--c-bg-2); border: 1.5px dashed rgba(58,43,37,.16); color: var(--c-primary); }
.svc-photo.qmark::after { content: none; }
.svc-photo.qmark svg { width: 42%; height: auto; }

/* ---------- Inline SVG icons (replace emoji) ---------- */
.i { display: inline-block; width: 1em; height: 1em; flex: none; vertical-align: -0.14em; }
/* uniform icon-to-tile fill ratio (~57%) */
.brand-mark .i { width: 23px; height: 23px; vertical-align: 0; }
.q-ic .i { width: 22px; height: 22px; vertical-align: 0; }
.svc .svc-ic .i { width: 32px; height: 32px; vertical-align: 0; }
.tick .i { width: 1em; height: 1em; vertical-align: 0; }
.pill .i { width: 1.05em; height: 1.05em; margin-right: 5px; }
.strip .ic { display: inline-flex; align-items: center; }
.strip .ic .i { width: 1em; height: 1em; }
.final-card .wa-num .i { width: 1.05em; height: 1.05em; margin-right: 6px; vertical-align: -0.16em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 15px 26px;
  transition: transform .18s cubic-bezier(.2,.9,.3,1.2), box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; }
.btn-wa {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 12px 26px -10px var(--c-primary-deep);
}
.btn-wa:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 34px -12px var(--c-primary-deep); background: var(--c-primary-deep); }
.btn-ghost {
  background: #fff;
  color: var(--c-ink);
  box-shadow: inset 0 0 0 2px var(--c-line);
}
.btn-ghost:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--c-primary); color: var(--c-primary-deep); }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,247,239,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 1.32rem; letter-spacing: -.01em; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--c-primary), var(--c-yellow));
  color: #fff; font-size: 22px; flex: none;
  box-shadow: 0 8px 18px -8px var(--c-primary-deep);
  transform: rotate(-6deg);
}
.brand small { display:block; font-family: var(--font-body); font-weight: 600; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--c-ink-soft); margin-top:1px; }
.topbar .btn { padding: 11px 20px; font-size: .95rem; }

/* ---------- decorative blobs ---------- */
.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; z-index: 0; pointer-events: none; }
.hero .blob-1 { width: 340px; height: 340px; background: var(--c-yellow); top: -80px; right: 8%; }
.hero .blob-2 { width: 260px; height: 260px; background: var(--c-mint); bottom: -60px; left: -60px; }
.hero .blob-3 { width: 180px; height: 180px; background: var(--c-lav); top: 40%; left: 42%; opacity: .3; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 84px) 0 clamp(48px, 6vw, 90px); overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; grid-template-rows: min-content min-content; grid-template-areas: "copy art" "detail art"; gap: 0 clamp(28px, 4vw, 64px); align-items: center; }
.hero-copy { grid-area: copy; }
.hero-detail { grid-area: detail; }
.hero-art { grid-area: art; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .82rem; letter-spacing: .04em;
  background: #fff; color: var(--c-primary-deep);
  padding: 8px 15px; border-radius: 999px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-mint); box-shadow: 0 0 0 4px rgba(67,201,176,.25); }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); letter-spacing: -.02em; }
.hero h1 .hl { color: var(--c-primary); position: relative; white-space: nowrap; }
.hero h1 .hl::after { content:""; position:absolute; left:-2%; right:-2%; bottom:.06em; height:.32em; background: var(--c-yellow); opacity:.55; border-radius: 999px; z-index:-1; }
.hero-sub { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--c-ink-soft); margin-top: 22px; max-width: 33ch; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; align-items: center; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; font-size: .92rem; font-weight: 600; color: var(--c-ink-soft); }
.hero-trust .tick { width: 19px; height: 19px; border-radius: 50%; background: var(--c-mint); color:#fff; display: grid; place-items: center; font-size: 12px; flex:none; }

/* hero visual */
.hero-art { position: relative; }
.hero-photo { aspect-ratio: 4/5; box-shadow: var(--shadow-lift); border: 8px solid #fff; transform: rotate(2deg); }
.hero-photo.ph { border-radius: var(--radius-l); }
.price-tag {
  position: absolute; left: -14px; bottom: 36px; z-index: 3;
  background: #fff; border-radius: var(--radius-m);
  padding: 14px 20px; box-shadow: var(--shadow-lift);
  transform: rotate(-4deg);
  border: 2px solid var(--c-line);
}
.price-tag b { font-family: var(--font-display); font-size: 1.7rem; color: var(--c-ink); display:block; line-height:1; }
.price-tag small { font-size: .76rem; font-weight:700; letter-spacing:.1em; text-transform: uppercase; color: var(--c-ink-soft); }
.float-card {
  position: absolute; right: -30px; top: 26px; z-index: 3;
  background: #fff; border-radius: var(--radius-m); padding: 11px 14px;
  box-shadow: var(--shadow-lift); display: flex; align-items: center; gap: 10px;
  transform: rotate(3deg); max-width: 196px;
}
.float-card .av { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(140deg,var(--c-sky),var(--c-lav)); flex:none; }
.float-card p { font-size: .78rem; line-height: 1.32; color: var(--c-ink-soft); }
.float-card b { color: var(--c-ink); }

/* ---------- Trust strip ---------- */
.strip { background: var(--c-ink); color: #fff; padding: 22px 0; }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 34px; }
.strip span { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1rem; opacity: .96; }
.strip .ic { font-size: 1.3rem; }

/* ---------- Section base ---------- */
.section { padding: clamp(56px, 7vw, 100px) 0; position: relative; }
.section-head { max-width: 660px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.kicker { display:inline-block; font-weight:800; font-size:.8rem; letter-spacing:.16em; text-transform: uppercase; color: var(--c-primary-deep); margin-bottom:14px; }
.section h2 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.02em; }
.section-head p { color: var(--c-ink-soft); font-size: 1.1rem; margin-top: 16px; text-wrap: pretty; }

/* ---------- Meet Fenny ---------- */
.meet { background: var(--c-bg-2); }
.meet .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.meet-photo { aspect-ratio: 1/1; border-radius: var(--radius-l); box-shadow: var(--shadow-soft); }
.meet-photo.ph { border: 7px solid #fff; }
.meet-badges { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 0; }
.pill { font-size: .85rem; font-weight: 700; padding: 7px 14px; border-radius: 999px; background:#fff; box-shadow: inset 0 0 0 1.5px var(--c-line); }
.meet h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.meet .lead { font-size: 1.12rem; margin-top: 18px; color: var(--c-ink); }
.meet .body { margin-top: 14px; color: var(--c-ink-soft); }
.qualities { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qualities li { display: flex; gap: 12px; }
.q-ic { width: 38px; height: 38px; border-radius: 12px; flex:none; display:grid; place-items:center; font-size:18px; color:#fff; }
.qualities b { display:block; font-family: var(--font-display); font-size: 1.28rem; line-height: 1.2; }
.qualities small { color: var(--c-ink-soft); font-size: .88rem; line-height:1.45; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc {
  background: var(--c-card); border-radius: var(--radius-m); padding: 26px;
  box-shadow: var(--shadow-soft); position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.svc .svc-ic { width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; font-size: 28px; color: #fff; margin-bottom: 18px; box-shadow: 0 10px 20px -10px rgba(0,0,0,.3); }
.svc h3 { font-size: 1.28rem; }
.svc p { color: var(--c-ink-soft); margin-top: 9px; font-size: .98rem; }
.svc .svc-photo { margin-top: 18px; aspect-ratio: 16/10; border-radius: var(--radius-s); }

/* ---------- Steps ---------- */
.how { background: var(--c-ink); color:#fff; }
.how .kicker { color: var(--c-yellow); }
.how .section-head p { color: rgba(255,255,255,.7); }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; counter-reset: s; }
.step { position: relative; padding-top: 18px; }
.step .num { font-family: var(--font-display); font-size: 3rem; color: var(--c-yellow); line-height:1; }
.step h3 { font-size: 1.32rem; margin-top: 10px; }
.step p { color: rgba(255,255,255,.72); margin-top: 8px; }
.step::before { content:""; }

/* ---------- Pricing ---------- */
.price-wrap { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,52px); align-items:center; }
.price-card {
  background: linear-gradient(155deg, var(--c-primary), var(--c-primary-deep));
  color:#fff; border-radius: var(--radius-l); padding: 40px;
  box-shadow: var(--shadow-lift); position: relative; overflow:hidden;
}
.price-card .ribbon { position:absolute; top:22px; right:-44px; background: var(--c-yellow); color: var(--c-ink); font-weight:800; font-size:.78rem; letter-spacing:.08em; padding:7px 56px; transform: rotate(35deg); }
.price-card .amt { display:flex; align-items:baseline; gap:8px; margin: 8px 0 4px; }
.price-card .amt b { font-family: var(--font-display); font-size: clamp(3rem,6vw,4.4rem); line-height:1; }
.price-card .amt span { font-size:1.1rem; opacity:.9; font-weight:600; }
.price-card ul { list-style:none; padding:0; margin: 24px 0 28px; display:grid; gap:13px; }
.price-card li { display:flex; gap:11px; align-items:flex-start; font-size:1.02rem; }
.price-card li .tick { width:22px;height:22px;border-radius:50%;background:rgba(255,255,255,.22);display:grid;place-items:center;flex:none;font-size:12px; }
.price-card .btn-wa { background:#fff; color: var(--c-primary-deep); width:100%; justify-content:center; box-shadow:0 14px 30px -12px rgba(0,0,0,.4); }
.price-card .btn-wa:hover { background: var(--c-yellow); color: var(--c-ink); }
.price-note { color: var(--c-ink-soft); }
.price-note h3 { font-size: clamp(1.6rem,3vw,2.3rem); }
.sched { background:#fff; border-radius: var(--radius-m); padding: 24px; box-shadow: var(--shadow-soft); margin-top: 22px; }
.sched-row { display:flex; justify-content:space-between; align-items:center; padding:11px 0; border-bottom:1px solid var(--c-line); font-weight:600; }
.sched-row:last-child { border-bottom:none; }
.sched-row .on { color: var(--c-mint); }
.sched-row .off { color: var(--c-ink-soft); opacity:.7; }

/* ---------- Gallery ---------- */
.gallery { display:grid; grid-template-columns: repeat(4,1fr); gap:16px; }
.gallery .ph { aspect-ratio: 1/1; }
.gallery .ph.tall { grid-row: span 2; aspect-ratio: auto; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display:grid; gap: 14px; }
.faq details {
  background: var(--c-card); border-radius: var(--radius-m); padding: 4px 24px;
  box-shadow: var(--shadow-soft); border: 1px solid var(--c-line);
}
.faq summary {
  list-style:none; cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:16px;
  font-family: var(--font-display); font-weight:600; font-size:1.12rem; padding: 18px 0;
}
.faq summary::-webkit-details-marker { display:none; }
.faq summary .pm { width:30px;height:30px;border-radius:50%;background:var(--c-bg-2);display:grid;place-items:center;flex:none;transition:transform .25s; font-size:18px; color:var(--c-primary-deep); }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--c-primary); color:#fff; }
.faq details p { color: var(--c-ink-soft); padding: 0 0 20px; margin-top:-4px; }

/* ---------- Final CTA ---------- */
.final { text-align:center; }
.final-card {
  background: linear-gradient(150deg, var(--c-sky), var(--c-lav));
  border-radius: var(--radius-l); padding: clamp(40px,6vw,72px) 28px; color:#fff;
  box-shadow: var(--shadow-lift); position: relative; overflow:hidden;
}
.final-card h2 { font-size: clamp(2rem,4.4vw,3.3rem); color:#fff; }
.final-card p { font-size:1.15rem; margin-top:16px; opacity:.95; max-width: 46ch; margin-inline:auto; }
.final-card .btn-wa { margin-top: 30px; background:#fff; color: var(--c-primary-deep); font-size:1.12rem; padding: 17px 34px; }
.final-card .btn-wa:hover { background: var(--c-yellow); color: var(--c-ink); }
.final-card .wa-num { margin-top:18px; font-weight:700; opacity:.96; letter-spacing:.02em; }

/* ---------- Footer ---------- */
footer { background: var(--c-ink); color: rgba(255,255,255,.82); padding: 48px 0 30px; }
footer .wrap { display:flex; flex-wrap:wrap; gap: 26px; justify-content: space-between; align-items: flex-start; }
footer .brand { color:#fff; }
footer .f-col h4 { font-size:.82rem; letter-spacing:.14em; text-transform:uppercase; color:rgba(255,255,255,.55); margin-bottom:12px; font-family: var(--font-body); font-weight:700; }
footer .f-col p, footer .f-col a { display:block; margin-bottom:7px; font-size:.96rem; }
footer .f-col a:hover { color: var(--c-yellow); }
footer .fine { width:100%; border-top:1px solid rgba(255,255,255,.12); margin-top:14px; padding-top:20px; font-size:.84rem; color:rgba(255,255,255,.5); }

/* ---------- WA float ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  background: #25D366; color:#fff; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items:center; box-shadow: 0 14px 30px -8px rgba(37,211,102,.6);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }

/* ---------- Reveal anim ---------- */
.reveal { opacity:0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity:1; transform:none; }

/* ============================================================
   Responsive
   ============================================================ */
/* Tablet: hero stays 2 columns, badges shrink to fit narrower image column */
@media (max-width: 980px) {
  .hero .wrap { gap: clamp(20px, 3vw, 40px); }
  /* blobs as subtle corner accents — pushed off-edge, clear of text */
  .hero .blob-1 { width: 230px; height: 230px; top: -86px; right: -54px; }
  .hero .blob-2 { width: 190px; height: 190px; bottom: -78px; left: auto; right: -60px; }
  .hero .blob-3 { display: none; }
  .price-tag { padding: 10px 15px; bottom: 24px; left: -8px; }
  .price-tag b { font-size: 1.32rem; }
  .price-tag small { font-size: .66rem; }
  .float-card { padding: 9px 12px; max-width: 168px; top: 18px; right: -6px; gap: 9px; }
  .float-card .av { width: 32px; height: 32px; }
  .float-card p { font-size: .72rem; line-height: 1.3; }
  .meet .wrap { grid-template-columns: 1fr; }
  .meet-photo { max-width: 420px; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .price-wrap { grid-template-columns: 1fr; }
}
/* Stack hero only below tablet */
@media (max-width: 760px) {
  /* reorder: headline -> photo -> copy+CTA so the image anchors the hero */
  .hero .wrap { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "copy" "art" "detail"; }
  .hero-art { width: min(100%, 340px); margin: 14px auto 6px; }
  .hero-photo { aspect-ratio: 4 / 4.4; }
  .hero-sub { max-width: none; margin-top: 20px; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .qualities { grid-template-columns: 1fr; }
}
/* Compact floating badges on small tablet/phone */
@media (max-width: 768px) {
  .float-card .av { display: none; }
  .float-card { padding: 8px 12px; max-width: 154px; gap: 0; }
  .price-tag { padding: 8px 13px; }
  .price-tag b { font-size: 1.24rem; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: 2.05rem; }
  .topbar .brand small { display:none; }
  .brand { font-size: 1.12rem; }
  .topbar .btn span.lbl { display:none; }
  .topbar .btn { padding: 11px 14px; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2,1fr); }
  .price-card { padding: 30px 24px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .float-card { display:none; }
  .price-tag { left: 0; bottom: 14px; }
  .hero .blob-1 { width: 170px; height: 170px; top: -52px; right: -40px; }
  .hero .blob-2 { width: 150px; height: 150px; bottom: -52px; right: -44px; }
}
.loc-short { display: none; }
@media (max-width: 380px) {
  .hero h1 .hl { white-space: normal; }
}
@media (max-width: 360px) {
  .eyebrow .loc-full { display: none; }
  .eyebrow .loc-short { display: inline; }
}

/* ---------- Footer disclaimer ---------- */
footer .disclaimer { width: 100%; margin-top: 16px; font-size: .82rem; line-height: 1.65; color: rgba(255,255,255,.46); }
footer .disclaimer-tag { display: inline-block; font-weight: 700; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-yellow); background: rgba(255,201,77,.13); padding: 3px 10px; border-radius: 999px; margin-right: 9px; }
footer .disclaimer strong { color: rgba(255,255,255,.74); font-weight: 700; }
footer .disc-link { display: inline; color: var(--c-yellow); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; margin: 0; }
footer .disc-link:hover { color: #fff; }

/* ---------- Demo disclaimer modal ---------- */
body.modal-open { overflow: hidden; }
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; padding: 24px;
  overflow-y: auto; overscroll-behavior: contain;
  background: rgba(43,30,24,.55);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%);
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.modal-overlay[data-open="true"] { opacity: 1; visibility: visible; }
.modal {
  position: relative; margin: auto;
  width: 100%; max-width: 540px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  display: flex; flex-direction: column;
  background: var(--c-card);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-lift), 0 0 0 1px rgba(255,255,255,.55) inset;
  overflow: hidden;
  opacity: 0; transform: translateY(20px) scale(.96);
  transition: opacity .35s ease, transform .5s cubic-bezier(.16,1,.3,1);
}
.modal-overlay[data-open="true"] .modal { opacity: 1; transform: none; }
.modal::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; z-index: 2; background: linear-gradient(90deg, var(--c-primary), var(--c-yellow) 50%, var(--c-mint)); }
.modal-glow { position: absolute; border-radius: 50%; filter: blur(42px); pointer-events: none; z-index: 0; }
.modal-glow-1 { width: 200px; height: 200px; background: var(--c-yellow); opacity: .5; top: -72px; right: -54px; }
.modal-glow-2 { width: 180px; height: 180px; background: var(--c-mint); opacity: .38; bottom: -60px; left: -52px; }
.modal-close {
  position: absolute; top: 15px; right: 15px; z-index: 3;
  width: 38px; height: 38px; border: none; border-radius: 50%;
  background: #fff; color: var(--c-ink);
  box-shadow: 0 4px 14px -4px rgba(58,43,37,.3);
  display: grid; place-items: center; cursor: pointer;
  transition: background .2s ease, transform .25s ease;
}
.modal-close:hover { background: var(--c-bg-2); transform: rotate(90deg); }
.modal-close:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.modal-close svg { width: 18px; height: 18px; }
.modal-scroll { position: relative; z-index: 1; flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 42px 40px 30px; }
.modal-badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-body); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-primary-deep); background: var(--c-bg-2); padding: 7px 13px; border-radius: 999px; }
.modal-badge .i { width: 15px; height: 15px; }
.modal h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.72rem; line-height: 1.15; margin: 18px 0 12px; color: var(--c-ink); }
.modal h2 .hl { color: var(--c-primary); background: none; padding: 0; }
.modal-lead { color: var(--c-ink-soft); font-size: 1rem; line-height: 1.62; }
.modal-lead strong { color: var(--c-ink); font-weight: 700; }
.modal-points { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; gap: 11px; }
.modal-points li { display: flex; align-items: flex-start; gap: 11px; font-size: .95rem; font-weight: 500; color: var(--c-ink); }
.mp-ic { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--c-mint); color: #fff; display: grid; place-items: center; }
.mp-ic svg { width: 13px; height: 13px; }
.modal-cta-box { background: linear-gradient(135deg, var(--c-bg-2), var(--c-bg)); border: 1px solid var(--c-line); border-radius: var(--radius-m); padding: 20px; text-align: center; }
.modal-cta-box p { font-weight: 600; color: var(--c-ink); font-size: .98rem; margin-bottom: 14px; line-height: 1.5; }
.modal-cta { width: 100%; justify-content: center; }
.modal-dismiss { display: block; margin: 16px auto 0; padding: 8px 16px; border: none; border-radius: 10px; background: none; color: var(--c-ink-soft); font-family: var(--font-body); font-weight: 600; font-size: .92rem; cursor: pointer; transition: color .2s ease, background .2s ease; }
.modal-dismiss:hover { color: var(--c-ink); background: var(--c-bg-2); }
.modal-dismiss:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }

/* Mobile: fullscreen, no gaps */
@media (max-width: 600px) {
  .modal-overlay { padding: 0; }
  .modal { max-width: none; margin: 0; border-radius: 0; min-height: 100vh; min-height: 100dvh; max-height: 100vh; max-height: 100dvh; box-shadow: none; }
  .modal::after { height: 5px; }
  .modal-scroll { box-sizing: border-box; padding: 46px 22px 34px; }
  .modal h2 { font-size: 1.5rem; }
  .modal-close { top: 12px; right: 12px; }
}

/* Short viewports: trim spacing so the modal needs less scrolling */
@media (max-height: 560px) {
  .modal-scroll { padding-top: 30px; padding-bottom: 20px; }
  .modal h2 { font-size: 1.45rem; margin: 12px 0 10px; }
  .modal-lead { font-size: .95rem; }
  .modal-points { margin: 14px 0 16px; gap: 9px; }
  .modal-cta-box { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .modal-overlay, .modal, .modal-close { transition: opacity .2s ease, visibility .2s ease; }
  .modal { transform: none; }
  .modal-close:hover { transform: none; }
}
