/* Chashah waitlist site
   Colors: teal rgb(14,62,80) → rgb(34,150,140), cream rgb(252,236,210), coral rgb(240,128,104)
   Font: Nunito (self-hosted variable) */

@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-variable.woff") format("woff");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-italic-variable.woff") format("woff");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --teal-deep: #0e3e50;
  --teal: #22968c;
  --teal-mid: #1a7a7a;
  --cream: #fcecd2;
  --cream-deep: #f3dfc0;
  --cream-darker: #ead2a8;
  --coral: #f08068;
  --coral-deep: #e56b52;
  --ink: #0e3e50;
  --ink-soft: #3d5f6b;
  --paper: #fffaf3;
  --white: #fffcf8;
  --line: rgba(14, 62, 80, 0.12);
  --shadow: 0 16px 40px rgba(14, 62, 80, 0.12);
  --radius: 1.25rem;
  --radius-sm: 0.85rem;
  --max: 70rem;
  --measure: 40rem;
  --font: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 450;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal-mid);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal-deep);
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--white);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

/* Header
   ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 236, 210, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--teal-deep);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  display: block;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--teal-deep);
  border-radius: 0.6rem;
  cursor: pointer;
}

.nav-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.site-nav a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  padding: 0.7rem 1rem;
  border-radius: 0.7rem;
}

.site-nav a:hover {
  background: var(--cream-deep);
  color: var(--teal-deep);
}

.site-nav .nav-cta {
  background: var(--coral);
  color: var(--white);
  text-align: center;
  margin-top: 0.35rem;
}

.site-nav .nav-cta:hover {
  background: var(--coral-deep);
  color: var(--white);
}

@media (max-width: 879px) {
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1.1rem;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: block;
  }
}

@media (min-width: 880px) {
  .nav-toggle { display: none; }

  .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }

  .site-nav a {
    padding: 0.45rem 0.75rem;
    font-size: 0.98rem;
  }

  .site-nav .nav-cta {
    margin-top: 0;
    margin-left: 0.45rem;
    padding: 0.5rem 1rem;
  }
}

/* Hero
   ------------------------------------------------------------------ */
.hero {
  background: linear-gradient(165deg, rgb(14, 62, 80) 0%, rgb(18, 96, 108) 52%, rgb(34, 150, 140) 100%);
  color: var(--cream);
  padding: 2.5rem 1.25rem 3.25rem;
  text-align: center;
}

.hero-inner {
  max-width: 40rem;
  margin: 0 auto;
}

.hero-icon {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 1.65rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  margin-bottom: 1.35rem;
}

.pronounce {
  margin: 0 0 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(252, 236, 210, 0.85);
  font-size: 0.98rem;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 6vw, 3.15rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--cream);
}

.hero .lead {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  line-height: 1.55;
  color: rgba(252, 236, 210, 0.95);
}

.hero .method {
  margin: 0 0 1.75rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--coral);
}

.waitlist {
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  border-radius: calc(var(--radius) + 0.15rem);
  padding: 1.25rem 1.2rem 1.35rem;
  box-shadow: var(--shadow);
}

.waitlist h2 {
  margin: 0 0 0.3rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.waitlist .hint {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.waitlist-form label {
  font-weight: 700;
  font-size: 0.92rem;
}

.waitlist-form input[type="email"] {
  width: 100%;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  padding: 0.8rem 0.95rem;
  border-radius: 0.8rem;
}

.waitlist-form input[type="email"]:focus {
  outline: 3px solid var(--teal);
  outline-offset: 0;
  border-color: var(--teal);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  border-radius: 0.8rem;
  padding: 0.85rem 1.2rem;
  background: var(--coral);
  color: #fff;
}

.btn:hover {
  background: var(--coral-deep);
  color: #fff;
}

.btn-block { width: 100%; }

.form-status {
  margin: 0.85rem 0 0;
  font-weight: 700;
  color: var(--teal-deep);
}

.form-status[hidden] { display: none; }

.form-error { color: #9b2c2c; }

@media (min-width: 640px) {
  .hero {
    padding: 3.5rem 1.5rem 4.25rem;
  }

  .hero-icon {
    width: 9rem;
    height: 9rem;
    border-radius: 2rem;
  }

  .waitlist {
    padding: 1.5rem 1.5rem 1.6rem;
  }

  .form-row {
    display: flex;
    align-items: stretch;
    gap: 0.6rem;
  }

  .form-row .field {
    flex: 1;
  }

  .form-row .btn {
    width: auto;
    white-space: nowrap;
    padding-inline: 1.35rem;
  }

  .form-row .field label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .form-row input[type="email"] {
    height: 100%;
  }
}

/* Shared sections
   ------------------------------------------------------------------ */
.section {
  padding: 3.25rem 1.25rem;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.7rem, 3.6vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section .section-lead {
  margin: 0 0 2rem;
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.section-head .section-lead {
  margin-inline: auto;
}

.band-cream { background: var(--cream); }
.band-paper { background: var(--paper); }
.band-deep { background: var(--cream-deep); }

/* How it works
   ------------------------------------------------------------------ */
.steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps > li {
  list-style: none;
}

.step {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.45rem;
  box-shadow: 0 8px 24px rgba(14, 62, 80, 0.06);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: var(--teal);
  color: var(--cream);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.7rem;
}

.step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

/* Features
   ------------------------------------------------------------------ */
.features {
  display: grid;
  gap: 1rem;
}

.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.3rem;
}

.feature.feature-lead {
  background: var(--teal-deep);
  color: var(--cream);
  border: 0;
}

.feature.feature-lead p { color: rgba(252, 236, 210, 0.9); }

.feature-icon {
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.7rem;
  color: var(--teal);
}

.feature-lead .feature-icon { color: var(--coral); }

.feature h3 {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
  font-weight: 800;
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature.feature-lead {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature.feature-lead {
    grid-column: 1 / span 2;
  }
}

/* Screenshots / phones
   ------------------------------------------------------------------ */
.phones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 1.75rem;
}

.phone {
  margin: 0;
  width: 13.5rem;
  text-align: center;
}

.phone-frame {
  background: var(--teal-deep);
  border-radius: 1.85rem;
  padding: 0.7rem 0.55rem 0.8rem;
  box-shadow: var(--shadow);
  position: relative;
}

.phone-frame::before {
  content: "";
  display: block;
  width: 4.2rem;
  height: 0.7rem;
  background: #0a2e3b;
  border-radius: 999px;
  margin: 0 auto 0.55rem;
}

.phone-screen {
  background: linear-gradient(165deg, #16485a 0%, #1e8a84 100%);
  border-radius: 1.05rem;
  min-height: 22rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 1rem;
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.phone-screen::before {
  content: "$";
  position: absolute;
  font-size: 9rem;
  font-weight: 800;
  color: rgba(255, 240, 215, 0.1);
  line-height: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -54%);
  pointer-events: none;
}

.phone-soon {
  position: relative;
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.3;
  max-width: 8.5rem;
}

.phone-label {
  position: relative;
  margin: 0.45rem 0 0;
  font-weight: 600;
  font-size: 0.85rem;
  color: rgba(252, 236, 210, 0.8);
}

.phone figcaption {
  margin-top: 0.75rem;
  font-weight: 800;
  color: var(--teal-deep);
}

/* Story
   ------------------------------------------------------------------ */
.story {
  display: grid;
  gap: 1.5rem;
}

.story-body p {
  margin: 0 0 1rem;
  font-size: 1.08rem;
}

.story-body p:last-child { margin-bottom: 0; }

.story-aside {
  background: var(--teal-deep);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}

.story-aside p {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.story-aside cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--coral);
}

@media (min-width: 800px) {
  .story {
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
    align-items: center;
  }
}

/* Learn cards
   ------------------------------------------------------------------ */
.learn-grid {
  display: grid;
  gap: 1rem;
}

.learn-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.45rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.learn-card:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.learn-kicker {
  margin: 0 0 0.4rem;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral-deep);
}

.learn-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--teal-deep);
}

.learn-card p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  flex: 1;
}

.learn-card .more {
  font-weight: 800;
  color: var(--teal-mid);
}

@media (min-width: 800px) {
  .learn-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

/* FAQ
   ------------------------------------------------------------------ */
.faq {
  max-width: 50rem;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.2rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 1rem 2rem 1rem 0;
  list-style: none;
  position: relative;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0.9rem;
  color: var(--teal);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1;
}

.faq details[open] summary::after { content: "–"; }

.faq details p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
  padding-right: 1rem;
}

/* Footer
   ------------------------------------------------------------------ */
.site-footer {
  background: var(--teal-deep);
  color: var(--cream);
  padding: 2.5rem 1.25rem 2rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1.25rem;
}

.footer-brand img {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.6rem;
}

.footer-brand-tag {
  margin: 0.35rem 0 0;
  color: var(--coral);
  font-weight: 700;
}

.site-footer a {
  color: var(--cream);
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.footer-links a {
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover { text-decoration: underline; }

.copyright {
  margin: 0.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(252, 236, 210, 0.18);
  color: rgba(252, 236, 210, 0.75);
  font-size: 0.95rem;
}

/* Article pages
   ------------------------------------------------------------------ */
.article-hero {
  background: linear-gradient(165deg, rgb(14, 62, 80) 0%, rgb(34, 150, 140) 100%);
  color: var(--cream);
  padding: 2.5rem 1.25rem 2.75rem;
}

.article-hero-inner {
  max-width: var(--measure);
  margin: 0 auto;
}

.crumb {
  margin: 0 0 0.8rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.crumb a {
  color: var(--cream);
  text-decoration: none;
}

.crumb a:hover { text-decoration: underline; }

.article-hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.85rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.article-hero .deck {
  margin: 0;
  font-size: 1.12rem;
  color: rgba(252, 236, 210, 0.92);
}

.article {
  padding: 2.25rem 1.25rem 3.5rem;
}

.article-inner {
  max-width: var(--measure);
  margin: 0 auto;
}

.article-inner h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.article-inner p,
.article-inner li {
  font-size: 1.08rem;
  color: var(--ink);
}

.article-inner p { margin: 0 0 1rem; }

.article-inner ul,
.article-inner ol {
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
}

.article-inner li { margin-bottom: 0.4rem; }

.callout {
  background: var(--paper);
  border-left: 4px solid var(--teal);
  border-radius: 0 0.9rem 0.9rem 0;
  padding: 1rem 1.15rem;
  margin: 1.4rem 0;
}

.callout p { margin: 0; }

.example {
  background: var(--cream-deep);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
  margin: 1.4rem 0;
}

.example p { margin: 0 0 0.5rem; }
.example p:last-child { margin: 0; }
.example strong { color: var(--teal-deep); }

.article-cta {
  margin-top: 2.5rem;
  background: var(--teal-deep);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.5rem;
}

.article-cta h2 {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
  color: var(--cream);
}

.article-cta p {
  margin: 0 0 1rem;
  color: rgba(252, 236, 210, 0.9);
}

.article-cta .waitlist {
  background: var(--paper);
  color: var(--ink);
}

/* 404 */
.page-simple {
  min-height: 60vh;
  padding: 4rem 1.25rem;
  text-align: center;
}

.page-simple h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.6rem;
}

/* Utilities */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
