/* ==========================================================================
   Diaulos — diaulos.app landing page styles
   Converted from templates/diaulos-landing/DiaulosLanding.dc.html
   Palette / type / layout truth: templates/diaulos-landing/website-design-decisions.md
   ========================================================================== */

/* -- Reset + globals (from template <helmet>) ---------------------------- */

*{box-sizing:border-box}

:root{
  /* Palette — decisions doc §2 */
  --cream:#F4F1EA;
  --surface:#FCFBF8;
  --teal:#17586B;
  --teal-dark:#0F3D4A;
  --text-primary:#17262B;
  --text-body:#40575B;
  --text-body-alt:#4E6266;
  --text-muted:#7A8B8E;
  --text-muted-alt:#6B7C7F;
  --text-nav:#566B6F;
  --text-req:#2B3D40;
  --text-link-alt:#3C5458;
  --text-footer-blurb:#5A6B6E;
  --hairline:rgba(23,88,107,.13);
  --hairline-soft:rgba(23,88,107,.12);
  --hover-fill:rgba(23,88,107,.08);
  --eyebrow-fill:rgba(23,88,107,.09);
  --accent-on-dark:#8FC7D6;
  --body-on-dark:#B9D0D6;
  --body-on-dark-alt:#AFC7CD;
  --cta-sub:#C3D8DD;
  --green:#2E9E6B;
  --green-halo:rgba(46,158,107,.2);
  --grey-off:#A9B4B6;
  --selection:rgba(23,88,107,.18);
  --mockup-grad-start:#EAF0EF;
  --mockup-grad-end:#D8E4E3;

  --font-display:'Space Grotesk',sans-serif;
  --font-body:'IBM Plex Sans',system-ui,-apple-system,sans-serif;
  --font-mono:'IBM Plex Mono',monospace;
}

body{
  margin:0;
  background:var(--cream);
  color:var(--text-primary);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  min-height:100vh;
  overflow-x:hidden;
}

a{color:var(--teal);text-decoration:none}
a:hover{color:var(--teal-dark)}
::selection{background:var(--selection)}

a:focus-visible,summary:focus-visible{
  outline:2px solid var(--teal);
  outline-offset:3px;
  border-radius:4px;
}

/* -- Motion ---------------------------------------------------------------- */

@keyframes pulse{
  0%,100%{opacity:.85}
  50%{opacity:.35}
}

@media (prefers-reduced-motion: reduce){
  .dot-on{animation:none}
}

/* -- Layout shell ------------------------------------------------------------ */

.container{
  max-width:1120px;
  margin:0 auto;
  padding:0 24px;
}

/* -- Nav --------------------------------------------------------------------- */

.nav{
  position:sticky;
  top:0;
  z-index:30;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  background:rgba(244,241,234,.82);
  border-bottom:1px solid var(--hairline-soft);
}

.nav-inner{
  height:66px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.logo{
  display:flex;
  align-items:center;
  gap:11px;
  color:var(--text-primary);
}

.logo-mark{
  width:32px;
  height:32px;
  border-radius:9px;
  background:var(--teal);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 2px 6px rgba(15,61,74,.28);
  flex:none;
}

.wordmark{
  font-family:var(--font-display);
  font-weight:600;
  font-size:20px;
  letter-spacing:-.01em;
}

.nav-links{
  display:flex;
  align-items:center;
  gap:26px;
  flex-wrap:wrap;
}

.nav-link{
  font-size:14.5px;
  color:var(--text-nav);
}

/* -- Buttons ------------------------------------------------------------------ */

.btn{
  display:inline-flex;
  align-items:center;
  gap:11px;
  padding:15px 24px;
  background:var(--teal);
  color:var(--cream);
  border-radius:13px;
  font-family:var(--font-display);
  font-weight:600;
  font-size:16.5px;
  box-shadow:0 8px 24px rgba(23,88,107,.26);
}

.btn:hover{
  background:var(--teal-dark);
  color:var(--cream);
}

.btn-small{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 16px;
  background:var(--teal);
  color:var(--cream);
  border-radius:10px;
  font-family:var(--font-display);
  font-weight:600;
  font-size:14.5px;
  box-shadow:0 3px 12px rgba(23,88,107,.22);
}

.btn-small:hover{
  background:var(--teal-dark);
  color:var(--cream);
}

/* -- Eyebrow -------------------------------------------------------------------- */

.eyebrow{
  display:inline-block;
  font-family:var(--font-mono);
  font-size:12.5px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--teal);
  background:var(--eyebrow-fill);
  padding:5px 11px;
  border-radius:6px;
}

.eyebrow-on-dark{
  color:var(--accent-on-dark);
  background:none;
  padding:0;
}

/* -- Hero ------------------------------------------------------------------------ */

.hero{
  padding:clamp(48px,7vw,92px) 24px clamp(40px,6vw,72px);
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:clamp(32px,5vw,64px);
  align-items:center;
}

.hero-title{
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(36px,5.4vw,60px);
  line-height:1.04;
  letter-spacing:-.02em;
  margin:22px 0 0;
  color:var(--text-primary);
}

.hero-sub{
  font-size:clamp(16px,1.6vw,18.5px);
  line-height:1.55;
  color:var(--text-body);
  margin:20px 0 0;
  max-width:46ch;
}

.hero-cta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:16px;
  margin-top:32px;
}

.hero-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--font-display);
  font-weight:500;
  font-size:15.5px;
  color:var(--teal);
}

.hero-link:hover{color:var(--teal-dark)}

.hero-caption{
  font-family:var(--font-mono);
  font-size:12.5px;
  color:var(--text-muted-alt);
  margin:16px 0 0;
  letter-spacing:.02em;
}

/* -- Hero mockup ------------------------------------------------------------------ */

.hero-visual{
  position:relative;
  min-height:340px;
}

.mockup{
  position:relative;
  border-radius:20px;
  background:linear-gradient(155deg,var(--mockup-grad-start) 0%,var(--mockup-grad-end) 100%);
  border:1px solid var(--hairline-soft);
  box-shadow:0 24px 60px -20px rgba(15,61,74,.4);
  overflow:hidden;
  padding:52px 26px 30px;
}

.hero-svg{
  display:block;
  width:100%;
  height:auto;
  max-width:460px;
  margin:6px auto 0;
}

.menu-bar{
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:30px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:14px;
  padding:0 12px;
  background:rgba(255,255,255,.5);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}

.menubar-glyph{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:22px;
  border-radius:6px;
  background:var(--teal);
  box-shadow:0 1px 4px rgba(15,61,74,.35);
  flex:none;
}

.menubar-clock{
  font-family:var(--font-mono);
  font-size:12px;
  color:var(--text-link-alt);
}

.menu-panel{
  position:absolute;
  top:38px;
  right:14px;
  width:250px;
  background:var(--surface);
  border:1px solid var(--hairline-soft);
  border-radius:13px;
  box-shadow:0 18px 44px -12px rgba(15,61,74,.5);
  padding:6px;
}

.menu-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:8px 10px;
  border-radius:8px;
  font-size:13px;
}

.menu-row:hover{background:var(--hover-fill)}

.menu-row--active{font-weight:600}

.menu-row-label{
  display:inline-flex;
  align-items:center;
  gap:9px;
}

.status-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--grey-off);
  flex:none;
}

.dot-on{
  background:var(--green);
  box-shadow:0 0 0 3px var(--green-halo);
  animation:pulse 2.4s ease-in-out infinite;
}

.menu-divider{
  height:1px;
  background:var(--hairline-soft);
  margin:5px 8px;
}

.menu-value{
  color:var(--text-muted);
  font-size:12px;
}

.menu-check{
  color:var(--teal);
  font-weight:600;
}

/* -- How it works ------------------------------------------------------------------- */

.how{
  background:var(--teal-dark);
  color:#EAF0EF;
}

.how-inner{
  padding:clamp(64px,9vw,110px) 24px;
}

.section-title{
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(28px,3.6vw,42px);
  line-height:1.1;
  letter-spacing:-.02em;
  margin:14px 0 0;
  color:var(--text-primary);
}

.how .section-title{
  max-width:20ch;
  color:var(--cream);
}

.section-lead{
  font-size:17px;
  line-height:1.6;
  color:var(--body-on-dark);
  margin:16px 0 0;
  max-width:56ch;
}

.steps{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:24px;
  margin-top:48px;
}

.step-card{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(143,199,214,.2);
  border-radius:15px;
  padding:26px 24px;
}

.step-n{
  font-family:var(--font-mono);
  font-size:13px;
  color:var(--accent-on-dark);
  letter-spacing:.06em;
}

.step-title{
  font-family:var(--font-display);
  font-weight:600;
  font-size:19px;
  margin:12px 0 0;
  color:var(--cream);
}

.step-body{
  font-size:14.5px;
  line-height:1.6;
  color:var(--body-on-dark-alt);
  margin:9px 0 0;
}

/* -- Features ------------------------------------------------------------------------- */

.features{
  padding:clamp(64px,9vw,110px) 24px;
}

.features .section-title{
  max-width:18ch;
}

.features-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:22px;
  margin-top:44px;
}

.feature-card{
  background:var(--surface);
  border:1px solid var(--hairline);
  border-radius:15px;
  padding:26px 24px;
}

.feature-card:hover{
  border-color:rgba(23,88,107,.3);
  box-shadow:0 10px 28px -14px rgba(15,61,74,.35);
}

.feature-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:12px;
  background:var(--eyebrow-fill);
}

.feature-title{
  font-family:var(--font-display);
  font-weight:600;
  font-size:19px;
  margin:18px 0 0;
  color:var(--text-primary);
}

.feature-body{
  font-size:14.5px;
  line-height:1.6;
  color:var(--text-body-alt);
  margin:8px 0 0;
}

/* -- Requirements ------------------------------------------------------------------------ */

.requirements{
  padding:0 24px clamp(56px,8vw,96px);
}

.req-panel{
  background:var(--surface);
  border:1px solid var(--hairline);
  border-radius:18px;
  padding:clamp(28px,4vw,48px);
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:clamp(28px,4vw,56px);
  align-items:center;
}

.req-panel .section-title{
  font-size:clamp(24px,3vw,34px);
  line-height:1.12;
  margin:12px 0 0;
}

.req-lead{
  font-size:15px;
  line-height:1.6;
  color:var(--text-body-alt);
  margin:14px 0 0;
  max-width:40ch;
}

.req-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.req-item{
  display:flex;
  gap:13px;
  align-items:flex-start;
  padding:13px 0;
  border-top:1px solid var(--hairline-soft);
}

.req-icon{
  flex:none;
  margin-top:2px;
}

.req-title{
  font-weight:600;
  color:var(--text-req);
}

.req-text{
  font-size:14.5px;
  line-height:1.5;
  color:var(--text-req);
}

/* -- FAQ ------------------------------------------------------------------------------------ */

.faq{
  max-width:820px;
  margin:0 auto;
  padding:0 24px clamp(64px,9vw,110px);
}

.faq .section-title{
  margin:14px 0 32px;
}

.faq-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.faq-item{
  background:var(--surface);
  border:1px solid var(--hairline);
  border-radius:15px;
  padding:4px 22px;
}

.faq-item:hover{border-color:rgba(23,88,107,.28)}

.faq-item summary{
  font-family:var(--font-display);
  font-weight:600;
  font-size:17px;
  color:var(--text-primary);
  cursor:pointer;
  padding:16px 0;
  list-style:none;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}

.faq-item summary::-webkit-details-marker{display:none}

.faq-item summary::after{
  content:'+';
  color:var(--teal);
  font-weight:400;
  font-size:22px;
  line-height:1;
  flex:none;
  transition:transform .2s ease;
}

.faq-item[open] summary::after{
  transform:rotate(45deg);
}

.faq-item p{
  font-size:15px;
  line-height:1.65;
  color:var(--text-body-alt);
  margin:0 0 18px;
}

/* -- CTA ------------------------------------------------------------------------------------- */

.cta{
  padding:0 24px clamp(64px,9vw,110px);
}

.cta-card{
  background:linear-gradient(150deg,var(--teal) 0%,var(--teal-dark) 100%);
  border-radius:22px;
  padding:clamp(40px,6vw,72px) clamp(28px,5vw,64px);
  text-align:center;
  box-shadow:0 26px 60px -24px rgba(15,61,74,.6);
}

.cta-title{
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(30px,4.4vw,50px);
  line-height:1.06;
  letter-spacing:-.02em;
  margin:0;
  color:var(--cream);
  max-width:16ch;
  margin-inline:auto;
}

.cta-sub{
  font-size:clamp(16px,1.7vw,19px);
  line-height:1.55;
  color:var(--cta-sub);
  margin:18px auto 0;
  max-width:44ch;
}

.cta-actions{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  margin-top:34px;
}

.cta-actions .btn{
  background:var(--cream);
  color:var(--teal-dark);
  box-shadow:0 10px 30px -8px rgba(0,0,0,.4);
}

.cta-actions .btn:hover{
  background:#fff;
  color:var(--teal-dark);
}

.cta-note{
  font-family:var(--font-mono);
  font-size:12px;
  color:var(--accent-on-dark);
  letter-spacing:.03em;
}

/* -- Footer ------------------------------------------------------------------------------------ */

.footer{
  border-top:1px solid var(--hairline);
}

.footer-top{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:36px;
  padding-top:clamp(40px,6vw,64px);
  padding-bottom:clamp(40px,6vw,64px);
}

.footer-brand{
  max-width:30ch;
}

.footer .logo-mark{
  width:30px;
  height:30px;
}

.footer .wordmark{
  font-size:18px;
}

.footer-blurb{
  font-size:13.5px;
  line-height:1.6;
  color:var(--text-footer-blurb);
  margin:14px 0 0;
}

.footer-heading{
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--text-muted);
  margin:0 0 14px;
  font-weight:500;
}

.footer-links{
  display:flex;
  flex-direction:column;
  gap:9px;
  font-size:14.5px;
}

.footer-links a{
  color:var(--text-link-alt);
}

.footer-bottom{
  border-top:1px solid var(--hairline-soft);
  padding-top:22px;
  padding-bottom:40px;
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:space-between;
  font-family:var(--font-mono);
  font-size:12px;
  color:var(--text-muted);
}

/* -- Shared text-page wrapper (privacy / support pages) ------------------------------------------ */

.prose{
  max-width:68ch;
  margin:0 auto;
  padding:clamp(48px,7vw,80px) 24px;
}

.prose h1{
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(30px,4vw,44px);
  letter-spacing:-.02em;
  line-height:1.1;
  color:var(--text-primary);
  margin:0 0 24px;
}

.prose h2{
  font-family:var(--font-display);
  font-weight:600;
  font-size:24px;
  letter-spacing:-.01em;
  line-height:1.2;
  color:var(--text-primary);
  margin:40px 0 12px;
}

.prose p{
  font-size:16px;
  line-height:1.65;
  color:var(--text-body);
  margin:0 0 16px;
}

.prose ul,.prose ol{
  font-size:16px;
  line-height:1.65;
  color:var(--text-body);
  padding-left:22px;
  margin:0 0 16px;
}

.prose a{font-weight:500}

/* -- Error page (404.html) ------------------------------------------------------------------------ */

.error-page{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:24px;
  gap:12px;
}

.error-page h1{
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(48px,10vw,96px);
  letter-spacing:-.02em;
  color:var(--teal);
  margin:0;
}

.error-page p{
  font-size:16px;
  line-height:1.5;
  color:var(--text-body);
  margin:0;
  max-width:40ch;
}

.error-page a{font-weight:600}
