/* Lullagram money pages: shared styles (27 Oct 2026), made from money/index.html's style block. */

  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  html, body { margin: 0; padding: 0; }
  body { font-family: var(--font-body); color: var(--ink); background: var(--paper); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
  a { color: var(--accent); }
  h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: 0; }
  .wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
  @media (max-width: 540px) { .wrap { padding: 0 16px; } }
  .ic { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

  /* Nav, as on the homepage */
  .nav { position: sticky; top: 0; z-index: 100; background: rgba(31,38,69,0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.12); }
  .nav-inner { max-width: 1120px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .nav-logo { position: relative; display: flex; align-items: center; gap: 11px; color: var(--white); text-decoration: none; }
  .nav-stars { position: absolute; left: -7px; top: -10px; width: 26px; height: 16px; pointer-events: none; }
  .nav-stars path { fill: var(--gold); }
  .nav-logo-img { border-radius: 8px; display: block; }
  .nav-logo-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1; }
  .nav-links { display: flex; gap: 24px; align-items: center; }
  .nav-links > a { color: var(--plum-ink); font-size: 15px; font-weight: 600; text-decoration: none; }
  .nav-links > a:hover, .nav-links > a.active { color: var(--pink); }
  .nav-cta { background: var(--pink); color: var(--plum) !important; padding: 10px 18px; border-radius: 999px; font-weight: 800 !important; font-size: 14px !important; white-space: nowrap; }
  .nav-cta:hover { background: var(--pink-press); }
  @media (max-width: 860px) { .nav-links > a:not(.nav-cta) { display: none; } }
  @media (max-width: 540px) { .nav-inner { padding: 10px 16px; } .nav-cta { padding: 8px 13px; font-size: 13px !important; } }

  /* Hero: the night sky band with the calculator in it */
  .hero { position: relative; overflow: hidden; background: var(--plum); color: var(--white); padding: 56px 0 64px; }
  .hero-sky { position: absolute; inset: 0; pointer-events: none; }
  .hero-moon { position: absolute; top: 26px; right: 6%; width: 64px; height: 64px; filter: drop-shadow(0 0 22px rgba(246,211,132,0.5)); }
  .hero-moon path, .hero-star { fill: var(--gold); }
  .hero-star { position: absolute; opacity: 0.85; animation: twinkle 3.2s ease-in-out infinite; }
  .hero-star.s2 { animation-delay: .8s; } .hero-star.s3 { animation-delay: 1.6s; } .hero-star.s4 { animation-delay: 2.3s; }
  @keyframes twinkle { 0%, 100% { opacity: .85; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
  @media (prefers-reduced-motion: reduce) { .hero-star { animation: none; } }
  .hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 48px; align-items: center; }
  @media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } .hero { padding: 40px 0 48px; } .hero-moon { width: 46px; height: 46px; top: 18px; } }
  .kicker { font-family: var(--font-script); font-size: 26px; font-weight: 600; color: var(--pink); margin: 0 0 8px; }
  .hero h1 { font-size: clamp(38px, 5.6vw, 64px); font-weight: 700; color: var(--white); }
  .hero h1 .accent { color: var(--pink); }
  .hero-lede { font-size: 19px; color: rgba(243,239,247,0.86); max-width: 46ch; margin: 18px 0 0; }
  .hero-by { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-size: 14.5px; color: var(--plum-mute); }
  .mono { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--pink); color: var(--plum); font-family: var(--font-display); font-weight: 700; font-size: 19px; }
  .hero-by b { color: var(--white); font-weight: 700; }

  /* Calculator card */
  .calc { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16); border-radius: 24px; padding: 22px; }
  .calc-step { font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--plum-mute); margin: 0 0 8px; }
  .seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: rgba(0,0,0,0.18); border-radius: 14px; padding: 5px; margin-bottom: 16px; }
  .seg button { appearance: none; border: 0; border-radius: 10px; padding: 11px 8px; font: inherit; font-size: 15px; font-weight: 700; color: var(--plum-ink); background: transparent; cursor: pointer; }
  .seg button[aria-pressed="true"] { background: var(--pink); color: var(--plum); }
  .field { display: block; margin-bottom: 14px; }
  .field span { display: block; font-size: 14.5px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
  .field input, .field select { width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--white); border: 2px solid transparent; border-radius: 12px; padding: 12px 14px; min-height: 50px; }
  .field input:focus, .field select:focus { outline: none; border-color: var(--pink); }
  .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  @media (max-width: 420px) { .two { grid-template-columns: 1fr; } }
  .go { width: 100%; appearance: none; border: 0; cursor: pointer; border-radius: 999px; padding: 16px 20px; font: inherit; font-size: 17px; font-weight: 800; background: var(--pink); color: var(--plum); box-shadow: 0 6px 18px rgba(244,166,201,0.35); margin-top: 4px; }
  .go:hover { background: var(--pink-press); }
  .calc-err { color: var(--gold); font-size: 14.5px; font-weight: 700; margin: 10px 0 0; min-height: 1em; }
  .calc-note { font-size: 13px; color: var(--plum-mute); margin: 12px 0 0; }

  /* Result */
  .result { padding: 44px 0 20px; }
  .result[hidden] { display: none; }
  .found { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 26px 26px 22px; box-shadow: 0 10px 30px rgba(35,42,74,0.07); }
  .found-k { font-family: var(--font-script); font-size: 25px; color: var(--accent); margin: 0; }
  .found-n { font-family: var(--font-display); font-weight: 700; font-size: clamp(46px, 9vw, 76px); line-height: 1; color: var(--ink); margin: 4px 0 6px; }
  .found-s { color: var(--ink-soft); font-size: 17px; margin: 0; max-width: 60ch; }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
  .chips li { background: var(--paper-deep); border-radius: 999px; padding: 6px 13px; font-size: 14.5px; color: var(--ink-soft); }
  .chips b { color: var(--ink); }
  .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
  .btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; border-radius: 999px; padding: 13px 20px; font: inherit; font-size: 15.5px; font-weight: 800; text-decoration: none; cursor: pointer; border: 2px solid transparent; }
  .btn-pink { background: var(--pink); color: var(--plum); }
  .btn-pink:hover { background: var(--pink-press); }
  .btn-line { background: transparent; color: var(--ink); border-color: var(--line-strong); }
  .btn-line:hover { border-color: var(--ink); }
  .copied { font-size: 14px; color: var(--accent); font-weight: 700; align-self: center; }

  .next { margin: 18px 0 0; background: var(--plum); color: var(--plum-ink); border-radius: 20px; padding: 18px 20px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
  .next-d { font-family: var(--font-display); text-align: center; background: rgba(255,255,255,0.08); border-radius: 14px; padding: 8px 12px; min-width: 66px; }
  .next-d b { display: block; font-size: 26px; color: var(--pink); line-height: 1; }
  .next-d span { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--plum-mute); }
  .next-t { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
  .next h3 { font-size: 20px; color: var(--white); margin: 2px 0 0; }

  .tl { list-style: none; margin: 22px 0 0; padding: 0; position: relative; }
  .tl::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px; background: var(--line-strong); }
  .tl li { position: relative; padding: 0 0 10px 40px; }
  .dot { position: absolute; left: 6px; top: 18px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--accent); }
  .tl li.pay .dot { background: var(--gold); border-color: var(--gold); }
  .tl li.past { opacity: 0.55; }
  .tl li.past .dot { border-color: var(--ink-mute); background: var(--ink-mute); }
  .row { width: 100%; text-align: left; appearance: none; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; font: inherit; color: inherit; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
  .row:hover { border-color: var(--pink); }
  .row-date { font-size: 13.5px; font-weight: 800; color: var(--accent); }
  .tl li.past .row-date::after { content: " \00B7 passed"; color: var(--ink-mute); font-weight: 700; }
  .row-t { grid-column: 1 / 2; font-weight: 700; font-size: 16.5px; line-height: 1.35; }
  .amt { grid-row: 1 / 3; grid-column: 2; font-family: var(--font-display); font-weight: 700; font-size: 17px; background: var(--accent-wash); color: var(--accent-press); border-radius: 999px; padding: 4px 11px; white-space: nowrap; }
  .more { display: none; background: var(--white); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 16px 16px; margin-top: -10px; padding: 16px 14px 12px; font-size: 15.5px; color: var(--ink-soft); }
  .more a { font-weight: 700; }
  li.open .more { display: block; }
  li.open .row { border-radius: 16px 16px 0 0; }
  .tl-note { font-size: 13.5px; color: var(--ink-mute); margin: 10px 0 0; }

  /* Sections */
  section.band { padding: 56px 0; }
  .band-h { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
  .band-sub { color: var(--ink-soft); font-size: 17px; margin: 0 0 22px; max-width: 60ch; }
  .moves { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  @media (max-width: 860px) { .moves { grid-template-columns: 1fr; } }
  .move { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
  .move-k { font-family: var(--font-script); font-size: 22px; color: var(--accent); }
  .move h3 { font-size: 20px; margin: 4px 0 8px; }
  .move p { font-size: 15.5px; color: var(--ink-soft); margin: 0 0 10px; }
  .move .do { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0; }
  .wash { background: linear-gradient(180deg, var(--paper) 0%, var(--accent-wash) 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

  .mm { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 4px 2px 10px; scrollbar-width: none; }
  .mm::-webkit-scrollbar { display: none; }
  .mm:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 22px; }
  .mm-card { flex: 0 0 min(86%, 420px); scroll-snap-align: start; background: var(--plum); color: var(--plum-ink); border-radius: 22px; padding: 22px 22px 24px; min-height: 230px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 12px 28px rgba(31,38,69,0.18); }
  .mm-card h3 { font-size: 23px; color: var(--pink); }
  .mm-card p { margin: 0; font-size: 17px; line-height: 1.5; color: rgba(243,239,247,0.92); }
  .mm-brand { margin-top: auto; padding-top: 6px; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--pink); opacity: .9; }
  .mm-n { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
  .mm-nav { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
  .mm-btn { appearance: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--white); color: var(--ink); font-size: 20px; cursor: pointer; }
  .mm-btn:hover { border-color: var(--ink); }
  .mm-pos { font-weight: 800; color: var(--ink-soft); font-size: 14.5px; font-variant-numeric: tabular-nums; }
  .qfa { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 20px; max-width: 760px; }
  .qfa .mono { width: 52px; height: 52px; font-size: 23px; }
  .qfa p { margin: 0 0 8px; font-size: 15.5px; color: var(--ink-soft); }
  .qfa b { color: var(--ink); }

  .faq details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 0 16px; margin-bottom: 10px; max-width: 760px; }
  .faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 800; }
  .faq details[open] summary::after { content: "\2212"; }
  .faq details p { margin: 0 0 14px; font-size: 15.5px; color: var(--ink-soft); }

  .src { font-size: 13.5px; color: var(--ink-mute); max-width: 760px; }
  .src a { color: var(--ink-soft); }

  .cta-final { background: var(--plum); color: var(--white); padding: 64px 0; text-align: center; }
  .cta-final h2 { font-size: clamp(30px, 4.6vw, 46px); color: var(--white); }
  .cta-final h2 .accent { color: var(--pink); }
  .cta-final p { color: var(--plum-mute); font-size: 18px; margin: 12px auto 26px; max-width: 46ch; }

  footer { background: var(--plum); color: var(--plum-mute); padding: 40px 0 32px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 14px; }
  footer a { color: var(--plum-ink); }
  .foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; }
  .foot-small { font-size: 12.5px; line-height: 1.6; margin: 0 0 6px; }

  /* Lesson pages and the lesson list (27 Oct 2026) */
  .mm-hero { padding: 40px 0 44px; }
  .mm-hero h1 { font-size: clamp(32px, 5vw, 52px); }
  .mm-card h2 { font-size: 23px; color: var(--pink); }
  .signup { background: var(--plum); color: var(--plum-ink); border-radius: 24px; padding: 26px 24px; }
  .signup h2 { font-size: clamp(24px, 3.6vw, 34px); color: var(--white); }
  .signup h2 .accent { color: var(--pink); }
  .signup p { color: var(--plum-mute); margin: 10px 0 18px; max-width: 56ch; }
  .signup .btn-line { color: var(--white); border-color: rgba(255,255,255,0.35); }
  .signup .btn-line:hover { border-color: var(--white); }
  .mm-more { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 22px 0 18px; font-weight: 700; font-size: 15.5px; }
  .mm-more a { text-decoration: none; }
  .mm-tracks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  @media (max-width: 760px) { .mm-tracks { grid-template-columns: 1fr; } }
  .mm-track { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; }
  .mm-track h3 { font-size: 19px; margin-bottom: 8px; }
  .mm-track ol { margin: 0; padding-left: 20px; }
  .mm-track li { margin: 6px 0; font-size: 16px; }
  .mm-track a { font-weight: 700; text-decoration: none; }
