/* ==========================================================================
   Skooltap — marketing site
   Tokens mirror the Skooltap app design system.
   ========================================================================== */

:root {
  /* Brand */
  --green:        #1f5f46;
  --green-dark:   #1a5540;
  --green-tint:   #dcebe2;
  --ink:          #18261f;
  --ink-soft:     #26392f;
  --accent:       #e8735a;
  --accent-tint:  #f7dcd3;

  /* Surfaces */
  --bg:           #f2f5f0;
  --surface:      #ffffff;
  --line:         #dde5d8;
  --muted:        #5d6d64;
  --muted-light:  #97a89e;

  /* Shape */
  --radius:       8px;
  --radius-lg:    16px;
  --shadow:       0 1px 2px rgba(24, 38, 31, .06);
  --shadow-md:    0 4px 16px rgba(24, 38, 31, .07);
  --shadow-lg:    0 24px 60px rgba(24, 38, 31, .14);

  /* Rhythm */
  --wrap:         1180px;
  --gutter:       24px;
  --section-y:    clamp(72px, 9vw, 128px);
}

/* --------------------------------------------------------------- reset --- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3 { margin: 0; letter-spacing: -.03em; line-height: 1.08; font-weight: 800; }
p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2.5px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; top: -60px; left: 16px; z-index: 200;
  background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: var(--radius);
  font-weight: 600; font-size: 14px;
}
.skip:focus { top: 14px; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------------------------------------------------------------- brand --- */

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { text-decoration: none; }

.brand-tile {
  width: 34px; height: 34px;
  flex: 0 0 34px;
  display: grid; place-items: center;
  background: var(--green);
  color: #fff;
  border-radius: 9px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.02em;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.035em;
  color: var(--ink);
}

/* --------------------------------------------------------------- header --- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(242, 245, 240, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(242, 245, 240, .94);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.nav { display: flex; align-items: center; gap: 30px; }

.nav > a:not(.btn) {
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  opacity: .78;
  transition: opacity .15s ease;
}
.nav > a:not(.btn):hover { opacity: 1; text-decoration: none; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: none; border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 17px; height: 1.8px;
  margin: 3.4px auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.2px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.2px) rotate(-45deg); }

/* --------------------------------------------------------------- button --- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -.012em;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-sm { padding: 10px 17px; font-size: 15px; }

.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--green-dark); box-shadow: var(--shadow-md); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #dc6349; box-shadow: 0 6px 20px rgba(232, 115, 90, .32); }

/* ----------------------------------------------------------------- hero --- */

.hero { padding-top: clamp(48px, 6vw, 80px); padding-bottom: var(--section-y); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .085em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(42px, 6.2vw, 72px);
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  color: var(--green);
}

.lede {
  font-size: clamp(17.5px, 1.5vw, 20px);
  color: var(--muted);
  line-height: 1.58;
  max-width: 34em;
  margin-bottom: 32px;
}

.hero-points {
  display: flex; flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 26px;
}
.hero-points li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--muted);
  font-weight: 550;
}
.hero-points li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 13px; height: 8px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
  border-radius: 1px;
}

/* ------------------------------------------------------------ the form --- */

.access-form {
  display: flex; flex-wrap: wrap;
  gap: 10px;
  max-width: 480px;
}

.access-form input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 13px 16px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.access-form input::placeholder { color: var(--muted-light); }
.access-form input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 95, 70, .14);
}
.access-form input[aria-invalid="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 115, 90, .16);
}

.form-note {
  flex-basis: 100%;
  min-height: 20px;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 550;
  color: var(--muted);
}
.form-note.is-error { color: #c4513a; }
.form-note.is-ok { color: var(--green); }

/* ------------------------------------------------------------- hero art --- */

.hero-art { display: flex; justify-content: center; }

.phone {
  width: 100%;
  max-width: 340px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(1.1deg);
}

.phone-top {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px;
  background: var(--ink);
  color: #fff;
}
.phone-top .dot {
  width: 26px; height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  background: var(--accent-tint);
}
.phone-title { font-size: 14px; font-weight: 650; letter-spacing: -.01em; }

.phone-body {
  padding: 14px;
  display: grid;
  gap: 11px;
  background: var(--bg);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  box-shadow: var(--shadow);
}

.card-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.card-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 8px;
}
.card-text { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.card-time { font-size: 12px; color: var(--muted-light); font-weight: 600; }

.pill {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -.005em;
}
.pill-green { background: var(--green-tint); color: var(--green); }
.pill-coral { background: var(--accent-tint); color: #c4513a; }

.bar-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 5px;
}
.bar-row b { color: var(--ink); font-size: 12px; font-weight: 700; }
.bar-row:not(:first-of-type) { margin-top: 11px; }

.bar {
  height: 6px;
  background: var(--bg);
  border-radius: 100px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 100px;
}

.card-note { border-left: 3px solid var(--accent); }

/* ---------------------------------------------------------------- strip --- */

.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(48px, 6vw, 80px);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.strip li {
  background: var(--surface);
  padding: 22px 24px;
}
.strip b {
  display: block;
  font-size: 16.5px;
  font-weight: 750;
  letter-spacing: -.025em;
  margin-bottom: 3px;
}
.strip span { font-size: 14px; color: var(--muted); }

/* -------------------------------------------------------------- section --- */

.section { padding-block: var(--section-y); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }

.section-head {
  max-width: 660px;
  margin-bottom: clamp(44px, 5vw, 64px);
}
.section-head h2 {
  font-size: clamp(32px, 4.1vw, 46px);
  margin-bottom: 18px;
}
.section-sub {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.58;
}

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ----------------------------------------------------------------- tile --- */

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px 28px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #c3cfbd;
}

.tile-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--green-tint);
  color: var(--green);
  border-radius: 11px;
  margin-bottom: 18px;
}
.tile-icon svg { width: 22px; height: 22px; }

.tile h3 {
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -.026em;
  margin-bottom: 10px;
}
.tile p { font-size: 15px; color: var(--muted); line-height: 1.56; }

/* -------------------------------------------------------------- feature --- */

.feature-grid { gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }

.feature {
  background: var(--surface);
  padding: 32px clamp(24px, 3vw, 40px) 34px;
  transition: background .18s ease;
}
.feature:hover { background: #fbfcfa; }

.feature h3 {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -.026em;
  margin-bottom: 12px;
}
.feature .num {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--accent);
  flex: 0 0 auto;
}
.feature p { font-size: 15.5px; color: var(--muted); line-height: 1.6; }
.feature em { font-style: normal; color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- steps --- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3.5vw, 48px);
  counter-reset: step;
}
.steps li { position: relative; padding-top: 4px; }

.step-n {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 750;
  margin-bottom: 18px;
}
.steps h3 {
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -.026em;
  margin-bottom: 10px;
}
.steps p { font-size: 15.5px; color: var(--muted); line-height: 1.58; }

/* ------------------------------------------------------------------ cta --- */

.cta {
  background: var(--ink);
  color: #fff;
  padding-block: clamp(64px, 8vw, 104px);
}

.cta-inner { max-width: 660px; }

.cta h2 {
  font-size: clamp(30px, 3.9vw, 44px);
  margin-bottom: 18px;
  color: #fff;
}
.cta > .wrap > p,
.cta-inner > p {
  font-size: 18px;
  color: #b9c7bf;
  line-height: 1.58;
  margin-bottom: 30px;
}

.access-form-lg input {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .2);
  color: #fff;
  box-shadow: none;
}
.access-form-lg input::placeholder { color: #8c9d93; }
.access-form-lg input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, .11);
  box-shadow: 0 0 0 3px rgba(232, 115, 90, .22);
}
.access-form-lg .form-note { color: #b9c7bf; }
.access-form-lg .form-note.is-error { color: #ffb4a0; }
.access-form-lg .form-note.is-ok { color: #9fd8bc; }

.cta-fine {
  margin-top: 22px;
  font-size: 15px;
  color: #8c9d93;
}
.cta-fine a { color: #cfe0d6; text-decoration: underline; text-underline-offset: 3px; }
.cta-fine a:hover { color: #fff; }

/* --------------------------------------------------------------- footer --- */

.site-footer { background: var(--surface); border-top: 1px solid var(--line); }

.footer-inner {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  padding-block: 48px 36px;
}
.footer-brand p { margin-top: 12px; font-size: 15px; color: var(--muted); }

.footer-nav { display: flex; flex-wrap: wrap; gap: 14px 30px; }
.footer-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--ink); text-decoration: none; }

.footer-bottom { padding-bottom: 36px; }
.footer-bottom p { font-size: 13.5px; color: var(--muted-light); }

/* --------------------------------------------------------------- reveal --- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s cubic-bezier(.2, .7, .3, 1), transform .6s cubic-bezier(.2, .7, .3, 1);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ----------------------------------------------------------- responsive --- */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  /* Headline first on narrow screens — the mockup follows the copy. */
  .hero-art { margin-top: 8px; }
  .phone { max-width: 320px; transform: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps li { display: grid; grid-template-columns: 38px 1fr; gap: 0 18px; }
  .step-n { grid-row: span 2; margin-bottom: 0; }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }

  .nav-toggle { display: block; }

  .nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px var(--gutter) 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav > a:not(.btn) { padding: 11px 2px; font-size: 16.5px; opacity: 1; }
  .nav > .btn { margin-top: 8px; }

  .br-lg { display: none; }
  .grid-2, .grid-4, .strip { grid-template-columns: 1fr; }
  .feature-grid { border-radius: var(--radius); }
  .access-form { max-width: none; }
  .access-form input, .access-form .btn { flex-basis: 100%; }
  .footer-inner { flex-direction: column; gap: 28px; }
}

/* ------------------------------------------------------- user settings --- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav-toggle, .hero-art, .access-form { display: none !important; }
  body { background: #fff; }
  .reveal { opacity: 1; transform: none; }
}
