/* ElderSong+ landing page */
:root {
  --night: #2A1A40;
  --night-deep: #1C1229;
  --night-line: #3E2E58;
  --night-border: #4A3868;
  --ink: #1F1A29;
  --ink-soft: #3D3550;
  --muted: #5A5269;
  --violet: #5A1489;
  --lilac: #CFC2EA;
  --lilac-light: #EDE7F7;
  --mist: #F6F2FA;
  --rule: #E3DEEB;
  --gold: #F2D58A;
  --mint: #A9DDBE;
  --white: #FFFFFF;
  --serif: 'Sorts Mill Goudy', Georgia, 'Times New Roman', serif;
  --sans: 'Lexend', Verdana, Arial, sans-serif;
  --gutter: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--violet); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
em { font-style: italic; }

.wrap { max-width: 1280px; margin: 0 auto; padding-inline: var(--gutter); }

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  color: var(--night);
  background: var(--gold);
  font-weight: 600;
  border-radius: 12px;
  padding: 18px 32px;
  font-size: 20px;
  line-height: 1.2;
  transition: background .15s ease, transform .15s ease;
  border: 0; cursor: pointer; font-family: inherit;
  -webkit-appearance: none; appearance: none;
}
.btn:hover { background: #F7E2A8; color: var(--night); }
/* Gold buttons sitting on the dark purple turn white on hover */
.site-header .btn:hover, .hero .btn:hover, .final-cta .btn:hover { background: #FFF6DE; color: var(--night); }
.btn-small { padding: 12px 22px; font-size: 17px; border-radius: 10px; }
.btn-block { display: block; text-align: center; }

/* Eyebrow labels */
.eyebrow {
  font-size: 15px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--violet);
  font-weight: 600;
  margin: 0;
}
.on-dark .eyebrow { color: var(--gold); }
.plans .eyebrow { color: var(--violet); }

h2 { margin: 0; font-size: 46px; line-height: 1.1; font-weight: 600; letter-spacing: -0.8px; }
.lead { margin: 0; font-size: 20px; line-height: 1.6; color: var(--ink-soft); max-width: 600px; }
.stack { display: flex; flex-direction: column; gap: 14px; }

/* Header */
.on-dark { background: var(--night); color: var(--white); }
.site-header { padding-block: 26px; }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.wordmark { font-family: var(--serif); font-style: italic; font-size: 32px; color: var(--white); text-decoration: none; }
.nav { display: flex; gap: 32px; align-items: center; font-size: 18px; font-weight: 400; flex-wrap: wrap; }
.nav a:not(.btn):not(.btn-outline) { color: #E6DDF5; text-decoration: none; }
.nav a:not(.btn):not(.btn-outline):hover { color: var(--white); text-decoration: underline; }

/* Sign in (always visible, including phones) */
.btn-outline {
  display: inline-block; text-decoration: none; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.55); border-radius: 10px;
  padding: 10.5px 20px; font-size: 17px; font-weight: 600; line-height: 1.2;
}
.btn-outline { transition: background .15s ease, color .15s ease, border-color .15s ease; }
.btn-outline:hover { border-color: #F1EAFB; background: #F1EAFB; color: var(--night); text-decoration: none; }
.btn-outline:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Hero */
.hero { padding-block: 22px 80px; }
.hero .wrap { display: flex; gap: 72px; align-items: center; }
.hero-copy { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.signature { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.35; color: var(--lilac); margin: 0; }
.signature span { display: block; }
.hero h1 { margin: 0; font-weight: 600; font-size: 68px; line-height: 1.06; letter-spacing: -1.5px; }
.hero h1 span { display: block; }
.hero h1 .gold { color: var(--gold); }
.hero-sub { margin: 0; font-size: 22px; line-height: 1.55; color: var(--lilac-light); max-width: 580px; }
.hero-cta { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.hero-note { margin: 0; font-size: 16px; line-height: 1.5; color: var(--lilac); max-width: 520px; }
.hero-art {
  flex: 0 0 400px; min-height: 680px;
  display: flex; justify-content: center; align-items: center;
  background: radial-gradient(circle closest-side at 50% 50%, rgba(155,120,210,0.35) 0%, rgba(155,120,210,0) 100%);
}

/* Phone frame */
.phone {
  width: 290px; max-width: 100%;
  background: #0E0915; border-radius: 44px; padding: 11px;
  box-shadow: 0 20px 50px rgba(42,26,64,0.25);
}
.phone > div { border-radius: 34px; overflow: hidden; background: var(--white); }
.phone-hero { width: 300px; border-radius: 48px; box-shadow: 0 30px 70px rgba(0,0,0,0.5), 0 0 0 1.5px var(--night-border); }
.phone-hero > div { border-radius: 38px; }

/* Calendar section */
.calendar { padding-block: 96px 0; }
.calendar .intro { display: flex; gap: 64px; align-items: center; margin-bottom: 40px; }
.calendar .intro .stack { flex: 1 1 0; min-width: 0; }
.legend {
  display: grid; grid-template-columns: repeat(4, max-content);
  column-gap: 28px; row-gap: 10px; font-size: 15px; font-weight: 400; padding-top: 8px;
  list-style: none; margin: 0; padding-left: 0;
}
.legend li { display: flex; gap: 7px; align-items: center; }
.swatch { width: 12px; height: 12px; border-radius: 3px; flex: 0 0 auto; }

.week-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; }
.week {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1.5px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--white);
  min-width: 900px;
}
.day { border-right: 1px solid var(--rule); padding: 14px 12px 18px; display: flex; flex-direction: column; gap: 6px; }
.day:last-child { border-right: 0; }
.day-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1.5px solid var(--ink); padding-bottom: 8px; margin-bottom: 4px; }
.day-name { font-weight: 600; font-size: 17px; }
.day-num { font-weight: 600; font-size: 22px; color: var(--violet); }
.event { display: grid; grid-template-columns: 6px 50px minmax(0, 1fr); gap: 7px; font-size: 14.5px; line-height: 1.3; align-items: start; font-weight: 400; }
.event .tick { width: 6px; height: 16px; border-radius: 2px; }
.event time { font-variant-numeric: tabular-nums; font-weight: 600; }

/* Category colors (match the app) */
.c-em { background: #1E40AF; } .c-en { background: #F97316; } .c-in { background: #22C55E; }
.c-ph { background: #E11D48; } .c-so { background: #EAB308; } .c-sp { background: #0EA5E9; }
.c-vo { background: #A855F7; } .c-ot { background: #94A3B8; }

/* Library */
.library { margin-top: 110px; background: var(--mist); padding-block: 90px; }
.library .stack { max-width: 780px; margin-bottom: 48px; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; justify-items: center; margin: 0; padding: 0; list-style: none; }
.shots figure { margin: 0; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.shots figcaption { font-size: 20px; font-weight: 600; }

/* Music */
.music { padding-block: 96px 80px; }
.music .stack { max-width: 780px; margin-bottom: 44px; }
.music h2 { font-size: 40px; line-height: 1.12; letter-spacing: -0.6px; }
.tv { display: flex; flex-direction: column; align-items: center; margin: 0; }
.tv-screen { width: 100%; max-width: 1080px; background: #0E0915; border-radius: 16px; padding: 16px; box-shadow: 0 30px 70px rgba(42,26,64,0.28); }
.tv-screen img { width: 100%; border-radius: 4px; }
.tv-stand { width: 180px; height: 26px; background: #0E0915; clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.tv figcaption { padding-top: 18px; font-size: 16px; color: var(--muted); font-weight: 400; }

/* About */
.about .wrap > div {
  border-top: 1px solid var(--rule); padding-block: 96px 110px;
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; align-items: start;
}
.about .lead { font-size: 19px; }
.quote { margin: 0; display: flex; flex-direction: column; gap: 22px; }
.quote-mark { font-family: var(--serif); font-size: 96px; line-height: 0.6; color: var(--gold); height: 40px; }
.quote blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 29px; line-height: 1.45; color: var(--night); }
.quote figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 17px; }
.quote figcaption strong { font-weight: 600; color: var(--ink); }
.quote figcaption span { color: var(--muted); font-weight: 400; }

/* Early Access section */
.join { padding-block: 100px 110px; }
.join .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; align-items: start; }
.join-copy { display: flex; flex-direction: column; gap: 22px; }
.join h2 { font-size: 52px; line-height: 1.08; letter-spacing: -1px; }
.join .lead { color: var(--lilac-light); max-width: 560px; }
.perks { list-style: none; margin: 0; padding: 14px 0 0; display: flex; flex-direction: column; gap: 22px; }
.perks li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; align-items: start; }
.check { width: 36px; height: 36px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; }
.perk-title { font-size: 21px; font-weight: 600; margin: 0; }
.perk-body { font-size: 17px; line-height: 1.55; color: var(--lilac); margin: 4px 0 0; }

.roadmap { margin-top: 22px; border: 1px solid var(--night-border); background: rgba(255,255,255,0.04); border-radius: 18px; padding: 28px 30px; display: flex; flex-direction: column; gap: 18px; }
.roadmap-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.roadmap-head h3 { margin: 0; font-size: 22px; font-weight: 600; }
.tag-dev { flex: 0 0 auto; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--mint); border: 1px solid var(--mint); padding: 5px 10px; border-radius: 999px; }
.roadmap ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.roadmap li { padding-top: 14px; border-top: 1px solid var(--night-line); }
.roadmap h4 { margin: 0 0 3px; font-size: 18px; font-weight: 600; }
.roadmap p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--lilac); }

.plans { background: var(--white); color: var(--ink); border-radius: 20px; padding: 36px 36px 32px; display: flex; flex-direction: column; gap: 22px; box-shadow: 0 30px 70px rgba(0,0,0,0.35); }
.plan { display: flex; flex-direction: column; gap: 10px; }
.plan + .plan { padding-top: 0; }
.plan-essential { padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.plan-name { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 600; margin: 0; }
.price { font-size: 22px; font-weight: 400; font-variant-numeric: tabular-nums; }
.price small { font-size: 16px; color: var(--muted); }
.price s { color: #8C849B; }
.tag-offer { white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--night); background: var(--gold); padding: 5px 12px; border-radius: 999px; }
.features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.features li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; font-size: 16px; line-height: 1.45; color: var(--ink-soft); font-weight: 400; }
.features li::before { content: "·"; color: var(--violet); font-weight: 600; }
.features.plus li::before { content: "+"; }
.plus-note { font-size: 16px; color: var(--muted); font-weight: 400; margin: 0; }
.ea-box { background: var(--mist); border-radius: 14px; padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.ea-box .label { font-size: 16px; font-weight: 600; color: var(--violet); margin: 0; }
.ea-price { display: flex; align-items: baseline; gap: 8px; }
.ea-price strong { font-size: 52px; font-weight: 600; letter-spacing: -1px; font-variant-numeric: tabular-nums; color: var(--night); line-height: 1.1; }
.ea-price span { font-size: 18px; color: var(--muted); }
.ea-box p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink-soft); }

/* FAQ */
.faq .wrap { padding-block: 100px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.faq dl { margin: 0; }
.faq dt { border-top: 1px solid var(--rule); padding-top: 26px; font-size: 22px; font-weight: 600; }
.faq dd { margin: 10px 0 0; padding-bottom: 26px; font-size: 18px; line-height: 1.6; color: var(--ink-soft); }

/* Final call to action */
.final-cta { padding-block: 80px; text-align: center; }
.final-cta .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.final-cta .lead { color: var(--lilac-light); }
.final-cta .btn { margin-top: 8px; }

/* Footer */
.site-footer { background: var(--night-deep); color: var(--lilac); padding-block: 56px 48px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; flex-wrap: wrap; margin-bottom: 36px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand .wordmark { font-size: 34px; }
.footer-brand .signature { font-size: 18px; line-height: 1.45; }
.footer-cols { display: flex; gap: 64px; font-size: 16px; font-weight: 400; flex-wrap: wrap; }
.footer-cols div { display: flex; flex-direction: column; gap: 10px; }
.footer-cols h3 { margin: 0; color: var(--white); font-weight: 600; font-size: 16px; }
.footer-cols a { color: var(--lilac); text-decoration: none; }
.footer-cols a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--night-line); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; color: #9D90B8; }
.social { display: flex; gap: 18px; align-items: center; }
.social a { color: var(--lilac); display: flex; }
.social a:hover { color: var(--white); }

/* Early Access page */
.ea-hero { padding-block: 30px 72px; }
.ea-hero .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.ea-hero h1 { margin: 0; font-size: 56px; line-height: 1.06; font-weight: 600; letter-spacing: -1.2px; }
.ea-hero .join-copy { gap: 20px; }
.ea-summary { background: var(--white); color: var(--ink); border-radius: 20px; padding: 30px 32px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 30px 70px rgba(0,0,0,0.35); }
.form-section { padding-block: 72px 100px; background: var(--mist); }
.form-section .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.form-section h2 { font-size: 40px; text-align: center; }
.form-section .lead { text-align: center; }
.form-frame { width: 100%; max-width: 680px; background: var(--white); border-radius: 20px; padding: 12px; box-shadow: 0 20px 50px rgba(42,26,64,0.12); }
.form-frame iframe { width: 100%; height: 2633px; border: 0; display: block; }
.form-fallback { font-size: 16px; color: var(--muted); }

/* Slim Early Access header */
.ea-hero-slim { padding-block: 24px 56px; }
.ea-hero.ea-hero-slim .wrap { display: flex; flex-direction: column; gap: 14px; max-width: 880px; text-align: center; align-items: center; }
.ea-hero.ea-hero-slim h1 { font-size: 48px; }
.form-section { padding-top: 48px; }

/* Sign-in page */
.signin-wrap { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.signin-main { flex: 1 0 auto; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px 96px; }
.signin-card { width: 100%; max-width: 440px; background: var(--white); color: var(--ink); border-radius: 20px; padding: 40px 36px 32px; box-shadow: 0 30px 70px rgba(0,0,0,0.35); display: flex; flex-direction: column; gap: 6px; }
.signin-card h1 { margin: 0; font-size: 36px; font-weight: 600; letter-spacing: -0.6px; }
.signin-sub { margin: 0 0 18px; color: var(--muted); font-size: 17px; }
.signin-card form { display: flex; flex-direction: column; gap: 8px; }
.signin-card label { font-size: 16px; font-weight: 600; margin-top: 8px; }
.signin-card input { -webkit-appearance: none; appearance: none; box-shadow: none; width: 100%; font: inherit; font-size: 18px; font-weight: 400; padding: 13px 14px; border: 1.5px solid #CFC6DB; border-radius: 10px; background: var(--white); color: var(--ink); }
.signin-card input:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--violet); }
.signin-row { display: flex; justify-content: flex-end; margin: 4px 0 14px; font-size: 15px; font-weight: 400; }
.signin-msg { background: var(--mist); border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.signin-msg p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink-soft); }
.signin-msg .signin-msg-title { font-weight: 600; color: var(--night); font-size: 19px; }
.signin-msg .btn { margin-top: 6px; }
.signin-foot { margin: 20px 0 0; text-align: center; font-size: 16px; color: var(--muted); font-weight: 400; }

/* Responsive */
@media (max-width: 1080px) {
  :root { --gutter: 40px; }
  .hero h1 { font-size: 56px; }
  .join .wrap, .ea-hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .plans, .ea-summary { max-width: 560px; }
}
@media (max-width: 860px) {
  :root { --gutter: 24px; }
  body { font-size: 17px; }
  .hero .wrap { flex-direction: column; align-items: stretch; gap: 40px; }
  .hero-art { flex: 0 0 auto; min-height: 0; padding-block: 24px; }
  .calendar .intro { flex-direction: column; align-items: flex-start; gap: 36px; }
  .calendar .intro .phone { align-self: center; }
  .shots { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .about .wrap > div, .faq .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  h2 { font-size: 36px; }
  .music h2 { font-size: 32px; }
  .join h2, .ea-hero h1 { font-size: 40px; }
  .quote blockquote { font-size: 24px; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .nav { gap: 18px; font-size: 16px; }
  .nav .hide-sm { display: none; }
  .hero h1 { font-size: 44px; letter-spacing: -1px; }
  .hero-sub { font-size: 19px; }
  .signature { font-size: 20px; }
  .legend { grid-template-columns: repeat(2, max-content); }
  .plans, .ea-summary { padding: 26px 20px; }
  .ea-price strong { font-size: 44px; }
  .roadmap { padding: 22px 20px; }
  .btn { padding: 16px 26px; font-size: 18px; }
  .btn-small { padding: 10px 16px; font-size: 16px; }
  .btn-outline { padding: 8.5px 14px; font-size: 16px; }
  .nav { gap: 8px; flex-wrap: nowrap; }
  .site-header .wrap { flex-wrap: nowrap; gap: 12px; }
  .site-header .wordmark { font-size: 26px; white-space: nowrap; }
  .site-header .btn-small { padding: 9px 12px; font-size: 15px; }
  .btn-outline { padding: 7.5px 12px; font-size: 15px; }
  .faq dt { font-size: 20px; }
  .form-frame { padding: 4px; border-radius: 14px; }
}
