/* The signed-out splash page (layouts/splash + app/views/home/splash.html.erb).
   That layout loads only Bootstrap's CSS, this file and splash.js -- none of the
   app's own stylesheets -- so everything the page borrows from the app's look
   (fonts, colour tokens, buttons, fields, flash messages, the navy header) is
   restated here; keep it self-contained. The page is always the dark night sky,
   whatever theme the visitor's device prefers. */

@font-face { font-family: "Source Sans 3"; src: url("/assets/source-sans-3-1bbfac21.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/source-serif-4-e7c4ea87.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }

:root[data-bs-theme="dark"] {
  --lt-navy: #16213e;
  --lt-gold: #ffc53d;
  --lt-gold-hover: #ffd266;
  --lt-ink: #e6eaf2;
  --lt-paper: rgba(20, 31, 62, .62);
  --lt-accent: #ffc53d;
  --lt-accent-soft: rgba(255, 197, 61, .12);
  --lt-font-reading: "Source Serif 4", Georgia, serif;
  --bs-font-sans-serif: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-font-size: .9375rem;
  --bs-body-line-height: 1.5;
  --bs-body-color: var(--lt-ink);
  --bs-body-color-rgb: 230, 234, 242;
  --bs-body-bg: #10172a;
  --bs-body-bg-rgb: 16, 23, 42;
  --bs-emphasis-color: #f5f7fb;
  --bs-secondary-color: #95a0b5;
  --bs-secondary-color-rgb: 149, 160, 181;
  --bs-tertiary-bg: rgba(255, 255, 255, .04);
  --bs-border-color: rgba(255, 255, 255, .12);
  --bs-border-radius: .375rem;
  --bs-link-color: var(--lt-gold);
  --bs-link-color-rgb: 255, 197, 61;
  --bs-link-hover-color: var(--lt-gold-hover);
  --bs-link-hover-color-rgb: 255, 210, 102;
  --bs-focus-ring-color: rgba(255, 197, 61, .35);
}

/* The night sky: the gradient fills the viewport, and the star canvas
   (splash.js) sits fixed behind the content. */
body {
  background: linear-gradient(170deg, #0b1530 0%, #16244a 50%, #2a3a6e 100%) fixed;
  -webkit-font-smoothing: antialiased;
}

a {
  text-underline-offset: 3px;
}

a,
button,
input {
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid var(--lt-gold);
  outline-offset: 3px;
}

.btn {
  --bs-btn-font-size: .9375rem;
  --bs-btn-border-radius: .375rem;
  --bs-btn-padding-y: .4375rem;
  --bs-btn-padding-x: .875rem;
  font-weight: 500;
}

.btn-sm {
  --bs-btn-font-size: .8125rem;
  --bs-btn-padding-y: .25rem;
  --bs-btn-padding-x: .625rem;
}

/* The app's dark-theme primary button: a soft gold tint, not a solid fill. */
.btn-primary {
  --bs-btn-color: var(--lt-gold);
  --bs-btn-bg: rgba(255, 197, 61, .16);
  --bs-btn-border-color: rgba(255, 197, 61, .6);
  --bs-btn-hover-color: var(--lt-gold-hover);
  --bs-btn-hover-bg: rgba(255, 197, 61, .24);
  --bs-btn-hover-border-color: rgba(255, 197, 61, .8);
  --bs-btn-active-color: var(--lt-gold-hover);
  --bs-btn-active-bg: rgba(255, 197, 61, .3);
  --bs-btn-active-border-color: var(--lt-gold);
  --bs-btn-focus-shadow-rgb: 255, 197, 61;
}

.btn-outline-secondary {
  --bs-btn-color: var(--lt-ink);
  --bs-btn-bg: rgba(255, 255, 255, .05);
  --bs-btn-border-color: rgba(255, 255, 255, .18);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: rgba(255, 255, 255, .12);
  --bs-btn-hover-border-color: rgba(255, 255, 255, .32);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: rgba(255, 255, 255, .16);
  --bs-btn-active-border-color: rgba(255, 255, 255, .32);
  --bs-btn-focus-shadow-rgb: 255, 197, 61;
}

.form-control {
  padding: .4375rem .75rem;
  border-color: #6d7891;
  background-color: #141c30;
  color: var(--lt-ink);
  font-size: .9375rem;
}

.form-control::placeholder {
  color: #8390a8;
}

.form-control:focus {
  border-color: var(--lt-gold);
  background-color: #1a2338;
  box-shadow: 0 0 0 .2rem rgba(255, 197, 61, .15);
  color: var(--lt-ink);
}

/* Flash messages ("Signed out successfully"); splash.js fades them out. */
.flash-toasts {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 1090;
  display: flex;
  flex-direction: column-reverse;
  gap: .5rem;
  width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}

.flash-toast {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  pointer-events: auto;
  transition: opacity .8s ease, transform .8s ease;
}

.flash-toast.is-leaving {
  opacity: 0;
  transform: translateY(.5rem);
}

/* The header: the logo and the quiet login row, see-through over the sky. */
.splash-header {
  position: relative;
  z-index: 1;
  padding: max(8px, env(safe-area-inset-top)) 0 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: rgba(11, 21, 48, .5);
  backdrop-filter: blur(8px);
}

.splash-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  max-width: 1280px;
  min-height: 44px;
  margin: 0 auto;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

.splash-header-mark {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 40px;
}

.splash-header-mark .brand-monogram {
  width: 30px;
  height: 30px;
}

.splash-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem max(1rem, env(safe-area-inset-right)) 3rem max(1rem, env(safe-area-inset-left));
  overflow-wrap: anywhere;
}

.splash {
  max-width: 1080px;
  margin: 0 auto;
  padding-bottom: 32px;
}

.splash h1 {
  font-family: var(--lt-font-reading);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* The page's own jump links (Who's it for, See pricing...) glide rather than
   jump, unless the visitor has asked for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.splash section[id] {
  scroll-margin-top: 24px;
}

.splash-sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.splash .splash-persona-tabs .nav-link.active {
  background: rgba(255, 197, 61, .14);
  border-color: rgba(255, 197, 61, .55);
  color: #ffc53d;
}

/* The banner: the logo lockup with the headline, intro and section links. */
.splash-banner {
  margin-bottom: 40px;
  padding: 72px 32px 56px;
  color: #fff;
  text-align: center;
}

.splash-banner-lockup {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 2vw, 18px);
}

.splash-banner-mark {
  width: clamp(76px, 12vw, 132px);
  height: clamp(76px, 12vw, 132px);
  flex-shrink: 0;
}

.splash-banner-wordmark {
  font-family: var(--bs-font-sans-serif);
  font-size: clamp(3.75rem, 11vw, 6.75rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
}

.splash .splash-banner h1 {
  max-width: 30ch;
  text-wrap: balance;
  margin: 32px auto 12px;
  color: #fff;
  font-size: clamp(1.375rem, 2.6vw, 1.875rem);
}

.splash-banner .lead {
  max-width: 60ch;
  text-wrap: pretty;
  margin: 0 auto;
  color: #c9d3ea;
  font-size: 1.0625rem;
}

.splash-hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.splash-banner .btn-outline-secondary {
  --bs-btn-color: #fff;
  --bs-btn-bg: rgba(255, 255, 255, .07);
  --bs-btn-border-color: rgba(255, 255, 255, .2);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: rgba(255, 255, 255, .14);
  --bs-btn-hover-border-color: rgba(255, 255, 255, .34);
  --bs-btn-focus-shadow-rgb: 255, 197, 61;
}

/* The login form in the top bar: deliberately quiet, so the banner leads.
   Lives outside .splash (it's in the layout's nav), hence its own class. */
.splash-nav-login {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 10px;
  margin-left: auto;
}

.splash-nav-field {
  width: 11rem;
  height: 30px;
  padding: 0 .625rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: .375rem;
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font-size: .8125rem;
}

.splash-nav-field::placeholder {
  color: rgba(201, 211, 234, .6);
}

.splash-nav-field:focus {
  outline: none;
  border-color: rgba(255, 197, 61, .6);
  background: rgba(255, 255, 255, .09);
  box-shadow: 0 0 0 .15rem rgba(255, 197, 61, .2);
}

/* Browser autofill otherwise paints the fields pale yellow/blue. */
.splash-nav-field:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  box-shadow: 0 0 0 1000px #1f2d52 inset;
  transition: background-color 9999s;
}

.splash-nav-remember {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9aa6c2;
  font-size: .75rem;
}

.splash-nav-remember .form-check-input {
  width: .875rem;
  height: .875rem;
  margin: 0;
  border-color: rgba(255, 255, 255, .3);
  background-color: transparent;
}

.splash-nav-remember .form-check-input:checked {
  border-color: #ffc53d;
  background-color: #ffc53d;
}

.splash-nav-links {
  color: #7f8bab;
  font-size: .75rem;
}

.splash-nav-links a {
  color: #9aa6c2;
  text-decoration: none;
}

.splash-nav-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.splash-screenshots,
.splash-personas,
.splash-features,
.splash-stats,
.splash-pricing,
.splash-beta {
  padding: 40px 0;
  border-top: 1px solid var(--bs-border-color);
}

.splash-testimonials {
  padding: 24px 0 40px;
}

.splash-screenshots h2,
.splash-personas h2,
.splash-features h2,
.splash-testimonials h2,
.splash-pricing h2,
.splash-beta h2 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.splash-personas .lead,
.splash-pricing .lead {
  text-align: center;
  color: var(--bs-secondary-color);
  margin-bottom: 32px;
}

.splash-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
  margin-top: 32px;
}

.splash-feature {
  padding: 4px;
}

.splash-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lt-accent-soft);
  color: var(--lt-accent);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.splash-feature h3 {
  font-size: 1rem;
  font-weight: 600;
}

.splash-feature p {
  color: var(--bs-secondary-color);
  font-size: .9rem;
  margin-bottom: 0;
}

.splash-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.splash-plan {
  border: 1px solid var(--bs-border-color);
  border-radius: 12px;
  padding: 24px 20px;
  background: var(--lt-paper);
  display: flex;
  flex-direction: column;
}

.splash-plan-featured {
  position: relative;
  border-color: var(--lt-gold);
  box-shadow: 0 0 0 1px var(--lt-gold);
}

.splash-plan-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--lt-gold);
  color: #0b1530;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}

.splash-plan h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.splash-plan-price {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.splash-plan-price span {
  font-size: .9rem;
  font-weight: 400;
  color: var(--bs-secondary-color);
}

.splash-plan-tagline {
  color: var(--bs-secondary-color);
  font-size: .85rem;
  margin-bottom: 16px;
}

.splash-plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  flex-grow: 1;
}

.splash-plan li {
  padding: 5px 0 5px 22px;
  position: relative;
  font-size: .88rem;
}

.splash-plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 13px;
  height: 13px;
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffc53d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='m3 8.5 3.2 3.2L13 4.5'/%3e%3c/svg%3e") no-repeat center / contain;
}

.splash-hero-note {
  color: var(--bs-secondary-color);
  font-size: .85rem;
  margin: 12px 0 0;
}

.splash-pricing-note {
  text-align: center;
  color: var(--bs-secondary-color);
  font-size: .88rem;
  margin: 28px 0 0;
}

/* Screenshots -- each frame holds a rough sketch (app/views/home/shots/); swap
   its .splash-screenshot-art contents for an image_tag once a real screenshot
   exists for that spot. Two across, so the sketches' text stays legible. */
.splash-showcase-tabs {
  margin-top: 20px;
}

.splash-screenshots .tab-pane > .splash-screenshot-grid {
  margin-top: 0;
}

.splash-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 24px;
  margin: 32px 0 0;
}

.splash-screenshot-frame {
  margin: 0;
  border: 1px solid var(--bs-border-color);
  border-radius: 10px;
  overflow: hidden;
  background: var(--lt-paper);
}

.splash-screenshot-chrome {
  display: flex;
  gap: 5px;
  padding: 8px 10px;
  background: var(--bs-tertiary-bg);
  border-bottom: 1px solid var(--bs-border-color);
}

.splash-screenshot-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bs-border-color);
  display: block;
}

/* "See it in action": rough SVG sketches of the app (app/views/home/shots/),
   drawn in the night-sky palette rather than real screenshots. */
.splash-screenshot-art {
  aspect-ratio: 16 / 10;
  background: rgba(8, 14, 32, .45);
}

.splash-shot {
  display: block;
  width: 100%;
  height: 100%;
  font-family: var(--bs-font-sans-serif);
}

.splash-shot .shot-card { fill: rgba(255, 255, 255, .04); stroke: rgba(255, 255, 255, .1); }
.splash-shot .shot-row { fill: rgba(255, 255, 255, .05); }
.splash-shot .shot-row-current { fill: rgba(255, 197, 61, .1); stroke: rgba(255, 197, 61, .45); }
.splash-shot .shot-line { fill: rgba(255, 255, 255, .14); }
.splash-shot .shot-track { fill: rgba(255, 255, 255, .1); }
.splash-shot .shot-cover { fill: #c2502f; }
.splash-shot .shot-text { fill: #e6eaf2; }
.splash-shot .shot-muted { fill: #95a0b5; }
.splash-shot .shot-struck { text-decoration: line-through; }
.splash-shot .shot-gold { fill: #ffc53d; }
.splash-shot .shot-gold-text { fill: #ffc53d; }
.splash-shot .shot-on-gold { fill: #16213e; }
.splash-shot .shot-done { fill: #3f8f5c; }
.splash-shot .shot-tick { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.splash-shot .shot-box { fill: none; stroke: #95a0b5; stroke-width: 1.2; }
.splash-shot .shot-pill { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .14); }
.splash-shot .shot-button { fill: rgba(159, 182, 242, .14); stroke: rgba(159, 182, 242, .45); }
.splash-shot .shot-pill-picked { fill: rgba(255, 197, 61, .14); stroke: rgba(255, 197, 61, .6); }
.splash-shot .shot-due { fill: #f5c451; opacity: .85; }
.splash-shot .shot-chip { fill: rgba(159, 182, 242, .12); stroke: rgba(159, 182, 242, .3); }
.splash-shot .shot-photo { fill: #2a3a6e; }
.splash-shot .shot-photo-art { fill: rgba(255, 255, 255, .22); }
.splash-shot .shot-play-ring { fill: rgba(11, 18, 32, .6); stroke: rgba(255, 197, 61, .7); }
.splash-shot .shot-avatar-coach { fill: #ffc53d; }
.splash-shot .shot-avatar-me { fill: #34529f; }
.splash-shot .shot-bubble-coach { fill: rgba(255, 255, 255, .07); stroke: rgba(255, 255, 255, .12); }
.splash-shot .shot-bubble-me { fill: rgba(159, 182, 242, .16); }
.splash-shot .shot-input { fill: rgba(255, 255, 255, .03); stroke: rgba(255, 255, 255, .14); }

.splash-screenshot-frame figcaption {
  padding: 10px 12px;
  font-size: .85rem;
  color: var(--bs-secondary-color);
  border-top: 1px solid var(--bs-border-color);
}

/* Personas */
.splash-persona-tabs {
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.splash-persona-tabs .nav-link {
  color: var(--lt-ink);
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: .88rem;
}

.splash-persona-tabs .nav-link.active {
  background: var(--lt-accent);
  border-color: var(--lt-accent);
  color: #fff;
}

.splash-persona-panels {
  max-width: 640px;
  margin: 0 auto;
}

.splash-persona-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}

.splash-persona-benefits li {
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px solid var(--bs-border-color);
}

.splash-persona-benefits li:last-child {
  border-bottom: none;
}

.splash-persona-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(8px + .2em);
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cg fill='none' stroke='%23ffc53d' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='8' cy='8' r='6.6'/%3e%3cpath d='m5.2 8.2 2 2 3.6-4'/%3e%3c/g%3e%3c/svg%3e") no-repeat center / contain;
}

/* Stats */
.splash-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  text-align: center;
}

.splash-stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--lt-accent);
  margin-bottom: 2px;
}

.splash-stat-label {
  color: var(--bs-secondary-color);
  font-size: .85rem;
  margin-bottom: 0;
}

/* Testimonials */
.splash-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.splash-testimonial {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--bs-border-color);
  border-radius: 10px;
  background: var(--lt-paper);
}

.splash-testimonial p {
  font-size: .92rem;
  margin-bottom: 12px;
}

.splash-testimonial footer {
  color: var(--bs-secondary-color);
  font-size: .82rem;
}

/* Beta signup */
.splash-beta-box {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.splash-beta-box p {
  color: var(--bs-secondary-color);
  margin-bottom: 20px;
}

.splash-beta-form {
  display: flex;
  gap: 10px;
}

.splash-beta-form .form-control {
  flex-grow: 1;
}

@media (max-width: 767.98px) {
  /* The login row drops under the logo and spans the bar. */
  .splash-header-mark {
    margin-right: 100%;
  }

  .splash-nav-login {
    flex-basis: 100%;
    justify-content: flex-start;
    margin: 8px 0 2px;
  }

  .splash-nav-field {
    flex: 1 1 8rem;
    width: auto;
    height: 36px;
    font-size: 1rem;
  }

  .splash-banner {
    padding: 40px 0 32px;
  }

  .splash-pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .splash-beta-form {
    flex-direction: column;
  }
}

.splash-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--bs-border-color);
  color: var(--bs-secondary-color);
  font-size: .875rem;
}

.splash-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.splash-footer a {
  color: var(--bs-secondary-color);
  text-decoration: none;
}

.splash-footer a:hover {
  color: var(--bs-body-color);
  text-decoration: underline;
}
