/* Found at School — marketing site. Mirrors the app's design system:
   Theme.swift palette and Geist type; Components.swift cards, pills, sticky notes. */

@font-face { font-family: "Geist"; src: url("fonts/Geist-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/Geist-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/Geist-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --apple: #FF4D4D; --worm: #34D399; --school-blue: #3B82F6; --pencil: #FBBF24; --backpack: #8B5CF6; --cloud: #F3F4F6;
  --pencil-deep: #B45309; --worm-deep: #047857;
  --ink: #111827; --slate: #6B7280; --border: #E5E7EB; --bg: #FFFFFF; --surface: #F3F4F6; --elevated: #FFFFFF;
  --radius-card: 16px; --radius-button: 14px; --shadow: 0 4px 12px rgba(0,0,0,.06); --shadow-lg: 0 8px 28px rgba(0,0,0,.10);
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --hand: "Caveat", "Bradley Hand", "Segoe Script", cursive;
  --page: 20px; --max: 1120px;
  /* One look only: the site does not follow the browser's dark mode. */
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--school-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
[id] { scroll-margin-top: 80px; }
:focus-visible { outline: 3px solid var(--school-blue); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--page); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .4em; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-weight: 700; font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-weight: 700; font-size: 1.3rem; }
p { margin: 0 0 1em; }
/* Wide enough that a section's lead runs at least as wide as its heading. */
.lead { font-size: 1.2rem; color: var(--slate); max-width: 60ch; }
.eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--slate); margin-bottom: .8em; }
.hand { font-family: var(--hand); font-size: 1.6rem; color: var(--school-blue); line-height: 1.1; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 600; font-size: 1.02rem; padding: 14px 24px; border-radius: var(--radius-button); border: 0; cursor: pointer; transition: transform .12s ease, opacity .12s ease; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--school-blue); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--border); box-shadow: var(--shadow); }
.btn-success { background: var(--worm-deep); color: #fff; }
.chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.chip-blue { color: var(--school-blue); background: rgba(59,130,246,.14); }
.chip-worm { color: var(--worm-deep); background: rgba(52,211,153,.14); }
.chip-pencil { color: var(--pencil-deep); background: rgba(251,191,36,.14); }
.chip-backpack { color: var(--backpack); background: rgba(139,92,246,.14); }

/* Cards */
.card { background: var(--surface); border-radius: var(--radius-card); padding: 20px; }
.card-elevated { background: var(--elevated); border-radius: var(--radius-card); padding: 20px; box-shadow: var(--shadow); }
.icon-badge { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; }
.icon-badge img { width: 30px; height: auto; }

/* Sticky note */
.sticky { display: inline-block; font-family: var(--hand); font-size: 1.25rem; line-height: 1.15; color: #3B2F0B; background: #FFE27A; padding: 12px 16px; border-radius: 3px; box-shadow: 0 4px 10px rgba(0,0,0,.14); transform: rotate(-4deg); position: relative; max-width: 190px; text-align: center; }
.sticky::after { content: ""; position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,.10) 50%); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav a.btn-primary, .btn-primary { color: #fff; }
.nav .btn { padding: 9px 16px; font-size: .9rem; }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; isolation: isolate; }
.hero-backdrop { position: absolute; inset: 0; z-index: -2; background: var(--bg); }
.hero-backdrop::before, .hero-backdrop::after, .hero-backdrop .blob { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .18; }
.hero-backdrop::before { width: 60vw; height: 60vw; background: var(--pencil); left: -20vw; top: -25vw; }
.hero-backdrop::after { width: 50vw; height: 50vw; background: var(--worm); right: -15vw; top: -5vw; }
.hero-backdrop .blob { width: 55vw; height: 55vw; background: var(--backpack); left: -10vw; bottom: -35vw; }
.hero-backdrop .blob.apple { background: var(--apple); left: auto; right: -20vw; bottom: -30vw; width: 40vw; height: 40vw; }
.falling { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.falling img { position: absolute; top: 0; left: 0; will-change: transform; opacity: .5; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-copy .hand { margin: 8px 0 24px; transform: rotate(-2deg); display: inline-block; }
.hero-lockup { width: min(520px, 100%); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-phone { justify-self: center; position: relative; }
.phone { width: 300px; border-radius: 44px; padding: 12px; background: #111; box-shadow: var(--shadow-lg); }
.phone img { border-radius: 34px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-phone { order: 1; } .phone { width: 240px; } }

/* Sections */
section { padding: 72px 0; }
section.alt { background: color-mix(in srgb, var(--surface) 55%, var(--bg)); }
.section-head { max-width: 62ch; margin-bottom: 36px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* How it works */
.step { position: relative; }
.step .art { height: 150px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; overflow: visible; }
/* Explicit height (not max-height) and intrinsic attributes: iOS Safari sized the
   backpack from the container width and painted only the top 150px. */
.step .art img { height: 150px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.step .num { position: absolute; top: 14px; left: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: var(--school-blue); color: #fff; }
.step p { color: var(--slate); margin: 0; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature + .feature { margin-top: 64px; }
.feature.flip .feature-media { order: 2; }
.feature-media { display: grid; place-items: center; }
.feature ul { padding: 0; margin: 20px 0 0; list-style: none; display: grid; gap: 12px; }
.feature ul li { display: flex; gap: 12px; align-items: flex-start; }
.feature ul li .icon-badge { width: 32px; height: 32px; border-radius: 10px; flex: none; }
.feature ul li .icon-badge img { width: 20px; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature.flip .feature-media { order: 0; } }

/* Trust */
.trust .card-elevated { display: grid; gap: 10px; }
.trust .card-elevated .icon-badge { margin-bottom: 4px; }
.trust p { color: var(--slate); margin: 0; }

/* FAQ */
details { border-top: 1px solid var(--border); padding: 18px 0; }
details:last-of-type { border-bottom: 1px solid var(--border); }
summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--school-blue); font-weight: 700; }
details[open] summary::after { content: "–"; }
details p { color: var(--slate); margin: 10px 0 0; max-width: 70ch; }

/* CTA */
.cta { text-align: center; }
.cta .art { max-width: 420px; margin: 0 auto 8px; }
.cta .hand { display: block; margin: 8px 0 24px; }

/* Footer */
footer { padding: 40px 0 56px; border-top: 1px solid var(--border); color: var(--slate); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer nav a { color: var(--slate); }

/* Document pages */
.doc { max-width: 72ch; padding: 48px var(--page) 80px; margin: 0 auto; }
.doc h1 { font-size: 2.2rem; }
.doc h2 { font-size: 1.4rem; margin-top: 2em; }
.doc h3 { font-size: 1.1rem; margin-top: 1.6em; }
.doc p, .doc li { font-size: 1.02rem; }
.doc ul { padding-left: 1.2em; }
.doc table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .95rem; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { background: var(--surface); }
.doc .meta { color: var(--slate); font-size: .95rem; }
.doc .draft { background: rgba(251,191,36,.14); color: var(--pencil-deep); border-radius: 10px; padding: 12px 14px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } .falling { display: none; } }

/* Spot */
.watch-line { margin: 48px 0 16px; text-align: center; }
.spot { margin: 0 0 40px; }
.spot video { width: 100%; height: auto; display: block; border-radius: var(--radius-card); background: #000; box-shadow: var(--shadow-lg); }

/* Contact modal */
.contact-dialog { border: 0; padding: 0; background: transparent; max-width: min(560px, calc(100vw - 32px)); width: 100%; }
.contact-dialog::backdrop { background: rgba(17,24,39,.45); backdrop-filter: blur(6px); }
.contact-card { position: relative; background: var(--elevated); color: var(--ink); border-radius: var(--radius-card); padding: 28px; box-shadow: var(--shadow-lg); }
.contact-card h2 { font-size: 1.7rem; }
.contact-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 1.3rem; cursor: pointer; }
.contact-card form { display: grid; gap: 14px; margin-top: 8px; }
.contact-card label { display: grid; gap: 6px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.contact-card input { font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--ink); background: var(--surface); border: 2px solid transparent; border-radius: 12px; padding: 12px 14px; }
.contact-card input:focus { outline: 0; border-color: var(--school-blue); background: var(--elevated); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.form-status { margin: 0; min-height: 1.2em; font-size: .95rem; color: var(--slate); }
.form-status.is-error { color: var(--apple); }
.form-fine { margin: 0; font-size: .82rem; color: var(--slate); }
.form-done { text-align: center; padding: 20px 0 8px; }
.form-done img { margin: 0 auto 12px; animation: pop .55s cubic-bezier(.2,1.4,.4,1) both; }
.form-done h3 { font-size: 1.6rem; margin-bottom: .3em; }
.form-done .lead { margin: 0 auto 8px; }
.form-done .hand { display: block; margin: 12px 0 20px; }
.form-done .btn { min-width: 160px; }
.contact-card.is-done .contact-intro { display: none; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .form-done img { animation: none; } }

/* Coming soon */
.hero.soon h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.hero.soon .hand { display: inline-block; transform: rotate(-2deg); margin: 4px 0 16px; }
.notify { display: grid; gap: 12px; margin-top: 24px; max-width: 480px; }
.notify label { display: grid; gap: 6px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.notify input, .notify select { font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--ink); background: var(--elevated); border: 2px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.notify input:focus, .notify select:focus { outline: 0; border-color: var(--school-blue); }
.notify-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.notify-done { margin-top: 24px; max-width: 480px; }
.notify-done img { animation: pop .55s cubic-bezier(.2,1.4,.4,1) both; }
.notify-done h2 { font-size: 1.8rem; margin: 8px 0 .3em; }
.notify-done .hand { display: block; }
@media (max-width: 560px) { .notify-row { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .nav a.btn-secondary { display: inline-flex; } }

/* Hero title, pricing line */
.hero-title { font-size: clamp(2.1rem, 4.6vw, 3.2rem); margin: 8px 0 .4em; }
.hero-lockup { width: min(380px, 100%); }
.pricing-line { font-size: 1.05rem; color: var(--ink); margin: 0 0 20px; }
.pricing-line a { margin-left: 6px; }

/* Staff loop, pricing */
.staff-loop { margin: 20px 0 0; padding-left: 1.4em; display: grid; gap: 10px; }
.staff-loop li { display: list-item; }
.staff-loop li::marker { color: var(--school-blue); font-weight: 700; }
.school-fine { margin-top: 20px; color: var(--slate); font-size: .95rem; }
.pricing .card-elevated { display: grid; gap: 8px; align-content: start; }
.pricing .card-elevated p { color: var(--slate); margin: 0; }
.pricing .price { font-size: 2.4rem; font-weight: 700; color: var(--ink) !important; line-height: 1; }
.pricing .price span { font-size: 1rem; font-weight: 600; color: var(--slate); margin-left: 4px; }
.pricing-note { margin-top: 24px; color: var(--slate); }

/* Contact form: optional principal step */
.contact-card select { font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--ink); background: var(--surface); border: 2px solid transparent; border-radius: 12px; padding: 12px 14px; }
.contact-card select:focus { outline: 0; border-color: var(--school-blue); background: var(--elevated); }
.principal-intro { border: 0; padding: 0; display: grid; gap: 12px; }
.principal-intro summary { font-size: .95rem; font-weight: 600; color: var(--school-blue); text-transform: none; letter-spacing: 0; }
.principal-intro summary::after { display: none; }

/* App page routes */
.route { display: grid; gap: 10px; align-content: start; }
.route p { color: var(--slate); margin: 0; }
.route .btn { margin-top: 6px; }
.route p .btn + .btn { margin-left: 6px; }
.notify-wrap .notify { margin-top: 0; }
