/* base.css — CSS custom properties, resets, typography, shared utilities
   Applies to both desktop and mobile views */


/* ================================================================
   ATUNELLE — DESIGN SYSTEM  v5.0
   Rebuilt from the app's exact colour tokens.
   
   Source: styles/commonStyles.ts + constants/Colors.ts
   ================================================================ */

/* ----------------------------------------------------------------
   FONTS
   Dancing Script  — handwritten logo
   Cormorant Garamond — editorial display (used sparingly, 48px+)
   DM Sans         — all body, UI, labels
   ---------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');


/* ================================================================
   COLOR TOKENS  —  exact values from app source
   ================================================================ */
:root {

  /* ── PRIMARY ─────────────────────────────────────────── */
  --c-primary:        #9B7EBD;   /* lavender — CTA buttons           */
  --c-primary-dark:   #8B7BA8;   /* hover / active                   */
  --c-primary-deeper: #6347A8;   /* pressed / deep accent            */

  /* ── BACKGROUNDS ────────────────────────────────────── */
  --c-bg:             #FDFBFF;   /* near-white, barely tinted        */
  --c-bg-base:        #F3EEFF;   /* light lavender — base screen     */
  --c-bg-alt:         #FAF7FF;   /* section alternation              */

  /* ── GRADIENT  (exact app gradient stops) ───────────── */
  --gradient-app: linear-gradient(
    160deg,
    #E9DDF6 0%,    /* Lavender                         */
    #F4E7FB 33%,   /* Blush                            */
    #FBE7DE 66%,   /* Peach                            */
    #FFF3EC 100%   /* Cream                            */
  );
  --gradient-soft: linear-gradient(
    160deg,
    #F0E8FF 0%,
    #F8EFF9 50%,
    #FFF3EC 100%
  );

  /* ── TEXT ───────────────────────────────────────────── */
  --c-text:           #3D2550;   /* deep plum — headings             */
  --c-text-2:         #7B6B8B;   /* soft gray-purple — body          */
  --c-text-3:         #8B7BA8;   /* light purple-gray — subtle       */
  --c-on-dark:        #FFFFFF;

  /* ── ACCENTS ────────────────────────────────────────── */
  --c-gold:           #E7C256;   /* warm gold — sparkles, highlights */
  --c-gold-light:     #F4D19B;   /* peach-yellow                     */
  --c-lilac:          #D4C5E8;   /* soft lilac                       */
  --c-peach:          #FBE7DE;   /* light peach                      */

  /* ── SURFACES / FROSTED GLASS ───────────────────────── */
  --c-glass:          rgba(255,255,255,0.76);   /* card glass           */
  --c-glass-light:    rgba(255,255,255,0.58);   /* card glass light     */
  --c-glass-solid:    rgba(255,255,255,0.97);   /* card solid           */
  --c-pill-tint:      rgba(155,126,189,0.15);   /* pill backgrounds     */

  /* ── BORDERS ────────────────────────────────────────── */
  --c-border:         #E9DDF6;                  /* soft lavender divider */
  --c-border-hover:   rgba(155,126,189,0.35);

  /* ── SEMANTIC ───────────────────────────────────────── */
  --c-destructive:    #6B3548;   /* deep rose-plum                   */
  --c-success-bg:     #E8F7EE;
  --c-success:        #186840;

  /* ── SHADOWS ────────────────────────────────────────── */
  --shadow-sm:  0 1px 8px  rgba(61,37,80,0.06);
  --shadow-md:  0 4px 20px rgba(61,37,80,0.09);
  --shadow-lg:  0 12px 40px rgba(61,37,80,0.13);
  --shadow-xl:  0 32px 72px rgba(30,18,60,0.18);

  /* ── FOOTER ─────────────────────────────────────────── */
  --c-footer-bg:    #1E1238;    /* deep ink purple                  */
  --c-footer-text:  rgba(255,255,255,0.50);
  --c-footer-label: rgba(255,255,255,0.24);
  --c-footer-logo:  #D4C5E8;   /* lilac                            */
  --c-footer-div:   rgba(255,255,255,0.08);

  /* ── DECORATIVE ─────────────────────────────────────── */
  --c-dot:          #E7C256;   /* gold dots                        */
  --dot:            #E7C256;   /* alias — legacy references        */

  /* ── LAYOUT ALIASES ────────────────────────────────────── */
  --text-secondary: var(--c-text-2);  /* legacy alias */
  --card-gap:       16px;
  --gap-xl:         56px;
}


/* ================================================================
   TYPOGRAPHY
   ================================================================ */
:root {
  --f-logo:    'Dancing Script', cursive;
  --f-display: 'Cormorant Garamond', serif;
  --f-body:    'DM Sans', sans-serif;

  /* Scale */
  --t-2xs: 10px;  --t-xs: 12px;  --t-sm: 13px;
  --t-base: 15px; --t-md: 16px;  --t-lg: 18px;
  --t-xl: 22px;   --t-2xl: 28px;

  /* Fluid */
  --t-hero:    clamp(48px, 6.5vw, 82px);
  --t-section: clamp(30px, 3.8vw, 48px);
  --t-page:    clamp(36px, 4.5vw, 58px);

  /* Weights */
  --w-light: 300; --w-reg: 400; --w-med: 500; --w-semi: 600;

  /* Leading */
  --lh-tight: 1.05; --lh-snug: 1.28; --lh-base: 1.55;
  --lh-relax: 1.70; --lh-loose: 1.84;

  /* Tracking */
  --ls-logo:  0.01em;
  --ls-tight: -0.025em;
  --ls-caps:   0.08em;
}


/* ================================================================
   SPACING & RADII
   ================================================================ */
:root {
  --max-w:      1120px;
  --sp-section:  96px;
  --sp-side:     52px;
  --r-sm:   6px;  --r-md:  10px;  --r-card: 18px;
  --r-lg:  24px;  --r-xl:  32px;  --r-pill: 100px;
  --r-phone: 50px;
}


/* ================================================================
   EASING
   ================================================================ */
:root {
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.48, 0.64, 1);
  --t-fast: 130ms; --t-base: 220ms; --t-slow: 360ms;
}


/* ================================================================
   RESET
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: var(--t-base);
  font-weight: var(--w-reg);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--f-body); cursor: pointer; }
strong { font-weight: var(--w-semi); }


/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 80ms; }
.reveal-d2 { transition-delay: 160ms; }
.reveal-d3 { transition-delay: 240ms; }
.reveal-d4 { transition-delay: 320ms; }


/* ================================================================
   LAYOUT
   ================================================================ */
.section-wrap { padding: var(--sp-section) var(--sp-side); }
.section-wrap--alt { background: var(--c-bg-alt); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }


/* ================================================================
   EYEBROW — used sparingly, only when label carries real info
   ================================================================ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--c-pill-tint);
  color: var(--c-primary-dark);
  font-size: var(--t-xs); font-weight: var(--w-semi);
  letter-spacing: var(--ls-caps); text-transform: uppercase;
  padding: 5px 14px; border-radius: var(--r-pill); margin-bottom: 14px;
}
.eyebrow::before {
  content: ''; width: 4px; height: 4px;
  background: var(--c-primary); border-radius: 50%; flex-shrink: 0;
}


/* ================================================================
   DISPLAY HEADINGS
   ================================================================ */
.display-title {
  font-family: var(--f-display);
  font-size: var(--t-section);
  font-weight: var(--w-light);
  color: var(--c-text);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin-bottom: 14px;
}
.display-title em    { font-style: italic; color: var(--c-primary); font-weight: var(--w-light); }
.display-title strong{ font-weight: var(--w-med); }

.section-sub {
  font-size: var(--t-md); color: var(--c-text-2);
  font-weight: var(--w-light); line-height: var(--lh-relax); max-width: 500px;
}


/* ================================================================
   CARD  — frosted glass matching app surfaces
   ================================================================ */
.card {
  background: var(--c-glass-solid);
  border-radius: var(--r-card);
  padding: 28px 30px;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--c-border-hover); }


/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-body); font-size: var(--t-base); font-weight: var(--w-med);
  border: none; border-radius: var(--r-pill); cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: background var(--t-base) ease, transform var(--t-fast) var(--ease-bounce), box-shadow var(--t-base) ease;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--c-primary-deeper); color: var(--c-on-dark);
  padding: 14px 32px; box-shadow: 0 3px 16px rgba(99,71,168,0.32);
}
.btn--primary:hover { background: #5238A0; transform: translateY(-2px); box-shadow: 0 7px 24px rgba(99,71,168,0.40); }

.btn--secondary {
  background: transparent; color: var(--c-primary);
  padding: 13px 28px; border: 1.5px solid var(--c-border-hover);
}
.btn--secondary:hover { background: var(--c-pill-tint); border-color: var(--c-primary); transform: translateY(-2px); }

.btn--nav {
  background: var(--c-primary-deeper) !important; color: var(--c-on-dark) !important;
  padding: 8px 20px !important; font-size: var(--t-sm) !important;
  font-weight: var(--w-med) !important; border-radius: var(--r-pill) !important;
  box-shadow: 0 2px 10px rgba(99,71,168,0.28);
}
.btn--nav:hover { background: #5238A0 !important; transform: translateY(-1px) !important; }

.btn--white { background: #fff; color: var(--c-primary); padding: 14px 32px; font-weight: var(--w-semi); box-shadow: 0 4px 18px rgba(0,0,0,0.12); }
.btn--white:hover { background: rgba(255,255,255,.92); transform: translateY(-2px); }
.btn--ghost-white { background: rgba(255,255,255,0.14); color: #fff; padding: 13px 28px; border: 1.5px solid rgba(255,255,255,0.32); }
.btn--ghost-white:hover { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.6); transform: translateY(-2px); }


/* ================================================================
   STORE BADGES
   ================================================================ */
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 11px 20px; border-radius: var(--r-md); text-decoration: none;
  transition: transform var(--t-base) var(--ease), background var(--t-base) ease;
}
.store-badge--dark  { background: var(--c-text); color: #fff; box-shadow: 0 4px 14px rgba(61,37,80,0.18); }
.store-badge--dark:hover  { background: var(--c-primary); transform: translateY(-2px); }
.store-badge--light { background: rgba(255,255,255,0.16); color: #fff; border: 1px solid rgba(255,255,255,0.28); }
.store-badge--light:hover { background: rgba(255,255,255,0.28); transform: translateY(-2px); }
.store-badge svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.store-badge__text small  { font-size: var(--t-2xs); opacity: .72; display: block; }
.store-badge__text strong { font-size: var(--t-sm); font-weight: var(--w-med); display: block; }


/* ================================================================
   TAG / PILL
   ================================================================ */
.tag {
  display: inline-block; background: var(--c-pill-tint); color: var(--c-primary-dark);
  font-size: var(--t-xs); font-weight: var(--w-med);
  padding: 4px 12px; border-radius: var(--r-pill); letter-spacing: 0.01em;
}
.tag--muted { background: rgba(155,126,189,0.08); color: var(--c-text-2); }


/* ================================================================
   NAVIGATION
   ================================================================ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: 68px; padding: 0 var(--sp-side);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(253,251,255,0.6);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(233,221,246,0.4);
  transition: background var(--t-slow) ease, box-shadow var(--t-slow) ease, backdrop-filter var(--t-slow) ease;
}
.site-nav.scrolled {
  background: rgba(253,251,255,0.96);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--c-border);
}
.nav-logo {
  text-decoration: none; line-height: 1;
  display: flex; align-items: center;
  transition: opacity var(--t-fast) ease;
}
.nav-logo__img {
  height: 44px; width: auto;
  display: block;
}
.nav-logo:hover { opacity: .80; }

.nav-links { list-style: none; display: flex; align-items: center; gap: clamp(12px, 1.6vw, 24px); flex-shrink: 1; min-width: 0; }
.nav-links a {
  font-size: clamp(12px, 1.05vw, var(--t-sm)); font-weight: var(--w-med); color: var(--c-text-2);
  text-decoration: none; position: relative;
  transition: color var(--t-fast) ease;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--c-primary);
  transition: width var(--t-base) var(--ease);
}
.nav-links a:hover        { color: var(--c-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active       { color: var(--c-primary); }
.nav-links a.active::after{ width: 100%; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
  border-radius: var(--r-sm); transition: background var(--t-fast) ease;
}
.nav-toggle:hover { background: var(--c-pill-tint); }
.nav-toggle span  { display: block; width: 22px; height: 1.5px; background: var(--c-primary); border-radius: 2px; transition: all var(--t-base) var(--ease); }


/* ================================================================
   LEGAL PAGE HERO BANNER
   ================================================================ */
.page-hero {
  padding: 148px var(--sp-side) 68px;
  background: var(--gradient-app);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, var(--c-dot) 1.5px, transparent 1.5px),
    radial-gradient(circle, var(--c-dot) 1px, transparent 1px),
    radial-gradient(circle, var(--c-dot) 1.5px, transparent 1.5px);
  background-position: 7% 38%, 93% 20%, 56% 84%;
  background-repeat: no-repeat; opacity: 0.28; pointer-events: none;
}
.page-hero__inner { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 1; }
.page-hero__back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--t-xs); font-weight: var(--w-med); color: var(--c-text-2);
  padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--c-glass); border: 1px solid var(--c-border);
  transition: background var(--t-fast) ease, color var(--t-fast) ease;
  margin-bottom: 20px; text-decoration: none;
  backdrop-filter: blur(8px);
}
.page-hero__back:hover { background: var(--c-glass-solid); color: var(--c-primary); }
.page-hero h1 {
  font-family: var(--f-display); font-size: var(--t-page);
  font-weight: var(--w-light); color: var(--c-text);
  letter-spacing: var(--ls-tight); line-height: var(--lh-tight); margin: 10px 0 10px;
}
.page-hero__meta {
  font-size: var(--t-sm); color: var(--c-text-3); font-weight: var(--w-light);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.page-hero__pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--c-glass); border: 1px solid var(--c-border);
  font-size: var(--t-xs); font-weight: var(--w-med); color: var(--c-primary-dark);
  padding: 4px 12px; border-radius: var(--r-pill);
  backdrop-filter: blur(6px);
}


/* ================================================================
   LEGAL LAYOUT
   ================================================================ */
.legal-layout {
  max-width: var(--max-w); margin: 0 auto;
  padding: 64px var(--sp-side) 100px;
  display: grid; grid-template-columns: 210px 1fr; gap: 64px; align-items: start;
}
.toc {
  position: sticky; top: 84px;
  background: var(--c-glass-solid); border: 1px solid var(--c-border);
  border-radius: var(--r-card); padding: 20px 18px; box-shadow: var(--shadow-sm);
}
.toc__title {
  font-size: var(--t-xs); font-weight: var(--w-semi);
  text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--c-text-3);
  padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--c-border);
}
.toc__list { list-style: none; }
.toc__list li { margin-bottom: 2px; }
.toc__list a {
  display: block; font-size: var(--t-xs); color: var(--c-text-2);
  padding: 6px 10px; border-radius: var(--r-sm); text-decoration: none;
  transition: background var(--t-fast) ease, color var(--t-fast) ease; line-height: var(--lh-base);
}
.toc__list a:hover  { background: var(--c-pill-tint); color: var(--c-primary-dark); }
.toc__list a.toc-on { background: var(--c-pill-tint); color: var(--c-primary-dark); font-weight: var(--w-med); }

.legal-content { min-width: 0; }
.legal-section {
  background: var(--c-glass-solid); border: 1px solid var(--c-border);
  border-radius: var(--r-card); padding: 34px 36px 30px; margin-bottom: 14px;
  scroll-margin-top: 88px; box-shadow: var(--shadow-sm);
  transition: border-color var(--t-base) ease, box-shadow var(--t-base) ease;
}
.legal-section:hover { border-color: var(--c-border-hover); box-shadow: var(--shadow-md); }
.legal-section__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--c-border);
}
.legal-section__num {
  font-family: var(--f-display); font-size: 40px; font-weight: var(--w-light);
  color: var(--c-lilac); line-height: 1; flex-shrink: 0; margin-top: -4px;
  letter-spacing: var(--ls-tight); -webkit-text-stroke: 1px var(--c-primary-dark);
}
.legal-section h2 {
  font-family: var(--f-display); font-size: clamp(18px, 2vw, 24px);
  font-weight: var(--w-light); color: var(--c-text);
  letter-spacing: var(--ls-tight); line-height: var(--lh-snug);
  flex: 1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.legal-section p    { font-size: var(--t-base); color: var(--c-text-2); line-height: var(--lh-loose); font-weight: var(--w-light); margin-bottom: 14px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section h3   { font-size: var(--t-base); font-weight: var(--w-semi); color: var(--c-text); margin: 20px 0 10px; letter-spacing: -0.01em; }
.legal-section a    { color: var(--c-primary); font-weight: var(--w-med); }
.legal-section a:hover { text-decoration: underline; }
.legal-section strong { font-weight: var(--w-semi); color: var(--c-text); }

.legal-list { list-style: none; margin: 10px 0 14px; border: 1px solid var(--c-border); border-radius: var(--r-card); overflow: hidden; }
.legal-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: var(--t-base); color: var(--c-text-2); line-height: var(--lh-relax);
  font-weight: var(--w-light); padding: 10px 16px 10px 14px;
  border-bottom: 1px solid var(--c-border); background: var(--c-glass-solid);
}
.legal-list li:last-child { border-bottom: none; }
.legal-list li::before { content: ''; width: 5px; height: 5px; background: var(--c-lilac); border-radius: 50%; flex-shrink: 0; margin-top: 9px; }

.info-card  { background: rgba(155,126,189,0.07); border: 1px solid var(--c-border); border-left: 3px solid var(--c-primary); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 16px 20px; margin: 14px 0; }
.info-card p { margin-bottom: 0; color: var(--c-text); font-weight: var(--w-reg); }
.warn-card  { background: rgba(107,53,72,0.05); border: 1px solid rgba(107,53,72,0.14); border-left: 3px solid var(--c-destructive); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 16px 20px; margin: 14px 0; }
.warn-card p { margin-bottom: 0; color: var(--c-destructive); font-weight: var(--w-reg); }

.badge { font-family: var(--f-body); font-size: var(--t-2xs); font-weight: var(--w-semi); letter-spacing: .5px; text-transform: uppercase; padding: 2px 9px; border-radius: var(--r-pill); vertical-align: middle; }
.badge--updated { background: var(--c-pill-tint); color: var(--c-primary-dark); }
.badge--new     { background: var(--c-success-bg); color: var(--c-success); }

.retention-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 14px 0; font-size: var(--t-sm); border: 1px solid var(--c-border); border-radius: var(--r-card); overflow: hidden; }
.retention-table th { text-align: left; font-weight: var(--w-semi); color: var(--c-text); padding: 10px 16px; background: var(--c-bg-alt); border-bottom: 1px solid var(--c-border); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .5px; }
.retention-table td { padding: 12px 16px; color: var(--c-text-2); font-weight: var(--w-light); border-bottom: 1px solid var(--c-border); vertical-align: top; line-height: var(--lh-relax); }
.retention-table tr:last-child td { border-bottom: none; }
.retention-table tr:hover td { background: var(--c-bg-alt); }

.steps-list { list-style: none; margin: 14px 0; }
.steps-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--c-border); }
.steps-list li:last-child { border-bottom: none; padding-bottom: 0; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--c-pill-tint); color: var(--c-primary-dark); font-size: var(--t-xs); font-weight: var(--w-semi); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.step-body strong { display: block; font-size: var(--t-sm); font-weight: var(--w-semi); color: var(--c-text); margin-bottom: 4px; }
.step-body span   { font-size: var(--t-sm); color: var(--c-text-2); font-weight: var(--w-light); line-height: var(--lh-relax); }

.contact-card { display: flex; align-items: center; gap: 16px; background: var(--c-pill-tint); border: 1px solid var(--c-border); border-radius: var(--r-card); padding: 20px 24px; margin-top: 14px; }
.contact-card__icon  { font-size: 26px; flex-shrink: 0; }
.contact-card__label { font-size: var(--t-xs); color: var(--c-text-3); font-weight: var(--w-med); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 4px; }
.contact-card__link  { font-size: var(--t-md); font-weight: var(--w-semi); color: var(--c-primary); text-decoration: none; }
.contact-card__link:hover { text-decoration: underline; }

.legal-updated { display: inline-flex; align-items: center; gap: 6px; background: var(--c-pill-tint); color: var(--c-primary-dark); font-size: var(--t-xs); font-weight: var(--w-semi); letter-spacing: var(--ls-caps); text-transform: uppercase; padding: 5px 14px; border-radius: var(--r-pill); margin-bottom: 36px; }

.pricing-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 28px; }
.p-card { background: var(--c-bg-alt); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 30px 24px 24px; position: relative; text-align: center; transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) ease; }
.p-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.p-card--feat { background: var(--c-pill-tint); border-color: rgba(155,126,189,0.30); }
.p-card__badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--c-primary); color: #fff; font-size: var(--t-2xs); font-weight: var(--w-semi); letter-spacing: .6px; text-transform: uppercase; padding: 3px 14px; border-radius: var(--r-pill); white-space: nowrap; }
.p-card__label  { font-size: var(--t-xs); font-weight: var(--w-semi); text-transform: uppercase; letter-spacing: .8px; color: var(--c-text-3); margin-bottom: 10px; }
.p-card__price  { font-family: var(--f-display); font-size: 40px; font-weight: var(--w-light); color: var(--c-primary); line-height: 1; margin-bottom: 4px; }
.p-card__period { font-size: var(--t-xs); color: var(--c-text-3); margin-bottom: 14px; }
.p-card__name   { font-size: var(--t-sm); font-weight: var(--w-med); color: var(--c-text); }
.sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.sub-card { background: var(--c-bg-alt); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 14px 16px; }
.sub-card__title { font-size: var(--t-sm); font-weight: var(--w-semi); color: var(--c-text); margin-bottom: 6px; }
.sub-card__text  { font-size: var(--t-xs); color: var(--c-text-2); line-height: var(--lh-relax); font-weight: var(--w-light); }


/* ================================================================
   COLOUR SWATCH — used on colour reference section
   ================================================================ */
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 12px; margin-top: 32px; }
.swatch { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--c-border); }
.swatch__block { height: 64px; }
.swatch__info  { background: var(--c-glass-solid); padding: 10px 12px; }
.swatch__name  { font-size: var(--t-xs); font-weight: var(--w-semi); color: var(--c-text); margin-bottom: 2px; }
.swatch__hex   { font-size: var(--t-xs); color: var(--c-text-3); font-family: monospace; }
.swatch__role  { font-size: 10px; color: var(--c-text-2); margin-top: 2px; font-weight: var(--w-light); }


/* ================================================================
   FOOTER
   ================================================================ */
.site-footer { background: var(--c-footer-bg); color: #fff; padding: 68px var(--sp-side) 40px; }
.site-footer__inner { max-width: var(--max-w); margin: 0 auto; }
.site-footer__grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 52px; border-bottom: 1px solid var(--c-footer-div); margin-bottom: 32px; }
.footer-brand__logo { font-family: var(--f-logo); font-weight: 600; font-size: 40px; letter-spacing: var(--ls-logo); color: var(--c-footer-logo); display: block; margin-bottom: 16px; line-height: 1.1; }
.footer-brand p { font-size: var(--t-sm); color: var(--c-footer-text); line-height: var(--lh-relax); font-weight: var(--w-light); max-width: 240px; }
.footer-col h4 { font-size: var(--t-xs); font-weight: var(--w-semi); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--c-footer-label); margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { font-size: var(--t-sm); color: var(--c-footer-text); text-decoration: none; font-weight: var(--w-light); transition: color var(--t-fast) ease; }
.footer-col ul li a:hover { color: var(--c-footer-logo); }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.site-footer__bottom p   { font-size: var(--t-xs); color: rgba(255,255,255,.22); font-weight: var(--w-light); }
.site-footer__bottom a   { color: rgba(255,255,255,.36); }
.site-footer__bottom a:hover { color: var(--c-footer-logo); }


/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  :root { --sp-side: 36px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .legal-layout { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; }
}



/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .store-badge { transition: none; }
}


/* Keyboard focus — desktop and mobile */
.btn:focus-visible,
.quiz-opt:focus-visible,
.nav-toggle:focus-visible,
.faq-btn:focus-visible,
.sc-btn:focus-visible,
.sc-dot:focus-visible,
.site-nav a:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid rgba(99,71,168,0.45);
  outline-offset: 3px;
}

#atunelleCalc input,
#atunelleCalc select {
  font-size: 16px !important;
}

/* Hide mobile-only sections on desktop */
.mob-problem { display: none; }

.compare-mobile-cards { display: none; }
.compare-table-wrap { display: block; }
.nav-logo,
.nav-links a:not(.btn),
.site-footer a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Conversion-focused homepage + modal pages */
.page-lite-hero {
  padding: calc(110px + var(--offer-banner-height, 0px)) var(--sp-side) 54px;
  background: var(--gradient-app);
  position: relative;
  overflow: hidden;
}
.page-lite-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--c-dot) 1.5px, transparent 1.5px);
  background-position: 12% 30%, 88% 70%;
  background-repeat: no-repeat;
  opacity: .24;
  pointer-events: none;
}
.page-lite-hero .section-inner { position: relative; z-index: 1; }
.page-lite-hero .section-sub { max-width: 620px; }

.calc-teaser {
  margin-top: 26px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(155,126,189,0.22);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}
.calc-teaser__eyebrow,
.pricing-teaser__label {
  font-size: var(--t-xs);
  font-weight: var(--w-semi);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 8px;
}
.calc-teaser h3 {
  font-family: var(--f-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: var(--w-light);
  line-height: 1.08;
  color: var(--c-text);
  margin-bottom: 10px;
}
.calc-teaser p {
  color: var(--c-text-2);
  line-height: var(--lh-relax);
  font-weight: var(--w-light);
  margin-bottom: 18px;
}
.calc-teaser__btn { width: 100%; }
.calc-teaser__trust {
  margin-top: 10px;
  text-align: center;
  font-size: var(--t-xs);
  color: var(--c-text-3);
}

.calc-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}
.calc-modal.is-open { display: block; }
.calc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30,18,56,0.45);
  backdrop-filter: blur(6px);
}
.calc-modal__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(720px, calc(100vw - 32px));
  max-height: min(86vh, 920px);
  overflow-y: auto;
  transform: translate(-50%, -50%);
  background: var(--c-bg);
  border: 1px solid rgba(155,126,189,0.24);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
}
.calc-modal__close {
  position: sticky;
  top: 12px;
  float: right;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin: 12px 12px 0 0;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--c-primary);
  font-size: 24px;
  box-shadow: var(--shadow-sm);
}
.calc-modal__intro {
  padding: 30px 30px 10px;
  max-width: 560px;
}
.calc-modal__intro h2 {
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: var(--w-light);
  line-height: 1.05;
  color: var(--c-text);
  margin-bottom: 10px;
}
.calc-modal__intro p {
  color: var(--c-text-2);
  line-height: var(--lh-relax);
  font-weight: var(--w-light);
}
.calc-modal #atunelleCalc {
  margin: 8px 24px 24px !important;
}
body.modal-open { overflow: hidden; }

.pricing-teaser-section,
.faq-teaser-section { padding: var(--sp-section) var(--sp-side); }
.pricing-teaser {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  align-items: center;
  background: var(--c-glass-solid);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 42px;
  box-shadow: var(--shadow-md);
}
.pricing-teaser__card {
  background: var(--gradient-soft);
  border: 1px solid rgba(155,126,189,0.22);
  border-radius: var(--r-lg);
  padding: 26px;
  text-align: center;
}
.pricing-teaser__price {
  font-family: var(--f-display);
  font-size: 54px;
  line-height: 1;
  color: var(--c-primary);
  font-weight: var(--w-light);
  margin-bottom: 6px;
}
.pricing-teaser__price span { font-size: 18px; color: var(--c-text-3); }
.pricing-teaser__sub { color: var(--c-text-2); margin-bottom: 20px; font-size: var(--t-sm); }
.pricing-teaser__card p { margin-top: 10px; color: var(--c-text-3); font-size: var(--t-xs); }

.faq-teaser {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}
.faq-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.faq-mini-card {
  background: var(--c-glass-solid);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.faq-mini-card h3 { font-size: var(--t-md); color: var(--c-text); margin-bottom: 8px; }
.faq-mini-card p { color: var(--c-text-2); line-height: var(--lh-relax); font-weight: var(--w-light); }

/* ── Global nav CTA button ─────────────────────────────────── */
.btn--nav {
  font-size: var(--t-sm) !important;
  padding: 8px 20px !important;
  margin-left: 8px;
}

/* ── Desktop: hide burger, show full nav links ──────────────── */
@media (min-width: 769px) {
  .nav-toggle--mobile-only {
    display: none !important;
  }
  .nav-links {
    display: flex !important;
  }
}
