/* ============================================================
   MyAccount Plus — Design Tokens
   Modern tech-forward SaaS palette with navy + action blue
   ============================================================ */

:root {
  /* Brand — default accent is action blue; overridden by Tweaks */
  --brand-navy:      #0A2540;
  --brand-navy-700:  #103458;
  --brand-navy-600:  #1A466F;
  --accent:          #3D8BFF;
  --accent-600:      #2E73E0;
  --accent-200:      #B8D3FF;
  --accent-50:       #EAF1FC;

  /* Neutrals — cool-toned */
  --ink:             #0E1116;
  --ink-soft:        #1C2330;
  --slate-700:       #384456;
  --slate-500:       #5E6B7E;
  --slate-400:       #8693A5;
  --slate-300:       #B7C0CD;
  --slate-200:       #D9DFE8;
  --slate-100:       #ECEFF4;
  --surface:         #F4F7FB;
  --surface-2:       #FFFFFF;
  --paper:           #FFFFFF;

  /* Semantic */
  --success:         #17A06B;
  --warn:            #E0A023;
  --danger:          #D24D4D;

  /* Type scale */
  --font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --fs-xs:   12px;
  --fs-sm:   14px;
  --fs-base: 16px;
  --fs-md:   18px;
  --fs-lg:   20px;
  --fs-xl:   24px;
  --fs-2xl:  32px;
  --fs-3xl:  44px;
  --fs-4xl:  60px;
  --fs-5xl:  84px;

  /* Radii & shadows */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-xs: 0 1px 2px rgba(10,37,64,0.06);
  --shadow-sm: 0 2px 8px rgba(10,37,64,0.06), 0 1px 2px rgba(10,37,64,0.04);
  --shadow-md: 0 8px 24px rgba(10,37,64,0.08), 0 2px 6px rgba(10,37,64,0.04);
  --shadow-lg: 0 24px 60px rgba(10,37,64,0.14), 0 4px 12px rgba(10,37,64,0.06);

  /* Spacing */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --s9: 96px; --s10: 128px;

  /* Layout */
  --maxw: 1240px;
  --gutter: 24px;
}

/* Dark mode */
[data-theme="dark"] {
  --brand-navy:      #E7EEF8;
  --brand-navy-700:  #C7D4E6;
  --brand-navy-600:  #A9B8CE;
  --ink:             #F4F7FB;
  --ink-soft:        #DCE3EE;
  --slate-700:       #B2BECC;
  --slate-500:       #8593A6;
  --slate-400:       #6B7889;
  --slate-300:       #424E5F;
  --slate-200:       #2A3442;
  --slate-100:       #1A222D;
  --surface:         #0B1017;
  --surface-2:       #121923;
  --paper:           #161E29;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.35), 0 1px 2px rgba(0,0,0,0.25);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4), 0 2px 6px rgba(0,0,0,0.25);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.3);
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  font-size: var(--fs-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; font-size: var(--fs-sm); font-weight: 600;
  border-radius: 999px; border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-600); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--slate-200); }
.btn-ghost:hover { border-color: var(--slate-300); background: var(--surface-2); }
.btn-dark { background: var(--ink); color: var(--surface-2); }
.btn-dark:hover { background: var(--ink-soft); }

/* Eyebrow label */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--slate-500);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* Screen-reader only */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
