/* Skoolie Design System — foundations */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/BricolageGrotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/HankenGrotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Raw palette */
  --paper:        #F6F3EC;
  --paper-sunk:   #EFEBE1;
  --surface:      #FFFFFF;
  --surface-2:    #FBF9F4;

  --ink-900:      #1B241F;
  --ink-700:      #3A453E;
  --ink-500:      #5E6862;
  --ink-400:      #828B85;
  --ink-300:      #AEB4AE;

  --line-strong:  #DAD4C8;
  --line:         #E6E1D6;

  --spruce-900:   #0E3528;
  --spruce-700:   #15543F;
  --spruce-600:   #1A6249;
  --spruce-500:   #25785B;
  --spruce-300:   #8FBFAC;
  --spruce-100:   #DCEBE3;
  --spruce-050:   #ECF4EF;

  --honey-600:    #C7821B;
  --honey-500:    #E3A12E;
  --honey-100:    #FBEECF;
  --honey-050:    #FCF6E6;

  --green-600:    #237A52;
  --green-100:    #D7EDDF;

  /* Semantic tokens */
  --bg:               var(--paper);
  --bg-sunk:          var(--paper-sunk);
  --card:             var(--surface);

  --fg1:              var(--ink-900);
  --fg2:              var(--ink-500);
  --fg3:              var(--ink-400);
  --fg-on-brand:      #F3FAF6;
  --fg-on-honey:      #3A2A07;

  --brand:            var(--spruce-600);
  --brand-strong:     var(--spruce-700);
  --brand-press:      var(--spruce-900);
  --brand-tint:       var(--spruce-100);
  --brand-tint-soft:  var(--spruce-050);
  --accent:           var(--honey-500);
  --accent-strong:    var(--honey-600);
  --border:           var(--line-strong);

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-text:    "Hanken Grotesk", system-ui, sans-serif;

  --radius-sm:  10px;
  --radius-md:  14px;
  --radius-lg:  18px;
  --radius-xl:  24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(27,36,31,.05), 0 2px 6px rgba(27,36,31,.05);
  --shadow-md: 0 2px 4px rgba(27,36,31,.05), 0 8px 20px rgba(27,36,31,.07);
  --shadow-lg: 0 6px 16px rgba(27,36,31,.08), 0 24px 48px rgba(27,36,31,.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-text);
  background: var(--bg);
  color: var(--fg1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── NAV ─────────────────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: 1120px;
  margin: 0 auto;
}

.logomark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logomark img { width: 36px; height: 36px; }
.logomark-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-press);
  letter-spacing: -0.02em;
}

.nav-cta {
  background: #8AC2E5;
  color: #1A3A4A;
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background 0.15s;
}
.nav-cta:hover { background: #6BAFD9; }

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 88px 24px 72px;
  max-width: 800px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: var(--honey-100);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg1);
  margin-bottom: 8px;
}

.hero h1 .line2 {
  color: #8AC2E5;
}

.hero .subhead {
  font-size: clamp(17px, 2.5vw, 20px);
  color: var(--fg2);
  max-width: 580px;
  margin: 20px auto 40px;
  line-height: 1.65;
}

/* Trust badges */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg2);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-600);
  flex-shrink: 0;
}

/* Email form */
.form-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.form-row {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 500px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 20px;
  box-shadow: var(--shadow-sm);
}

.form-row input[type="email"] {
  flex: 1;
  font-family: var(--font-text);
  font-size: 15px;
  color: var(--fg1);
  background: transparent;
  border: none;
  outline: none;
  min-width: 0;
}

.form-row input[type="email"]::placeholder { color: var(--fg3); }

.form-row button {
  flex-shrink: 0;
  padding: 10px 22px;
  background: #8AC2E5;
  color: #1A3A4A;
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.form-row button:hover { background: #6BAFD9; }
.form-row button:active { background: #4F9DC8; }
.form-row button:disabled { opacity: 0.6; cursor: not-allowed; }

.form-note { font-size: 13px; color: var(--fg3); }

.form-success {
  display: none;
  background: var(--green-100);
  border: 1.5px solid var(--green-600);
  color: var(--green-600);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  max-width: 500px;
  width: 100%;
  text-align: center;
}

.form-error {
  display: none;
  font-size: 13px;
  color: #B23A24;
}

/* ── APP SCREENSHOT ─────────────────────────────────────── */
.screenshot-section {
  padding: 0 24px 80px;
  display: flex;
  justify-content: center;
}

.screenshot-wrap {
  position: relative;
  max-width: 340px;
  width: 100%;
}

.phone-frame {
  border-radius: 40px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(27,36,31,.08);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 390/844;
  width: 100%;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── FEATURES ─────────────────────────────────────────── */
.features {
  padding: 80px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}

.features-header {
  text-align: center;
  margin-bottom: 56px;
}

.features-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg1);
  margin-bottom: 12px;
}

.features-header p {
  font-size: 17px;
  color: var(--fg2);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.65;
}

.features-inner { max-width: 1040px; margin: 0 auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--brand-tint);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg1);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 15px;
  color: var(--fg2);
  line-height: 1.65;
}

/* ── PROBLEM ─────────────────────────────────────────── */
.problem {
  padding: 88px 24px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.problem h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg1);
  margin-bottom: 24px;
}

.problem p {
  font-size: 17px;
  color: var(--fg2);
  line-height: 1.75;
  margin-bottom: 20px;
}

.problem p strong { color: var(--brand-strong); }

/* ── PROVIDERS ─────────────────────────────────────────── */
.providers {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 24px 80px;
}

.provider-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg2);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.provider-chip span { font-size: 16px; }

/* ── BOTTOM CTA ─────────────────────────────────────────── */
.bottom-cta {
  background: #8AC2E5;
  text-align: center;
  padding: 88px 24px;
}

.bottom-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1A3A4A;
  margin-bottom: 14px;
}

.bottom-cta .subhead {
  font-size: 17px;
  color: rgba(26,58,74,0.75);
  max-width: 440px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.bottom-cta .form-row {
  background: rgba(255,255,255,0.45);
  border-color: rgba(26,58,74,0.15);
}

.bottom-cta .form-row input[type="email"] { color: #1A3A4A; }
.bottom-cta .form-row input[type="email"]::placeholder { color: rgba(26,58,74,0.4); }

.bottom-cta .form-row button {
  background: #1A3A4A;
  color: #fff;
}
.bottom-cta .form-row button:hover { background: #0E2A38; }

.bottom-cta .form-note { color: rgba(26,58,74,0.55); }

.bottom-cta .form-success {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  color: var(--fg-on-brand);
}

/* ── FOOTER ─────────────────────────────────────────── */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 28px 32px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--fg3);
  background: var(--surface);
}

footer a { color: var(--fg2); text-decoration: none; }
footer a:hover { color: var(--brand); }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 600px) {
  nav { padding: 16px 20px; }
  .nav-cta { display: none; }

  .form-row {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: 12px 16px;
  }
  .form-row input[type="email"] { font-size: 16px; }
  .form-row button { width: 100%; border-radius: var(--radius-md); }

  footer { padding: 24px 20px; justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
