/* ==========================================================================
   MyBerniaga — landing page (index.html, ms/index.html).

   From the 2026-10 design handoff: tokens, type and spacing are final.
   `styles.css` stays for the legal pages (privacy, terms, delete-account),
   which keep their own older look; nothing here is loaded by them.

   Motion: everything animated respects prefers-reduced-motion. The reveal
   classes are inert until script.js adds `.js` to <html>, so the page reads
   in full without JavaScript.
   ========================================================================== */

:root {
  --ink: #0B132B;
  --ink-2: #475569;
  --ink-3: #64748B;
  --bg: #F4F7FC;
  --surface: #FFFFFF;
  --surface-2: #F8FAFD;
  --line: #DCE3ED;
  --line-2: #EBEFF6;
  --teal: #0F766E;
  --teal-dark: #115E59;
  --teal-tint: #E6F2F1;
  --mint: #00D4AA;
  --navy: #0B132B;
  --navy-line: #2E3C60;
  --navy-muted: #A9B4CC;
  --navy-muted-2: #C9D2E3;
  --blue: #0A5DC2;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

.mb-icon {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { letter-spacing: -.025em; text-wrap: balance; }
p { text-wrap: pretty; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 100px; font-weight: 700;
}
.skip:focus { top: 12px; color: #fff; }

/* Wordmark */
.wm { display: inline-flex; align-items: flex-end; font-weight: 800; font-size: 24px; letter-spacing: -.035em; line-height: 1; color: var(--ink); }
.wm:hover { color: var(--ink); }
.wm .my { color: var(--blue); }
.wm .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); margin: 0 0 3px 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 24px; border-radius: 100px;
  font-weight: 700; font-size: 16px; white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease),
              transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn .mb-icon { font-size: 20px; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn:hover .mb-icon:last-child { transform: translateX(3px); }
.btn-main { background: var(--teal); color: #fff; box-shadow: 0 10px 24px -12px rgba(15, 118, 110, .6); }
.btn-main:hover { background: var(--teal-dark); color: #fff; box-shadow: 0 14px 28px -12px rgba(15, 118, 110, .7); }
.btn-mint { background: var(--mint); color: var(--ink); }
.btn-mint:hover { background: #2EE0BC; color: var(--ink); box-shadow: 0 14px 28px -14px rgba(0, 212, 170, .7); }
.btn-line { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }

.eb { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244, 247, 252, .88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-2);
  transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
.nav.scrolled { box-shadow: 0 10px 30px -18px rgba(11, 19, 43, .25); background: rgba(244, 247, 252, .94); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.nav nav.links { display: flex; gap: 24px; margin-left: auto; }
.nav nav.links a { position: relative; color: var(--ink-2); font-weight: 600; font-size: 15px; padding: 4px 0; }
.nav nav.links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px;
  background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav nav.links a:hover { color: var(--ink); }
.nav nav.links a:hover::after { transform: scaleX(1); }
.nav .lang { display: inline-flex; gap: 2px; padding: 3px; border-radius: 100px; background: var(--surface); border: 1px solid var(--line); margin-left: auto; }
.nav nav.links + .lang { margin-left: 0; }
.nav .lang a { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: 100px; font-size: 13px; font-weight: 700; color: var(--ink-3); transition: background .18s, color .18s; }
.nav .lang a:hover { color: var(--ink); }
.nav .lang a[aria-current] { background: var(--navy); color: #fff; }
.nav .btn { flex: none; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding: 64px 0 72px; position: relative; }
.hero::before {
  content: ''; position: absolute; inset: -120px -10% auto; height: 520px; pointer-events: none; z-index: -1;
  background: radial-gradient(50% 60% at 20% 20%, rgba(0, 212, 170, .16) 0, rgba(0, 212, 170, 0) 70%),
              radial-gradient(40% 55% at 85% 10%, rgba(10, 93, 194, .12) 0, rgba(10, 93, 194, 0) 70%);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.promo {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.promo b { background: var(--navy); color: var(--mint); border-radius: 100px; padding: 4px 10px; font-size: 12px; letter-spacing: .06em; white-space: nowrap; }
.hero h1 { font-size: clamp(40px, 5.4vw, 66px); font-weight: 800; line-height: 1.02; margin: 22px 0 18px; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero .lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 560px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.where {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px;
  margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 560px;
}
.where span { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ink-2); text-align: center; line-height: 1.2; }
.where .mb-icon {
  width: 44px; height: 44px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--teal);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.where span:hover .mb-icon { transform: translateY(-3px); box-shadow: 0 12px 20px -14px rgba(11, 19, 43, .4); background: var(--teal-tint); }
.hero-art {
  position: relative; border-radius: 32px; overflow: hidden;
  background: radial-gradient(80% 70% at 55% 35%, #fff 0, #E4EAF3 100%);
  aspect-ratio: 1.1; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.hero-art::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, 0) 60%);
  transform: translateX(-120%);
}
.hero-art img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
section { padding: 88px 0; scroll-margin-top: 72px; }
.head { max-width: 720px; margin-bottom: 44px; }
.head h2 { font-size: clamp(32px, 4vw, 46px); font-weight: 800; line-height: 1.05; margin: 10px 0 14px; }
.head p { font-size: 18px; line-height: 1.55; color: var(--ink-2); }

/* Pricing */
#pricing { background: var(--surface); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative; border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 18px;
  border: 1px solid var(--line); background: var(--surface-2);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.plan:hover { transform: translateY(-3px); box-shadow: 0 30px 50px -30px rgba(11, 19, 43, .25); }
.plan .t { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan .n { font-size: 14px; font-weight: 800; letter-spacing: .14em; }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 100px; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.tag-free { background: var(--teal-tint); color: var(--teal-dark); }
.tag-promo { background: var(--mint); color: var(--ink); }
.pr { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pr b { font-size: 64px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.pr b small { font-size: 26px; letter-spacing: 0; margin-right: 4px; }
.pr span { font-size: 16px; color: var(--ink-3); }
.plan .s { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.plan.pro { background: var(--navy); color: #fff; border-color: var(--navy); overflow: hidden; }
.plan.pro::before {
  content: ''; position: absolute; width: 360px; height: 360px; right: -140px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 170, .22) 0, rgba(0, 212, 170, 0) 70%); pointer-events: none;
}
.plan.pro:hover { box-shadow: 0 30px 60px -30px rgba(0, 212, 170, .45); }
.plan.pro .s, .plan.pro .pr span { color: var(--navy-muted); }
.was { font-size: 22px; font-weight: 600; color: var(--navy-muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.save { display: inline-flex; align-items: center; gap: 6px; color: var(--mint); font-weight: 700; font-size: 14px; }
.inc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; padding-top: 20px; border-top: 1px solid var(--navy-line); }
.inc li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.35; color: #E6EBF5; }
.inc li .mb-icon { font-size: 20px; color: var(--mint); flex: none; }
.inc li small { display: block; font-size: 13px; color: var(--navy-muted); margin-top: 2px; }
.fl { display: flex; flex-direction: column; gap: 12px; }
.fl li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); line-height: 1.4; }
.fl .mb-icon { font-size: 20px; color: var(--teal); flex: none; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.gp {
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 18px; border-radius: 12px;
  background: #000; color: #fff; margin-top: auto; align-self: flex-start; transition: background .18s, transform .18s var(--ease);
}
.gp:hover { color: #fff; background: #1c1c1c; transform: translateY(-1px); }
.gp svg { width: 24px; height: 26px; }
.gp i { display: block; font-style: normal; font-size: 11px; letter-spacing: .04em; opacity: .8; }
.gp b { display: block; font-size: 19px; font-weight: 600; line-height: 1.05; }

/* Features */
.group { display: flex; align-items: center; gap: 14px; margin: 72px 0 28px; }
.group:first-of-type { margin-top: 0; }
.group span { font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--ink-3); white-space: nowrap; }
.group hr { flex: 1; border: 0; height: 1px; background: var(--line); margin: 0; }
.feat { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; margin-bottom: 64px; }
.feat.flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.feat.flip .txt { order: 2; }
.txt .ic { width: 52px; height: 52px; border-radius: 16px; background: var(--teal-tint); display: flex; align-items: center; justify-content: center; color: var(--teal); }
.txt .ic .mb-icon { font-size: 28px; }
.txt h3 { font-size: clamp(26px, 2.8vw, 34px); font-weight: 800; line-height: 1.1; margin: 18px 0 12px; }
.txt p { font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.txt ul { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
.txt li { display: flex; gap: 10px; font-size: 15px; color: var(--ink); line-height: 1.4; }
.txt li .mb-icon { font-size: 20px; color: var(--teal); flex: none; }
.shot { display: flex; justify-content: center; }
.shot > * { transition: transform .5s var(--ease); }
.shot:hover > * { transform: translateY(-4px); }
.tab { width: 100%; border-radius: 30px; background: #111214; padding: 14px; box-shadow: 0 30px 60px -20px rgba(11, 19, 43, .35), 0 0 0 1px #2b2d31; }
.tab img { display: block; width: 100%; border-radius: 18px; }
.tab.port { max-width: 340px; padding: 12px; border-radius: 30px; }
.tab.port img { border-radius: 20px; }
.phone { max-width: 300px; width: 100%; filter: drop-shadow(0 30px 40px rgba(11, 19, 43, .25)); }
.phone img { display: block; width: 100%; }
.win { width: 100%; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px -24px rgba(11, 19, 43, .3); }
.win .bar { height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--line-2); }
.win .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.win .bar span { margin-left: 8px; flex: 1; max-width: 280px; height: 24px; border-radius: 100px; background: var(--surface); border: 1px solid var(--line-2); font-size: 12px; color: var(--ink-3); display: flex; align-items: center; padding: 0 12px; }
.win img { display: block; width: 100%; }
.dlv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dl {
  border-radius: 28px; padding: 32px; background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.dl:hover { transform: translateY(-3px); box-shadow: 0 30px 50px -30px rgba(11, 19, 43, .25); }
.dl .lg { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.dl.grab .lg { color: #00B14F; }
.dl.panda .lg { color: #D70F64; }
.dl.grab:hover { border-color: rgba(0, 177, 79, .5); }
.dl.panda:hover { border-color: rgba(215, 15, 100, .5); }
.dl p { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.dl .fee { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dl .fee + .fee { margin-top: 0; padding-top: 0; border-top: 0; }
.dl .fee span { font-size: 14px; color: var(--ink-3); }
.dl .fee b { font-size: 26px; font-weight: 800; }
.dl .fee b.free { color: var(--teal); }

/* CTA band */
.cta {
  position: relative; overflow: hidden;
  background: var(--navy); color: #fff; border-radius: 36px; padding: 64px 56px;
  display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 32px; align-items: center;
}
.cta::before {
  content: ''; position: absolute; width: 520px; height: 520px; left: -160px; bottom: -300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 170, .25) 0, rgba(0, 212, 170, 0) 70%); pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; line-height: 1.05; }
.cta h2 em { font-style: normal; color: var(--mint); }
.cta p { font-size: 18px; color: var(--navy-muted-2); margin-top: 14px; line-height: 1.5; }
.cta .ctas { margin-top: 0; flex-direction: column; align-items: stretch; }

/* Footer */
footer { padding: 40px 0 56px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; font-size: 14px; color: var(--ink-3); }
footer .wrap a { color: var(--ink-2); font-weight: 600; }
footer .wrap a:hover { color: var(--ink); }
footer .grow { flex: 1; }
footer .wm { font-size: 20px; }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes sheen { to { transform: translateX(120%); } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* Only once script.js has run; a reader without it sees the page at once. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-scale { opacity: 0; transform: translateY(22px) scale(.98); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal-scale.in { opacity: 1; transform: none; }

.js .hero .promo, .js .hero h1, .js .hero .lede, .js .hero .ctas, .js .hero .where { animation: rise .7s var(--ease) both; }
.js .hero h1 { animation-delay: .08s; }
.js .hero .lede { animation-delay: .16s; }
.js .hero .ctas { animation-delay: .24s; }
.js .hero .where { animation-delay: .34s; }
.js .hero-art { animation: pop .9s var(--ease) .15s both; }
.js .hero-art img { animation: float 7s ease-in-out 1.2s infinite; }
.js .hero-art::after { animation: sheen 1.6s var(--ease) 1.1s 1 both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal-scale { opacity: 1; transform: none; transition: none; }
  .js .hero .promo, .js .hero h1, .js .hero .lede, .js .hero .ctas, .js .hero .where, .js .hero-art, .js .hero-art img, .js .hero-art::after { animation: none; }
  .btn, .plan, .dl, .shot > *, .where .mb-icon, .gp { transition: none; }
  .btn:hover, .plan:hover, .dl:hover, .shot:hover > *, .where span:hover .mb-icon, .gp:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero .wrap, .plans, .feat, .feat.flip, .dlv, .cta { grid-template-columns: minmax(0, 1fr); }
  .feat.flip .txt { order: 0; }
  .feat { gap: 28px; }
  .nav nav.links { display: none; }
  .inc { grid-template-columns: minmax(0, 1fr); }
  section { padding: 64px 0; }
  .cta { padding: 40px 28px; }
  .hero { padding: 40px 0 56px; }
}
@media (max-width: 900px) and (min-width: 521px) {
  .hero-art { aspect-ratio: 1.5; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .nav .wrap { height: 64px; gap: 10px; }
  .wm { font-size: 21px; }
  .nav .lang a { padding: 0 9px; }
  .btn { white-space: normal; text-align: center; height: auto; min-height: 52px; padding: 12px 22px; }
  .btn-sm { min-height: 40px; padding: 8px 14px; }
  .hero .ctas .btn { flex: 1 1 100%; }
  .hero-art { aspect-ratio: 1.25; border-radius: 24px; }
  .promo { font-size: 13px; max-width: 100%; }
  .promo b { font-size: 11px; padding: 4px 8px; }
  .where { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 16px; }
  .plan, .dl { padding: 24px; border-radius: 24px; }
  .pr b { font-size: 54px; }
  .feat { margin-bottom: 48px; }
  .group { margin: 48px 0 22px; }
  .tab { padding: 9px; border-radius: 22px; }
  .tab img { border-radius: 14px; }
  .tab.port { max-width: 280px; }
  .phone { max-width: 260px; }
  .cta { border-radius: 28px; padding: 32px 22px; }
  .head { margin-bottom: 32px; }
  footer .grow { display: none; }
}
