/* PolySync company site — shared design system (polish pass).
   Light is the default; dark via nav toggle (<html data-theme="dark">).
   System fonts, zero external requests. Fill-based surfaces, no borders.
   Brand accent #215aa5; accent2/accent3 are decorative gradient hues only. */

:root {
  color-scheme: light;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --font-display: var(--font-sans);

  --accent: #28affc;
  --accent-600: #1296e6;
  --accent-ink: #0b1220;
  --accent2: #6cc8fd;   /* lighter blue (decorative only) */
  --accent3: #1aa0f0;   /* mid blue (decorative only) */

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f5f8;
  --surface-3: #eef1f5;
  --text: #121620;
  --muted: #5b626d;
  --faint: #8a919c;
  --hairline: rgba(16, 24, 40, 0.09);
  --dot: rgba(16, 24, 40, 0.07);
  --edge: color-mix(in srgb, var(--text) 18%, transparent); /* thin, subtle box border (adapts to theme via --text) */

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.07);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.08), 0 2px 6px rgba(16, 24, 40, 0.05);
  --shadow-lg: 0 24px 56px rgba(16, 24, 40, 0.13), 0 6px 16px rgba(16, 24, 40, 0.06);
  --shadow-xl: 0 44px 100px rgba(16, 24, 40, 0.18), 0 12px 34px rgba(16, 24, 40, 0.10);

  --radius: 7px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-pill: 8px;   /* subtle, not full pills */
  --radius-round: 999px; /* only for genuine circles/dots */
  --max: 1200px;
  --gutter: 22px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --accent: #28affc;
  --accent-600: #1aa0f0;
  --accent-ink: #0b1220;
  --accent2: #6cc8fd;
  --accent3: #5ec4fb;
  --bg: #0d1017;
  --surface: #141a22;
  --surface-2: #171d26;
  --surface-3: #1e2530;
  --text: #e9ecf2;
  --muted: #a3abb7;
  --faint: #78808c;
  --hairline: rgba(255, 255, 255, 0.09);
  --dot: rgba(255, 255, 255, 0.06);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.55);
  --shadow-xl: 0 44px 100px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: #0a0c10; overscroll-behavior-y: none; }
body {
  margin: 0; font-family: var(--font-sans); background: var(--bg); color: var(--text);
  line-height: 1.62; font-size: 17px; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.025em;
  margin: 0 0 0.5em; font-weight: 800;
}
h1 { font-size: clamp(2.05rem, 6.2vw, 4.2rem); }
h2 { font-size: clamp(1.55rem, 4.2vw, 2.8rem); }
h3 { font-size: 1.26rem; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
img { display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 840px; }
.section { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.section--tight { padding: clamp(2.2rem, 5vw, 3.8rem) 0; }
.section--alt { background: var(--surface-2); }
.section--dotted { background-color: var(--surface-2);  }
.lead { font-size: clamp(1.08rem, 2.3vw, 1.35rem); color: var(--muted); max-width: 64ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.center .btn-row { justify-content: center; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.section-head { max-width: 64ch; margin: 0 auto clamp(2.4rem, 5vw, 3.6rem); }
.center.section-head { text-align: left; margin-left: 0; }
.center.section-head .lead { margin-left: 0; }
.center.section-head .btn-row { justify-content: flex-start; }
.container.center.section-head { max-width: var(--max); margin-left: auto; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);

}
.nav__inner { display: flex; align-items: center; gap: 0.5rem; height: 68px; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--text); margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand__logo { height: 26px; width: auto; display: block; }
.footer .brand__logo { height: 28px; }
.brand__logo--dark { display: none; }
:root[data-theme="dark"] .brand__logo--light { display: none; }
:root[data-theme="dark"] .brand__logo--dark { display: block; }

.nav__links { display: flex; align-items: center; gap: 0.1rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--text); padding: 0.5rem 0.85rem; border-radius: var(--radius-pill); font-size: 0.95rem; font-weight: 500; transition: background 0.15s, color 0.15s; }
.nav__links a:hover { text-decoration: none; background: var(--surface-2); }
.nav__links a[aria-current="page"] { color: var(--accent); }
.nav__cta { margin-left: 0.4rem; }
.nav__toggle, .nav__check { display: none; }

.theme-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border: 0; cursor: pointer; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--text); transition: background 0.15s, transform 0.12s; }
.theme-toggle:hover { background: var(--surface-3); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .ico-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-light { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-dark { display: block; }

@media (max-width: 940px) {
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0.15rem; background: var(--surface); box-shadow: var(--shadow-md); /* taste-skill-ignore: overlay: the phone menu panel */
    padding: 0.6rem var(--gutter) 1rem; display: none;
  }
  .nav__links a { padding: 0.8rem 0.9rem; border-radius: var(--radius); }
  .nav__check:checked ~ .nav__links { display: flex; }
  .nav__toggle { display: inline-grid; place-items: center; order: 3; width: 42px; height: 42px; border-radius: var(--radius-pill); cursor: pointer; background: var(--surface-2); color: var(--text); }
  .nav .nav__cta { display: none; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center; font-weight: 600; font-size: 1rem; padding: 0.85rem 1.6rem; border: 0; cursor: pointer; border-radius: var(--radius-pill); text-decoration: none; white-space: nowrap; transition: transform 0.12s, background 0.15s, box-shadow 0.15s; }
.btn:hover { text-decoration: none; }
.btn, a, button, label, summary { -webkit-tap-highlight-color: transparent; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-600); }
.btn--ghost { background: var(--surface-2); color: var(--text); }
.btn--ghost:hover { background: var(--surface-3); }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.08rem; }
.btn--sm { padding: 0.55rem 1.15rem; font-size: 0.92rem; }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.pill { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--surface-2); color: var(--muted); padding: 0.34rem 0.9rem; border-radius: var(--radius-pill); font-size: 0.8rem; font-weight: 600; }
.pill--accent { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.pill--live { background: color-mix(in srgb, var(--accent3) 20%, transparent); color: var(--accent3); }
.pill--dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- hero ---------- */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem); position: relative; }
.hero--center { text-align: center; }
.hero--center h1 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.hero--center .lead { margin: 1.1rem auto 0; }
.hero--center .btn-row { justify-content: center; margin-top: 2rem; }
.hero h1 { max-width: 16ch; }
.hero .lead { margin-top: 1.1rem; }
.hero .btn-row { margin-top: 2rem; }

/* Aurora glow removed — heroes sit on a plain white background. */
.aurora { position: relative; }

/* Full-device product shot (image already includes the iPad frame). */
.hero-shot { display: block; width: 100%; max-width: 920px; height: auto; margin: 0 auto; }

/* Flat (non-tilted) device frame + a sticker that straddles its edge. */
.device--flat, .device--flat:hover { transform: none; }
.shotwrap { position: relative; max-width: 940px; margin: 0 auto; }
.sticker { position: absolute; height: auto; pointer-events: none; }
.sticker--moodle { width: clamp(100px, 16%, 176px); top: -42px; right: -6px; transform: rotate(10deg); }

.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } .hero-grid__media { order: 2; } }

/* ---------- app window frame (tabbed hero) ---------- */
.winframe {
  background: var(--surface); border-radius: var(--radius-xl);
  overflow: hidden; margin: 0 auto; max-width: 980px;
}
.winframe__bar { display: flex; align-items: center; gap: 0.9rem; padding: 0.75rem 1rem; background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); }
.winframe__dots { display: inline-flex; gap: 6px; flex: none; }
.winframe__dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-3); }
.winframe__tabs { display: flex; flex-wrap: nowrap; gap: 0.3rem; min-width: 0; }
.winframe__tabs label { cursor: pointer; font-size: 0.86rem; font-weight: 600; color: var(--muted); padding: 0.4rem 0.85rem; border-radius: var(--radius-pill); border: 1px solid transparent; white-space: nowrap; transition: background 0.15s, color 0.15s, border-color 0.15s; } /* taste-skill-ignore: thin edge on the selected tab is the owner's choice (2026-10-24) */
.winframe__tabs label:hover { background: var(--surface-2); color: var(--text); }
.winframe input.wintab { position: absolute; opacity: 0; width: 0; height: 0; }
.winframe__stage { position: relative; background: var(--surface-3); }
.winpanel { display: none; }
.winpanel svg { display: block; width: 100%; height: auto; }
#wintab1:checked ~ .winframe__stage .wp1,
#wintab2:checked ~ .winframe__stage .wp2,
#wintab3:checked ~ .winframe__stage .wp3 { display: block; }
#wintab1:checked ~ .winframe__bar .winframe__tabs label[for="wintab1"],
#wintab2:checked ~ .winframe__bar .winframe__tabs label[for="wintab2"],
#wintab3:checked ~ .winframe__bar .winframe__tabs label[for="wintab3"] { background: transparent; color: var(--text); border-color: color-mix(in srgb, var(--text) 60%, transparent); }
.winframe input.wintab:focus-visible ~ .winframe__bar .winframe__tabs label { outline: 2px solid var(--accent); }
@media (max-width: 560px) {
  .winframe__bar { gap: 0.5rem; padding: 0.6rem 0.7rem; }
  .winframe__tabs { gap: 0.25rem; }
  .winframe__tabs label { font-size: 0.72rem; padding: 0.32rem 0.5rem; }
}

/* standalone tilted device (used on sub-pages) */
.device { width: 100%; border-radius: 16px; background: #0c1017; padding: 12px; transform: perspective(1600px) rotateY(-8deg) rotateX(3deg); transition: transform 0.5s ease; }
.device:hover { transform: perspective(1600px) rotateY(-3deg) rotateX(1deg); }
.device svg, .device img { display: block; width: 100%; height: auto; border-radius: 9px; }

/* ---------- cards ---------- */
.card { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.1rem); border: 1px solid var(--edge); transition: transform 0.18s, box-shadow 0.18s; } /* taste-skill-ignore: thin edges are the owner's site choice (2026-10-24) */
.card--hover:hover { transform: translateY(-4px); }
.card--plain { background: transparent; padding: 0; }
.card h3 { margin-top: 0; }
.grid { display: grid; gap: 1.3rem; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
/* tablet (incl. iPad portrait ~768) keeps two columns; phones go single */
@media (max-width: 980px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .grid--2 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid--4 { grid-template-columns: 1fr; } }

/* icons — NO background box (clean, standalone) */
.feature-ico { width: 34px; height: 34px; color: var(--accent); margin-bottom: 1rem; }
.feature-ico svg { width: 34px; height: 34px; display: block; }
.feature-ico--2 { color: var(--accent2); }
.feature-ico--3 { color: var(--accent3); }
.app-ico { width: 52px; height: 52px; border-radius: 10px; display: block; margin-bottom: 1rem; }

/* ---------- feature showcase rows ---------- */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; margin: clamp(3rem, 7vw, 5.5rem) 0; }
.row:nth-child(even) .row__media { order: -1; }
.row__media { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--edge); display: grid; place-items: center; background: var(--surface-2); } /* taste-skill-ignore: thin edges are the owner's site choice (2026-10-24) */
.row__media svg { width: 100%; height: 100%; display: block; }
.row__kicker { color: var(--accent); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.row h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; } .row:nth-child(even) .row__media { order: 0; } }

/* ---------- proof / "works with" band ---------- */
.proof { display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; align-items: center; justify-content: center; }
.proof__item { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.98rem; color: var(--muted); }
.proof__item svg { width: 20px; height: 20px; color: var(--accent); }

/* ---------- AI accordion ---------- */
.ai-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(1.6rem, 5vw, 3.5rem); align-items: center; }
@media (max-width: 860px) { .ai-split { grid-template-columns: 1fr; } }
.accord { display: grid; gap: 0.7rem; }
.accord details { background: var(--surface); border-radius: var(--radius); padding: 1.05rem 1.3rem; }
.accord summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.accord summary::-webkit-details-marker { display: none; }
.accord summary::after { content: "+"; color: var(--accent); font-weight: 700; font-size: 1.4rem; line-height: 1; }
.accord details[open] summary::after { content: "−"; }
.accord details p { margin: 0.7rem 0 0; color: var(--muted); }
.ai-media { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--edge); } /* taste-skill-ignore: thin edges are the owner's site choice (2026-10-24) */
.ai-media svg { display: block; width: 100%; height: auto; }

/* ---------- tools grid ---------- */
.tool { background: var(--surface); border-radius: var(--radius-lg); padding: 1.5rem; border: 1px solid var(--edge); transition: transform 0.18s, box-shadow 0.18s; } /* taste-skill-ignore: thin edges are the owner's site choice (2026-10-24) */
.tool:hover { transform: translateY(-3px); }
.tool h3 { font-size: 1.08rem; margin: 0 0 0.35rem; }
.tool p { margin: 0; }

/* ---------- platforms ---------- */
.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
@media (max-width: 820px) { .platforms { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .platforms { grid-template-columns: 1fr; } }
.platform { background: var(--surface); border-radius: var(--radius-lg); padding: 1.5rem; border: 1px solid var(--edge); text-align: center; } /* taste-skill-ignore: thin edges are the owner's site choice (2026-10-24) */
.platform__ico { width: 42px; height: 42px; margin: 0 auto 0.7rem; color: var(--text); }
.platform__ico svg { width: 100%; height: 100%; }
.platform__bar { height: 5px; max-width: 150px; margin: 0.1rem auto 0; border-radius: var(--radius-round); background: var(--surface-3); overflow: hidden; }
.platform__bar > span { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--accent); position: relative; overflow: hidden; }
.platform__bar.pw-92 > span { width: 92%; }
.platform__bar.pw-100 > span { width: 100%; }
.platform__bar.pw-55 > span { width: 55%; }
.platform__bar.pw-22 > span { width: 22%; }
.platform__bar.pw-16 > span { width: 16%; }
@keyframes barsheen { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
.platform h3 { font-size: 1.05rem; margin: 0 0 0.3rem; }
.platform .pill { margin-top: 0.6rem; }

/* ---------- roadmap timeline ---------- */
.timeline { position: relative; margin: 2rem 0 0; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px; background: var(--surface-3); }
.tl { position: relative; padding: 0 0 2rem; }
.tl::before { content: ""; position: absolute; left: -32px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); }
.tl--done::before { background: var(--accent); }
.tl--now::before { background: var(--accent3); }
.tl__when { font-weight: 700; color: var(--accent); font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; }
.tl h3 { margin: 0.2rem 0 0.4rem; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; align-items: start; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--edge); position: relative; } /* taste-skill-ignore: thin edges are the owner's site choice (2026-10-24) */
.plan--featured { outline: 2px solid var(--accent); }
.plan__name { font-weight: 700; font-size: 1.2rem; font-family: var(--font-display); }
.plan__tag { color: var(--muted); font-size: 0.92rem; margin: 0.2rem 0 1rem; }
.plan__price { font-size: 2.3rem; font-weight: 800; font-family: var(--font-display); letter-spacing: -0.02em; }
.plan__price small { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.plan__alt { font-size: 0.85rem; color: var(--faint); margin-top: 0.2rem; }
.plan ul { list-style: none; padding: 0; margin: 1.3rem 0 0; }
.plan li { display: flex; gap: 0.6rem; padding: 0.42rem 0; font-size: 0.96rem; }
.plan li svg { flex: none; width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }

/* ---------- security split ---------- */
.secure { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 5vw, 3.5rem); align-items: center; }
@media (max-width: 860px) { .secure { grid-template-columns: 1fr; } }
.secure__list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.9rem; }
.secure__list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.secure__list svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }

/* ---------- banner / CTA ---------- */
.banner { background: var(--accent); color: #fff; border-radius: var(--radius-xl); padding: clamp(2.4rem, 5vw, 4rem); text-align: center; position: relative; overflow: hidden; }
.banner > * { position: relative; }
.banner h2, .banner a, .banner p { color: var(--accent-ink); }
.banner .btn--primary { background: var(--accent-ink); color: #fff; }
.banner .btn--primary:hover { background: #1c2433; }
.banner .btn--ghost { background: rgba(11, 18, 32, 0.1); color: var(--accent-ink); }
.banner .btn--ghost:hover { background: rgba(11, 18, 32, 0.18); }
.banner p { max-width: 56ch; margin-left: auto; margin-right: auto; }
.banner .btn-row { justify-content: center; }

/* ---------- highlight / principles ---------- */
.highlight { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
@media (max-width: 760px) { .highlight { grid-template-columns: 1fr; } }
.highlight .num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }

/* ---------- company facts / quote cards ---------- */
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 0.5rem 1.4rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: 0.6rem; } }

/* ---------- changelog ---------- */
.log { list-style: none; padding: 0; margin: 0; }
.log li { background: var(--surface); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin-bottom: 1rem; }
.log .ver { font-family: var(--font-display); font-weight: 700; }
.log .date { color: var(--faint); font-size: 0.85rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.8rem; }
.faq details { background: var(--surface); border-radius: var(--radius); padding: 1rem 1.3rem; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0.8rem 0 0; color: var(--muted); }

/* ---------- footer (always black) ---------- */
.footer { background: #0a0c10; color: #aab2bf; margin-top: 2rem; }
.footer .brand__logo--light { display: none; }
.footer .brand__logo--dark { display: block; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 2rem; padding: 3.6rem var(--gutter) 2.6rem; }
@media (max-width: 920px) { .footer__top { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr 1fr; } }
.footer__col h4 { font-size: 1rem; color: #ffffff; margin-bottom: 0.9rem; letter-spacing: -0.01em; }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin: 0.45rem 0; }
.footer__col a { color: #aab2bf; font-size: 0.95rem; }
.footer__col a:hover { color: #ffffff; }
.footer__brand { max-width: 300px; }
.footer__brand p, .footer .muted { color: #8b94a2; }
.footer__brand p { margin-top: 0.9rem; }
.footer__legal { color: #697283; font-size: 0.82rem; padding-bottom: 2.6rem; line-height: 1.7; }
.footer__legal p { margin: 0.2rem 0; }

/* ---------- utilities ---------- */
.strip { display: flex; flex-wrap: wrap; gap: 0.7rem 1rem; align-items: center; justify-content: center; }
.mt-0 { margin-top: 0; } .mt-sm { margin-top: 0.6rem; } .mt-lg { margin-top: 1.4rem; } .mt-xl { margin-top: 2.4rem; }
.mb-xl { margin-bottom: 2.6rem; }
.grid--center { align-items: center; }
.stack > * + * { margin-top: 1rem; } .stack-lg > * + * { margin-top: 1.5rem; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.maxw { max-width: 64ch; } .mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- real app-screenshot showcase ---------- */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }
.shots img { width: 100%; height: auto; border-radius: var(--radius-lg); display: block; }

/* ---------- nav Features mega-menu (CSS-only) ---------- */
.has-menu { position: relative; }
.submenu-trigger {
  display: inline-flex; align-items: center; gap: 0.3rem; border: 0; background: none; cursor: pointer;
  color: var(--text); font: inherit; font-size: 0.95rem; font-weight: 500;
  padding: 0.5rem 0.85rem; border-radius: var(--radius-pill); transition: background 0.15s;
}
.submenu-trigger:hover { background: var(--surface-2); }
.submenu-trigger svg { width: 14px; height: 14px; transition: transform 0.18s; }
.has-menu.is-open .submenu-trigger svg { transform: rotate(180deg); }
.submenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 286px; z-index: 60;
  background: var(--surface); box-shadow: var(--shadow-lg); border-radius: var(--radius-lg); /* taste-skill-ignore: overlay: the Features dropdown */
  padding: 0.5rem; margin: 0; list-style: none; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
}
.has-menu.is-open .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.6rem 0.75rem; border-radius: var(--radius); color: var(--text); }
.submenu a:hover { text-decoration: none; background: var(--surface-2); }
.submenu a svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.submenu a > span { display: flex; flex-direction: column; }
.submenu b { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.submenu i { font-style: normal; font-size: 0.82rem; color: var(--muted); }

@media (max-width: 940px) {
  .submenu {
    position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; /* taste-skill-ignore: resets the dropdown's shadow on phones */
    background: transparent; padding: 0 0 0 0.5rem; min-width: 0;
  }
  .submenu a { padding: 0.55rem 0.6rem; }
  .has-menu.is-open .submenu { display: block; }
  .submenu i { display: none; }
  .submenu-trigger { width: 100%; justify-content: flex-start; padding: 0.8rem 0.9rem; font-weight: 600; color: var(--faint); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
  .has-menu.is-open .submenu-trigger svg { transform: none; }
  .submenu-trigger svg { display: none; }
}

/* ---------- pricing comparison table ---------- */
.ctable-wrap { overflow-x: auto; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--edge); } /* taste-skill-ignore: thin edges are the owner's site choice (2026-10-24) */
.ctable { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.95rem; }
.ctable th, .ctable td { padding: 0.85rem 1.1rem; text-align: left; vertical-align: middle; }
.ctable thead th { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; }
.ctable thead th.plan-col { text-align: center; width: 20%; }
.ctable thead th.plan-col small { display: block; font-weight: 500; font-size: 0.8rem; color: var(--muted); }
.ctable tbody tr { box-shadow: inset 0 -1px 0 var(--hairline); } /* taste-skill-ignore: real table row line */
.ctable td.cell { text-align: center; }
.ctable tr.cat td { font-weight: 700; color: var(--accent); text-transform: uppercase; font-size: 0.74rem; letter-spacing: 0.07em; background: var(--surface-2); }
.ctable .feat { color: var(--text); font-weight: 500; }
.ctable .yes { display: inline-block; width: 20px; height: 20px; color: var(--accent); }
.ctable .no { color: var(--faint); }
.ctable .featured-col { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }

/* ---------- feature-page cross-links ---------- */
.xgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 860px) { .xgrid { grid-template-columns: 1fr; } }
.xlink { display: flex; gap: 0.8rem; align-items: flex-start; background: var(--surface); border-radius: var(--radius-lg); padding: 1.2rem 1.3rem; border: 1px solid var(--edge); transition: transform 0.18s, box-shadow 0.18s; } /* taste-skill-ignore: thin edges are the owner's site choice (2026-10-24) */
.xlink:hover { text-decoration: none; transform: translateY(-3px); }
.xlink svg { flex: none; width: 24px; height: 24px; color: var(--accent); margin-top: 2px; }
.xlink b { display: block; color: var(--text); font-weight: 700; }
.xlink span { display: block; color: var(--muted); font-size: 0.9rem; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--accent); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius); z-index: 100; }

/* Touch devices: no sticky hover "highlight" lingering after a tap. */
@media (hover: none) {
  a:hover { text-decoration: none; }
  .nav__links a:hover { background: transparent; }
  .theme-toggle:hover { background: var(--surface-2); }
  .btn--primary:hover { background: var(--accent); }
  .btn--ghost:hover { background: var(--surface-2); }
  .winframe__tabs label:hover { background: transparent; color: var(--muted); }
  .banner .btn--primary:hover { background: #fff; }
  .banner .btn--ghost:hover { background: rgba(255, 255, 255, 0.16); }
  .submenu-trigger:hover { background: transparent; }
  .submenu a:hover { background: transparent; }
  .footer__col a:hover { color: #aab2bf; }
  .card--hover:hover, .tool:hover, .xlink:hover, .device:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .device, .device:hover { transform: none; } }

/* Official store badges (Apple and Microsoft artwork, hosted locally — no third-party requests). */
.store-badge { display: inline-block; line-height: 0; border-radius: 8px; }
.store-badge img { height: 48px; width: auto; display: block; }
.store-badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* App Store + Microsoft Store badges side by side, wrapping on narrow screens. */
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------- user guide (/guide, built by tools/build_guide.py) ---------- */
.guide { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.6rem); align-items: start; padding-top: clamp(1.8rem, 4vw, 3rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.guide__side { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow-y: auto; padding-right: 0.3rem; scrollbar-width: thin; }
.gtoc__check, .gtoc__toggle { display: none; }
.gtoc__title { margin: 0 0 0.4rem; }
.gtoc__title a { font-weight: 800; font-size: 1.02rem; color: var(--text); }
.gtoc h4 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin: 0.95rem 0 0.2rem 0.7rem; font-weight: 700; }
.gtoc ul { list-style: none; margin: 0; padding: 0; }
.gtoc a { display: block; padding: 0.24rem 0.7rem; border-radius: var(--radius); color: var(--muted); font-size: 0.92rem; line-height: 1.35; }
.gtoc a:hover { text-decoration: none; background: var(--surface-2); color: var(--text); }
.gtoc a[aria-current="page"] { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--text); font-weight: 600; }
@media (max-width: 900px) {
  .guide { grid-template-columns: 1fr; gap: 1.4rem; }
  .guide__side { position: static; max-height: none; overflow: visible; padding: 0; }
  .gtoc__toggle { display: flex; align-items: center; justify-content: space-between; cursor: pointer; background: var(--surface-2); border-radius: var(--radius-lg); padding: 0.8rem 1rem; font-weight: 600; }
  .gtoc__toggle svg { width: 18px; height: 18px; transition: transform 0.18s; }
  .gtoc a { padding: 0.5rem 0.7rem; }
  .gtoc { display: none; background: var(--surface-2); border-radius: var(--radius-lg); padding: 0.6rem 0.5rem 1rem; margin-top: 0.5rem; }
  .gtoc__check:checked ~ .gtoc { display: block; }
  .gtoc__check:checked ~ .gtoc__toggle svg { transform: rotate(180deg); }
  .gtoc__check:focus-visible ~ .gtoc__toggle { outline: 3px solid var(--accent); outline-offset: 2px; }
}

.gdoc { min-width: 0; max-width: 760px; }
.gcrumb { font-size: 0.86rem; color: var(--faint); margin: 0 0 0.7rem; }
.gcrumb a { color: var(--muted); }
.gdoc h1 { font-size: clamp(2rem, 4.6vw, 2.85rem); max-width: none; margin-bottom: 0.7rem; }
.gdoc h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 2.9rem 0 0.8rem; scroll-margin-top: 90px; }
.gdoc h3 { font-size: 1.13rem; margin: 1.9rem 0 0.5rem; scroll-margin-top: 90px; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; }
.gdoc h4 { font-size: 1rem; margin: 1.4rem 0 0.4rem; letter-spacing: -0.01em; }
.gdoc ul, .gdoc ol { padding-left: 1.3rem; margin: 0 0 1.1rem; }
.gdoc li { margin: 0.32rem 0; }
.gdoc li::marker { color: var(--faint); }
.gdoc li > ul { margin: 0.3rem 0 0.4rem; }
.glead { font-size: 1.14rem; color: var(--muted); margin-bottom: 1.6rem; }
.gmeta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.5rem; }
.gon, .gnew, .gpro { display: inline-block; font-size: 0.72rem; font-weight: 650; line-height: 1.5; padding: 0.12rem 0.55rem; border-radius: var(--radius-pill); letter-spacing: 0.01em; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.gnew, .gpro { background: color-mix(in srgb, var(--accent) 16%, transparent); color: color-mix(in srgb, var(--accent) 55%, var(--text)); }
.gotp { background: var(--surface-2); border-radius: var(--radius-lg); padding: 1rem 1.25rem; margin: 0 0 2.2rem; }
.gotp b { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin-bottom: 0.45rem; }
.gotp ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 1.8rem; }
.gotp li { margin: 0.18rem 0; break-inside: avoid; font-size: 0.93rem; }
@media (max-width: 560px) { .gotp ul { columns: 1; } }

.gnote, .gtip, .gwarn { border-radius: var(--radius-lg); padding: 0.95rem 1.2rem; margin: 1.2rem 0; background: var(--surface-2); }
.gtip { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.gwarn { background: color-mix(in srgb, #f5a524 15%, var(--surface)); }
.gnote > :last-child, .gtip > :last-child, .gwarn > :last-child { margin-bottom: 0; }
.gnote > :first-child, .gtip > :first-child, .gwarn > :first-child { margin-top: 0; }

.gsteps { list-style: none; counter-reset: gstep; padding-left: 0 !important; }
.gsteps > li { counter-increment: gstep; position: relative; padding-left: 2.3rem; margin: 0.75rem 0; }
.gsteps > li::before { content: counter(gstep); position: absolute; left: 0; top: 0.12rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 0.82rem; display: grid; place-items: center; }

.gtable { overflow-x: auto; margin: 1.1rem 0 1.5rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--edge); } /* taste-skill-ignore: thin edges are the owner's site choice (2026-10-24) */
.gtable table { width: 100%; border-collapse: collapse; font-size: 0.93rem; line-height: 1.5; }
.gtable th, .gtable td { padding: 0.62rem 0.9rem; text-align: left; vertical-align: top; }
.gtable thead th { background: var(--surface-2); font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
.gtable tbody tr + tr { box-shadow: inset 0 1px 0 var(--hairline); } /* taste-skill-ignore: real table row line */
.gtable td:first-child { font-weight: 600; }

.gdoc kbd { font: 600 0.8em/1 var(--font-sans); background: var(--surface-2); border-radius: 5px; padding: 0.22em 0.45em; white-space: nowrap; color: var(--text); }

.gshot { margin: 1.7rem 0; }
.gshot img { width: 100%; height: auto; border-radius: var(--radius-lg); }
.gshot--phone img { max-width: 380px; margin: 0 auto; }
.gshot figcaption { font-size: 0.86rem; color: var(--muted); margin-top: 0.65rem; text-align: center; }

.gcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; margin: 1.2rem 0 1.6rem; }
.gpager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3.4rem; }
.gpager a { background: var(--surface); border-radius: var(--radius-lg); padding: 1rem 1.2rem; border: 1px solid var(--edge); color: var(--text); transition: box-shadow 0.15s; } /* taste-skill-ignore: thin edges are the owner's site choice (2026-10-24) */
.gpager a:hover { text-decoration: none; }
.gpager small { display: block; color: var(--faint); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.gpager .next { text-align: right; grid-column: 2; }
.gfoot { margin-top: 2rem; font-size: 0.9rem; color: var(--muted); }
@media (max-width: 640px) {
  .gcards, .gpager { grid-template-columns: 1fr; }
  .gpager .next { grid-column: auto; }
}

/* ---------- institutions quote form ---------- */
.qform fieldset { border: 0; margin: 0 0 1.8rem; padding: 0; min-width: 0; }
.qform legend { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 0.9rem; padding: 0; }
.qgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.2rem; }
.qfield { display: flex; flex-direction: column; gap: 0.4rem; font-weight: 600; font-size: 0.92rem; min-width: 0; }
.qfield--wide { grid-column: 1 / -1; }
.qopt { font-weight: 500; color: var(--muted); font-size: 0.82rem; }
.qform input[type="text"], .qform input[type="email"], .qform input[type="tel"], .qform input[type="number"], .qform input[type="month"], .qform select, .qform textarea {
  font: inherit; font-weight: 500; color: var(--text); background: var(--surface-2); border: 0; border-radius: var(--radius);
  padding: 0.72rem 0.85rem; width: 100%; box-sizing: border-box; min-height: 46px;
}
.qform textarea { resize: vertical; min-height: 110px; }
.qform input:focus-visible, .qform select:focus-visible, .qform textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-radius: var(--radius); }
.qchecks { display: grid; gap: 0.6rem; }
.qcheck { display: flex; gap: 0.8rem; align-items: flex-start; background: var(--surface-2); border-radius: var(--radius); padding: 0.85rem 1rem; cursor: pointer; }
.qcheck input { width: 20px; height: 20px; margin: 0.15rem 0 0; accent-color: var(--accent); flex: none; }
.qcheck span { display: flex; flex-direction: column; gap: 0.15rem; }
.qcheck i { font-style: normal; color: var(--muted); font-size: 0.88rem; }
.qtrap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: hidden spam trap, not a rule */
.qerror { background: color-mix(in srgb, #e5484d 14%, transparent); color: var(--text); border-radius: var(--radius); padding: 0.75rem 1rem; font-weight: 600; }
.qdone:focus { outline: none; }
@media (max-width: 640px) { .qgrid { grid-template-columns: 1fr; } }
.qlabel { display: flex; align-items: baseline; gap: 0.45rem; flex-wrap: wrap; }
.qgrid { align-items: end; }
.qfactor { }
.qfactor h3 { margin-bottom: 0.4rem; }
.qfactor p { margin: 0; }


/* 2026-11-05: real app captures replace the former SVG app illustrations. */
.capture-image { display: block; width: 100%; height: auto; object-fit: contain; background: transparent; border-radius: 0; }
.winpanel .capture-image { aspect-ratio: 16 / 10; object-fit: contain; background: transparent; }
.winframe:has(.capture-image) { background: transparent; border: 0; }
.winframe:has(.capture-image) .winframe__bar { justify-content: center; background: transparent; border: 0; }
.winframe:has(.capture-image) .winframe__stage { aspect-ratio: 16 / 10; background: transparent; }
.row__media:has(> .capture-image), .ai-media:has(> .capture-image), .device:has(> .capture-image) { padding: 0; background: transparent; border: 0; transform: none; }
.ai-media > .capture-image { max-height: 620px; }
.shots > .capture-image, .gshot > img { background: transparent; border: 0; border-radius: 0; }

/* Real app demonstrations. Video is loaded only while the selected demo is visible. */
.hero--center h1 { max-width: 24ch; text-wrap: balance; }
.hero.hero--center { padding-top: clamp(2.8rem, 5vw, 4.5rem); }
.app-demonstration { padding-top: 2rem; }
.demo-tabs { display: flex; justify-content: center; gap: .45rem; margin-bottom: 1.2rem; }
.demo-tabs button { font: inherit; font-size: .95rem; font-weight: 600; border: 0; border-radius: 8px; padding: .65rem 1rem; cursor: pointer; color: var(--muted); background: transparent; transition: color .15s, background .15s; }
.demo-tabs button:hover { color: var(--text); background: var(--surface-2); }
.demo-tabs button[aria-selected="true"] { background: var(--surface-2); color: var(--text); }
.demo-screen { max-width: 1000px; margin: 0 auto; border: 12px solid #11151c; border-radius: 32px; overflow: hidden; aspect-ratio: 8 / 5; background: transparent; }
.demo-screen video { display: block; width: 100%; height: 100%; object-fit: contain; background: transparent; }
.demo-caption { max-width: 1000px; margin: 1rem auto 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.demo-caption p { margin: 0; color: var(--muted); font-size: .86rem; }
.workflow-gallery { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; }
.workflow-gallery figure { margin: 0; min-width: 0; }
.workflow-gallery img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: contain; }
.workflow-gallery figcaption { padding: 1rem .7rem 0; }
.workflow-gallery h3 { font-size: 1.2rem; }
.workflow-gallery p { font-size: .95rem; }
.student-planner-visual img { max-width: 1000px; margin: auto; }
@media (max-width: 760px) {
  .workflow-gallery { grid-template-columns: 1fr; gap: 2rem; }
  .workflow-gallery img { max-height: 440px; }
  .demo-screen { border-width: 7px; border-radius: 22px; }
  .demo-caption { align-items: flex-start; }
  .demo-caption .btn { padding: .5rem .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- 2026-11-05: motion + cleanup pass ----------
   Content fades up out of a soft blur as it scrolls in, product shots settle to full size,
   tabs and the AI accordion cross-fade. site.js tags only what's still below the fold, so
   nothing already on screen blinks; theme.js adds .js in <head>. Reduced motion: none of it. */


/* Feature rows: the transparent iPad shots no longer sit in an empty 4:3 box, and the
   picture gets the larger share of the row. */
.row__media:has(> .capture-image) { aspect-ratio: auto; overflow: visible; }
.row:has(.capture-image) { grid-template-columns: 0.9fr 1.1fr; margin: clamp(2.2rem, 5vw, 4rem) 0; }
.row:has(.capture-image):nth-child(even) { grid-template-columns: 1.1fr 0.9fr; }
@media (max-width: 860px) {
  .row:has(.capture-image), .row:has(.capture-image):nth-child(even) { grid-template-columns: 1fr; }
}


/* Demo tabs match the hero tabs: the selected one gets the thin edge, not an underline. */
.demo-tabs button { border: 1px solid transparent; transition: background 0.15s, color 0.15s, border-color 0.15s; } /* taste-skill-ignore: thin edge on the selected tab is the owner's choice (2026-10-24) */
.demo-tabs button[aria-selected="true"] {
  background: transparent;
  border-color: color-mix(in srgb, var(--text) 20%, transparent);
}

/* AI accordion: the picture follows the open item. */
.ai-media--stack { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; aspect-ratio: 16 / 10; overflow: visible; }
.ai-media--stack > .capture-image { grid-area: 1 / 1; width: 100%; height: 100%; max-height: none; object-fit: contain; transition: opacity 0.5s ease, scale 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); }
.ai-media--stack > .capture-image:not(:first-child) { opacity: 0; scale: 0.97; }
.js .ai-media--stack > .capture-image { opacity: 0; scale: 0.97; }
.js .ai-media--stack > .capture-image.is-shown { opacity: 1; scale: 1; }

/* Buttons answer the press. */
.btn { transition: transform 0.12s, background 0.15s, box-shadow 0.15s, scale 0.12s; }
.btn:active { scale: 0.97; }

@media (hover: hover) {
  .platform { transition: transform 0.2s, box-shadow 0.2s; }
  .platform:hover { transform: translateY(-3px); }
  .row__media > .capture-image, .workflow-gallery img { transition: scale 0.5s cubic-bezier(0.22, 0.61, 0.36, 1); }
  .row__media:hover > .capture-image, .workflow-gallery figure:hover img { scale: 1.015; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Page heroes rise in on load, one line after another. */
  @keyframes ps-rise { from { opacity: 0; translate: 0 22px; filter: blur(8px); } }
  .js .hero h1 { animation: ps-rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
  .js .hero h1 + p, .js .hero .lead { animation: ps-rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.08s both; }
  .js .hero .btn-row, .js .hero .store-badges { animation: ps-rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.16s both; }
  .js .hero .winframe, .js .hero .row__media, .js .hero picture, .js .hero .hero__media {
    animation: ps-rise 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.26s both;
  }

  /* Everything below the fold: up out of a soft blur, staggered within a group. */
  .js [data-reveal]:not(.is-in) { opacity: 0; translate: 0 28px; filter: blur(6px); }
  .js [data-reveal] {
    transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), translate 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: calc(var(--reveal-i, 0) * 90ms);
  }

  /* Platform bars fill in when their card arrives. */
  .platform__bar > span { transform-origin: left center; transition: scale 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s; }
  .js .platform[data-reveal]:not(.is-in) .platform__bar > span { scale: 0 1; }

  /* Hero tabs cross-fade instead of snapping. */
  @keyframes ps-panel { from { opacity: 0; scale: 0.985; filter: blur(4px); } }
  .winpanel { animation: ps-panel 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both; }

  /* Accordion items open smoothly where the browser can animate to auto height. */
  :root { interpolate-size: allow-keywords; }
  .accord details::details-content {
    height: 0; overflow: clip;
    transition: height 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), content-visibility 0.35s allow-discrete;
  }
  .accord details[open]::details-content { height: auto; }

  /* Product shots settle to full size as they scroll into view (browsers with scroll timelines). */
  @supports (animation-timeline: view()) {
    @keyframes ps-settle { from { scale: 0.94; } to { scale: 1; } }
    .demo-screen, .row__media > .capture-image, .ai-media, .workflow-gallery img {
      animation: ps-settle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 35%;
    }
  }
}

/* ---------- 2026-11-05: taste-skill restyle ----------
   One very large size and one small one; feature lists without icon boxes; surfaces separated
   by a tone step, not a shadow. */
.home-hero h1 { font-size: clamp(2rem, 7.2vw, 6.4rem); line-height: 0.98; letter-spacing: -0.04em; max-width: 20ch; margin-left: auto; margin-right: auto; }
.home-hero .lead { font-size: clamp(1.1rem, 1.7vw, 1.4rem); color: var(--text); }
h2 { letter-spacing: -0.035em; line-height: 1.02; }
.tool { background: transparent; border: 0; padding: 0; }
.tool:hover { transform: none; }
.tools { row-gap: 2.4rem; column-gap: clamp(1.5rem, 4vw, 3.5rem); }
.tool h3 { font-size: 1.2rem; }
.card--plain { border: 0; }
.card--plain h3 { font-size: 1.35rem; }
.platform { background: var(--surface); }
.section--alt .card:not(.card--plain), .section--alt .platform, .section--dotted .accord details { background: var(--surface); }
.accord details { border: 0; }
.ai-media { border: 0; }
.winframe { border: 0; }
/* The footer closes on the product's name at full width (taste: a designed close, not a sitemap). */
.footer__name { margin-top: 0; margin-bottom: 1.4rem; font-family: var(--font-display); font-weight: 800; font-size: clamp(3.6rem, 17.2vw, 16.2rem); line-height: 0.95; padding-bottom: 0.24em; letter-spacing: -0.055em; color: #ffffff; white-space: nowrap; }

/* ---------- 2026-11-05: Montserrat, tighter buttons, the universities band ---------- */
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/montserrat-latin-ext-wght.woff2") format("woff2-variations"), url("/fonts/montserrat-latin-ext-wght.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/montserrat-latin-wght.woff2") format("woff2-variations"), url("/fonts/montserrat-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root, :root[data-theme="dark"] {
  --font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
h1, h2 { letter-spacing: -0.04em; }
.home-hero h1 { letter-spacing: -0.045em; }
body { font-weight: 500; }

/* Buttons sit close to their words; the main action points onward. */
.btn { padding: 0.6rem 1.05rem; font-size: 0.95rem; gap: 0.45rem; }
.btn--lg { padding: 0.72rem 1.25rem; font-size: 1rem; }
.btn--sm { padding: 0.45rem 0.85rem; font-size: 0.9rem; }
.btn--primary::after {
  content: ""; width: 0.4em; height: 0.4em; margin-left: 0.05em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  rotate: -45deg; transition: translate 0.18s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.btn--primary:hover::after { translate: 3px 0; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }

/* Universities: a field of colour, two rows of names drifting in opposite directions. */
.unis { background: color-mix(in srgb, var(--accent) 10%, var(--bg)); overflow: hidden; }
.unis__head { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: end; margin-bottom: clamp(2.2rem, 4.5vw, 3.4rem); }
.unis__head h2 { margin-bottom: 0.35em; }
.unis__head .lead { color: var(--text); margin: 0; }
.unis__find label { display: block; font-weight: 700; margin-bottom: 0.55rem; }
.unis__find input {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--text);
  background: var(--surface); border: 0; border-radius: var(--radius); padding: 0.85rem 1rem; min-height: 50px;
}
.unis__find input::placeholder { color: var(--faint); }
.unis__results { list-style: none; margin: 0.5rem 0 0; padding: 0.3rem; background: var(--surface); border-radius: var(--radius); display: grid; gap: 0.1rem; }
.unis__results button {
  width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; text-align: left;
  font: inherit; color: var(--text); background: transparent; border: 0; border-radius: calc(var(--radius) - 2px); padding: 0.6rem 0.75rem; cursor: pointer;
}
.unis__results button:hover, .unis__results button:focus-visible { background: var(--surface-2); }
.unis__results small { color: var(--muted); white-space: nowrap; }
.unis__note { margin: 0.7rem 0 0; color: var(--muted); font-size: 0.92rem; }
.unis__note.is-found { color: var(--text); background: var(--surface); border-radius: var(--radius); padding: 0.8rem 1rem; }
.unis__rows { display: grid; gap: 0.9rem; }
.unis__row { display: flex; width: max-content; animation: unis-drift 90s linear infinite; }
.unis__row--rev { animation-direction: reverse; animation-duration: 104s; }
.unis__rows:hover .unis__row { animation-play-state: paused; }
.unis__row ul { display: flex; gap: 0.9rem; list-style: none; margin: 0; padding: 0 0.9rem 0 0; }
.unis__row li { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.95rem 1.25rem; border-radius: var(--radius-lg); background: var(--surface); white-space: nowrap; }
.unis__row b { font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; }
.unis__row span { color: var(--muted); font-size: 0.84rem; }
@keyframes unis-drift { to { transform: translateX(-50%); } }
@media (max-width: 860px) { .unis__head { grid-template-columns: 1fr; align-items: start; } }
@media (prefers-reduced-motion: reduce) {
  .unis__row { animation: none; width: auto; overflow-x: auto; }
  .unis__row ul[aria-hidden] { display: none; }
}
.unis__results[hidden] { display: none; }
/* Montserrat sets wider than the system face: page titles step down a little on phones. */
h1 { font-size: clamp(1.8rem, 6.2vw, 4.2rem); }
@media (max-width: 600px) { .hero h1 { max-width: none; } }

/* ---------- 2026-11-05: compact pricing (small type, thin edges, neat) ---------- */
.price-hero { padding-top: clamp(2.6rem, 6vw, 4.6rem); padding-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.price-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; margin-bottom: 0.5rem; }
.price-hero .lead { font-size: 1.05rem; color: var(--text); margin-bottom: 1.3rem; }
.price-plans { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.seg { display: flex; width: max-content; margin: 0 auto 1.6rem; padding: 4px; gap: 2px; border-radius: 10px; background: var(--surface-2); }
.seg[hidden] { display: none; }
.seg button { font: inherit; font-size: 0.82rem; font-weight: 600; color: var(--muted); background: transparent; border: 0; border-radius: 7px; padding: 0.45rem 0.95rem; cursor: pointer; display: inline-flex; align-items: center; gap: 0.45rem; transition: background 0.15s, color 0.15s; }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--text); }
.seg__save { font-size: 0.68rem; font-weight: 700; color: var(--accent-ink); background: var(--accent); border-radius: 5px; padding: 0.1rem 0.35rem; }
.pcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; max-width: 1120px; margin: 0 auto; align-items: stretch; }
.pcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid color-mix(in srgb, var(--text) 22%, transparent); border-radius: 8px; padding: 1.05rem 0.95rem 1.2rem; } /* taste-skill-ignore: thin card edges, as the owner asked */
.pcard--featured { border: 1.5px solid var(--text); } /* taste-skill-ignore: the featured plan's darker edge */
.pcard__name { display: flex; align-items: center; gap: 0.45rem; font-size: 0.98rem; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 0.8rem; }
.pcard__flag { font-size: 0.62rem; font-weight: 700; letter-spacing: 0; background: #ffd84d; color: #1c1a10; border-radius: 4px; padding: 0.12rem 0.38rem; }
.pcard__price { display: flex; align-items: baseline; gap: 0.4rem; margin: 0 0 0.55rem; }
.pcard__price b { font-size: 1.7rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.pcard__price span { font-size: 0.72rem; color: var(--muted); }
.pcard__desc { font-size: 0.78rem; line-height: 1.5; color: var(--muted); margin: 0 0 1.1rem; min-height: 2.35rem; }
.pcard__btn { display: flex; align-items: center; justify-content: center; height: 2.15rem; font-size: 0.8rem; font-weight: 700; color: var(--text); border: 1px solid var(--text); border-radius: 6px; transition: background 0.15s, color 0.15s; } /* taste-skill-ignore: outlined plan buttons, as in the owner's reference */
.pcard__btn:hover { text-decoration: none; background: var(--surface-2); }
.pcard__btn--solid { background: var(--text); color: var(--bg); }
.pcard__btn--solid:hover { background: color-mix(in srgb, var(--text) 85%, var(--bg)); }
.pcard__note { font-size: 0.68rem; color: var(--muted); text-align: center; margin: 0.55rem 0 0.9rem; }
.pcard__list { list-style: none; margin: 0; padding: 0; font-size: 0.76rem; line-height: 1.45; }
.pcard__list li { padding: 0.18rem 0; }
.pcard__lead { font-weight: 700; }
@media (max-width: 980px) { .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pcards { grid-template-columns: 1fr; } .pcard__desc { min-height: 0; } }
/* The rest of the pricing page matches the compact cards. */
.page-pricing h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-weight: 700; letter-spacing: -0.03em; }
.page-pricing .section--tight { padding: clamp(2rem, 4.5vw, 3.2rem) 0; }
.page-pricing .ctable-wrap { max-width: 1120px; margin: 0 auto; border-radius: 8px; }
.page-pricing .ctable { font-size: 0.8rem; }
.page-pricing .ctable th, .page-pricing .ctable td { padding: 0.55rem 0.9rem; }
.page-pricing .ctable thead th { font-size: 0.86rem; }
.page-pricing .ctable thead th.plan-col small { font-size: 0.7rem; }
.page-pricing .ctable tr.cat td { font-size: 0.72rem; text-transform: none; letter-spacing: 0; color: var(--text); }
.page-pricing .ctable .yes { width: 16px; height: 16px; }
.page-pricing .section-head, .page-pricing .container > h2 { max-width: 1120px; margin-left: auto; margin-right: auto; }
.page-pricing .faq details summary, .page-pricing .faq details p { font-size: 0.9rem; }
.page-pricing .container > p, .page-pricing .container > .muted { max-width: 1120px; margin-left: auto; margin-right: auto; }

/* ---------- 2026-11-05: compact pass, site-wide (matches the pricing page) ----------
   Smaller, lighter type; slimmer nav; tighter cards and sections. Everything here overrides
   the earlier, larger scale. */
body { font-size: 15.5px; line-height: 1.6; font-weight: 450; }
h1 { font-size: clamp(1.8rem, 3.8vw, 2.9rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2.05rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; }
h3 { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.row h2 { font-size: clamp(1.35rem, 2.3vw, 1.8rem); }
.lead { font-size: clamp(0.98rem, 1.3vw, 1.08rem); line-height: 1.6; }
.home-hero h1 { font-size: clamp(2.1rem, 4.8vw, 4.1rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.04em; max-width: 18ch; }
.home-hero .lead { font-size: clamp(1rem, 1.35vw, 1.12rem); max-width: 56ch; margin-left: auto; margin-right: auto; }
.hero.hero--center { padding-top: clamp(2.4rem, 5vw, 4rem); }
.section { padding: clamp(2.6rem, 5.5vw, 4.4rem) 0; }
.section--tight { padding: clamp(1.8rem, 4vw, 3rem) 0; }
.section-head { margin-bottom: clamp(1.6rem, 3.5vw, 2.4rem); }
.row:has(.capture-image) { margin: clamp(1.8rem, 4vw, 3rem) 0; }

/* Nav: slimmer bar, smaller links. */
.nav__inner { height: 58px; }
.nav__links a { font-size: 0.86rem; padding: 0.4rem 0.7rem; }
.brand__logo { height: 22px; }

/* Buttons a notch smaller. */
.btn { font-size: 0.86rem; padding: 0.52rem 0.95rem; border-radius: 6px; }
.btn--lg { font-size: 0.92rem; padding: 0.62rem 1.1rem; }
.btn--sm { font-size: 0.82rem; padding: 0.42rem 0.8rem; }

/* Cards, accordion, platforms: thinner and tighter. */
.card { padding: clamp(1rem, 2vw, 1.3rem); border-radius: 8px; }
.card h3 { margin-bottom: 0.35rem; }
.card p, .tool p, .platform p { font-size: 0.86rem; }
.tools { row-gap: 1.6rem; }
.tool h3 { font-size: 0.98rem; }
.accord { gap: 0.45rem; }
.accord details { padding: 0.8rem 1rem; border-radius: 8px; }
.accord summary { font-size: 0.95rem; }
.accord details p { font-size: 0.86rem; }
.platform { padding: 1rem; border-radius: 8px; }
.platform__ico { width: 30px; height: 30px; margin-bottom: 0.45rem; }
.platform h3 { font-size: 0.92rem; }
.banner { padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: 10px; }
.banner p { font-size: 0.92rem; }
.workflow-gallery h3 { font-size: 1rem; }
.workflow-gallery p { font-size: 0.86rem; }
.secure li, .checks li { font-size: 0.9rem; }

/* Universities band. */
.unis__row li { padding: 0.65rem 0.95rem; border-radius: 8px; }
.unis__row b { font-size: 0.88rem; }
.unis__row span { font-size: 0.74rem; }
.unis__rows, .unis__row ul { gap: 0.6rem; }
.unis__row ul { padding-right: 0.6rem; }
.unis__find input { font-size: 0.95rem; min-height: 44px; padding: 0.65rem 0.9rem; }
.unis__find label { font-size: 0.9rem; }

/* Demo tabs and hero tabs. */
.demo-tabs button, .winframe__tabs label { font-size: 0.82rem; }

/* Footer: smaller columns; the closing name stays big. */
.footer__col h4 { font-size: 0.86rem; }
.footer__col a { font-size: 0.84rem; }
.footer__brand p { font-size: 0.84rem; }
.footer__legal { font-size: 0.74rem; }

/* Guide pages follow the same scale. */
.gdoc h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.gdoc h2 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
.gdoc { font-size: 0.95rem; }
.hero:not(.home-hero) h1 { max-width: 28ch; }
.lead, .row p, .section-head p { text-wrap: pretty; }

/* ---------- 2026-11-05: Moodle import + camera sections ---------- */
.moodle-import__plans { margin: 1.6rem 0 0; font-size: 0.86rem; color: var(--muted); }
.demo-screen--stage { border: 0; border-radius: 12px; aspect-ratio: 16 / 9; background: #ffffff; max-width: 1040px; }
.demo-screen--stage video { object-fit: contain; }
.camera-feature .demo-caption, .camera-feature__soon { max-width: 1040px; }
.camera-feature__soon { margin: 0.4rem auto 0; font-size: 0.8rem; color: var(--muted); }
.demo-tabs--single { display: none; }
.moodle-import .demo-caption { max-width: 1040px; }
.steps-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.4rem); max-width: 1040px; margin: 1.8rem auto 0; }
.steps-row h3 { margin-bottom: 0.3rem; }
.steps-row p { font-size: 0.86rem; color: var(--muted); margin: 0; }
.moodle-import__plans { max-width: 1040px; margin-left: auto; margin-right: auto; }
@media (max-width: 760px) { .steps-row { grid-template-columns: 1fr; } }

/* ---------- 2026-11-06: roadmap lists and plain status text (no status chips, ever) ---------- */
.plan-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.6rem, 4vw, 3.2rem); }
.plan-cols h3 { font-size: 1.05rem; margin: 0 0 0.9rem; }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.plan-list li { display: grid; gap: 0.2rem; }
.plan-list b { font-weight: 700; font-size: 0.95rem; }
.plan-list span { color: var(--muted); font-size: 0.86rem; line-height: 1.5; }
@media (max-width: 860px) { .plan-cols { grid-template-columns: 1fr; } }
.status-note { margin: 0.35rem 0 0; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.status-note--accent { color: var(--accent); }
.log__list { margin: 0.4rem 0 0.8rem; padding-left: 1.1rem; font-size: 0.9rem; }
.log__list li { background: none; padding: 0.15rem 0; margin: 0; border-radius: 0; }

/* ---------- footer: social icons + store badges row (2026-11-12) ---------- */
.footer__social-row { padding-top: 2.6rem; }
.footer__social-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; padding-bottom: 1.8rem; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.16); }
.footer__social { display: flex; gap: 12px; }
.footer__social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #ffffff; color: #0a0c10; transition: transform 0.15s, background 0.15s; }
.footer__social a:hover { background: #dfe4ea; transform: translateY(-1px); text-decoration: none; }
.footer__social a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.footer__stores { display: flex; flex-wrap: wrap; gap: 10px; }
.footer__stores .store-badge img { height: 32px; width: auto; }
.footer__social-row + .footer__top { padding-top: 2.4rem; }
