/* ==========================================================================
   LearnWise Pro — Public site design system
   One stylesheet for: landing page, header, footer, sign-up, log-in,
   trial-started, and the Privacy / Terms / Refund pages.
   Black & gold. One type pair. One glass-pill button.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Colour */
  --lw-black:      #050505;   /* page */
  --lw-onyx:       #0b0b0c;   /* surfaces */
  --lw-onyx-2:     #121214;   /* raised surfaces */
  --lw-gold-200:   #f6e7bf;
  --lw-gold-300:   #ecd296;
  --lw-gold-400:   #e0bf72;
  --lw-gold-500:   #d4af37;   /* brand gold */
  --lw-gold-600:   #b08d3f;
  --lw-gold-700:   #8a6d2c;
  --lw-ivory:      #f4efe4;   /* headings / high text */
  --lw-text:       #c9c4b8;   /* body */
  --lw-muted:      #8d887d;   /* secondary */
  --lw-hairline:   rgba(212, 175, 55, 0.16);
  --lw-hairline-2: rgba(212, 175, 55, 0.32);
  --lw-glass:      rgba(255, 255, 255, 0.035);
  --lw-glass-2:    rgba(255, 255, 255, 0.06);

  /* Type */
  --lw-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --lw-sans:  'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Shape & size */
  --lw-pill: 999px;
  --lw-radius-card: 24px;
  --lw-radius-field: 14px;
  --lw-btn-h: 46px;           /* every button on the site is this tall (50px on phones) */
  --lw-header-h: 76px;

  /* Motion */
  --lw-ease: cubic-bezier(.2, .7, .2, 1);
}

/* --------------------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------------------- */
html { scroll-behavior: smooth; background: var(--lw-black); }
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
  margin: 0;
  background: var(--lw-black);
  color: var(--lw-text);
  font-family: var(--lw-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
a { color: var(--lw-gold-400); text-decoration: none; transition: color .2s var(--lw-ease); }
a:hover { color: var(--lw-gold-200); }
::selection { background: rgba(212, 175, 55, 0.35); color: #fff; }
section[id] { scroll-margin-top: calc(var(--lw-header-h) + 8px); }

/* Typography scale */
h1, h2, h3, .lw-display {
  font-family: var(--lw-serif);
  color: var(--lw-ivory);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0 0 16px;
}
h1 { font-size: 3.6rem; }
h2 { font-size: 2.6rem; }
h3 { font-size: 1.45rem; line-height: 1.3; }
p  { margin: 0 0 16px; }
@media (max-width: 900px) { h1 { font-size: 2.7rem; } h2 { font-size: 2.1rem; } }
@media (max-width: 480px) { h1 { font-size: 2.3rem; } h2 { font-size: 1.8rem; } }

.lw-gold-text {
  background: linear-gradient(100deg, var(--lw-gold-600) 0%, var(--lw-gold-200) 38%, var(--lw-gold-500) 62%, var(--lw-gold-700) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* Keyboard focus is always visible */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, label:focus-visible {
  outline: 2px solid var(--lw-gold-300);
  outline-offset: 3px;
}

.lw-skip { position: absolute; left: -9999px; top: 0; z-index: 1001; background: var(--lw-gold-500); color: #000; padding: 10px 16px; border-radius: var(--lw-pill); }
.lw-skip:focus { left: 16px; top: 16px; }

.lw-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .lw-container { padding: 0 20px; } }

/* --------------------------------------------------------------------------
   3. GLASS PILL BUTTONS — one size, two finishes
      .lw-btn            base (50px tall pill)
      .lw-btn--gold      polished gold glass   (main action)
      .lw-btn--glass     smoked glass + gold edge (secondary action)
      .lw-btn--block     full width
   -------------------------------------------------------------------------- */
.lw-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--lw-btn-h);
  min-height: var(--lw-btn-h);
  padding: 0 26px;
  border-radius: var(--lw-pill);
  border: 1px solid transparent;
  font-family: var(--lw-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transition: transform .22s var(--lw-ease), box-shadow .22s var(--lw-ease),
              border-color .22s var(--lw-ease), background .22s var(--lw-ease), color .22s var(--lw-ease);
}
/* glass highlight: a soft reflection across the top half of every pill */
.lw-btn::before {
  content: "";
  position: absolute;
  left: 1px; right: 1px; top: 1px;
  height: 52%;
  border-radius: var(--lw-pill);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: -1;
}
.lw-btn .lw-btn__icon { display: inline-block; font-size: 1.05em; letter-spacing: 0; transition: transform .22s var(--lw-ease); }
.lw-btn:hover .lw-btn__icon { transform: translateX(3px); }
.lw-btn:hover { transform: translateY(-2px); }
.lw-btn:active { transform: translateY(0) scale(.985); }
.lw-btn[disabled], .lw-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }

.lw-btn--gold {
  color: #17110a;
  background: linear-gradient(180deg, rgba(244, 222, 160, 0.96) 0%, rgba(214, 178, 92, 0.94) 48%, rgba(170, 133, 56, 0.96) 100%);
  border-color: rgba(255, 236, 190, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(90, 64, 18, 0.45),
    0 12px 30px -12px rgba(212, 175, 55, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.45);
}
.lw-btn--gold:hover {
  color: #120c05;
  border-color: rgba(255, 244, 214, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(90, 64, 18, 0.45),
    0 18px 40px -14px rgba(212, 175, 55, 0.7),
    0 2px 8px rgba(0, 0, 0, 0.5);
}

.lw-btn--glass {
  color: var(--lw-gold-300);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(212, 175, 55, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 10px 28px -14px rgba(0, 0, 0, 0.9);
}
.lw-btn--glass::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)); }
.lw-btn--glass:hover {
  color: var(--lw-gold-200);
  border-color: rgba(236, 210, 150, 0.8);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.18) 0%, rgba(212, 175, 55, 0.05) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 14px 34px -16px rgba(212, 175, 55, 0.5);
}
.lw-btn--block { display: flex; width: 100%; }

/* Small segmented glass switch (Monthly / Yearly) — same pill language */
.lw-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: var(--lw-pill);
  border: 1px solid var(--lw-hairline-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.lw-switch button, .lw-switch label {
  height: 42px;
  padding: 0 22px;
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; border-radius: var(--lw-pill);
  background: transparent;
  color: var(--lw-muted);
  font-family: var(--lw-sans); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em;
  cursor: pointer;
  transition: background .2s var(--lw-ease), color .2s var(--lw-ease);
}
.lw-switch button:hover, .lw-switch label:hover { color: var(--lw-ivory); }
.lw-switch button[aria-pressed="true"],
.lw-switch input:checked + label {
  color: #17110a;
  background: linear-gradient(180deg, var(--lw-gold-300), var(--lw-gold-500) 60%, var(--lw-gold-600));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.lw-switch input { position: absolute; opacity: 0; pointer-events: none; }
.lw-switch input:focus-visible + label { outline: 2px solid var(--lw-gold-300); outline-offset: 2px; }
.lw-switch .lw-save { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; opacity: .85; }

@media (max-width: 600px) {
  :root { --lw-btn-h: 50px; }
  .lw-btn { padding: 0 22px; font-size: 0.8rem; }
}
/* Header button: same pill, slightly slimmer so the bar stays light */
.lw-header .lw-btn { height: 42px; min-height: 42px; padding: 0 22px; }
@media (max-width: 820px) { .lw-header .lw-btn { height: var(--lw-btn-h); min-height: var(--lw-btn-h); } }

/* --------------------------------------------------------------------------
   3b. BRAND LOCKUP — mark + "Learn" (silver) "Wise" (gold)
   -------------------------------------------------------------------------- */
.lw-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1; }
.lw-logo:hover { text-decoration: none; }
.lw-logo__mark { display: block; width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 0 0.6px rgba(255, 255, 255, 0.55)) drop-shadow(0 0 8px rgba(120, 170, 220, 0.28)); transition: transform .3s var(--lw-ease); }
.lw-logo:hover .lw-logo__mark { transform: rotate(-6deg) scale(1.04); }
.lw-logo__text { display: inline-flex; flex-direction: column; gap: 5px; }
.lw-logo__word { font-family: var(--lw-sans); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.025em; white-space: nowrap; }
.lw-logo__learn {
  background: linear-gradient(180deg, #ffffff 0%, #dcdcdc 45%, #a9a9a9 70%, #e9e9e9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lw-logo__wise {
  background: linear-gradient(180deg, #fff1c2 0%, #e7c46a 40%, #c2972e 70%, #f2d27e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lw-logo__tag { font-family: var(--lw-sans); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.06em; color: #b8b8b8; white-space: nowrap; }

.lw-logo--footer .lw-logo__mark { width: 48px; height: 48px; }
.lw-logo--footer .lw-logo__word { font-size: 1.6rem; }

.lw-logo--auth { flex-direction: column; gap: 14px; margin-bottom: 26px; }
.lw-logo--auth .lw-logo__mark { width: 64px; height: 64px; }
.lw-logo--auth .lw-logo__text { align-items: center; }
.lw-logo--auth .lw-logo__word { font-size: 2rem; }
.lw-logo--auth .lw-logo__tag { font-size: 0.74rem; }

@media (max-width: 480px) {
  .lw-logo__mark { width: 34px; height: 34px; }
  .lw-logo__word { font-size: 1.3rem; }
}

/* --------------------------------------------------------------------------
   4. SURFACES — glass cards with a fine gold edge
   -------------------------------------------------------------------------- */
.lw-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.012) 60%);
  border: 1px solid var(--lw-hairline);
  border-radius: var(--lw-radius-card);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.lw-card--gold {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 236, 190, 0.12), 0 40px 80px -36px rgba(212, 175, 55, 0.35);
}
.lw-badge {
  display: inline-flex; align-items: center;
  height: 30px; padding: 0 16px;
  border-radius: var(--lw-pill);
  background: linear-gradient(180deg, var(--lw-gold-300), var(--lw-gold-500));
  color: #17110a;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 6px 18px -6px rgba(212, 175, 55, 0.6);
  white-space: nowrap;
}
.lw-rule { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, var(--lw-hairline-2), transparent); }

/* --------------------------------------------------------------------------
   5. HEADER
   -------------------------------------------------------------------------- */
.lw-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(5, 5, 5, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--lw-hairline);
  transition: box-shadow .3s var(--lw-ease), background .3s var(--lw-ease);
}
.lw-header.is-scrolled { background: rgba(5, 5, 5, 0.9); box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.9); }
.lw-header__inner {
  max-width: 1200px; margin: 0 auto; height: var(--lw-header-h);
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.lw-brand {
  font-family: var(--lw-serif); font-weight: 600; font-size: 1.65rem; line-height: 1;
  color: var(--lw-gold-500); text-decoration: none; letter-spacing: 0;
}
.lw-brand:hover { color: var(--lw-gold-300); }
.lw-brand span { color: var(--lw-ivory); font-weight: 400; font-style: italic; font-size: .66em; margin-left: 5px; }

.lw-nav { display: flex; align-items: center; gap: 34px; }
.lw-nav__link {
  position: relative;
  font-size: 0.92rem; font-weight: 500; letter-spacing: 0.03em;
  color: var(--lw-text);
  padding: 6px 0;
}
.lw-nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--lw-gold-400); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--lw-ease);
}
.lw-nav__link:hover, .lw-nav__link[aria-current="page"] { color: var(--lw-ivory); }
.lw-nav__link:hover::after, .lw-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.lw-toggle {
  display: none; width: 46px; height: 46px; border-radius: var(--lw-pill); cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--lw-hairline-2);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.lw-toggle span { display: block; width: 18px; height: 1.5px; background: var(--lw-gold-400); transition: transform .25s var(--lw-ease), opacity .25s var(--lw-ease); }
.lw-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.lw-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.lw-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 820px) {
  .lw-header__inner { padding: 0 20px; }
  .lw-toggle { display: flex; }
  .lw-nav {
    display: none; position: absolute; top: var(--lw-header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #080809;
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid var(--lw-hairline);
    padding: 8px 20px 24px;
  }
  .lw-nav.is-open { display: flex; }
  .lw-nav__link { padding: 16px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 1.05rem; }
  .lw-nav__link::after { display: none; }
  .lw-nav .lw-btn { margin-top: 18px; }
  body.nav-menu-open { overflow: hidden; }
}

/* --------------------------------------------------------------------------
   6. LANDING PAGE
   -------------------------------------------------------------------------- */
/* Hero */
.lw-hero { position: relative; min-height: calc(100vh - var(--lw-header-h)); display: flex; align-items: center; overflow: hidden; background: var(--lw-black); }
.lw-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('/assets/images/learnwise-hero.jpg');
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
}
.lw-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--lw-black) 0%, rgba(5, 5, 5, 0.96) 40%, rgba(5, 5, 5, 0.55) 58%, rgba(5, 5, 5, 0.15) 78%, rgba(5, 5, 5, 0.35) 100%),
    linear-gradient(0deg, var(--lw-black) 0%, rgba(5, 5, 5, 0) 30%);
}
.lw-hero__inner { position: relative; z-index: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 96px 32px; }
.lw-hero__copy { max-width: 640px; }
.lw-hero__title { font-size: 4.4rem; line-height: 1.04; margin-bottom: 26px; font-weight: 500; }
.lw-hero__title em { display: block; font-style: italic; font-weight: 400; }
.lw-hero__lead { font-size: 1.15rem; line-height: 1.75; color: var(--lw-text); max-width: 50ch; margin-bottom: 40px; }
.lw-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.lw-hero__note { margin-top: 22px; font-size: 0.88rem; color: var(--lw-muted); }

@media (max-width: 1023px) {
  .lw-hero__bg { background-position: center bottom; }
  .lw-hero__bg::after { background: linear-gradient(180deg, var(--lw-black) 0%, rgba(5, 5, 5, 0.9) 50%, rgba(5, 5, 5, 0.55) 100%); }
  .lw-hero__copy { margin: 0 auto; text-align: center; }
  .lw-hero__lead { margin-left: auto; margin-right: auto; }
  .lw-hero__actions { justify-content: center; }
  .lw-hero__title { font-size: 3.3rem; }
}
@media (max-width: 520px) {
  .lw-hero__inner { padding: 64px 20px 72px; }
  .lw-hero__title { font-size: 2.6rem; }
  .lw-hero__actions .lw-btn { width: 100%; }
}

/* Sections */
.lw-section { position: relative; padding: 128px 0; border-top: 1px solid var(--lw-hairline); }
.lw-section--deep { background: radial-gradient(1000px 500px at 50% 0%, rgba(212, 175, 55, 0.06), transparent 70%), #030303; }
.lw-section__head { max-width: 760px; margin: 0 auto 72px; text-align: center; }
.lw-section__head h2 { color: var(--lw-gold-500); }
.lw-section__head p { font-size: 1.1rem; color: var(--lw-text); margin: 0 auto; max-width: 62ch; }
@media (max-width: 700px) { .lw-section { padding: 88px 0; } .lw-section__head { margin-bottom: 48px; } }

/* Feature cards */
.lw-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.lw-feature { padding: 44px 36px; transition: transform .3s var(--lw-ease), border-color .3s var(--lw-ease); }
.lw-feature:hover { transform: translateY(-4px); border-color: var(--lw-hairline-2); }
.lw-feature h3 { color: var(--lw-gold-400); margin-bottom: 14px; }
.lw-feature p { margin: 0; font-size: 0.98rem; color: var(--lw-text); }
.lw-feature__mark {
  width: 46px; height: 46px; margin-bottom: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--lw-pill);
  border: 1px solid var(--lw-hairline-2);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.16), rgba(212, 175, 55, 0.03));
  color: var(--lw-gold-300);
}
.lw-feature__mark svg { width: 20px; height: 20px; }
@media (max-width: 960px) { .lw-features { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

/* Pricing */
.lw-pricing { max-width: 1000px; margin: 0 auto; text-align: center; }
.lw-pricing .lw-switch { margin-bottom: 56px; }
.lw-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; text-align: left; align-items: stretch; }
.lw-plan { display: flex; flex-direction: column; padding: 52px 40px 40px; }
.lw-plan .lw-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); }
.lw-plan h3 { font-size: 1.8rem; color: var(--lw-gold-400); margin-bottom: 8px; }
.lw-plan__for { color: var(--lw-muted); font-size: 0.98rem; margin: 0 0 28px; min-height: 3.2em; }
.lw-plan__price { font-family: var(--lw-serif); font-size: 3.8rem; line-height: 1; color: var(--lw-ivory); font-weight: 500; letter-spacing: -0.02em; }
.lw-plan__price span { font-family: var(--lw-sans); font-size: 1rem; color: var(--lw-muted); letter-spacing: 0; margin-left: 4px; }
.lw-plan__note { color: var(--lw-muted); font-size: 0.9rem; margin: 10px 0 0; min-height: 1.5em; }
.lw-plan__list { list-style: none; padding: 0; margin: 32px 0 40px; flex: 1; display: flex; flex-direction: column; gap: 16px; }
.lw-plan__list li { display: flex; gap: 12px; align-items: flex-start; color: var(--lw-text); font-size: 0.98rem; line-height: 1.5; }
.lw-plan__list svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; color: var(--lw-gold-500); }
.lw-pricing__foot { margin: 40px auto 0; color: var(--lw-muted); font-size: 0.95rem; }
@media (max-width: 860px) {
  .lw-plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; gap: 40px; }
  .lw-plan { padding: 48px 28px 32px; }
  .lw-plan__for { min-height: 0; }
}

/* --------------------------------------------------------------------------
   7. FOOTER
   -------------------------------------------------------------------------- */
.lw-footer { background: #030303; border-top: 1px solid var(--lw-hairline); color: var(--lw-muted); }
.lw-footer__inner {
  max-width: 1200px; margin: 0 auto; padding: 72px 32px 48px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px;
}
.lw-footer__brand p { margin: 16px 0 26px; max-width: 34ch; font-size: 0.95rem; line-height: 1.65; color: var(--lw-muted); }
.lw-footer__col { display: flex; flex-direction: column; gap: 12px; }
.lw-footer__col h2 {
  font-family: var(--lw-sans); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--lw-gold-500); margin: 0 0 6px;
}
.lw-footer__col a { color: var(--lw-text); font-size: 0.95rem; overflow-wrap: anywhere; }
.lw-footer__col a:hover { color: var(--lw-gold-300); }
.lw-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.05); padding: 22px 32px; text-align: center; }
.lw-footer__bottom p { margin: 0; font-size: 0.8rem; color: #6d695f; letter-spacing: 0.02em; }
@media (max-width: 900px) { .lw-footer__inner { grid-template-columns: 1fr 1fr; } .lw-footer__brand { grid-column: span 2; } }
@media (max-width: 480px) { .lw-footer__inner { grid-template-columns: 1fr; gap: 32px; padding: 56px 20px 40px; } }

/* --------------------------------------------------------------------------
   8. ACCOUNT PAGES — sign-up, log-in, trial started
   -------------------------------------------------------------------------- */
.lw-auth {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 48px 20px;
  background:
    radial-gradient(800px 420px at 50% -10%, rgba(212, 175, 55, 0.10), transparent 70%),
    var(--lw-black);
}
.lw-auth__card { width: 100%; max-width: 480px; padding: 48px 44px 40px; text-align: center; }
.lw-auth__card--wide { max-width: 540px; }
.lw-auth__logo { display: inline-block; font-family: var(--lw-serif); font-weight: 600; font-size: 2.3rem; line-height: 1; color: var(--lw-gold-500); margin-bottom: 22px; }
.lw-auth__logo:hover { color: var(--lw-gold-300); }
.lw-auth__title { font-family: var(--lw-serif); font-size: 1.75rem; font-weight: 500; color: var(--lw-ivory); margin: 0 0 10px; }
.lw-auth__lead { color: var(--lw-muted); font-size: 1rem; line-height: 1.6; margin: 0 auto 30px; max-width: 40ch; }
.lw-auth__fine { margin: 14px 0 0; font-size: 0.85rem; color: var(--lw-muted); line-height: 1.5; }
.lw-auth__secure { margin-top: 10px; font-size: 0.78rem; color: #6d695f; letter-spacing: 0.04em; }
.lw-auth__switch { margin: 28px 0 0; font-size: 0.95rem; color: var(--lw-muted); }
.lw-auth__switch a { color: var(--lw-gold-400); font-weight: 600; }
.lw-auth__links { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; font-size: 0.9rem; }
.lw-auth__links a { color: var(--lw-muted); }
.lw-auth__links a:hover { color: var(--lw-gold-300); }
.lw-auth__back { display: inline-block; margin-top: 22px; color: var(--lw-muted); font-size: 0.88rem; }
.lw-auth__back:hover { color: var(--lw-gold-300); }
.lw-auth__icon {
  width: 72px; height: 72px; margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--lw-pill);
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.03));
  color: var(--lw-gold-300);
  box-shadow: inset 0 1px 0 rgba(255, 236, 190, 0.2);
}
@media (max-width: 480px) { .lw-auth__card { padding: 40px 22px 32px; } }

/* Fields */
.lw-field { margin-bottom: 20px; text-align: left; }
.lw-field label { display: block; margin-bottom: 8px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lw-gold-400); }
.lw-input {
  width: 100%; height: var(--lw-btn-h);
  padding: 0 22px;
  border-radius: var(--lw-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: var(--lw-ivory);
  font-family: var(--lw-sans); font-size: 1rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
  transition: border-color .2s var(--lw-ease), box-shadow .2s var(--lw-ease), background .2s var(--lw-ease);
}
.lw-input::placeholder { color: #6d695f; }
.lw-input:focus { outline: none; border-color: rgba(212, 175, 55, 0.7); background: rgba(255, 255, 255, 0.05); box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.14); }

/* Alerts */
.lw-alert { padding: 14px 18px; border-radius: 16px; margin-bottom: 22px; font-size: 0.92rem; text-align: left; border: 1px solid; }
.lw-alert--error { background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.35); color: #f8a5a5; }
.lw-alert--ok { background: rgba(34, 197, 94, 0.08); border-color: rgba(34, 197, 94, 0.32); color: #a7e8bd; }

/* Plan picker on the sign-up page */
.lw-plan-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0 26px; text-align: left; }
.lw-plan-pick input { position: absolute; opacity: 0; pointer-events: none; }
.lw-plan-pick label {
  display: block; height: 100%; padding: 18px; cursor: pointer;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color .2s var(--lw-ease), background .2s var(--lw-ease), transform .2s var(--lw-ease);
}
.lw-plan-pick label:hover { border-color: var(--lw-hairline-2); transform: translateY(-1px); }
.lw-plan-pick input:checked + label { border-color: var(--lw-gold-500); background: rgba(212, 175, 55, 0.08); box-shadow: inset 0 0 0 1px var(--lw-gold-500); }
.lw-plan-pick input:focus-visible + label { outline: 2px solid var(--lw-gold-300); outline-offset: 2px; }
.lw-plan-pick__name { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lw-gold-400); }
.lw-plan-pick__price { display: block; margin: 8px 0 4px; font-family: var(--lw-serif); font-size: 1.75rem; line-height: 1.1; color: var(--lw-ivory); }
.lw-plan-pick__price small { font-family: var(--lw-sans); font-size: 0.82rem; color: var(--lw-muted); }
.lw-plan-pick__blurb { display: block; font-size: 0.84rem; line-height: 1.45; color: var(--lw-muted); }
@media (max-width: 460px) { .lw-plan-pick { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   9. POLICY PAGES (Privacy / Terms / Refund)
   -------------------------------------------------------------------------- */
.legal { max-width: 760px; margin: 0 auto; padding: 88px 24px 112px; font-size: 1.02rem; line-height: 1.8; }
.legal h1 { font-size: 3rem; margin: 0 0 8px; }
.legal .legal-date { color: var(--lw-muted) !important; margin: 0 0 44px; font-style: italic; }
.legal h2 { font-size: 1.45rem; margin: 44px 0 12px; padding-top: 26px; border-top: 1px solid var(--lw-hairline); color: var(--lw-gold-400); }
.legal p { margin: 0 0 14px; color: var(--lw-text); }
.legal ul { list-style: disc; padding-left: 1.4em; margin: 0 0 16px; }
.legal li { margin: 0 0 8px; padding-left: 4px; color: var(--lw-text); }
.legal li::marker { color: var(--lw-gold-500); }
.legal strong { color: var(--lw-ivory); }
@media (max-width: 600px) { .legal h1 { font-size: 2.3rem; } }

/* --------------------------------------------------------------------------
   10. Respect "reduce motion"
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
