/* www.glossy.nz — brochure site. Plain CSS, no build step. Also used by the
   school pages the API renders (Api/school_page.php). */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('/fonts/dm-sans-var-latin.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;
}
/* latin-ext: macrons (Ōtautahi, Māori) */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('/fonts/dm-sans-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --void: #0c0b16;
  --panel: #151424;
  --line: #262438;
  --text: #f0f0f5;
  --dim: #a9a9bd;
  --pink: #ff4ba8;
  --amber: #fbbf24;
  --green: #34d399;
  --violet: #8b5cf6;
  --lilac: #c084fc;
  --shine: linear-gradient(135deg, #fff 0%, #c084fc 38%, #ff4ba8 70%, #fb7185 100%);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--void);
  background-image: radial-gradient(90% 60% at 50% 0%, #1d1230 0%, rgba(12, 11, 22, 0) 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lilac); }
a:hover { color: var(--pink); }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* ── Header ── */
header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0;
}
.wordmark {
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 1.9rem;
  line-height: 1;
  background: var(--shine);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  text-decoration: none;
  padding-bottom: 0.12em; /* keeps the descenders of "g" and "y" inside the gradient box */
}
nav.top { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
nav.top a {
  color: var(--dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 10px;
  border-radius: 10px;
}
nav.top a:hover, nav.top a[aria-current='page'] { color: #fff; }
nav.top a.open {
  color: #fff;
  border: 1px solid var(--line);
  background: var(--panel);
  margin-left: 6px;
}
nav.top a.open:hover { border-color: var(--pink); }
@media (max-width: 520px) {
  nav.top a { padding: 8px 7px; font-size: 0.86rem; }
  nav.top a.open { display: none; } /* the page's own big button does this job on a phone */
}

/* ── Type ── */
h1 {
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-size: clamp(2.5rem, 7.2vw, 4.4rem);
  margin: 0 0 18px;
  text-wrap: balance;
}
h1 .shine {
  background: var(--shine);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  padding-bottom: 0.1em;
}
h2 {
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 14px;
  text-wrap: balance;
}
h3 { font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; margin: 0 0 6px; }
p { margin: 0 0 16px; }
.lede { color: var(--dim); font-size: clamp(1.08rem, 2.2vw, 1.25rem); max-width: 34em; }
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lilac);
  margin: 0 0 14px;
}
.small { font-size: 0.9rem; color: var(--dim); }

/* ── Buttons ── */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: #fff;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.btn:hover { color: #fff; border-color: var(--lilac); transform: translateY(-1px); }
.btn.primary {
  border: 0;
  color: #1a0716;
  background: linear-gradient(135deg, #ff4ba8, #fb7185 55%, #fbbf24);
  box-shadow: 0 10px 34px -12px rgba(255, 75, 168, 0.75);
}
.btn.primary:hover { color: #1a0716; }
@media (max-width: 520px) { .btns .btn { flex: 1 1 100%; } }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding: 28px 0 64px;
}
@media (min-width: 820px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; gap: 48px; padding: 48px 0 88px; }
}
.phone {
  width: min(300px, 78vw);
  margin: 0 auto;
  border-radius: 34px;
  padding: 8px;
  background: linear-gradient(160deg, #3a2a55, #1a1830 45%, #2b1a3d);
  box-shadow: 0 40px 90px -30px rgba(139, 92, 246, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.phone img { border-radius: 27px; width: 100%; }

/* ── Sections ── */
section.band { padding: 56px 0; border-top: 1px solid var(--line); }
section.band > .wrap > .lede { margin-bottom: 32px; }

.grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .grid.three { grid-template-columns: 1fr 1fr 1fr; } }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 22px 8px;
}
.card p { color: var(--dim); font-size: 0.98rem; }
/* A pad-coloured chip — the four colours are glossy's own pad rows. */
.dot {
  width: 34px; height: 34px;
  border-radius: 10px;
  margin: 0 0 14px;
  background: var(--c, var(--pink));
  box-shadow: 0 8px 22px -8px var(--c, var(--pink));
}
.c-pink { --c: var(--pink); } .c-amber { --c: var(--amber); }
.c-green { --c: var(--green); } .c-violet { --c: var(--violet); }

/* Screenshot + words, alternating */
.show { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; margin: 0 0 56px; }
.show:last-child { margin-bottom: 0; }
.show .phone { width: min(250px, 70vw); }
@media (min-width: 760px) {
  .show { grid-template-columns: 300px 1fr; gap: 56px; }
  .show.flip { grid-template-columns: 1fr 300px; }
  .show.flip .phone { order: 2; }
}
.show p { color: var(--dim); max-width: 32em; }

/* Numbered steps */
ol.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 14px; }
@media (min-width: 820px) { ol.steps { grid-template-columns: 1fr 1fr 1fr; } }
ol.steps li {
  counter-increment: s;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  color: var(--dim);
  font-size: 0.98rem;
}
ol.steps li::before {
  content: counter(s);
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  margin-bottom: 14px;
  font-weight: 900; color: #1a0716;
  background: var(--c, var(--pink));
}
ol.steps li strong { display: block; color: var(--text); font-size: 1.12rem; margin-bottom: 4px; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 26px;
  display: flex; flex-direction: column;
}
.plan.hot { border-color: rgba(255, 75, 168, 0.55); box-shadow: 0 30px 80px -40px rgba(255, 75, 168, 0.6); }
.price { font-weight: 900; font-size: 3rem; letter-spacing: -0.04em; line-height: 1; margin: 6px 0 4px; }
.price small { font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--dim); }
.plan ul { margin: 18px 0 24px; padding: 0; list-style: none; color: var(--dim); font-size: 0.98rem; }
.plan li { padding: 7px 0 7px 26px; position: relative; }
.plan li::before {
  content: ''; position: absolute; left: 2px; top: 15px;
  width: 10px; height: 10px; border-radius: 3px; background: var(--green);
}
.plan .btn { margin-top: auto; }

/* Questions */
.qa { border-top: 1px solid var(--line); padding: 20px 0 6px; }
.qa:first-of-type { border-top: 0; }
.qa p { color: var(--dim); }

/* Closing call to action */
.cta {
  text-align: center;
  padding: 64px 0 72px;
  border-top: 1px solid var(--line);
}
.cta .lede { margin: 0 auto; }
.cta .btns { justify-content: center; }

/* ── School page ── */
.school { text-align: center; padding: 28px 0 56px; }
.school h1 { font-size: clamp(2.2rem, 8vw, 3.6rem); }
.school .lede { margin: 0 auto 8px; }
.school .btns { justify-content: center; flex-direction: column; align-items: stretch; max-width: 380px; margin: 28px auto 0; }
.btn.buy { flex-direction: column; gap: 2px; padding: 14px 24px; text-align: center; }
.btn.buy small { font-size: 0.9rem; font-weight: 700; letter-spacing: 0; color: var(--green); }
.school .phone { margin-top: 44px; width: min(260px, 72vw); }

/* ── Footer ── */
footer.site {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--dim);
  font-size: 0.9rem;
}
footer.site .cols { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 14px; }
footer.site a { color: var(--dim); text-decoration: none; font-weight: 600; }
footer.site a:hover { color: #fff; }
