/* OurSchoolSoftware.com — warm cream paper, frosted glass, school doodles (same look as the school websites). No framework: one file. */
:root {
    --primary: #1e7a5a;
    --primary-deep: #145c43;
    --secondary: #cc6300;
    --ink: #2a241c;
    --muted: #6d6254;
    --bg: #fdf9f1;
    --cream: #f7efe1;
    --surface: #fffdf9;
    --soft: #eef6f1;
    --line: #efe5d4;
    --radius: 1.5rem;
    --shadow: 0 0.1rem 0.25rem rgba(80, 60, 30, 0.04), 0 0.8rem 2rem rgba(80, 60, 30, 0.08);
    --max: 76rem;
    color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 1px 1px, rgba(42, 36, 28, 0.07) 1px, transparent 0),
        radial-gradient(60rem 40rem at 105% -5%, rgba(204, 99, 0, 0.09), transparent 70%),
        radial-gradient(55rem 40rem at -10% 20%, rgba(30, 122, 90, 0.08), transparent 70%);
    background-size: 26px 26px, 100% 100%, 100% 100%;
    background-attachment: fixed;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.btn svg { width: 1.1rem; height: 1.1rem; }
.chip svg { width: 1rem; height: 1rem; }
.menu-btn svg { width: 1.3rem; height: 1.3rem; }
a { color: var(--primary); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--primary-deep); }
h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -0.02em; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 50rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff; padding: 0.6rem 1rem; z-index: 99; border-radius: 0 0 0.6rem 0; }
.skip:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
    position: fixed; top: 0.75rem; left: 0.75rem; right: 0.75rem; z-index: 40;
    max-width: var(--max); margin: 0 auto; border-radius: 1.4rem;
    background: rgba(255, 253, 248, 0.72); border: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0.8rem 2.2rem rgba(80, 60, 30, 0.1);
}
.site-header .bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0.9rem 0.55rem 1.1rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: -0.02em; font-size: 1.05rem; }
.brand img { width: 2.6rem; height: 2.6rem; border-radius: 0.9rem; background: #fff; padding: 0.15rem; box-shadow: 0 0.3rem 0.8rem rgba(80, 60, 30, 0.12); }
.brand small { display: block; font-size: 0.72rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 0.15rem; }
.nav a { padding: 0.5rem 0.8rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.93rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--soft); color: var(--primary); }
.header-cta { display: flex; gap: 0.5rem; align-items: center; margin-left: 0.4rem; }
.menu-btn { display: none; margin-left: auto; width: 2.6rem; height: 2.6rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
@media (max-width: 560px) {
    .brand small { display: none; }
    .brand { font-size: 0.98rem; }
    .brand img { width: 2.2rem; height: 2.2rem; }
    .header-cta .btn { padding: 0.5rem 0.8rem; font-size: 0.8rem; }
}
@media (max-width: 400px) { .header-cta { display: none; } .menu-btn { margin-left: auto; } }
.header-cta .btn { white-space: nowrap; }
.mobile-nav { display: none; padding: 0 0.75rem 0.75rem; }
.mobile-nav a { display: block; padding: 0.7rem 0.9rem; border-radius: 0.9rem; color: var(--ink); font-weight: 600; text-decoration: none; }
.mobile-nav a:hover { background: var(--soft); }
.mobile-nav.open { display: grid; }
@media (max-width: 980px) {
    .nav { display: none; }
    .menu-btn { display: grid; place-items: center; }
    .header-cta { margin-left: 0; }
}

/* ---------- buttons, chips ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    border-radius: 999px; padding: 0.8rem 1.45rem; font-weight: 700; font-size: 0.98rem;
    text-decoration: none; border: 0; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, background 0.15s; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 0.6rem 1.4rem rgba(30, 122, 90, 0.3); }
.btn-primary:hover { background: var(--primary-deep); color: #fff; }
.btn-accent { background: var(--secondary); color: #fff; box-shadow: 0 0.6rem 1.4rem rgba(204, 99, 0, 0.28); }
.btn-accent:hover { background: #a85100; color: #fff; }
.btn-ghost {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(30, 122, 90, 0.08)); color: var(--primary);
    border: 1px solid rgba(30, 122, 90, 0.28);
}
.btn-sm { padding: 0.55rem 1rem; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }
.chip {
    display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.9rem; border-radius: 999px;
    background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: 0.85rem; color: var(--secondary);
    box-shadow: 0 0.3rem 0.9rem rgba(80, 60, 30, 0.07);
}
.squiggle { position: relative; white-space: nowrap; color: var(--primary); }
.squiggle::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -0.18em; height: 0.32em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M2 8c18-8 30 6 48 0s30-8 48 0 16 2 20 0' fill='none' stroke='%23cc6300' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* ---------- cards & sections ---------- */
.card { background: rgba(255, 253, 249, 0.86); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 1.6rem; }
section { padding: 4.5rem 0; }
.section-head { max-width: 46rem; margin: 0 auto 2.6rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow { display: block; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--secondary); margin-bottom: 0.6rem; }
.grid { display: grid; gap: 1.25rem; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); }
.icon {
    width: 3rem; height: 3rem; border-radius: 1rem; display: grid; place-items: center; flex-shrink: 0;
    background: var(--soft); color: var(--primary); margin-bottom: 0.9rem;
}
.icon svg { width: 1.5rem; height: 1.5rem; }
.icon.orange { background: #fdf0e3; color: var(--secondary); }
.feature-card { display: block; text-decoration: none; color: var(--ink); padding: 1.5rem; height: 100%; transition: transform 0.18s, box-shadow 0.18s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 1.2rem 2.6rem rgba(80, 60, 30, 0.14); color: var(--ink); }
.feature-card h3 { margin-bottom: 0.35rem; }
.feature-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.feature-card .more { display: inline-block; margin-top: 0.8rem; font-weight: 700; color: var(--primary); font-size: 0.9rem; }

/* ---------- hero ---------- */
.hero { padding-top: 9rem; padding-bottom: 3rem; }
.hero-grid { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1.05fr 1fr; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr) !important; } .hero { padding-top: 7.5rem; } }
.hero-grid > *, .layout-side > *, .grid > * { min-width: 0; }
@media (max-width: 520px) {
    .mock-body { grid-template-columns: 3.2rem 1fr; }
    .mock-tiles { grid-template-columns: repeat(2, 1fr); }
    .mock::before { inset: 6% -2% -3% 8%; }
    .float-card { font-size: 0.72rem; }
    section { padding: 3.2rem 0; }
}
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.8rem 0 1.2rem; }
.trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.trust span::before { content: '✓ '; color: var(--primary); font-weight: 800; }
.page-hero { padding-top: 8.5rem; padding-bottom: 1.5rem; }
.page-hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 44rem; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }

/* app mock (pure HTML/CSS screenshot of the dashboard) */
.mock { position: relative; }
.mock::before { content: ''; position: absolute; inset: 6% -3% -4% 10%; border-radius: 2.6rem; background: var(--secondary); opacity: 0.9; transform: rotate(5deg); }
.mock-window { position: relative; border-radius: 1.6rem; border: 8px solid #fff; background: var(--bg); box-shadow: 0 2rem 4rem rgba(80, 60, 30, 0.22); overflow: hidden; }
.mock-top { display: flex; align-items: center; gap: 0.35rem; padding: 0.6rem 0.8rem; background: rgba(255, 255, 255, 0.8); border-bottom: 1px solid var(--line); }
.mock-top i { width: 0.6rem; height: 0.6rem; border-radius: 99px; background: #e9dcc6; }
.mock-top b { margin-left: 0.5rem; font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.mock-body { display: grid; grid-template-columns: 7.2rem 1fr; min-height: 18rem; }
.mock-side { padding: 0.8rem 0.6rem; border-right: 1px solid var(--line); display: grid; gap: 0.4rem; align-content: start; }
.mock-side span { height: 0.55rem; border-radius: 99px; background: #eadfcd; }
.mock-side span.on { background: var(--primary); width: 80%; }
.mock-main { padding: 0.9rem; display: grid; gap: 0.7rem; align-content: start; }
.mock-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.mock-main, .mock-window { min-width: 0; }
.mock-tile { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border-radius: 0.8rem; padding: 0.55rem; color: #fff; font-size: 0.62rem; font-weight: 600; }
.mock-tile b { display: block; font-size: 1rem; font-weight: 800; }
.mock-chart { height: 6.5rem; border-radius: 0.9rem; background: #fff; border: 1px solid var(--line); display: flex; align-items: flex-end; gap: 0.45rem; padding: 0.7rem; }
.mock-chart i { flex: 1; border-radius: 0.35rem 0.35rem 0 0; background: linear-gradient(var(--primary), #4ca883); }
.mock-chart i:nth-child(even) { background: linear-gradient(var(--secondary), #f0a35a); }
.mock-rows { display: grid; gap: 0.35rem; }
.mock-rows span { height: 1.3rem; border-radius: 0.5rem; background: #fff; border: 1px solid var(--line); }
.float-card { position: absolute; z-index: 2; background: rgba(255, 255, 255, 0.92); border: 1px solid #fff; border-radius: 1.1rem; padding: 0.7rem 0.9rem; box-shadow: 0 1rem 2rem rgba(80, 60, 30, 0.16); font-size: 0.8rem; font-weight: 700; display: flex; gap: 0.6rem; align-items: center; animation: float 6s ease-in-out infinite; }
.float-card .dot { width: 2.2rem; height: 2.2rem; border-radius: 0.8rem; display: grid; place-items: center; color: #fff; }
.float-card small { display: block; font-weight: 600; color: var(--muted); font-size: 0.72rem; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .float-card { animation: none; } html { scroll-behavior: auto; } .btn:hover { transform: none; } }

/* ---------- stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem; }
.stat { text-align: center; padding: 1.3rem 1rem; }
.stat b { display: block; font-size: 2rem; font-weight: 800; color: var(--primary); letter-spacing: -0.03em; }
.stat span { font-size: 0.88rem; color: var(--muted); font-weight: 600; }

/* ---------- steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding: 1.6rem 1.5rem 1.5rem 4.6rem; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 1.4rem; top: 1.5rem; width: 2.3rem; height: 2.3rem; border-radius: 0.8rem; background: var(--secondary); color: #fff; font-weight: 800; display: grid; place-items: center; }
.step h3 { margin-bottom: 0.3rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ---------- pricing ---------- */
.plans { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 1.8rem 1.5rem; position: relative; }
.plan.featured { border: 2px solid var(--primary); box-shadow: 0 1.4rem 3rem rgba(30, 122, 90, 0.18); }
.plan .ribbon { position: absolute; top: -0.85rem; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: 0.75rem; font-weight: 800; padding: 0.3rem 0.85rem; border-radius: 999px; white-space: nowrap; }
.plan h3 { margin-bottom: 0.2rem; }
.plan .for { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.plan .price { white-space: nowrap; font-size: clamp(1.7rem, 2.3vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; margin: 0.8rem 0 0.1rem; }
.plan .price small { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.plan .trial { display: inline-block; margin: 0.4rem 0 0.9rem; padding: 0.3rem 0.75rem; border-radius: 999px; background: #fdf0e3; color: var(--secondary); font-weight: 800; font-size: 0.82rem; }
.plan ul { list-style: none; padding: 0; margin: 0.6rem 0 1.4rem; display: grid; gap: 0.45rem; font-size: 0.94rem; }
.plan li::before { content: '✓'; color: var(--primary); font-weight: 800; margin-right: 0.5rem; }
.plan li.no::before { content: '✕'; color: #b34a3a; }
.plan .setup { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.plan .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.75rem; max-width: 52rem; margin: 0 auto; }
.faq details { padding: 1rem 1.3rem; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--secondary); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0.7rem 0 0; color: var(--muted); }

/* ---------- article / prose ---------- */
.prose { font-size: 1.07rem; }
.prose h2 { font-size: 1.7rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.3rem; margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }
.prose img { border-radius: 1.2rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; background: #fff; border-radius: 1rem; overflow: hidden; }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.6rem 0.75rem; text-align: left; vertical-align: top; }
.prose th { background: var(--cream); }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.3rem; border-left: 4px solid var(--secondary); background: #fff; border-radius: 0 1rem 1rem 0; }
.tldr { padding: 1.2rem 1.4rem; background: var(--soft); border: 1px solid rgba(30, 122, 90, 0.18); border-radius: 1.2rem; margin: 1.2rem 0 2rem; }
.tldr strong { color: var(--primary); }
.meta { font-size: 0.9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.post-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); overflow: hidden; height: 100%; }
.post-card .thumb { aspect-ratio: 16 / 9; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.15rem; padding: 1.2rem; text-align: center; }
.post-card .body { padding: 1.2rem 1.3rem 1.4rem; }
.post-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.post-card p { color: var(--muted); font-size: 0.93rem; margin: 0; }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 2.5rem; align-items: start; }
@media (max-width: 980px) { .layout-side { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 6.5rem; }
.checklist { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.checklist li { padding-left: 1.8rem; position: relative; }
.checklist li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 1.3rem; height: 1.3rem; border-radius: 99px; background: var(--soft); color: var(--primary); font-weight: 800; font-size: 0.8rem; display: grid; place-items: center; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 2rem; padding: 3rem 2rem; color: #fff; text-align: center; background: linear-gradient(135deg, var(--primary), #2c8d68 55%, #b5651b); box-shadow: 0 1.6rem 3.6rem rgba(30, 122, 90, 0.28); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 40rem; margin: 0 auto 1.6rem; font-size: 1.08rem; }
.cta-band .btn-ghost { background: rgba(255, 255, 255, 0.16); color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.cta-band .btn-light { background: #fff; color: var(--primary); }

/* ---------- forms (signup) ---------- */
.field { width: 100%; border-radius: 0.95rem; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.9); color: var(--ink); padding: 0.78rem 0.95rem; font-size: 1rem; font-family: inherit; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.field:focus { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(30, 122, 90, 0.16); }
.label { display: block; margin-bottom: 0.35rem; font-size: 0.88rem; font-weight: 700; }
.hint { font-size: 0.82rem; color: var(--muted); margin-top: 0.3rem; }
.err { font-size: 0.84rem; color: #b3261e; margin-top: 0.3rem; font-weight: 600; }
.ok { color: var(--primary); }
.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.address-field { display: flex; align-items: stretch; }
.address-field .field { border-radius: 0.95rem 0 0 0.95rem; }
.address-field span { display: flex; align-items: center; padding: 0 0.85rem; border: 1px solid var(--line); border-left: 0; border-radius: 0 0.95rem 0.95rem 0; background: var(--cream); font-weight: 700; font-size: 0.9rem; color: var(--muted); white-space: nowrap; }
.notice { padding: 0.9rem 1.1rem; border-radius: 1rem; background: #fdf0e3; border: 1px solid #f3d9bd; font-size: 0.93rem; }
.notice.green { background: var(--soft); border-color: rgba(30, 122, 90, 0.2); }
.alert { padding: 0.9rem 1.1rem; border-radius: 1rem; background: #fdecea; border: 1px solid #f5c6c0; color: #8c1d14; font-weight: 600; font-size: 0.95rem; }
.code-input { letter-spacing: 0.5em; font-size: 1.4rem; font-weight: 800; text-align: center; }
.spinner { width: 3rem; height: 3rem; border-radius: 99px; border: 4px solid var(--line); border-top-color: var(--primary); animation: spin 0.9s linear infinite; margin: 0 auto 1rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.plan-pick { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.plan-pick label { display: block; cursor: pointer; padding: 0.8rem 0.9rem; border-radius: 1rem; border: 1.5px solid var(--line); background: #fff; font-size: 0.9rem; }
.plan-pick input { position: absolute; opacity: 0; }
.plan-pick input:checked + label { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(30, 122, 90, 0.12); }
.plan-pick b { display: block; }

/* ---------- footer ---------- */
.site-footer { position: relative; margin: 5rem 0.75rem 0.75rem; overflow: hidden; border-radius: 2rem; background: #17573f; color: #fff; }
.site-footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.5fr 1fr 1fr 1fr; padding: 3.5rem 1.25rem 2.5rem; max-width: var(--max); margin: 0 auto; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h2 { font-size: 1rem; margin-bottom: 0.9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; font-size: 0.92rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); padding: 1.1rem 1.25rem; font-size: 0.82rem; color: rgba(255, 255, 255, 0.65); max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; }
.wa-float { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 30; width: 3.4rem; height: 3.4rem; border-radius: 99px; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 0.8rem 1.8rem rgba(0, 0, 0, 0.2); }
.wa-float svg { width: 1.8rem; height: 1.8rem; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s, transform 0.6s; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.tag { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--soft); color: var(--primary); font-size: 0.78rem; font-weight: 700; }
.toc { font-size: 0.92rem; }
.toc ol { padding-left: 1.1rem; margin: 0; display: grid; gap: 0.35rem; }
.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: 1.2rem; overflow: hidden; font-size: 0.95rem; }
.compare th, .compare td { padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); text-align: left; }
.compare th { background: var(--cream); }
.table-scroll { overflow-x: auto; border-radius: 1.2rem; box-shadow: var(--shadow); }

/* =====================================================================================================================
   v2 — dark mode, device frames with motion, showcase tabs, galleries, lightbox
   ===================================================================================================================== */
html[data-theme="dark"] {
    --primary: #3fb488;
    --primary-deep: #2f9a72;
    --secondary: #f08a2c;
    --ink: #f3ece0;
    --muted: #b6ab9b;
    --bg: #15120e;
    --cream: #221d17;
    --surface: #1d1914;
    --soft: rgba(63, 180, 136, 0.14);
    --line: #2f2820;
    --shadow: 0 0.1rem 0.25rem rgba(0, 0, 0, 0.3), 0 0.8rem 2rem rgba(0, 0, 0, 0.35);
    color-scheme: dark;
}
html[data-theme="dark"] body {
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0),
        radial-gradient(60rem 40rem at 105% -5%, rgba(240, 138, 44, 0.12), transparent 70%),
        radial-gradient(55rem 40rem at -10% 20%, rgba(63, 180, 136, 0.12), transparent 70%);
}
html[data-theme="dark"] .site-header { background: rgba(29, 25, 20, 0.72); border-color: rgba(255, 255, 255, 0.08); box-shadow: 0 0.8rem 2.2rem rgba(0, 0, 0, 0.4); }
html[data-theme="dark"] .card, html[data-theme="dark"] .faq details { background: rgba(33, 28, 22, 0.86); }
html[data-theme="dark"] .chip, html[data-theme="dark"] .menu-btn, html[data-theme="dark"] .field, html[data-theme="dark"] .plan-pick label { background: #221d17; color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] .btn-ghost { background: rgba(255, 255, 255, 0.04); color: #7fd6b2; border-color: rgba(63, 180, 136, 0.35); }
html[data-theme="dark"] .notice { background: rgba(240, 138, 44, 0.12); border-color: rgba(240, 138, 44, 0.3); }
html[data-theme="dark"] .plan .trial, html[data-theme="dark"] .icon.orange { background: rgba(240, 138, 44, 0.16); }
html[data-theme="dark"] .site-footer { background: #0f2a20; }
html[data-theme="dark"] .prose table, html[data-theme="dark"] .compare, html[data-theme="dark"] .prose blockquote { background: #1d1914; }
html[data-theme="dark"] .float-card { background: rgba(33, 28, 22, 0.95); border-color: rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] .address-field span { background: #2a241c; }
.only-dark { display: none !important; }
html[data-theme="dark"] .only-dark { display: block !important; }
html[data-theme="dark"] .only-light { display: none !important; }

/* theme switch (slider) */
.theme-switch { position: relative; width: 3.6rem; height: 2rem; border-radius: 999px; border: 1px solid var(--line); background: var(--cream); cursor: pointer; flex-shrink: 0; padding: 0; }
.theme-switch .knob { position: absolute; top: 0.18rem; left: 0.2rem; width: 1.6rem; height: 1.6rem; border-radius: 999px; background: #fff; box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.2); display: grid; place-items: center; transition: transform 0.25s cubic-bezier(.5, 1.6, .5, 1), background 0.25s; color: var(--secondary); }
.theme-switch .knob svg { width: 0.95rem; height: 0.95rem; }
html[data-theme="dark"] .theme-switch { background: #2a241c; }
html[data-theme="dark"] .theme-switch .knob { transform: translateX(1.55rem); background: #3a3127; color: #ffd27a; }
.theme-switch .sun { display: block; } .theme-switch .moon { display: none; }
html[data-theme="dark"] .theme-switch .sun { display: none; } html[data-theme="dark"] .theme-switch .moon { display: block; }

/* device frames */
.browser { position: relative; border-radius: 1.1rem; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 2rem 4rem rgba(60, 40, 15, 0.22); }
html[data-theme="dark"] .browser { box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.55); }
.browser .bar { display: flex; align-items: center; gap: 0.35rem; padding: 0.55rem 0.8rem; background: var(--cream); border-bottom: 1px solid var(--line); }
.browser .bar i { width: 0.62rem; height: 0.62rem; border-radius: 99px; background: #e9776b; }
.browser .bar i:nth-child(2) { background: #f1bf4b; } .browser .bar i:nth-child(3) { background: #5ec26a; }
.browser .bar span { margin-left: 0.6rem; flex: 1; max-width: 22rem; font-size: 0.72rem; color: var(--muted); background: var(--surface); border-radius: 999px; padding: 0.15rem 0.7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser .view { overflow: hidden; aspect-ratio: 16 / 10; }
.browser .view img { display: block; width: 100%; height: auto; transform-origin: 30% 20%; }
.kenburns img { animation: kenburns 16s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07) translate(-1%, -1.5%); } }
.phone { position: relative; width: 100%; max-width: 15.5rem; margin: 0 auto; border-radius: 2.6rem; padding: 0.6rem; background: #1b1714; box-shadow: 0 2rem 3.5rem rgba(40, 25, 10, 0.35), inset 0 0 0 2px #3b332b; }
.phone::before { content: ''; position: absolute; top: 0.95rem; left: 50%; transform: translateX(-50%); width: 4.2rem; height: 1.1rem; border-radius: 999px; background: #1b1714; z-index: 2; }
.phone .screen { border-radius: 2.05rem; overflow: hidden; aspect-ratio: 9 / 19; background: #fff; }
.phone .screen img { display: block; width: 100%; height: auto; }
.phone.scroll .screen img { animation: screen-scroll 18s ease-in-out infinite alternate; }
@keyframes screen-scroll { 0%, 15% { transform: translateY(0); } 85%, 100% { transform: translateY(calc(-100% + 100cqh)); } }
.phone .screen { container-type: size; }
.print-frame { background: #fff; border-radius: 0.9rem; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 1.2rem 2.6rem rgba(60, 40, 15, 0.18); aspect-ratio: 11 / 14; }
.print-frame img { display: block; width: 100%; height: auto; }
.tilt { transition: transform 0.45s cubic-bezier(.2, .8, .2, 1), box-shadow 0.45s; transform: perspective(1200px) rotateY(-6deg) rotateX(3deg); }
.tilt:hover { transform: perspective(1200px) rotateY(0) rotateX(0) translateY(-4px); }
.float-slow { animation: float 7s ease-in-out infinite; }
.zoomable { cursor: zoom-in; }
@media (prefers-reduced-motion: reduce) { .kenburns img, .phone.scroll .screen img, .float-slow, .marquee-track { animation: none !important; } .tilt { transform: none; } }

/* hero v2 */
.hero-visual { position: relative; padding: 1rem 0 2rem; }
.hero-visual .phone { position: absolute; right: -1rem; bottom: -1rem; width: 30%; max-width: 11rem; padding: 0.4rem; border-radius: 1.8rem; }
.hero-visual .phone::before { width: 2.6rem; height: 0.7rem; top: 0.65rem; }
.hero-visual .phone .screen { border-radius: 1.45rem; }
@media (max-width: 640px) { .hero-visual .phone { right: -0.25rem; width: 34%; } }
.glow { position: absolute; inset: 10% 5% -5% 15%; border-radius: 3rem; background: linear-gradient(135deg, var(--secondary), #f6b25e); opacity: 0.85; transform: rotate(4deg); z-index: -1; }
html[data-theme="dark"] .glow { opacity: 0.45; }

/* showcase tabs */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1.8rem; }
.tabs button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 0.6rem 1.15rem; font: inherit; font-weight: 700; font-size: 0.92rem; cursor: pointer; display: inline-flex; align-items: center; gap: 0.45rem; }
.tabs button[aria-selected="true"] { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 0.6rem 1.4rem rgba(30, 122, 90, 0.28); }
.tab-panel { display: none; }
.tab-panel.on { display: grid; animation: fade-up 0.5s ease; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.showcase { grid-template-columns: 1.7fr 0.8fr; gap: 2rem; align-items: center; }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; } }
.showcase ul { margin: 1rem 0 0; }

/* marquee gallery of printables */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 1.25rem; width: max-content; animation: marquee 60s linear infinite; padding: 1rem 0 2rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee figure { margin: 0; width: 15rem; }
.marquee figcaption, .gallery figcaption { font-size: 0.85rem; font-weight: 700; margin-top: 0.6rem; text-align: center; }
.gallery { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.gallery figure { margin: 0; }
.gallery .shot { border-radius: 1rem; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; aspect-ratio: 16 / 10; }
.gallery .shot.tall { aspect-ratio: 9 / 16; }
.gallery .shot.page { aspect-ratio: 11 / 14; }
.gallery .shot img { width: 100%; height: auto; display: block; transition: transform 0.6s; }
.gallery figure:hover .shot img { transform: scale(1.04); }

/* phones row */
.phones { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1.5rem; align-items: end; }
.phones figure { margin: 0; }
.phones figure:nth-child(2) { transform: translateY(-1.5rem); }

/* how-to steps with pictures */
.howto { display: grid; gap: 2.2rem; }
.howto-step { display: grid; grid-template-columns: 1fr 1.25fr; gap: 2rem; align-items: center; }
.howto-step:nth-child(even) > div:first-child { order: 2; }
@media (max-width: 860px) { .howto-step { grid-template-columns: 1fr; } .howto-step:nth-child(even) > div:first-child { order: 0; } }
.howto-step .num { width: 2.6rem; height: 2.6rem; border-radius: 0.9rem; background: var(--secondary); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 0.8rem; }

/* bento */
.bento { display: grid; gap: 1.25rem; grid-template-columns: repeat(6, 1fr); }
.bento > * { grid-column: span 2; }
.bento .wide { grid-column: span 4; }
.bento .full { grid-column: span 6; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .bento > *, .bento .wide, .bento .full { grid-column: auto; } }
.bento .card { overflow: hidden; display: flex; flex-direction: column; }
.bento .pic { margin: 1rem -1.6rem -1.6rem; border-top: 1px solid var(--line); overflow: hidden; max-height: 15rem; }
.bento .pic img { display: block; width: 100%; height: auto; }
.strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.6rem; color: var(--muted); font-weight: 700; font-size: 0.95rem; }
.strip span { display: inline-flex; gap: 0.4rem; align-items: center; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(15, 12, 9, 0.88); display: none; place-items: center; padding: 1.5rem; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 88vh; border-radius: 0.8rem; box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.5); }
.lightbox p { color: #fff; text-align: center; margin-top: 0.8rem; font-weight: 700; }
main { overflow-x: clip; }
.prose { overflow-wrap: anywhere; }
.prose table { display: block; overflow-x: auto; }
.howto .print-frame, .hero-grid .print-frame { width: 100%; max-width: 22rem; margin: 0 auto; aspect-ratio: 11 / 12; }
.howto .browser, .hero-grid .browser { width: 100%; }
.print-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* v3 — computer screen frame (whole picture visible), full phone screens, full printouts, rows */
.monitor { position: relative; width: 100%; }
.monitor .bezel { background: #1d1a17; border-radius: 1.1rem; padding: 0.7rem 0.7rem 1.05rem; box-shadow: 0 2rem 4rem rgba(60, 40, 15, 0.25), inset 0 0 0 1.5px #3b332b; }
.monitor .screen { border-radius: 0.45rem; overflow: hidden; background: #fff; }
.monitor .screen img { display: block; width: 100%; height: auto; }
.monitor .neck { width: 16%; height: 1.6rem; margin: 0 auto; background: linear-gradient(#cfc7bb, #a69d90); clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%); }
.monitor .foot { width: 34%; height: 0.45rem; margin: 0 auto; border-radius: 0.5rem 0.5rem 0.3rem 0.3rem; background: #b9b0a3; box-shadow: 0 0.6rem 1.2rem rgba(60, 40, 15, 0.2); }
html[data-theme="dark"] .monitor .bezel { background: #0d0b09; box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.6), inset 0 0 0 1.5px #2e2721; }
html[data-theme="dark"] .monitor .neck { background: linear-gradient(#4a4239, #2f2924); }
html[data-theme="dark"] .monitor .foot { background: #3a332c; }
.phone .screen { aspect-ratio: 390 / 844; }
.phone .screen img { animation: none !important; }
.print-frame, .howto .print-frame, .hero-grid .print-frame { aspect-ratio: auto; background: #fff; }
.print-frame img { height: auto; object-fit: contain; }
.marquee figure { width: auto; }
.marquee .print-frame { height: 21rem; display: flex; align-items: center; justify-content: center; padding: 0.5rem; }
.marquee .print-frame img { width: auto; height: 100%; max-width: 26rem; }
.gallery .shot.page { aspect-ratio: auto; display: flex; align-items: center; justify-content: center; }
.gallery .shot.page img { width: 100%; height: auto; }
.gallery .shot { aspect-ratio: auto; }
.row4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .row4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .row4 { grid-template-columns: 1fr; } }
.faq { max-width: var(--max); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }
.tilt, .tilt:hover { transform: none; }
.hero-visual { padding-bottom: 0.5rem; }

/* v4 — slimmer screen border, floating notifications around the top picture */
.monitor .bezel { padding: 0.3rem 0.3rem 0.5rem; border-radius: 0.85rem; }
.monitor .screen { border-radius: 0.55rem; }
.monitor .neck { height: 1.1rem; width: 13%; }
.monitor .foot { width: 28%; height: 0.35rem; }
.hero-visual .float-card { position: absolute; animation: float 6s ease-in-out infinite; }
.hero-visual .float-card .dot { font-size: 0.72rem; font-weight: 800; }
.hero-visual .float-card .dot svg { width: 1.1rem; height: 1.1rem; }
.hero-visual .fc1 { left: -2rem; top: 8%; }
.hero-visual .fc2 { right: -1.5rem; top: -1.2rem; animation-delay: -1.5s; }
.hero-visual .fc3 { left: -2.5rem; top: 46%; animation-delay: -3s; }
.hero-visual .fc4 { right: -2rem; top: 58%; animation-delay: -4.5s; }
.hero-visual .fc5 { left: 18%; bottom: 2.2rem; animation-delay: -2.2s; }
@media (max-width: 1100px) { .hero-visual .fc1, .hero-visual .fc3 { left: -0.5rem; } .hero-visual .fc2, .hero-visual .fc4 { right: -0.5rem; } }
@media (max-width: 640px) {
    .hero-visual .float-card { font-size: 0.68rem; padding: 0.45rem 0.6rem; }
    .hero-visual .float-card .dot { width: 1.7rem; height: 1.7rem; }
    .hero-visual .fc3, .hero-visual .fc5 { display: none; }
}
.hero-visual .float-card { font-size: 0.74rem; padding: 0.5rem 0.7rem; gap: 0.5rem; border-radius: 0.9rem; }
.hero-visual .float-card .dot { width: 1.85rem; height: 1.85rem; border-radius: 0.6rem; font-size: 0.62rem; }
.hero-visual .float-card small { font-size: 0.66rem; }
.hero-visual .fc1 { left: -3.2rem; top: 0.2rem; }
.hero-visual .fc2 { right: -2rem; top: -1.6rem; }
.hero-visual .fc3 { left: -3.6rem; top: 50%; }
.hero-visual .fc4 { right: -2.6rem; top: 36%; }
.hero-visual .fc5 { left: auto; right: 4%; bottom: 0.4rem; }
@media (max-width: 1100px) { .hero-visual .fc1, .hero-visual .fc3 { left: -0.5rem; } .hero-visual .fc2, .hero-visual .fc4 { right: -0.5rem; } }
/* header logo: the owl, no white tile */
.site-header .brand img { background: none; box-shadow: none; padding: 0; border-radius: 0; width: auto; height: 2.6rem; object-fit: contain; }
/* phones: the same slim border as the computer screen */
.phone { padding: 0.3rem; border-radius: 2rem; box-shadow: 0 2rem 3.5rem rgba(40, 25, 10, 0.3), inset 0 0 0 1.5px #3b332b; }
.phone::before { top: 0.65rem; width: 3.4rem; height: 0.85rem; }
.phone .screen { border-radius: 1.75rem; }

/* hero v5 — bigger, more focused screenshot on desktop */
@media (min-width: 981px) {
    .hero .hero-grid { max-width: 82rem; padding: 0 1rem; gap: 2.75rem; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
}
@media (min-width: 981px) {
    .hero-visual .fc1 { left: -1rem; top: 0.6rem; }
    .hero-visual .fc3 { left: -1.2rem; top: 52%; }
    .hero-visual .fc2 { right: -1rem; }
    .hero-visual .fc4 { right: -1.2rem; }
}

/* blog: picture under the short answer, related features */
.post-figure { margin: 1.6rem 0 1.8rem; }
.post-figure img { width: 100%; height: auto; border-radius: 0.9rem; border: 1px solid var(--line); box-shadow: 0 18px 40px -24px rgba(20, 40, 80, .35); }
.post-figure figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; text-align: center; }
.related-feats { margin-top: 1rem; }
.related-feats .card h3 { margin-top: 0.4rem; }

/* the WebP <picture> wrapper must not change any layout: pictures size exactly as the plain <img> did */
picture { display: contents; }

/* sign-up: school logo */
.logo-pick { display: flex; gap: 0.9rem; align-items: center; }
.logo-pick > div { flex: 1; min-width: 0; }
.logo-preview { flex: none; width: 4rem; height: 4rem; border-radius: 1rem; border: 1px dashed var(--line); display: grid; place-items: center; color: var(--muted);
    background: var(--card, #fff) center / contain no-repeat; }
.logo-preview svg { width: 1.6rem; height: 1.6rem; }
.logo-preview.has { border-style: solid; }
.logo-preview.has svg { display: none; }
.logo-pick input[type=file] { padding: 0.55rem; }
