/* ══════════════════════════════════════════════════════════════════ */
/*  meraPA — shared site design system (chrome for all pages)          */
/*  Single source of truth for tokens, typography, nav, footer, hero,  */
/*  phone frames and the CTA band. Page-specific styles stay inline    */
/*  per page and inherit these tokens.                                 */
/* ══════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Opt OUT of the browser's automatic page-inverting night theme (Chrome Android
     "Auto Dark Theme", Samsung Internet). Plain `light` is NOT an opt-out — it reads
     as "this page has no night theme, please invert it", which is what turned the
     site inside-out on beta users' phones. `only light` is the documented opt-out. */
  color-scheme: only light;

  /* Brand */
  --blue:       #2d6da6;
  --blue-mid:   #3a82c0;
  --blue-dark:  #1e4f7a;
  --blue-bright:#2f7fce;
  --blue-soft:  #e8f1fa;
  --blue-tint:  #f2f7fc;
  --amber:      #e89d43;
  --amber-hi:   #f4b862;

  /* Ink & surface */
  --ink:        #0b1630;
  --ink-2:      #0b1120;
  --ink-3:      #101b30;
  --navy-1:     #0a1730;
  --navy-2:     #10284a;
  --mist:       #f4f7fb;
  --paper:      #f5f8fc;
  --paper-2:    #eef3fa;
  --card:       #ffffff;
  --line:       #e3e9f2;
  --line-soft:  #eef2f8;

  /* Text */
  --text:       #0f1a2e;
  --text-mid:   #3a4a66;
  --muted:      #5a6a84;
  --faint:      #8a99b3;

  /* Accents */
  --teal:       #0f766e;
  --teal-hi:    #2dd4bf;
  --violet:     #7c3aed;
  --rose:       #e11d48;
  --green:      #059669;

  /* Typography — same pairing as akshee.in */
  --ff-display: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ff-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r-sm: 12px;
  --r:    16px;
  --r-lg: 20px;
  --r-xl: 28px;

  --sh-xs:   0 1px 2px rgba(11,18,32,.05);
  --sh-sm:   0 2px 8px rgba(15,23,42,.05);
  --sh:      0 6px 20px rgba(15,23,42,.07);
  --sh-md:   0 14px 34px rgba(15,23,42,.10);
  --sh-lg:   0 24px 56px rgba(15,23,42,.14);
  --sh-blue: 0 10px 26px rgba(45,109,166,.30);

  --maxw: 1680px;
  --gutter: clamp(20px, 3.5vw, 48px);
  --nav-h: 72px;

  /* Back-compat aliases so legacy per-page CSS keeps resolving */
  --navy:       var(--ink);
  --slate:      var(--paper);
  --white:      #ffffff;
  --text-muted: var(--muted);
  --text-light: #8fa2be;
  --border:     var(--line);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
img { max-width: 100%; }
.ic { width: 1em; height: 1em; stroke: currentColor; stroke-width: 1.75; fill: none;
      stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

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

/* Shared display headings */
.eye {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 100px;
  background: rgba(45,109,166,.08); border: 1px solid rgba(45,109,166,.16);
  font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue);
}
.eye .ic { width: 14px; height: 14px; }
/* Akshee-style kicker: short rule + small caps label */
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.kicker::before { content: ''; width: 26px; height: 1.5px; background: currentColor; opacity: .7; }
.kicker.center::after { content: ''; width: 26px; height: 1.5px; background: currentColor; opacity: .7; }
.kicker.amber { color: var(--amber); }
.h2 { font-family: var(--ff-display); font-weight: 700; font-size: 38px; line-height: 1.16; letter-spacing: -.02em; word-spacing: .05em; color: var(--text); margin: 14px 0 14px; text-wrap: balance; }
.h2 .hl { color: var(--blue); }
.lead { font-size: 17px; color: var(--muted); line-height: 1.7; max-width: 580px; }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 24px; }
.sec-head .lead { margin: 0 auto; max-width: 640px; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--ff-display); font-weight: 700; font-size: 15px; border-radius: 12px; padding: 13px 24px; cursor: pointer; border: none; transition: transform .2s, box-shadow .2s, filter .2s, background .2s, border-color .2s, color .2s; }
.btn .ic { width: 17px; height: 17px; }
.btn-primary { background: linear-gradient(135deg, var(--blue-mid), var(--blue)); color: #fff; box-shadow: var(--sh-blue); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(45,109,166,.42); filter: brightness(1.05); }
.btn-outline { background: #fff; color: var(--blue); border: 1.5px solid rgba(45,109,166,.35); }
.btn-outline:hover { border-color: var(--blue); background: var(--blue-tint); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.2); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.25); }

/* ══════════════════════ PHONE FRAME ══════════════════════ */
/* Real app screenshots sit inside a realistic device frame. */
.device {
  position: relative; width: 280px; border-radius: 46px; padding: 9px;
  background: linear-gradient(150deg, #2b3445 0%, #0d121c 55%, #1f2735 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14), inset 0 0 0 3px #05080e,
              0 30px 60px -12px rgba(15,23,42,.35), 0 18px 36px -18px rgba(15,23,42,.45);
}
.device::before { content: ''; position: absolute; left: -2.5px; top: 22%; width: 3px; height: 9%; border-radius: 2px; background: #1b2230; box-shadow: 0 13% 0 #1b2230; }
.device::after  { content: ''; position: absolute; right: -2.5px; top: 27%; width: 3px; height: 14%; border-radius: 2px; background: #1b2230; }
.device .scr { position: relative; border-radius: 38px; overflow: hidden; background: #fff; aspect-ratio: 9 / 19.5; }
.device .scr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: top center; display: block; transition: opacity .45s ease; }
.device .island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 31%; height: 3.6%; border-radius: 100px; background: #05070b; z-index: 3; }
.device.sm { width: 230px; border-radius: 38px; padding: 7px; }
.device.sm .scr { border-radius: 31px; }
.device.sm .island { top: 8px; }

/* ══════════════════════ PHOTO BLENDS ══════════════════════ */
/* Photos melt into the page instead of sitting in a frame (same masks as akshee.in). */
.blend-soft {   /* photo on the left: right, top and bottom edges fade out */
  -webkit-mask-image: linear-gradient(to right, #000 70%, transparent), linear-gradient(to bottom, transparent, #000 24%, #000 82%, transparent);
  mask-image: linear-gradient(to right, #000 70%, transparent), linear-gradient(to bottom, transparent, #000 24%, #000 82%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.blend-left {   /* photo on the right: left, top and bottom edges fade out */
  -webkit-mask-image: linear-gradient(to left, #000 70%, transparent), linear-gradient(to bottom, transparent, #000 20%, #000 82%, transparent);
  mask-image: linear-gradient(to left, #000 70%, transparent), linear-gradient(to bottom, transparent, #000 20%, #000 82%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.family-cloud { /* shown whole; all four edges fade out */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent), linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent), linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.blend-edges {  /* wide banner: all four edges fade out */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
@media (max-width: 1023px) {
  .blend-soft, .blend-left {
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 85%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 85%, transparent);
  }
}

/* ══════════════════════ NAVBAR ══════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
#nav .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; }
#nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(15,23,42,.05); }
.nav-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ff-display); font-size: 34px; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.nav-logo .mark { display: none; }
.nav-logo .mera { color: var(--amber); }
.nav-logo .pa { color: var(--blue); }

.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-links { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { position: relative; color: var(--text-mid); font-size: 15px; font-weight: 600; white-space: nowrap; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-links a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; background: var(--blue); }

.nav-join { display: inline-flex; align-items: center; gap: 7px; background: linear-gradient(135deg, var(--blue-mid), var(--blue)); color: #fff; padding: 10px 18px; border-radius: 11px; font-family: var(--ff-display); font-weight: 700; font-size: 14px; white-space: nowrap; box-shadow: 0 8px 20px rgba(45,109,166,.28); transition: transform .2s, box-shadow .2s; }
.nav-join:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(45,109,166,.38); }
.nav-join .ic { width: 15px; height: 15px; }

.nav-login { position: relative; }
.nav-cta { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1.5px solid var(--line); color: var(--ink); padding: 9px 16px; border-radius: 11px; font-family: var(--ff-display); font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; transition: border-color .2s, background .2s; }
.nav-cta:hover { border-color: var(--blue-bright); background: var(--paper); }
.nav-cta .caret { width: 14px; height: 14px; transform: rotate(90deg); transition: transform .25s; }
.nav-login.open .nav-cta .caret { transform: rotate(-90deg); }

.nav-burger { display: none; width: 42px; height: 42px; border-radius: 11px; border: 1.5px solid var(--line); background: #fff; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; }
.nav-burger svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }

.login-dd {
  position: absolute; top: calc(100% + 6px); right: 0; width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 8px;
  box-shadow: var(--sh-lg); opacity: 0; transform: translateY(-8px) scale(.98);
  transform-origin: top right; pointer-events: none; z-index: 210;
  transition: opacity .2s ease, transform .2s ease;
}
.nav-login.open .login-dd { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.login-dd .dd-title { font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); padding: 9px 12px 6px; }
.dd-strip { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text); transition: background .18s; }
.dd-strip:hover { background: var(--paper); }
.dd-ico { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dd-ico .ic { width: 19px; height: 19px; }
.dd-l { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.dd-l b { font-size: 14px; font-weight: 700; color: var(--text); }
.dd-l i { font-size: 11.5px; color: var(--muted); font-style: normal; }
.dd-arw { width: 16px; height: 16px; color: var(--faint); transition: color .18s, transform .18s; }
.dd-strip:hover .dd-arw { color: var(--blue); transform: translateX(2px); }

/* ══════════════════════ INTERIOR PAGE HERO ══════════════════════ */
.page-hero {
  position: relative; overflow: hidden; text-align: center;
  padding: calc(var(--nav-h) + 36px) 0 34px;
  background:
    radial-gradient(820px 440px at 50% -14%, rgba(45,109,166,.13), transparent 60%),
    linear-gradient(180deg, #f6f9fd 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .eyebrow { display: inline-block; color: var(--blue); font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.page-hero h1 { font-family: var(--ff-display); font-weight: 800; font-size: 46px; line-height: 1.1; letter-spacing: -.025em; word-spacing: .05em; color: var(--ink); margin-bottom: 14px; }
.page-hero h1 em { font-style: normal; color: var(--blue); }
.page-hero p { font-size: 17px; color: var(--muted); max-width: 620px; margin: 0 auto; line-height: 1.7; }
.page-hero .last-updated { font-size: 13px; color: var(--faint); margin-top: 6px; }
.page-hero.left { text-align: left; }
.page-hero.left p { margin-left: 0; }
.page-hero .pills { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.page-hero .pills span { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--text-mid); background: #fff; border: 1px solid var(--line); padding: 7px 15px; border-radius: 100px; box-shadow: var(--sh-xs); }
.page-hero .pills .ic { width: 14px; height: 14px; color: var(--blue); }

/* ══════════════════════ CTA BAND ══════════════════════ */
.cta-sec { padding: 24px 0 32px; }
.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy-2) 0%, var(--navy-1) 70%); border-radius: var(--r-xl); padding: 46px 52px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; box-shadow: var(--sh-lg); }
.cta-band::before { content: ''; position: absolute; top: -120px; right: -60px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(58,130,192,.45), transparent 65%); }
.cta-band::after { content: ''; position: absolute; bottom: -140px; left: 30%; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(232,157,67,.16), transparent 65%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-family: var(--ff-display); font-size: 30px; font-weight: 800; color: #fff; letter-spacing: -.02em; word-spacing: .05em; margin-bottom: 8px; }
.cta-band p { font-size: 15.5px; color: #b6c3da; max-width: 500px; line-height: 1.6; }
.cta-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cta-note { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: #8fa2c2; }
.cta-note .ic { width: 15px; height: 15px; }

/* ══════════════════════ FOOTER ══════════════════════ */
footer { background: linear-gradient(180deg, var(--navy-1), #08122a); color: #9fb0c9; padding: 48px 0 24px; }
.foot-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 32px; }
.foot-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ff-display); font-size: 30px; font-weight: 800; letter-spacing: -.035em; margin-bottom: 14px; }
.foot-logo .mark { display: none; }
.foot-logo .mera { color: var(--amber); }
.foot-logo .pa { color: #6aa6d8; }
.foot-tag { font-size: 14.5px; color: #9fb0c9; line-height: 1.7; max-width: 340px; }
.foot-by { margin-top: 16px; font-size: 13px; color: #7d8fab; }
.foot-by a { color: #c9d6ea; font-weight: 600; }
.foot-by a:hover { color: #fff; }
.foot-col h4 { font-family: var(--ff-display); font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 10px; }
.foot-col a { font-size: 14.5px; color: #9fb0c9; transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.09); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.foot-copy { font-size: 13px; color: #7d8fab; }
.foot-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.flag-in { display: inline-block; width: 20px; height: 13px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.1); vertical-align: -2px; }
.fb { font-size: 11px; color: #a9b8cf; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); padding: 4px 11px; border-radius: 100px; }

/* ══════════════════════ RESPONSIVE ══════════════════════ */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  #nav.menu-open { background: #fff; border-bottom-color: var(--line); }
  #nav.menu-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; top: var(--nav-h); left: 0; right: 0; transform: none;
    background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-md); padding: 6px var(--gutter) 14px;
  }
  #nav.menu-open .nav-links a { display: block; padding: 13px 4px; font-size: 16px; border-bottom: 1px solid var(--line-soft); }
  #nav.menu-open .nav-links a.active::after { display: none; }
  #nav.menu-open .nav-links li:last-child a { border-bottom: none; }
}
@media (max-width: 900px) {
  .section { padding: 28px 0; }
  .h2 { font-size: 30px; }
  .page-hero { padding: calc(var(--nav-h) + 28px) 0 30px; }
  .page-hero h1 { font-size: 34px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 36px 28px; }
  .cta-band h2 { font-size: 25px; }
}
@media (max-width: 600px) {
  .nav-logo { font-size: 29px; }
  .nav-join { display: none; }
  .foot-top { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
