/* =========================================================
   Sponge VPN — underwater theme
   ========================================================= */

:root {
  --ocean-top: #18b9dc;
  --ocean-mid: #0a9bc4;
  --ocean-deep: #0a5a8f;
  --ocean-abyss: #063970;

  --yellow: #ffd23f;
  --yellow-d: #e9af1c;
  --orange: #ff8c42;
  --orange-d: #e86f24;
  --coral: #ff6f61;
  --coral-d: #e8523f;
  --teal: #2ec4b6;
  --teal-d: #1ea596;

  --sand: #f6e3ad;
  --sand-d: #e7ca7c;

  --ink: #073047;
  --ink-soft: #2b5469;
  --white: #ffffff;
  --foam: #eaf8ff;

  --bubble-card: rgba(255, 255, 255, 0.92);

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;

  --shadow-soft: 0 18px 40px -18px rgba(4, 40, 70, 0.55);
  --shadow-card: 0 22px 50px -22px rgba(4, 40, 70, 0.6);

  --font-head: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ocean-mid);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.04;
  margin: 0;
  letter-spacing: -0.01em;
}

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

.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

/* =========================================================
   Underwater backdrop (fixed, behind everything)
   ========================================================= */
.sea {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(120% 80% at 50% -10%, #5fe0ff 0%, transparent 45%),
    linear-gradient(180deg, var(--ocean-top) 0%, var(--ocean-mid) 32%, var(--ocean-deep) 66%, var(--ocean-abyss) 100%);
}

/* god rays */
.rays { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.ray {
  position: absolute;
  top: -20%;
  width: 16vw;
  height: 150vh;
  background: linear-gradient(180deg, rgba(255,255,255,0.20), rgba(255,255,255,0));
  transform-origin: top center;
  filter: blur(6px);
  mix-blend-mode: screen;
  animation: sway-ray 11s ease-in-out infinite;
}
.ray:nth-child(1){ left: 8%;  transform: rotate(12deg); animation-delay: 0s; }
.ray:nth-child(2){ left: 34%; transform: rotate(7deg); width: 10vw; opacity: .8; animation-delay: -3s; }
.ray:nth-child(3){ left: 62%; transform: rotate(-9deg); width: 13vw; animation-delay: -6s; }
.ray:nth-child(4){ left: 84%; transform: rotate(-5deg); width: 9vw; opacity:.7; animation-delay: -1.5s; }
@keyframes sway-ray {
  0%,100% { transform: rotate(var(--rot, 9deg)) translateX(0); opacity:.7; }
  50%     { transform: rotate(calc(var(--rot, 9deg) + 3deg)) translateX(20px); opacity:.95; }
}

/* floating bubbles layer (JS-filled) */
.bubbles { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bubble {
  position: absolute;
  bottom: -60px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.95), rgba(255,255,255,0.18) 42%, rgba(255,255,255,0.05) 60%);
  border: 1px solid rgba(255,255,255,0.35);
  animation: rise linear infinite;
}
@keyframes rise {
  0%   { transform: translateY(0) translateX(0) scale(0.6); opacity: 0; }
  10%  { opacity: 0.9; }
  50%  { transform: translateY(-50vh) translateX(var(--drift, 20px)) scale(1); }
  90%  { opacity: 0.9; }
  100% { transform: translateY(-108vh) translateX(0) scale(1.05); opacity: 0; }
}

/* click burst bubbles — emitted from under buttons */
.click-bubble {
  position: fixed;
  z-index: 70;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.98), rgba(255,255,255,0.22) 44%, rgba(255,255,255,0.06) 62%);
  border: 1px solid rgba(255,255,255,0.5);
  animation-name: clickRise;
  animation-timing-function: cubic-bezier(.32,.6,.4,1);
  animation-fill-mode: forwards;
}
@keyframes clickRise {
  0%   { transform: translate(0, 6px) scale(0.3); opacity: 0; }
  18%  { opacity: 1; }
  100% { transform: translate(var(--bx, 0), var(--by, -80px)) scale(1); opacity: 0; }
}

/* =========================================================
   Buttons — chunky 3D cartoon
   ========================================================= */
.btn {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  padding: 15px 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 6px 0 var(--yellow-d), var(--shadow-soft);
  transition: transform .12s cubic-bezier(.3,1.4,.5,1), box-shadow .12s, filter .12s;
  position: relative;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); filter: saturate(1.06); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--yellow-d), var(--shadow-soft); }

.btn--coral { background: var(--coral); color: #fff; box-shadow: 0 6px 0 var(--coral-d), var(--shadow-soft); }
.btn--coral:active { box-shadow: 0 2px 0 var(--coral-d), var(--shadow-soft); }
.btn--teal { background: var(--teal); color: #fff; box-shadow: 0 6px 0 var(--teal-d), var(--shadow-soft); }
.btn--teal:active { box-shadow: 0 2px 0 var(--teal-d), var(--shadow-soft); }

.btn--ghost {
  background: rgba(255,255,255,0.18);
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(255,255,255,0.28); }
.btn--ghost:active { transform: translateY(2px); }

.btn--lg { font-size: 1.2rem; padding: 18px 38px; }

/* =========================================================
   Header / nav
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(10,90,143,0.55), rgba(10,90,143,0));
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 800; color: #fff; font-size: 1.35rem; white-space: nowrap; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 13px;
  background: linear-gradient(160deg, var(--yellow), var(--orange));
  box-shadow: 0 6px 0 var(--orange-d);
  display: grid; place-items: center;
  position: relative;
  flex: none;
}
.brand__mark::before { /* subtle sponge holes behind the face */
  content: "";
  position: absolute; inset: 6px;
  border-radius: 8px;
  background:
    radial-gradient(2px 2px at 26% 30%, rgba(232,111,36,.45) 60%, transparent 62%),
    radial-gradient(2px 2px at 74% 26%, rgba(232,111,36,.4) 60%, transparent 62%),
    radial-gradient(2px 2px at 22% 74%, rgba(232,111,36,.4) 60%, transparent 62%),
    radial-gradient(2px 2px at 78% 72%, rgba(232,111,36,.4) 60%, transparent 62%);
  opacity: .7;
}
.brand__mark span { position: relative; display: grid; place-items: center; width: 100%; height: 100%; line-height: 0; }
.brand__mark .brand-face { width: 78%; height: 78%; display: block; }

.nav__links { display: flex; gap: 6px; margin-left: 8px; }
.nav__links a {
  font-family: var(--font-head); letter-spacing: -0.01em;
  color: #eaf8ff; font-weight: 700; font-size: 1.02rem;
  padding: 8px 14px; border-radius: 999px; transition: background .15s;
}
.nav__links a:hover { background: rgba(255,255,255,0.16); }
.nav__spacer { flex: 1; }

/* language select */
.lang {
  position: relative;
}
.lang__btn {
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
  background: rgba(255,255,255,0.16);
  color: #fff; font-family: var(--font-body); font-weight: 700;
  border: none; cursor: pointer;
  padding: 9px 13px; border-radius: 999px; font-size: .95rem;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.35);
}
.lang__btn:hover { background: rgba(255,255,255,0.26); }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff; border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: 7px; min-width: 168px;
  display: none; flex-direction: column; gap: 2px;
  z-index: 60;
}
.lang__menu.open { display: flex; }
.lang__menu button {
  text-align: left; border: none; background: transparent; cursor: pointer;
  padding: 10px 13px; border-radius: 12px; font-family: var(--font-body);
  font-weight: 700; color: var(--ink); font-size: .98rem;
  display: flex; align-items: center; gap: 10px;
}
.lang__menu button:hover { background: var(--foam); }
.lang__menu button.active { background: var(--ocean-mid); color: #fff; }
.lang__flag { font-size: 1.1rem; }

/* hamburger toggle (mobile only) */
.nav__toggle {
  display: none;
  width: 44px; height: 44px; flex: none;
  border: none; cursor: pointer;
  background: rgba(255,255,255,0.16);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.35);
  border-radius: 13px;
  padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav__toggle span {
  display: block; width: 20px; height: 2.5px; border-radius: 99px; background: #fff;
  transition: transform .25s, opacity .2s;
}
.nav.open .nav__toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav__toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* mobile-only CTA inside the menu */
.nav__menu-cta { display: none; }

/* mobile nav */
@media (max-width: 1140px) {
  .nav__links {
    position: absolute; top: calc(100% + 8px); left: 12px; right: 12px;
    flex-direction: column; gap: 4px; align-items: stretch;
    background: rgba(7,48,71,0.95);
    backdrop-filter: blur(14px);
    padding: 12px; border-radius: 22px;
    box-shadow: var(--shadow-card);
    border: 1.5px solid rgba(255,255,255,0.18);
    opacity: 0; transform: translateY(-10px); pointer-events: none;
    transition: opacity .2s, transform .2s;
    display: flex;
  }
  .nav.open .nav__links { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav__links a { padding: 13px 16px; font-size: 1.08rem; border-radius: 13px; }
  .nav__menu-cta { display: flex; justify-content: center; margin-top: 6px; }
  .nav__join { display: none; }
  .nav__toggle { display: flex; }
  .lang__cur-name { display: none; }
  .lang__btn { padding: 9px 12px; }
  .nav__inner { gap: 10px; }
}

/* ---- mobile refinements: see end of file (must come after base rules) ---- */

/* =========================================================
   Hero variant switcher (exploration tool)
   ========================================================= */
.variant-bar {
  position: sticky; top: 70px; z-index: 30;
  display: flex; justify-content: center; pointer-events: none;
  margin-top: 14px;
}
.variant-bar__inner {
  pointer-events: auto;
  display: flex; align-items: center; gap: 6px; flex-wrap: nowrap;
  max-width: calc(100vw - 24px);
  background: rgba(7,48,71,0.55);
  backdrop-filter: blur(8px);
  padding: 6px; border-radius: 999px;
  box-shadow: var(--shadow-soft);
  border: 1.5px solid rgba(255,255,255,0.22);
}
.variant-bar__label { color: #cdeeff; font-weight: 800; font-size: .8rem; padding: 0 8px 0 12px; font-family: var(--font-head); letter-spacing: .02em; }
.variant-bar button {
  border: none; cursor: pointer; font-family: var(--font-head); font-weight: 700;
  background: transparent; color: #dff4ff; font-size: .9rem;
  padding: 8px 15px; border-radius: 999px; transition: all .15s;
  white-space: nowrap;
}
.variant-bar button:hover { background: rgba(255,255,255,0.14); }
.variant-bar button.active { background: var(--yellow); color: var(--ink); box-shadow: 0 4px 0 var(--yellow-d); }

/* =========================================================
   Hero shared
   ========================================================= */
.hero { position: relative; padding: 26px 0 70px; }
.hero-variant { display: none; }
.hero-variant.active { display: block; animation: fadein .4s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(10px);} to { opacity:1; transform:none; } }

.badge {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: rgba(255,255,255,0.2);
  color: #fff; font-weight: 800; font-size: .9rem;
  padding: 8px 15px; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.35);
  font-family: var(--font-head);
  backdrop-filter: blur(7px);
}
.badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(46,196,182,0.35); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{ box-shadow:0 0 0 4px rgba(46,196,182,.35);} 50%{ box-shadow:0 0 0 8px rgba(46,196,182,0);} }

.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  text-shadow: 0 4px 0 rgba(7,48,71,0.18), 0 14px 30px rgba(4,40,70,0.35);
  margin-top: 18px;
}
.hero .lead {
  color: var(--foam);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  font-weight: 600;
  max-width: 540px;
  margin-top: 18px;
  text-shadow: 0 2px 12px rgba(4,40,70,0.5), 0 1px 0 rgba(4,40,70,0.3);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; align-items: center; }
.hero__note { color: #cdeeff; font-weight: 700; font-size: .92rem; margin-top: 16px; display: flex; align-items: center; gap: 7px; }

/* Variant A — centered */
.heroA { text-align: center; padding-top: 30px; }
.heroA.active { display: flex; flex-direction: column; align-items: center; }
.heroA .lead { margin-inline: auto; }
.heroA .hero__cta { justify-content: center; }
.heroA .hero__note { justify-content: center; }

/* Variant B — split */
.heroB__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
@media (max-width: 900px){ .heroB__grid { grid-template-columns: 1fr; } }

/* Variant C — mascot */
.heroC__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; align-items: center; }
@media (max-width: 900px){ .heroC__grid { grid-template-columns: 1fr; text-align:center; } .heroC .hero__cta,.heroC .hero__note{ justify-content:center;} .heroC .lead{ margin-inline:auto;} }

/* =========================================================
   Connect orb (ON/OFF)
   ========================================================= */
.orb-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.orb {
  --size: 250px;
  width: var(--size); height: var(--size);
  border-radius: 50%;
  border: none; cursor: pointer;
  position: relative;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,0.28), rgba(255,255,255,0) 55%);
  box-shadow: 0 24px 50px -16px rgba(4,40,70,0.6);
  transition: transform .2s, box-shadow .5s;
  font-family: var(--font-head);
}
.orb:hover { transform: scale(1.03); }
.orb:active { transform: scale(0.97); }
/* lifebuoy ring — red/white segments, thick band reaching the button, rotates */
.orb__ring {
  position: absolute; inset: 4px; border-radius: 50%;
  background: repeating-conic-gradient(#e8523f 0 45deg, #ffffff 45deg 90deg);
  -webkit-mask: radial-gradient(circle, transparent 0 48%, #000 50% 100%);
  mask: radial-gradient(circle, transparent 0 48%, #000 50% 100%);
  filter: drop-shadow(0 2px 5px rgba(4,40,70,0.3));
  animation: spin 14s linear infinite;
}
/* inner rim outline for a chunky cartoon buoy look */
.orb__ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(180,55,35,0.35);
  -webkit-mask: radial-gradient(circle, transparent 0 48%, #000 50% 100%);
  mask: radial-gradient(circle, transparent 0 48%, #000 50% 100%);
}
.orb__core {
  width: 70%; height: 70%; border-radius: 50%;
  background: rgba(255,255,255,0.96);
  display: grid; place-items: center; text-align: center;
  box-shadow: inset 0 6px 16px rgba(0,0,0,0.08);
  padding: 10px;
}
.orb__power {
  font-size: 2.4rem; line-height: 1;
  color: var(--coral); transition: color .4s; margin-bottom: 4px;
}
.orb__label { font-family: var(--font-head); font-weight: 800; font-size: 1rem; line-height: 1.12; color: var(--ink); }
.orb__sub { font-size: .82rem; font-weight: 700; color: var(--ink-soft); margin-top: 3px; white-space: nowrap; }

@keyframes spin { to { transform: rotate(360deg); } }

/* connected state */
.orb.is-on {
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,0.32), rgba(255,255,255,0) 55%);
  box-shadow: 0 24px 60px -14px rgba(46,196,182,0.7), 0 0 0 0 rgba(46,196,182,0.5);
  animation: orb-glow 2.4s ease-in-out infinite;
}
.orb.is-on .orb__power { color: var(--teal-d); }
.orb.is-connecting .orb__ring { animation: spin 1.1s linear infinite; }
@keyframes orb-glow {
  0%,100% { box-shadow: 0 24px 60px -14px rgba(46,196,182,0.7), 0 0 0 0 rgba(46,196,182,0.45); }
  50%     { box-shadow: 0 24px 60px -14px rgba(46,196,182,0.7), 0 0 0 16px rgba(46,196,182,0); }
}

/* status chips under orb */
.orb-stats { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.chip {
  background: rgba(255,255,255,0.92);
  border-radius: 14px; padding: 9px 14px;
  display: flex; flex-direction: column; gap: 1px; min-width: 96px;
  box-shadow: var(--shadow-soft);
}
.chip__k { font-size: .72rem; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.chip__v { font-size: .98rem; font-weight: 800; color: var(--ink); font-family: var(--font-head); }

/* =========================================================
   App porthole mockup (variant B)
   ========================================================= */
.porthole {
  position: relative;
  width: min(330px, 90%);
  margin-inline: auto;
  aspect-ratio: 9 / 17.5;
  border-radius: 42px;
  background: linear-gradient(180deg, #0b6fa0, #0a4f7d);
  padding: 14px;
  box-shadow: 0 30px 60px -20px rgba(4,40,70,0.7), inset 0 0 0 6px rgba(255,255,255,0.16);
}
.porthole::before { /* notch */
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 7px; border-radius: 99px; background: rgba(255,255,255,0.35); z-index: 3;
}
.screen {
  height: 100%; border-radius: 30px; overflow: hidden;
  background: linear-gradient(180deg, #eaf8ff, #d6f0fb);
  display: flex; flex-direction: column;
  padding: 26px 16px 16px;
}
.screen__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.screen__brand { font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 1rem; display: flex; align-items: center; gap: 7px; }
.screen .miniorb {
  --size: 120px; margin: 6px auto 14px; cursor: default;
}
.screen .orb__core { width: 66%; height: 66%; }
.screen .orb__power { font-size: 1.5rem; }
.screen .orb__label { font-size: .8rem; }
.screen .orb__sub { font-size: .62rem; }
.screen__list { background:#fff; border-radius: 16px; padding: 6px; box-shadow: var(--shadow-soft); margin-top: auto; }
.srv { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 11px; }
.srv:hover { background: var(--foam); }
.srv__flag { font-size: 1.2rem; }
.srv__name { font-weight: 800; color: var(--ink); font-size: .82rem; flex: 1; }
.srv__ping { font-size: .68rem; font-weight: 800; color: var(--teal-d); }
.srv__bar { width: 26px; height: 6px; border-radius: 99px; background: #d6eef6; overflow: hidden; }
.srv__bar i { display:block; height:100%; background: var(--teal); border-radius:99px; }
.screen__h { font-family: var(--font-head); font-weight:800; font-size:.74rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing:.05em; margin: 0 4px 6px; }

/* =========================================================
   Mascot (variant C) — original friendly bubble
   ========================================================= */
.mascot-stage { display: grid; place-items: center; position: relative; }
.mascot {
  width: min(330px, 80%);
  aspect-ratio: 1;
  position: relative;
  animation: bob 4.5s ease-in-out infinite;
}
@keyframes bob { 0%,100%{ transform: translateY(0) rotate(-1deg);} 50%{ transform: translateY(-14px) rotate(1deg);} }
.mascot__body {
  position: absolute; inset: 8%;
  border-radius: 38% 38% 42% 42% / 44% 44% 40% 40%;
  background: linear-gradient(165deg, var(--yellow), var(--orange));
  box-shadow: 0 22px 50px -16px rgba(4,40,70,0.6), inset 0 -14px 30px rgba(232,111,36,0.35);
}
.mascot__body::after { /* sponge holes */
  content:""; position:absolute; inset: 12%;
  border-radius: inherit;
  background:
    radial-gradient(9px 9px at 24% 30%, rgba(232,111,36,.45) 60%, transparent 62%),
    radial-gradient(7px 7px at 70% 24%, rgba(232,111,36,.4) 60%, transparent 62%),
    radial-gradient(11px 11px at 58% 60%, rgba(232,111,36,.4) 60%, transparent 62%),
    radial-gradient(6px 6px at 30% 66%, rgba(232,111,36,.4) 60%, transparent 62%),
    radial-gradient(8px 8px at 80% 64%, rgba(232,111,36,.4) 60%, transparent 62%);
}
.mascot__face { position:absolute; inset:0; }
.eye {
  position: absolute; width: 23%; height: 23%; border-radius: 50%;
  background: #fff; box-shadow: inset 0 -3px 8px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.12);
  top: 30%;
}
.eye.l { left: 24%; } .eye.r { right: 24%; }
.eye::after { content:""; position:absolute; width: 42%; height: 42%; border-radius:50%; background: var(--ink); top: 30%; left: 30%; animation: look 6s ease-in-out infinite; }
@keyframes look { 0%,100%{ transform: translate(0,0);} 25%{ transform: translate(6px,2px);} 60%{ transform: translate(-5px,3px);} }
.smile {
  position:absolute; left: 32%; right: 32%; top: 62%; height: 18%;
  border: 5px solid var(--ink); border-top: none;
  border-radius: 0 0 99px 99px;
}
.cheek { position:absolute; width:12%; height:8%; border-radius:50%; background: rgba(255,111,97,.5); top: 58%; }
.cheek.l { left: 18%; } .cheek.r { right: 18%; }
/* mascot shield badge */
.mascot__badge {
  position: absolute; right: -4%; bottom: 2%;
  width: 34%; aspect-ratio: 1;
  background: var(--teal);
  border-radius: 46% 46% 50% 50% / 40% 40% 60% 60%;
  display: grid; place-items: center;
  color: #fff; font-size: 2rem;
  box-shadow: 0 14px 26px -8px rgba(4,40,70,0.5), inset 0 -6px 14px rgba(0,0,0,0.18);
  border: 4px solid #fff;
  animation: bob 4s ease-in-out infinite reverse;
}

/* =========================================================
   Section frames
   ========================================================= */
.section { position: relative; padding: 64px 0; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section__head h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); text-shadow: 0 3px 0 rgba(7,48,71,0.16); }
.section__head p { color: var(--foam); font-size: 1.1rem; font-weight: 600; margin-top: 12px; }

.eyebrow {
  display:inline-block; font-family: var(--font-head); font-weight: 800;
  color: var(--yellow); letter-spacing: .12em; text-transform: uppercase;
  font-size: .85rem; margin-bottom: 8px;
}

/* features grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px){ .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--bubble-card);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform .18s, box-shadow .18s;
  overflow: hidden;
}
.feature::before {
  content:""; position:absolute; top:-30px; right:-30px; width: 90px; height: 90px; border-radius:50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.9), rgba(255,255,255,0) 60%);
  opacity:.6;
}
.feature:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -20px rgba(4,40,70,0.65); }
.feature__icon {
  width: 58px; height: 58px; border-radius: 18px;
  display: grid; place-items: center; font-size: 1.7rem;
  margin-bottom: 16px;
  box-shadow: 0 8px 0 var(--ic-shadow, var(--teal-d));
  background: var(--ic, var(--teal));
}
.feature h3 { color: var(--ink); font-size: 1.3rem; }
.feature p { color: var(--ink-soft); margin-top: 8px; font-weight: 600; }

/* =========================================================
   Pricing
   ========================================================= */
.toggle {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 0 auto 40px;
}
.toggle__label { color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; opacity: .65; transition: opacity .2s; white-space: nowrap; }
.toggle__label.active { opacity: 1; }
.toggle__sw {
  width: 64px; height: 34px; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(255,255,255,0.3); position: relative; flex: none;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.4);
  transition: background .25s;
}
.toggle__sw.year { background: var(--yellow); }
.toggle__sw i {
  position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  transition: transform .25s cubic-bezier(.3,1.5,.5,1);
}
.toggle__sw.year i { transform: translateX(30px); }
.toggle__save {
  background: var(--coral); color: #fff; font-family: var(--font-head); font-weight: 800;
  font-size: .8rem; padding: 5px 11px; border-radius: 999px;
  box-shadow: 0 4px 0 var(--coral-d);
}

/* Grid auto-fits cards. With 3 plans we get 3 columns (1fr each); with
 * 4 plans the same row tightens to 4 narrower columns instead of
 * wrapping the 4th into its own row. Below 1100 px we fall back to 2
 * columns; mobile gets a single-column stack as before. */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
@media (max-width: 1100px){ .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; max-width: 440px; margin-inline:auto; } }
.plan {
  background: var(--bubble-card);
  border-radius: var(--r-lg);
  /* Slightly tighter padding so 4-up still breathes — 3-up barely
   * notices the diff at typical widths. */
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .18s;
  min-width: 0;
}
.plan:hover { transform: translateY(-5px); }
.plan--pop {
  background: linear-gradient(180deg, #073047, #0a4f7d);
  color: #fff;
  transform: scale(1.03);
  box-shadow: 0 34px 64px -20px rgba(4,40,70,0.75);
}
.plan--pop:hover { transform: scale(1.03) translateY(-5px); }
.plan__tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--yellow); color: var(--ink); font-family: var(--font-head); font-weight: 800;
  padding: 6px 16px; border-radius: 999px; font-size: .85rem;
  box-shadow: 0 5px 0 var(--yellow-d);
  white-space: nowrap;
}
.plan__name { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: inherit; }
.plan--pop .plan__name { color: #fff; }
.plan:not(.plan--pop) .plan__name { color: var(--ink); }
.plan__desc { font-weight: 600; margin-top: 4px; opacity: .8; }
.plan__price { display: flex; align-items: baseline; gap: 4px; margin: 20px 0 4px; }
.plan__cur { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; }
.plan__amt { font-family: var(--font-head); font-weight: 800; font-size: 3rem; line-height: 1; }
.plan__per { font-weight: 700; opacity: .7; }
.plan__billed { font-size: .82rem; font-weight: 700; opacity: .65; min-height: 18px; }
.plan__feats { list-style: none; padding: 0; margin: 20px 0 24px; display: flex; flex-direction: column; gap: 11px; }
.plan__feats li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .98rem; }
.plan__feats .tick {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: var(--teal); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 900;
}
.plan--pop .plan__feats .tick { background: var(--yellow); color: var(--ink); }
.plan .btn { width: 100%; justify-content: center; margin-top: auto; }

/* =========================================================
   Reviews
   ========================================================= */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px){ .reviews { grid-template-columns: 1fr; max-width: 520px; margin-inline:auto; } }
.review {
  background: var(--bubble-card);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 16px;
}
.review__stars { color: var(--yellow); font-size: 1.2rem; letter-spacing: 2px; filter: drop-shadow(0 2px 0 var(--yellow-d)); }
.review__q { color: var(--ink); font-weight: 700; font-size: 1.08rem; line-height: 1.5; }
.review__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review__av {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; color: #fff; font-size: 1.1rem;
  box-shadow: var(--shadow-soft);
}
.review__name { font-family: var(--font-head); font-weight: 800; color: var(--ink); }
.review__role { font-weight: 700; color: var(--ink-soft); font-size: .85rem; }

/* =========================================================
   CTA band
   ========================================================= */
.cta {
  position: relative;
  text-align: center;
  background: linear-gradient(160deg, var(--coral), var(--orange));
  border-radius: 36px;
  padding: 60px 30px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.cta::before, .cta::after {
  content:""; position:absolute; border-radius:50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.55), rgba(255,255,255,0) 65%);
}
.cta::before { width: 200px; height: 200px; top: -60px; left: -40px; }
.cta::after { width: 260px; height: 260px; bottom: -90px; right: -60px; opacity:.7; }
.cta h2 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); position: relative; text-shadow: 0 3px 0 rgba(180,60,30,0.35); }
.cta p { color: #fff; font-weight: 700; font-size: 1.15rem; margin-top: 12px; position: relative; opacity: .95; }
.cta .btn { margin-top: 28px; position: relative; }

/* =========================================================
   Footer with sand
   ========================================================= */
.seafloor { position: relative; margin-top: 40px; }
.sand-edge { display: block; width: 100%; height: 70px; }
.footer {
  background: linear-gradient(180deg, var(--sand), var(--sand-d));
  color: #6b4f1f;
  padding: 20px 0 40px;
}
.footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px;
  padding-top: 10px;
}
@media (max-width: 760px){ .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer__brand { display:flex; align-items:center; gap: 11px; font-family: var(--font-head); font-weight: 800; color: #5a3f16; font-size: 1.3rem; }
.footer__tag { margin-top: 12px; font-weight: 700; color: #7a5d2a; max-width: 280px; }
.footer h4 { font-family: var(--font-head); color: #5a3f16; font-size: 1.05rem; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer a { font-weight: 700; color: #7a5d2a; }
.footer a:hover { color: var(--coral-d); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  margin-top: 34px; padding-top: 18px; border-top: 2px dashed rgba(122,93,42,0.35);
  font-weight: 700; color: #7a5d2a;
}
.footer__socials { display: flex; gap: 8px; }
.footer__socials a {
  width: 38px; height: 38px; border-radius: 12px; background: rgba(122,93,42,0.14);
  display: grid; place-items: center; font-size: 1.1rem;
  transition: transform .15s, background .15s;
}
.footer__socials a:hover { transform: translateY(-3px) rotate(-4deg); background: rgba(122,93,42,0.22); }

/* swaying seaweed/coral decorations anchored on sand */
.flora { position: absolute; bottom: 100%; pointer-events: none; transform-origin: bottom center; }
.flora.sway { animation: sway 5s ease-in-out infinite; }
@keyframes sway { 0%,100%{ transform: rotate(-4deg);} 50%{ transform: rotate(4deg);} }

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
}

/* =========================================================
   Mobile refinements — placed last so they override base rules
   ========================================================= */
@media (max-width: 560px) {
  .wrap { width: min(100% - 32px, var(--maxw)); }
  .hero { padding: 18px 0 50px; }
  .section { padding: 48px 0; }
  .section__head { margin-bottom: 32px; }
  .orb { --size: 208px; }
  .orb__power { font-size: 2rem; }
  .hero__cta { gap: 10px; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  .btn--lg { font-size: 1.08rem; padding: 15px 26px; }
  .orb-stats { gap: 8px; }
  .chip { min-width: 0; flex: 1 1 28%; padding: 8px 10px; }
  /* footer: brand on its own row, links in two columns */
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cta { padding: 44px 22px; }
  .plan--pop { transform: none; }
  .plan--pop:hover { transform: translateY(-5px); }
}

/* =========================================================
   "How it works" glass modal
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute; inset: 0; cursor: pointer;
  background: rgba(7,48,71,0.40);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  animation: modalFade .25s ease;
}
.modal__card {
  position: relative; z-index: 1; width: min(94%, 470px);
  background: rgba(255,255,255,0.14);
  -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2);
  border: 1.5px solid rgba(255,255,255,0.40);
  border-radius: var(--r-lg);
  padding: 40px 34px 34px; text-align: center;
  box-shadow: 0 30px 70px -20px rgba(4,40,70,0.7);
  color: #fff; animation: modalPop .3s cubic-bezier(.3,1.3,.5,1);
}
.modal__icon {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px;
  display: grid; place-items: center; font-size: 2rem;
  background: rgba(255,255,255,0.2); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.35);
}
.modal__card h3 { color: #fff; font-size: clamp(1.5rem, 4vw, 2rem); text-shadow: 0 2px 0 rgba(7,48,71,0.2); }
.modal__card p { color: var(--foam); font-weight: 600; font-size: 1.08rem; line-height: 1.6; margin: 14px auto 26px; max-width: 380px; }
.modal__card .btn { width: 100%; justify-content: center; }
.modal__x {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; flex: none;
  border: none; cursor: pointer; border-radius: 50%;
  background: rgba(255,255,255,0.22); color: #fff; font-size: 1rem; font-weight: 700;
  display: grid; place-items: center; transition: background .15s, transform .15s;
}
.modal__x:hover { background: rgba(255,255,255,0.34); transform: rotate(90deg); }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { transform: scale(.9) translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
