/* School Interactions — marketing site
   Shared design system, intentionally matched to the onboarding app
   (GoogleCalendarAuth/wwwroot/index.html) so the brand feels continuous. */

:root {
    --bg: radial-gradient(circle at 20% 20%, #f3f6ff 0, #f8fbff 45%, #f6f8ff 60%, #eef1ff 100%);
    --surface: #ffffff;
    --accent: #4460ff;
    --accent-2: #0cc5b7;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 15px 50px rgba(40, 60, 120, 0.12);
    --shadow-sm: 0 6px 20px rgba(40, 60, 120, 0.08);
    --radius: 16px;
    --radius-lg: 24px;
    --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    background-attachment: fixed;
    font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .mark {
    width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: grid; place-items: center; color: #fff; font-size: 18px;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: #2e3652; font-weight: 600; font-size: 0.95rem; }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 0.98rem;
    border: 1px solid transparent; cursor: pointer; transition: transform .08s ease, box-shadow .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(120deg, var(--accent), #2b3efc); color: #fff; box-shadow: 0 10px 24px rgba(68,96,255,.28); }
.btn-ghost { background: #f5f7ff; color: #2e3652; border-color: #e4e8fb; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow {
    display: inline-block; background: rgba(12,197,183,0.12); color: #0c8c7e;
    font-weight: 700; font-size: 0.8rem; letter-spacing: .04em; text-transform: uppercase;
    padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.08; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero h1 .grad { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.18rem; color: var(--muted); margin: 0 0 28px; max-width: 36ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: 0.92rem; }

/* Phone mockup */
.mockup {
    background: var(--surface); border: 1px solid #e7e9f5; border-radius: var(--radius-lg);
    box-shadow: var(--shadow); padding: 18px; max-width: 360px; margin: 0 auto;
}
.mockup-head { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; border-bottom: 1px solid var(--border); }
.mockup-head .dot { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display:grid; place-items:center; color:#fff; }
.mockup-head b { font-size: .95rem; }
.mockup-head span { color: var(--muted); font-size: .8rem; }
.bubble { margin: 12px 0; padding: 11px 14px; border-radius: 14px; font-size: 0.92rem; max-width: 85%; }
.bubble.in { background: #f4f6ff; border: 1px solid #e4e8fb; border-bottom-left-radius: 4px; }
.bubble.out { background: linear-gradient(120deg, var(--accent), #2b3efc); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.bubble .chk { color: var(--accent-2); font-weight: 800; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 0 0 12px; letter-spacing: -0.02em; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.step .num { width: 38px; height: 38px; border-radius: 11px; background: rgba(68,96,255,0.1); color: var(--accent); font-weight: 800; display:grid; place-items:center; margin-bottom: 16px; }
.step h3 { margin: 0 0 8px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.97rem; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.feature .ic { font-size: 26px; margin-bottom: 12px; }
.feature h3 { margin: 0 0 8px; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.band {
    background: linear-gradient(160deg, rgba(68,96,255,0.08), rgba(12,197,183,0.10));
    border: 1px solid #d8dffe; border-radius: var(--radius-lg); padding: 40px;
    display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.band h2 { margin: 0 0 8px; font-size: 1.6rem; }
.band p { margin: 0; color: var(--muted); max-width: 52ch; }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px 18px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 32px; margin-top: 32px; color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer-grid .brand { margin-bottom: 10px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: #2e3652; font-weight: 600; }
.footer-bottom { margin-top: 28px; font-size: 0.88rem; }

/* ---------- Legal pages ---------- */
.legal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: clamp(28px, 5vw, 56px); margin: 48px auto; max-width: 820px; }
.legal h1 { font-size: 2.1rem; margin: 0 0 6px; letter-spacing: -0.02em; }
.legal .updated { color: var(--muted); margin: 0 0 28px; font-size: 0.95rem; }
.legal h2 { font-size: 1.3rem; margin: 32px 0 10px; }
.legal p, .legal li { color: #374151; }
.legal ul { padding-left: 20px; }
.legal .note { background: #fffbe6; border: 1px solid #f5e3a3; border-radius: 12px; padding: 14px 16px; font-size: 0.92rem; color: #7a5d00; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .hero { padding: 48px 0 32px; }
    .mockup { order: -1; }
    .steps, .features { grid-template-columns: 1fr; }
    .nav-links {
        display: none; position: absolute; top: 68px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; border-bottom: 1px solid var(--border); padding: 8px 20px 16px;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 0; border-bottom: 1px solid #f0f1f6; }
    .nav-links .btn { margin-top: 10px; justify-content: center; }
    .nav-toggle { display: block; }
    .band { padding: 28px; }
}

/* ===== Added: logo, polish, new pages ===== */

/* Crisp SVG logo mark (defined once, used in every header/footer) */
.brand .mark { position: relative; overflow: hidden; }
.brand .mark::after {
    content: "";
    position: absolute; inset: 0;
    background: center / 19px 19px no-repeat
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 9h18M8 2.5v4M16 2.5v4'/%3E%3Cpath d='M8.5 14.5l2.2 2.2 4.3-4.6'/%3E%3C/svg%3E");
}

/* Hero gradient blobs (decorative) */
.hero { position: relative; overflow: hidden; }
.hero::before, .hero::after {
    content: ""; position: absolute; border-radius: 50%; filter: blur(70px); z-index: 0; opacity: .55; pointer-events: none;
}
.hero::before { width: 360px; height: 360px; background: rgba(68,96,255,.30); top: -120px; right: -80px; }
.hero::after { width: 320px; height: 320px; background: rgba(12,197,183,.28); bottom: -140px; left: -100px; }
.hero .container { position: relative; z-index: 1; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Page hero (interior pages) */
.page-hero { padding: 56px 0 12px; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 12px; letter-spacing: -0.02em; }
.page-hero p { color: var(--muted); font-size: 1.12rem; max-width: 56ch; margin: 0 auto; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); box-shadow: var(--shadow); position: relative; }
.plan .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(120deg, var(--accent), #2b3efc); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.plan h3 { margin: 0 0 4px; font-size: 1.2rem; }
.plan .price { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 2px; }
.plan .price span { font-size: .95rem; font-weight: 600; color: var(--muted); }
.plan .desc { color: var(--muted); font-size: .95rem; margin: 0 0 18px; min-height: 40px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; }
.plan li { padding: 7px 0 7px 26px; position: relative; color: #374151; font-size: .96rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 800; }
.plan .btn { margin-top: auto; justify-content: center; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font: inherit; background: #fbfcff; }
.field input:focus, .field textarea:focus { outline: 2px solid rgba(68,96,255,.35); border-color: var(--accent); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 10px 0; border-bottom: 1px solid #f0f1f6; }
.contact-list b { display: block; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); margin: 0; }
.quote blockquote { margin: 0 0 14px; font-size: 1.06rem; line-height: 1.55; color: #1f2433; }
.quote blockquote::before { content: "“"; color: var(--accent); font-size: 1.6rem; font-weight: 800; margin-right: 2px; }
.quote figcaption { color: var(--muted); font-weight: 600; font-size: .92rem; }

/* ===== Sync infographic ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.sync-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1.15fr; align-items: center; gap: 16px; }
.stage { display: flex; flex-direction: column; }
.stage .cap { text-align: center; margin-top: 12px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.sync-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-sm); padding: 14px; position: relative; overflow: hidden; }

/* Stage 1 — phone notifications */
.phone .bar { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .8rem; color: #6b7280; padding: 2px 4px 10px; }
.phone .bar::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #ef5350; box-shadow: 0 0 0 3px rgba(239,83,80,.15); }
.stream { position: relative; height: 250px; overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent); }
.stream-track { display: flex; flex-direction: column; gap: 8px; animation: streamUp 18s linear infinite; }
.note { display: flex; gap: 8px; align-items: flex-start; background: #f7f8fb; border: 1px solid #eef0f5; border-radius: 12px; padding: 8px 10px; }
.note .ico { font-size: 1rem; line-height: 1.25; }
.note b { display: block; font-size: .77rem; color: #1f2433; }
.note span { font-size: .73rem; color: var(--muted); }
.note.dup { opacity: .5; }
.note.dup b { text-decoration: line-through; }

/* Stage 2 — engine */
.engine { text-align: center; padding: 26px 16px; }
.engine .core { width: 62px; height: 62px; border-radius: 18px; margin: 0 auto 14px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; box-shadow: 0 10px 24px rgba(68,96,255,.32); animation: corePulse 2.6s ease-in-out infinite; }
.engine h3 { margin: 0 0 10px; font-size: 1rem; }
.engine .chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.engine .chips span { font-size: .71rem; font-weight: 600; background: #eef1ff; color: #2b3efc; border-radius: 999px; padding: 4px 9px; }

/* Stage 3 — Google Calendar */
.gcal .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.gcal .head b { font-size: .9rem; }
.gcal .gdots { display: flex; gap: 4px; }
.gcal .gdots i { width: 9px; height: 9px; border-radius: 50%; }
.gdots .b1 { background: #4285f4; } .gdots .b2 { background: #ea4335; } .gdots .b3 { background: #fbbc04; } .gdots .b4 { background: #34a853; }
.cal-wd { display: grid; grid-template-columns: repeat(7,1fr); gap: 5px; margin-bottom: 5px; }
.cal-wd span { text-align: center; font-size: .6rem; font-weight: 700; color: #9aa1ad; }
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 5px; }
.cal-grid .d { aspect-ratio: 1/1; border-radius: 8px; background: #f7f8fb; padding: 4px 5px; font-size: .6rem; color: #9aa1ad; position: relative; }
.cal-grid .d .num { font-weight: 700; }
.cal-grid .d .ev { position: absolute; left: 4px; right: 4px; bottom: 4px; height: 6px; border-radius: 3px; transform-origin: left center; transform: scaleX(0); animation: evPop .55s ease-out both; }
.ev.b { background: #4285f4; } .ev.g { background: #34a853; } .ev.a { background: #fbbc04; } .ev.t { background: var(--accent-2); }
.cal-grid .ev.d1 { animation-delay: .25s; } .cal-grid .ev.d2 { animation-delay: .55s; } .cal-grid .ev.d3 { animation-delay: .85s; } .cal-grid .ev.d4 { animation-delay: 1.15s; }

/* Connectors */
.flow-arrow { position: relative; width: 46px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); justify-self: center; }
.flow-arrow::after { content: ""; position: absolute; right: -4px; top: 50%; transform: translateY(-50%); border-left: 8px solid var(--accent-2); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.flow-arrow .pulse { position: absolute; top: 50%; left: 0; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--accent); transform: translate(-50%,-50%); animation: pulseMove 2.2s ease-in-out infinite; }
.flow-arrow.delay .pulse { animation-delay: 1.1s; }

/* Only animate once scrolled into view */
.syncfig .stream-track, .syncfig .core, .syncfig .flow-arrow .pulse, .syncfig .cal-grid .ev { animation-play-state: paused; }
.syncfig.in .stream-track, .syncfig.in .core, .syncfig.in .flow-arrow .pulse, .syncfig.in .cal-grid .ev { animation-play-state: running; }

@keyframes streamUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes corePulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes pulseMove { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes evPop { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 860px) {
    .sync-flow { grid-template-columns: 1fr; gap: 6px; }
    .flow-arrow { transform: rotate(90deg); margin: 8px 0; }
}

@media (prefers-reduced-motion: reduce) {
    .syncfig .stream-track, .syncfig .core, .syncfig .cal-grid .ev { animation: none !important; }
    .cal-grid .ev { transform: scaleX(1); }
    .flow-arrow .pulse { display: none; }
}

/* ===== About page ===== */
.about-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; padding: 52px 0 8px; }
.about-hero .eyebrow { margin-bottom: 6px; }
.about-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 4px 0 14px; letter-spacing: -0.02em; line-height: 1.1; }
.about-hero p { color: var(--muted); font-size: 1.12rem; }
.about-figure img { width: 100%; height: auto; display: block; }

.about-callout { background: linear-gradient(120deg, #eef1ff, #e9fbf8); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 34px; font-size: 1.18rem; line-height: 1.6; color: #1f2433; max-width: 860px; margin: 0 auto; }
.about-callout strong { color: var(--accent); }

.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 820px; margin: 0 auto; }
.team-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 30px 28px; text-align: center; }
.team-card .avatar { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; display: block; box-shadow: 0 8px 22px rgba(17,24,39,.14); background: #eef1ff; }
.team-card h3 { margin: 0 0 2px; font-size: 1.18rem; }
.team-card .role { color: var(--accent); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.team-card p { color: #374151; font-size: .95rem; margin: 0; }

@media (max-width: 860px) {
    .about-hero { grid-template-columns: 1fr; gap: 26px; padding-top: 36px; }
    .about-figure { order: -1; }
    .team { grid-template-columns: 1fr; }
}

/* Prose (about / cookies) */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; margin: 30px 0 10px; }
.prose p, .prose li { color: #374151; }

@media (max-width: 860px) {
    .pricing { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .quotes { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal { transition: none; opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
