/* PlanLink – shared styles
   Brand: visionOS-inspired spatial dark UI on warm espresso base.
   60% espresso · 30% mokka/cappuccino · 10% white/cream
*/

/* ============ TOKENS ============ */
:root {
  /* Brand colors — retained for tokens, but UI uses neutral dark scale */
  --espresso: #0E0E0E;
  --espresso-deep: #050505;
  --mokka: #1A1A1A;
  --cappuccino: #242424;
  --navbar: #141414;
  --field-fill: #161616;
  --field-light: #1E1E1E;
  --button-ink: #0A0A0A;

  --white: #FFFFFF;
  --cream: #E8E8E8;
  --sand:  #9C9C9C;
  --taupe: #6A6A6A;
  --divider: #2A2A2A;
  --nav-icon: #BFBFBF;
  --link: #FFFFFF;

  --success: #4CAF50;
  --warning: #F4B400;
  --danger:  #E53935;
  --info:    #4FC3F7;

  /* Subtle accent — used sparingly */
  --accent: #E8B574;
  --accent-soft: rgba(232, 181, 116, 0.12);

  /* Glass material overlays — pure neutral white tints */
  --mat-ultra-thin: rgba(255, 255, 255, 0.03);
  --mat-thin:       rgba(255, 255, 255, 0.05);
  --mat-regular:    rgba(255, 255, 255, 0.08);
  --mat-thick:      rgba(255, 255, 255, 0.12);
  --hairline:       rgba(255, 255, 255, 0.08);
  --hairline-strong:rgba(255, 255, 255, 0.14);
  --hairline-glow:  rgba(255, 255, 255, 0.24);

  /* Squircle radii (px, scaled from brand pt) */
  --r-chip: 8px;
  --r-button: 14px;
  --r-card-sm: 20px;
  --r-card-lg: 30px;
  --r-hero: 38px;

  /* Spacing — 4pt grid */
  --s1: 4px;  --s2: 8px;  --s3: 12px;  --s4: 16px;
  --s5: 24px; --s6: 32px; --s8: 48px;  --s10: 64px;
  --s12: 96px; --s14: 128px;

  /* Elevation */
  --elev-2: 0 4px 12px rgba(0,0,0,0.20);
  --elev-3: 0 8px 24px rgba(0,0,0,0.35);
  --elev-4: 0 16px 48px rgba(0,0,0,0.45);

  /* Motion */
  --spring-quick: cubic-bezier(0.22, 1.2, 0.36, 1);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Typography */
  --font-sans: 'Inter', ui-sans-serif, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --content-max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
a { color: var(--link); text-decoration: none; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--white);
  background: #0A0A0A;
  min-height: 100vh;
  text-wrap: pretty;
  position: relative;
  overflow-x: hidden;
}

/* Ambient base — pure neutral dark. Almost monochrome.
   A single, very subtle warm pin-light keeps the page from feeling clinical. */
.ambient {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 50% 0%, rgba(255, 255, 255, 0.04), transparent 65%),
    radial-gradient(1500px 1000px at 50% 50%, transparent 0%, rgba(0,0,0,0.50) 100%),
    #0A0A0A;
}
.ambient::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.30'/></svg>");
  opacity: 0.30;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Per-section ambience — mostly invisible, used for rhythm */
.sec-glow {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.sec-glow .glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
}
.sec-glow.warm .glow.a { width: 600px; height: 600px; top: -15%; right: -10%; background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 65%); opacity: 0.9; }
.sec-glow.warm .glow.b { width: 400px; height: 400px; bottom: -20%; left: -10%; background: radial-gradient(circle, rgba(255,255,255,0.04), transparent 70%); opacity: 0.85; }
.sec-glow.cool .glow.a { width: 500px; height: 500px; top: 15%; left: -12%; background: radial-gradient(circle, rgba(255,255,255,0.03), transparent 70%); opacity: 0.8; }
.sec-glow.single .glow.a { width: 800px; height: 500px; top: 25%; left: 50%; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(255,255,255,0.035), transparent 70%); opacity: 0.8; }
.sec-glow.edge .glow.a { width: 580px; height: 580px; bottom: -20%; right: -12%; background: radial-gradient(circle, rgba(255,255,255,0.04), transparent 70%); opacity: 0.85; }

section { position: relative; }
section > .wrap { position: relative; z-index: 1; }

::selection { background: rgba(237,230,222,0.25); color: var(--white); }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4, h5 { margin: 0; letter-spacing: -0.01em; }
h1 { font-weight: 700; letter-spacing: -0.025em; }
h2 { font-weight: 700; letter-spacing: -0.02em; }
h3 { font-weight: 600; letter-spacing: -0.015em; }
p  { margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  padding: 7px 14px;
  background: rgba(237, 230, 222, 0.1);
  border: 1px solid rgba(237, 230, 222, 0.34);
  border-radius: 999px;
  box-shadow: 0 1px 14px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--cream);
  box-shadow: 0 0 14px rgba(237,230,222,0.9);
}
@media (max-width: 600px) {
  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.09em;
    gap: var(--s1);
    padding: 6px 12px;
  }
  .eyebrow .dot { width: 6px; height: 6px; }
}

.muted { color: var(--sand); }
.cream { color: var(--cream); }

/* ============ LAYOUT ============ */
.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

section { padding-block: clamp(48px, 6vw, 80px); }
section > .wrap > header { margin-bottom: var(--s5); }

/* ============ NAV — floating glass pill ============ */
.nav-shell {
  position: fixed; top: var(--s4); left: 0; right: 0; z-index: 50;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0;
  padding-inline: var(--gutter);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4);
  padding: 10px 12px 10px 18px;
  background: rgba(20, 20, 20, 0.55);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 -1px 0 rgba(0,0,0,0.30) inset,
    0 12px 32px rgba(0,0,0,0.45),
    0 2px 8px rgba(0,0,0,0.30);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--white);
  font-weight: 700; letter-spacing: -0.01em;
  font-size: 17px;
}
.brand .logo { width: 28px; height: 28px; color: var(--white); }
.nav-links {
  display: flex; gap: 2px; align-items: center;
  padding: 0;
  border-radius: 999px;
}
.nav-links a {
  color: var(--cream);
  font-size: 14px; font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background .2s var(--ease-out), color .2s var(--ease-out);
}
.nav-links a:hover { background: var(--mat-thin); color: var(--white); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--button-ink);
  padding: 10px 18px; border-radius: var(--r-button);
  font-weight: 600; font-size: 14px;
  transition: transform .25s var(--spring-quick), box-shadow .25s var(--ease-out);
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 8px 18px rgba(0,0,0,0.25);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 12px 24px rgba(0,0,0,0.35); }

/* Hamburger toggle — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 42px; height: 42px;
  padding: 0;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle .bar {
  display: block;
  width: 18px; height: 2px; border-radius: 2px;
  background: var(--white);
  transition: transform .3s var(--spring-quick), opacity .2s var(--ease-out);
}
.nav.open .nav-toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle .bar:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-cta-mobile { display: none; }

@media (max-width: 760px) {
  .nav { position: relative; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 12px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px;
    background: rgba(16, 16, 16, 0.98);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    backdrop-filter: blur(28px) saturate(140%);
    -webkit-backdrop-filter: blur(28px) saturate(140%);
    box-shadow:
      0 1px 0 rgba(255,255,255,0.06) inset,
      0 16px 40px rgba(0,0,0,0.55);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 16px; font-size: 15px; border-radius: 14px; }
  .nav-links a.nav-cta-mobile {
    display: block;
    margin-top: 6px;
    text-align: center;
    background: var(--white); color: var(--button-ink);
    font-weight: 600;
    box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 8px 18px rgba(0,0,0,0.25);
  }
  .nav-links a.nav-cta-mobile:hover { background: var(--white); color: var(--button-ink); }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-button);
  font-weight: 600;
  font-size: 15px;
  transition: transform .25s var(--spring-quick), background .2s var(--ease-out), box-shadow .25s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--white); color: var(--button-ink);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 10px 24px rgba(0,0,0,0.35);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  background: var(--mat-thin); color: var(--white);
  border: 1px solid var(--hairline-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.btn-ghost:hover { background: var(--mat-regular); }

.btn .arrow {
  width: 16px; height: 16px;
  transition: transform .25s var(--spring-quick);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ============ GLASS — the visionOS material ============ */
.glass {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--r-card-lg);
  backdrop-filter: blur(32px) saturate(140%);
  -webkit-backdrop-filter: blur(32px) saturate(140%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 -1px 0 rgba(0,0,0,0.30) inset,
    0 24px 64px rgba(0,0,0,0.50),
    0 4px 12px rgba(0,0,0,0.30);
}
.glass::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(165deg, rgba(255,255,255,0.06) 0%, transparent 35%);
  pointer-events: none;
}
.glass-thin {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-card-sm);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 12px 28px rgba(0,0,0,0.35);
}
.card {
  composes: glass;
  padding: var(--s6);
}

/* ============ FOOTER ============ */
footer.site-foot {
  padding: var(--s10) 0 var(--s8);
  border-top: 1px solid var(--hairline);
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.25));
}
footer.site-foot .foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s8);
  align-items: start;
}
footer.site-foot h4 {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sand); font-weight: 600; margin-bottom: var(--s4);
}
footer.site-foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
footer.site-foot a { color: var(--cream); }
footer.site-foot a:hover { color: var(--white); }
footer.site-foot .claim {
  margin-top: var(--s4);
  color: var(--sand);
  max-width: 36ch;
}
.foot-bottom {
  display: flex; justify-content: space-between; gap: var(--s4);
  margin-top: var(--s8); padding-top: var(--s5);
  border-top: 1px solid var(--hairline);
  font-size: 13px; color: var(--sand);
}
@media (max-width: 720px) {
  footer.site-foot .foot-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .foot-bottom { flex-direction: column; }
}

/* ============ LEGAL PAGES ============ */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--s10) var(--gutter);
}
.legal h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: var(--s5); }
.legal h2 { font-size: 22px; margin-top: var(--s8); margin-bottom: var(--s3); color: var(--white); }
.legal h3 { font-size: 17px; margin-top: var(--s5); margin-bottom: var(--s2); color: var(--cream); }
.legal p, .legal li { color: var(--cream); line-height: 1.65; font-size: 16px; }
.legal p + p { margin-top: var(--s3); }
.legal ul { padding-left: 22px; }
.legal a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--taupe); }
.legal a:hover { text-decoration-color: var(--white); }
.legal .back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--sand); font-size: 14px; margin-bottom: var(--s6);
}
.legal .back:hover { color: var(--white); }
.legal .meta {
  margin-top: var(--s8); padding-top: var(--s5);
  border-top: 1px solid var(--hairline);
  font-size: 13px; color: var(--sand);
}

/* ============ ZEITERSPARNIS / SAVINGS BAND ============ */
.savings {
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-card-lg);
  background: linear-gradient(180deg, var(--mat-regular), var(--mat-thin));
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--elev-3);
}
.savings-head { max-width: 640px; margin-bottom: var(--s8); }
.savings-head h2 { margin: var(--s4) 0 var(--s3); }
.savings-head .lead { color: var(--sand); }
.savings-calc-title {
  margin: calc(-1 * var(--s5)) 0 var(--s4);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--sand);
}
.savings-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
}
.s-cell {
  padding: var(--s5);
  border-radius: var(--r-card-sm);
  background: var(--mat-thin);
  border: 1px solid var(--hairline);
}
.s-v {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.s-v span {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-top: var(--s1);
  letter-spacing: 0.02em;
}
.s-k {
  margin-top: var(--s3);
  font-size: 14px;
  line-height: 1.45;
  color: var(--sand);
}
.s-tax {
  background: rgba(76, 175, 80, 0.08);
  border-color: rgba(76, 175, 80, 0.35);
}
.s-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: 15px;
  font-weight: 800;
  color: #7BD17F;
  letter-spacing: 0.01em;
  margin-bottom: var(--s2);
}
@media (max-width: 760px) {
  .savings-stats { grid-template-columns: 1fr; gap: var(--s4); }
}
