/* ============================
   Stridala — Design Tokens
   Concept: Ascending Path — a single flight path
   threads through the page; every section is a stop.
   ============================ */
:root {
  --color-primary: #FC821F;      /* brand orange */
  --color-secondary: #1D8A8B;    /* brand teal */
  --color-ink: #16191F;
  --color-ink-soft: #565C6E;
  --color-bg: #FFFFFF;
  --color-bg-alt: #FAF9F6;
  --color-border: #E9E5DC;

  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-md: 16px;
  --radius-lg: 26px;
  --wrap: 1080px;
  --spine-x: 50%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; color: var(--color-ink-soft); }
a { color: var(--color-secondary); text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 3px; }

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

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: .8em;
}
.eyebrow--tag { color: var(--color-secondary); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 999px;
  padding: .9em 1.8em;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
  border: none;
  cursor: pointer;
  font-size: .95rem;
}
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: 0 8px 20px rgba(252,130,31,.3); }
.btn-primary:hover { background: var(--color-secondary); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(29,138,139,.3); }
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: none;
}
.btn-outline:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); }
.btn-small { padding: .6em 1.3em; font-size: .82rem; }
.btn-large { font-size: 1.02rem; padding: 1em 2.2em; }
.btn-disabled {
  display: inline-block;
  background: #EFEBE3;
  color: #9A9488;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 999px;
  padding: .7em 1.6em;
  font-size: .85rem;
  cursor: not-allowed;
}

/* ============================
   Header
   ============================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner { display: flex; align-items: flex-end; justify-content: space-between; padding-top: 8px; padding-bottom: 16px; }
.brand { display: flex; align-items: flex-end; }
.brand-logo--full { height: 84px; }
.brand-logo--icon { height: 46px; display: none; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { color: var(--color-ink); font-weight: 500; font-size: .92rem; }
.site-nav a:not(.btn):hover { color: var(--color-primary); }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 34px; height: 34px; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--color-ink); border-radius: 2px; }

/* ============================
   Hero — the launch point
   ============================ */
.hero { padding: 50px 0 40px; text-align: center; }
.hero-inner { max-width: 780px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  color: var(--color-ink);
}
.hero h1 .accent { color: var(--color-primary); }
.hero-sub { font-size: 1.15rem; max-width: 620px; margin: 0 auto 1.4em; }

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}
.scroll-cue svg { color: var(--color-secondary); animation: cue-bounce 2s ease-in-out infinite; }
@keyframes cue-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue svg { animation: none; }
}

/* Ascending bars funnel directly into the path spine below */
.hero-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
}
.hero-bars span { display: block; width: 6px; border-radius: 3px 3px 0 0; background: var(--color-secondary); }
.hero-bars span:nth-child(1) { height: 10px; }
.hero-bars span:nth-child(2) { height: 20px; }
.hero-bars span:nth-child(3) { height: 32px; }
.hero-bars span:nth-child(4) { height: 46px; }
.hero-bars span:nth-child(5) { height: 62px; background: var(--color-primary); }

/* ============================
   Journey — the continuous path
   ============================ */
.journey {
  position: relative;
  padding: 0 0 20px;
}
.journey::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: var(--spine-x);
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  border-radius: 3px;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 340px), transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 340px), transparent 100%);
}

.stop { padding: 90px 0; }
.stop-row { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0 64px; }

.stop-spine { display: flex; align-items: center; }
.stop-node {
  position: absolute;
  top: 40px; left: var(--spine-x);
  transform: translateX(-50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 4px solid var(--color-secondary);
  z-index: 2;
}
/* Alternate sides: content left/spine right vs spine left/content right */
.stop--left .stop-content { grid-column: 1; text-align: right; }
.stop--left .stop-spine { grid-column: 2; justify-content: flex-start; }
.stop--right .stop-content { grid-column: 2; text-align: left; }
.stop--right .stop-spine { grid-column: 1; justify-content: flex-end; }

.stop-content--wide { max-width: 560px; }
.stop--left .stop-content--wide { margin-left: auto; }
.stop--right .stop-content--wide { margin-right: auto; }

.term-highlight {
  font-weight: 700;
  color: var(--color-primary);
}
.term-highlight--component {
  font-weight: 700;
  color: var(--color-secondary);
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}
.tool-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: left;
  background: var(--color-bg-alt);
}
.tool-card h3 { font-size: 1.1rem; }

.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; text-align: left; }
.faq-item { background: var(--color-bg-alt); border-radius: var(--radius-md); padding: 4px 22px; border: 1px solid var(--color-border); }
.faq-item summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: 16px 32px 16px 0; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 0; top: 13px;
  font-size: 1.3rem; color: var(--color-primary); transition: transform .2s ease;
}
.faq-item[open] summary::after { content: '\2212'; color: var(--color-secondary); }
.faq-item p { padding-bottom: 16px; margin: 0; }

.contact-sub { font-size: 1rem; }

/* ============================
   Journey close — the path dissolves into open sky.
   No node, no closure: where the student goes next is up to them.
   ============================ */
.journey-close {
  position: relative;
  padding: 130px 0 60px;
  text-align: center;
}
.journey-wisps {
  position: absolute;
  top: 70px; left: var(--spine-x);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.journey-wisps span {
  display: block;
  border-radius: 50%;
  background: var(--color-primary);
}
.journey-wisps span:nth-child(1) { width: 16px; height: 16px; opacity: .55; }
.journey-wisps span:nth-child(2) { width: 12px; height: 12px; opacity: .35; }
.journey-wisps span:nth-child(3) { width: 8px; height: 8px; opacity: .2; }
.journey-close-text {
  max-width: 460px;
  margin: 40px auto 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-ink);
}

/* ============================
   Contact — decoupled from the journey on purpose.
   Plain support utility, not a symbolic destination.
   ============================ */
.contact-plain { padding: 90px 0; background: var(--color-bg-alt); text-align: center; }
.contact-plain-inner { max-width: 480px; margin: 0 auto; }
.contact-plain-secondary { font-size: .9rem; margin-top: 1.4em; }

/* Scroll-reveal (respects reduced motion) */
.stop-content { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.stop-content.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .stop-content { opacity: 1; transform: none; transition: none; }
}

/* ============================
   Footer
   ============================ */
.site-footer { background: var(--color-ink); padding: 44px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-logo { height: 40px; }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a { color: #C9CDD8; font-size: .88rem; }
.footer-nav a:hover { color: var(--color-primary); }
.footer-copy { color: #767C90; font-size: .82rem; margin: 0; width: 100%; text-align: center; order: 3; }

/* ============================
   Responsive
   ============================ */
@media (max-width: 500px) {
  .journey-close-text { padding: 0 24px; }
}

@media (max-width: 780px) {
  :root { --spine-x: 20px; }
  .stop-row { grid-template-columns: 40px 1fr; gap: 0 20px; }
  .stop--left .stop-content, .stop--right .stop-content { grid-column: 2; text-align: left; }
  .stop--left .stop-spine, .stop--right .stop-spine { grid-column: 1; justify-content: center; }
  .stop-content--wide, .stop--left .stop-content--wide, .stop--right .stop-content--wide { max-width: none; margin: 0; }
  .stop { padding: 56px 0; }
  .tool-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 20px 24px 28px; gap: 18px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 12px 20px rgba(0,0,0,.06);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav .btn { width: 100%; text-align: center; }
  .nav-toggle { display: flex; }
  .brand-logo--full { display: none; }
  .brand-logo--icon { display: block; }
  .hero { padding: 72px 0 30px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
