/* Coachuddle homepage. Same brand tokens as the app (app/globals.css). */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/jakarta.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Baloo 2";
  src: url("fonts/baloo-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #fffbf5;
  --surface: #ffffff;
  --paper: #fdead5;
  --ink: #121f51;
  --muted: #4f5878;
  --line: #efe6da;
  --line-strong: #dccfbe;
  --brand: #20a1a8;
  --brand-press: #17797e;
  --brand-soft: #dff2f3;
  --link: #157a80;
  --coral: #ff7058;
  --coral-press: #d9533c;
  --coral-ink: #9a3a24;
  --display: "Baloo 2", "Plus Jakarta Sans", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--link);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(40px, 7vw, 64px);
}

h2 {
  font-size: clamp(32px, 5vw, 44px);
}

h3 {
  font-size: 24px;
}

p {
  margin: 0;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--link);
}

.lead {
  font-size: 19px;
  color: var(--muted);
}

/* Buttons: bright fills with navy text and a pressable edge, like the app. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font: 800 17px var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s;
}

.btn-brand {
  background: var(--brand);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--brand-press);
}

.btn-coral {
  background: var(--coral);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--coral-press);
}

.btn-brand:active,
.btn-coral:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--brand-press);
}

.btn-quiet {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}

.btn:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 251, 245, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-header .logo img {
  height: 32px;
  width: auto;
}

.site-header .btn {
  height: 42px;
  padding: 0 18px;
  font-size: 15px;
}

/* Hero */
.hero {
  padding: 36px 0 72px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero h1 .accent {
  color: var(--brand);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.fine {
  font-size: 14px;
  color: var(--muted);
}

.phones {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 560px;
}

.phones::before {
  content: "";
  position: absolute;
  inset: 8% 4% 2%;
  border-radius: 48% 52% 46% 54%;
  background: var(--paper);
  z-index: -1;
}

/* A plain phone frame around a screenshot. */
.phone {
  width: 260px;
  border-radius: 42px;
  padding: 9px;
  background: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(18, 31, 81, 0.35);
}

.phone img {
  border-radius: 33px;
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 844;
  object-fit: cover;
}

.phones .phone.back {
  position: absolute;
  transform: translate(-46%, 34px) rotate(-6deg) scale(0.88);
  opacity: 0.98;
}

.phones .phone.front {
  position: relative;
  transform: translateX(22%) rotate(3deg);
}

/* Sections */
section {
  scroll-margin-top: 80px;
}

.section {
  padding: 80px 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
  margin-bottom: 40px;
}

.paper {
  background: var(--paper);
}

/* "Sound familiar?" */
.quotes {
  display: grid;
  gap: 16px;
}

.quote {
  background: var(--surface);
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quote strong {
  font-family: var(--display);
  font-size: 23px;
  line-height: 1.15;
}

.quote p {
  color: var(--muted);
}

/* How it works */
.steps {
  display: grid;
  gap: 56px;
}

.step {
  display: grid;
  gap: 28px;
  align-items: center;
}

.step .phone {
  width: 240px;
  margin: 0 auto;
}

.step-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 460px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  font-family: var(--display);
  font-size: 22px;
  color: var(--ink);
}

.step-copy ul {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-copy li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}

.step-copy li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
}

/* Grades */
.grades {
  display: grid;
  gap: 16px;
}

.grade {
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: 22px;
  padding: 24px;
}

.grade .tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}

.grade:nth-child(1) .tag {
  background: var(--paper);
  color: var(--coral-ink);
}

.grade:nth-child(2) .tag {
  background: #ece7ff;
  color: #3b2e8a;
}

.grade:nth-child(3) .tag {
  background: var(--brand-soft);
  color: var(--link);
}

.grade p {
  color: var(--muted);
  margin-top: 6px;
}

/* Beta signup */
.signup {
  background: var(--ink);
  color: #fff;
  border-radius: 32px;
  padding: 40px 24px;
  display: grid;
  gap: 32px;
}

.signup h2 {
  color: #fff;
}

.signup .lead {
  color: #c9cee3;
}

.perks {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #e4e7f2;
}

.perks li::before {
  content: "✓";
  color: var(--brand);
  font-weight: 800;
  margin-right: 10px;
}

.form {
  background: var(--canvas);
  color: var(--ink);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 0;
  margin: 0;
  min-width: 0;
}

.form iframe {
  display: block;
  width: 100%;
  min-height: 480px;
  border: 0;
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}

.faq details {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 0 20px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-size: 18px;
  padding: 18px 32px 18px 0;
  position: relative;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 600;
  color: var(--link);
}

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

.faq details p {
  padding-bottom: 18px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  padding: 48px 0 56px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  color: var(--muted);
}

.site-footer img {
  height: 24px;
  width: auto;
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

/* Simple text pages (privacy) */
.doc {
  max-width: 720px;
  padding: 48px 20px 40px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.doc h2 {
  font-size: 26px;
  margin-top: 16px;
}

.doc p,
.doc li {
  color: var(--muted);
}

/* Wider screens */
@media (min-width: 640px) {
  .quotes,
  .grades {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 56px 0 96px;
  }

  .hero .wrap {
    grid-template-columns: 1.05fr 1fr;
  }

  .phones {
    min-height: 620px;
  }

  .phone {
    width: 280px;
  }

  .step {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .step:nth-child(even) .phone {
    order: 2;
  }

  .step .phone {
    width: 260px;
  }

  .signup {
    grid-template-columns: 1fr 1fr;
    padding: 56px;
    align-items: center;
  }
}

@media (max-width: 420px) {
  .phones {
    min-height: 500px;
  }

  .phone {
    width: 230px;
  }

  .phones .phone.back {
    transform: translate(-40%, 30px) rotate(-6deg) scale(0.84);
  }

  .phones .phone.front {
    transform: translateX(18%) rotate(3deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
