/* ============================================================
   Wristream: shared site styles
   Structure mirrors flyenjoy.app; palette is Wristream's own.
   ============================================================ */

/* Wristream palette.
   Role names mirror flyenjoy's so the two stylesheets stay comparable;
   --brand has no flyenjoy equivalent and carries small-text UI that the
   accent cannot (accent maxes out near 4:1 on every surface here). */
:root {
  --dark:   #102742;  /* Surface     - page background, large UI    */
  --darker: #081728;  /* Dark chrome - header, cards, footer        */
  --brand:  #14447B;  /* Brand       - primary buttons, prose links */
  --muted:  #A6ACB5;  /* Neutral     - secondary text              */
  --light:  #F1F0E7;  /* Soft        - body text, light sections    */
  --accent: #C4523F;  /* Accent      - highlights, icons, rules     */

  --muted-on-light: #3A4C63;  /* derived: 7.67:1 on Soft   */
  --accent-hover:   #B84A38;  /* derived: accent deepened for hover, 5.15:1 on white.
                                 flyenjoy lightens on hover because its label is dark;
                                 a white label needs the fill to go darker, not lighter. */
}

/* Base */
body {
  font-family: 'Nunito Sans', sans-serif;
  background-color: var(--dark);
  margin: 0;
  padding: 0;
  color: var(--light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4 {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  line-height: 1.2em;
  margin: 0 0 1em 0;
  text-align: center;
}
h1 { font-size: 4rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.6rem; }

.section-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 2.4rem;
  margin: 0 0 40px 0;
  text-align: center;
}

/* ===================== */
/* Top Navigation Header */
/* ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 23, 40, 0.95);
  backdrop-filter: blur(12px);
}

.nav-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

/* Trimmed asset: 1.87:1. Height drives the glyph directly now, where the
   padded 1024-square rendered a 44px box holding an 18px-tall W. */
.nav-logo-mark {
  height: 26px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-logo-text-block {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-logo-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 1.7rem;
  color: var(--light);
  white-space: nowrap;
}

.nav-logo-title-wri    { color: var(--light); }
.nav-logo-title-stream { color: var(--accent); }

.nav-logo-subtitle {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--muted);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  text-decoration: none;
  color: var(--light);
  opacity: 0.9;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
  opacity: 1;
  border-color: var(--accent);
}

.nav-link--active {
  border-color: var(--accent);
}

@media (max-width: 700px) {
  .nav-wrapper {
    padding: 10px 16px;
    flex-wrap: wrap;
  }
  .nav-logo-title    { font-size: 1.4rem; }
  .nav-logo-subtitle { font-size: 0.8rem; }
  .nav-links {
    gap: 14px;
    font-size: 0.9rem;
  }
}

/* Themes */
.section-dark {
  background-color: var(--dark);
  color: var(--light);
}
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--light);
}

.section-light {
  background-color: var(--light);
  color: var(--dark);
}
.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4 {
  color: var(--dark);
}

/* unified content width + padding */
.section-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 60px;
}

/* Page head on subpages. flyenjoy's non-home pages are a single continuous
   run on the body background, with no theme class and no wave divider, so the head
   drops its bottom padding and flows straight into the content wrapper. */
.section-wrapper--head {
  padding-bottom: 0;
}

/* Subpage headings. flyenjoy centres headings on the home page and left-aligns
   them everywhere else. Every subpage heading stays Soft; only the page title
   takes the accent, so it reads as the title rather than one heading among
   many. Accent on Surface is 3.33:1, under AA for body text but fine for a
   2.4rem title (2rem on mobile), both large text where the threshold is 3:1. */
.subpage h1,
.subpage h2,
.subpage h3,
.subpage h4 {
  text-align: left;
  color: var(--light);
}

.subpage .section-wrapper--head h2 {
  color: var(--accent);
  margin: 20px 0;
}

/* Waves */
.wave-divider { line-height: 0; }
.wave-divider svg {
  width: 100%;
  display: block;
}

.wave-divider--dark-to-light { background-color: var(--light); }
.wave-divider--dark-to-light .wave-fill { fill: var(--dark); }

.wave-divider--light-to-dark { background-color: var(--dark); }
.wave-divider--light-to-dark .wave-fill { fill: var(--light); }

.wave-accent {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6;
  stroke-linecap: round;
}

/* Hero */
.hero-lede {
  font-size: 1.35rem;
  line-height: 1.6em;
  color: var(--muted);
  max-width: 1200px;
  margin: -0.5em auto 36px;
  text-align: center;
}

/* Buttons */
.button-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.button {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.button:hover { transform: translateY(-3px); }

/* Accent fill with a pill radius, following flyenjoy's .contact-button.
   flyenjoy puts Surface on its lighter orange (4.91:1); Wristream's accent is
   darker, so the label goes light instead. Pure white clears AA at 4.54:1
   where Soft would sit just under it at 3.97:1. */
.button--primary {
  background-color: var(--accent);
  color: #ffffff;
  font-weight: 600;
}
.button--primary:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

/* Cards (features / steps) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: var(--darker);
  border-radius: 15px;
  padding: 30px;
  color: var(--light);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  transition: .2s;
}
.feature-card:hover { transform: translateY(-6px); }

.feature-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 15px;
}

.feature-title {
  font-family: 'Manrope', sans-serif;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.feature-description {
  font-size: 1.2rem;
  color: var(--muted);
  line-height: 1.55em;
}

/* Numbered steps */
.step-number {
  font-family: 'Manrope', sans-serif;
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 15px;
  line-height: 1;
}

/* Pills */
.pill {
  display: inline-block;
  padding: 4px 12px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--darker);
  border-radius: 999px;
  border: 1px solid rgba(196, 82, 63, 0.7);
  background: rgba(196, 82, 63, 0.16);
  margin-bottom: 15px;
}


/* ===================== */
/* Accordion (product)   */
/* ===================== */
/* Ported from flyenjoy's product page, repalletted. Headers are real
   <button> elements so they are keyboard-reachable; aria-expanded is kept in
   sync by the inline script on the page. */
.product-intro {
  max-width: 1200px;
  font-size: 1.2rem;
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 24px;
}

.accordion {
  margin-top: 24px;
}

.accordion-item {
  border-top: 1px solid rgba(241, 240, 231, 0.4);
}

.accordion-item:last-of-type {
  border-bottom: 1px solid rgba(241, 240, 231, 0.4);
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  background: transparent;
  border: none;
  color: var(--light);
  font-family: 'Manrope', sans-serif;
  font-size: 1.25rem;
  text-align: left;
  cursor: pointer;
}

.accordion-header span {
  pointer-events: none;
}

.accordion-title {
  flex: 1;
}

.accordion-symbol {
  margin-left: 24px;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    max-height 0.25s ease,
    opacity 0.25s ease,
    transform 0.25s ease,
    padding-bottom 0.25s ease;
  padding-left: 36px;
  padding-right: 4px;
}

.accordion-body p {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--light);
}

.accordion-body ul {
  margin: 0 0 8px 18px;
  padding: 0;
  list-style: disc;
}

.accordion-body li {
  margin-bottom: 6px;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--light);
}

.accordion-item.open .accordion-body {
  max-height: 700px;
  opacity: 1;
  transform: translateY(0);
  padding-bottom: 24px;
  padding-top: 4px;
}

.product-footnote {
  margin-top: 40px;
  font-size: 1.05rem;
  color: var(--muted);
}

/* Text and image side by side, following flyenjoy's .vision-section. */
.split {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin-bottom: 8px;
}

.split-text  { flex: 1 1 55%; min-width: 280px; }
.split-image { flex: 1 1 40%; min-width: 260px; }

.split-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.split-caption {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 10px 0 0;
}

@media (max-width: 768px) {
  .split { flex-direction: column; }
  .split-text,
  .split-image { flex: 1 1 100%; }
}

/* Prose (legal pages, FAQ) */
.prose {
  font-size: 1.1rem;
  line-height: 1.7em;
}
.prose h2 {
  text-align: left;
  font-size: 1.9rem;
  margin: 1.8em 0 0.6em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  text-align: left;
  font-size: 1.35rem;
  margin: 1.6em 0 0.4em;
}
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.4em;
}
.prose li { margin-bottom: 0.5em; }
/* On the dark body background, brand blue is unreadable, so links stay Soft and
   rely on their underline, going Accent on hover. Light sections use Brand. */
/* :not(.button) matters. A bare `.prose a` is specificity (0,2,0) and outranks
   `.button--primary` (0,1,0), so a button inside prose lost its white label and
   went Accent on hover, i.e. red text on a red fill. */
.prose a:not(.button)        { color: var(--light); }
.prose a:not(.button):hover  { color: var(--accent); }

.section-light .prose a:not(.button)       { color: var(--brand); }
.section-light .prose a:not(.button):hover { color: var(--accent); }

.prose-meta {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 2.5em;
}
.section-light .prose-meta { color: var(--muted-on-light); }

/* FAQ */
.faq-item {
  border-top: 1px solid rgba(241, 240, 231, 0.15);
  padding: 22px 0;
}
.faq-item:last-child { border-bottom: 1px solid rgba(241, 240, 231, 0.15); }

.section-light .faq-item             { border-top-color: rgba(16, 39, 66, 0.15); }
.section-light .faq-item:last-child  { border-bottom-color: rgba(16, 39, 66, 0.15); }

.faq-question {
  font-family: 'Manrope', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.faq-answer {
  font-size: 1.1rem;
  line-height: 1.65em;
  color: var(--muted);
}
.section-light .faq-answer { color: var(--muted-on-light); }
.faq-answer p { margin: 0 0 0.9em; }
.faq-answer p:last-child { margin-bottom: 0; }

/* Callout: used for "not medical advice" style notices */
.callout {
  border-left: 4px solid var(--accent);
  background: rgba(196, 82, 63, 0.08);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin: 0 0 1.6em;
  font-size: 1.05rem;
  line-height: 1.65em;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.contact-card {
  background-color: var(--darker);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* :not(.button) again: a bare `.contact-card a` is (0,2,0) and would beat
   `.button--primary` (0,1,0), repainting a button's label accent-on-accent. */
.contact-card a:not(.button) {
  color: var(--accent);
  text-decoration: none;
}
.contact-card a:not(.button):hover { text-decoration: underline; }

.contact-card .button {
  margin-top: 6px;
  font-size: 1rem;
  padding: 11px 22px;
}

/* ===================== */
/* Footer                */
/* ===================== */
/* Boxed disclaimer. Takes .callout's accent spine, but closes the box on all
   four sides: the 8% tint that separates a callout from Surface is nearly
   invisible against the darker footer, so the border has to carry it. */
.footer-notice {
  border: 1px solid rgba(196, 82, 63, 0.45);
  border-left: 4px solid var(--accent);
  background: rgba(196, 82, 63, 0.10);
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  font-size: 1rem;
  line-height: 1.6em;
  color: var(--light);
}

.site-footer {
  background-color: var(--darker);
  color: var(--light);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 32px 36px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 596px;
}

/* Mirrors the header: mark image, then the wordmark as live text. */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-mark {
  height: 26px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.footer-brand-text {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1;
}

@media (max-width: 900px) {
  .footer-mark { height: 22px; }
  .footer-brand-text { font-size: 1.4rem; }
}

.footer-right {
  display: flex;
  gap: 80px;
  align-items: flex-start;
  font-family: 'Nunito Sans', sans-serif;
}

.footer-column-title {
  font-size: 1.4rem;
  color: var(--light);
  margin-bottom: 10px;
  text-align: left;
}

.footer-column-text {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6em;
  text-align: left;
}

.footer-column-text a {
  color: inherit;
  text-decoration: none;
}
.footer-column-text a:hover { text-decoration: underline; }

.footer-legal {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 28px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6em;
}

@media (max-width: 900px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px 28px;
  }
  .footer-right {
    gap: 40px;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .footer-legal { padding: 0 20px 24px; }
}

@media (max-width: 600px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 2rem; }
  .section-wrapper { padding: 32px 16px 48px; }
  .hero-lede { font-size: 1.15rem; }
}
