/* ---------------------------------------------------------------------------
   trogon.cloud — the public site. Static, no scripts, no third parties.

   Navy and gold. Deep navy carries the brand (buttons, headings, dark
   sections); gold is the accent, used sparingly. Gold is low-contrast on
   white, so it comes in three strengths:
     --gold       on navy, and for the logo stripes
     --gold-deep  large type on white (the headline phrase)
     --gold-text  small text on white (4.8:1)
   Plus Jakarta Sans throughout; crisp cards with soft neutral shadows.
--------------------------------------------------------------------------- */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --navy-950: #08132a;
  --navy-900: #0b1730;
  --navy:     #0f1f3d;
  --navy-700: #1a2c52;
  --navy-600: #24396a;
  --navy-100: #e4e9f3;
  --navy-50:  #f2f5fa;

  --gold:      #d9b45a;
  --gold-soft: #f3e6c4;
  --gold-deep: #b8913a;
  --gold-text: #8f6d1f;
  --ivory:     #f8f6f0;

  --ok:    #2f7a55;
  --ok-bg: #e8f3ec;

  --ink:   var(--navy);
  --text:  #2c3850;
  --muted: #5b6478;
  --line:  #e3e6ee;
  --line-2:#eef0f5;
  --bg:    #ffffff;
  --bg-2:  #f7f8fb;

  --shadow-sm: 0 1px 2px rgba(15, 31, 61, .06), 0 1px 1px rgba(15, 31, 61, .04);
  --shadow:    0 1px 2px rgba(15, 31, 61, .05), 0 10px 28px -10px rgba(15, 31, 61, .16);
  --shadow-lg: 0 2px 4px rgba(15, 31, 61, .04), 0 28px 60px -18px rgba(15, 31, 61, .28);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--navy-600); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

::selection { background: var(--gold-soft); color: var(--navy); }

:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { color: var(--ink); font-weight: 700; letter-spacing: -.02em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 8px;
  background: var(--navy); color: #fff; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

/* --- Header ---------------------------------------------------------------- */

.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }

.head-row { display: flex; align-items: center; gap: 28px; height: 70px; }

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: auto; height: 34px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none; }
.nav a:hover { color: var(--navy); background: var(--bg-2); }
.nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }

.head-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* Phones: the section links fold into a menu built from <details>, so it
   works without a script. */
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer;
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 10px; color: var(--navy);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 20px; height: 20px; }
.menu-panel {
  position: absolute; right: 0; top: 50px; width: 230px;
  display: grid; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
}
.menu-panel a { padding: 10px 12px; border-radius: 8px; color: var(--navy); text-decoration: none; font-weight: 500; }
.menu-panel a:hover { background: var(--bg-2); }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu { display: block; }
  .head-actions .btn-quiet { display: none; }
}
@media (max-width: 400px) { .brand img { height: 30px; } .head-actions .btn-primary { display: none; } }

/* --- Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-700); color: #fff; }
.btn-primary svg { color: var(--gold); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: #cdd3e0; color: var(--navy); background: var(--bg-2); }
.btn-quiet { background: transparent; color: var(--navy); }
.btn-quiet:hover { background: var(--bg-2); color: var(--navy); }
.btn-sm { padding: 9px 16px; font-size: 14.5px; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-gold { background: var(--gold); color: var(--navy-950); }
.btn-gold:hover { background: #e4c375; color: var(--navy-950); }
.btn-outline-white { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-outline-white:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }

/* --- Hero ------------------------------------------------------------------ */

.hero { position: relative; padding: 84px 0 96px; background: linear-gradient(180deg, var(--ivory) 0%, #fff 64%); overflow: hidden; }

.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 64px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 22px; padding: 5px 12px 5px 5px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 13.5px; font-weight: 600; color: var(--navy);
}
.eyebrow::before {
  content: "New"; padding: 2px 9px; border-radius: 999px;
  background: var(--navy); color: var(--gold); font-size: 11.5px; font-weight: 700;
}

.hero h1 { margin: 0; font-size: clamp(38px, 5.2vw, 60px); line-height: 1.08; font-weight: 800; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--gold-deep); }

.hero .lead { margin: 22px 0 0; max-width: 33em; font-size: 18.5px; color: var(--text); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 500; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 17px; height: 17px; color: var(--gold-deep); }

/* The product, drawn in HTML: a Studio video card. Decorative. */
.mock { position: relative; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.mock-player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: var(--navy-900); }
.mock-player::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .45)); }
.mock-play {
  position: absolute; inset: 0; margin: auto; z-index: 1;
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.mock-play svg { width: 22px; height: 22px; margin-left: 3px; color: var(--navy); }
.mock-bar { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .9); font-size: 11.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.mock-track { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.mock-track i { display: block; width: 38%; height: 100%; border-radius: 4px; background: var(--gold); }
.mock-quality { padding: 2px 6px; border-radius: 4px; background: rgba(255, 255, 255, .14); font-weight: 700; }

.mock-info { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px 12px; }
.mock-title { margin: 0; font-size: 15px; font-weight: 700; color: var(--navy); }
.mock-sub { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-live { color: var(--ok); background: var(--ok-bg); }

.mock-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 4px 2px; margin: 0; list-style: none; }
.mock-steps li {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 10px; border-radius: 8px;
  background: var(--bg-2); border: 1px solid var(--line-2);
  font-size: 12px; font-weight: 600; color: var(--text);
}
.mock-steps svg { width: 14px; height: 14px; flex: none; color: var(--ok); }

.mock-float {
  position: absolute; left: -36px; top: 40px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  font-size: 12.5px; line-height: 1.35;
}
.mock-float b { display: block; font-size: 13.5px; color: var(--navy); }
.mock-float span { color: var(--muted); }
.mock-float-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--navy); color: var(--gold); }
.mock-float-icon svg { width: 18px; height: 18px; }

@media (max-width: 980px) {
  .hero { padding: 60px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .mock-float { left: 12px; }
}
@media (max-width: 520px) {
  .mock-steps { grid-template-columns: repeat(2, 1fr); }
  .mock-float { display: none; }
}

/* --- Sections -------------------------------------------------------------- */

.section { padding: 100px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }

.section-head { max-width: 700px; margin: 0 0 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); }
.section h2 { margin: 0; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.15; font-weight: 800; letter-spacing: -.03em; }
.section-head p:not(.kicker) { margin: 16px 0 0; font-size: 18px; color: var(--muted); }

@media (max-width: 720px) { .section { padding: 72px 0; } }

/* Features. */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  padding: 28px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.feature:hover { box-shadow: var(--shadow); border-color: #d6dbe6; transform: translateY(-2px); }
.feature-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 20px; border-radius: 12px; background: var(--navy); color: var(--gold); }
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.feature p { margin: 8px 0 0; font-size: 15px; color: var(--muted); }

@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* How it works. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; margin: 0; padding: 0; list-style: none; }
.step { position: relative; padding: 28px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center;
  width: 36px; height: 36px; margin-bottom: 18px; border-radius: 10px;
  background: var(--gold-soft); color: var(--gold-text); font-weight: 800; font-size: 15px;
}
.step h3 { margin: 0; font-size: 18px; }
.step p { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.step-who { display: inline-block; margin-top: 16px; padding: 3px 10px; border-radius: 999px; background: var(--bg-2); font-size: 12.5px; font-weight: 600; color: var(--text); }

@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* Developers: a dark navy section, as payment and API products do. */
.section-dark { background: var(--navy); color: #b9c3d8; }
.section-dark h2 { color: #fff; }
.section-dark .kicker { color: var(--gold); }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.split-lead { margin: 16px 0 0; font-size: 18px; color: #a3aec6; }
.ticks { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; font-size: 15.5px; }
.ticks svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--gold); }
.ticks strong { color: #fff; font-weight: 600; }

.code { margin: 0; overflow: hidden; border-radius: 14px; background: var(--navy-950); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.code-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.code-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.code-bar span { margin-left: 8px; font-size: 12.5px; color: #7c88a3; }
.code pre {
  margin: 0; padding: 18px 20px 22px; overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; line-height: 1.75; color: #dde3ef;
}
.code .c { color: #66728d; }
.code .k { color: var(--gold); }
.code .s { color: #a9c5f0; }
.code .n { color: #f0cf85; }

@media (max-width: 980px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* Access: who does what. */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.role { padding: 28px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.role-tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--ivory); border: 1px solid var(--gold-soft); color: var(--gold-text); }
.role h3 { margin: 14px 0 0; font-size: 18px; }
.role ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; color: var(--muted); }
.role li { position: relative; padding-left: 24px; }
.role li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9b45a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 9px no-repeat;
}

@media (max-width: 900px) { .roles { grid-template-columns: 1fr; } }

/* Closing call to action: navy, with a gold button. */
.cta {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 52px; border-radius: 20px;
  background: var(--navy); color: #fff;
  box-shadow: 0 24px 56px -24px rgba(15, 31, 61, .6);
}
.cta::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold); }
.cta h2 { margin: 0; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.2; color: #fff; }
.cta p { margin: 12px 0 0; max-width: 32em; color: #b9c3d8; font-size: 17px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 620px) { .cta { padding: 36px 26px; } }

/* --- Inner pages ----------------------------------------------------------- */

.page-hero { padding: 72px 0 48px; background: linear-gradient(180deg, var(--ivory) 0%, #fff 100%); border-bottom: 1px solid var(--line-2); }
.page-hero h1 { margin: 0; font-size: clamp(34px, 4.6vw, 50px); line-height: 1.1; font-weight: 800; letter-spacing: -.035em; }
.page-hero p { margin: 14px 0 0; max-width: 40em; font-size: 18px; color: var(--muted); }
.page-hero .updated { font-size: 14px; }

/* Contact. */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { display: flex; flex-direction: column; padding: 28px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.contact-card:first-child { border-color: var(--gold); box-shadow: 0 0 0 4px var(--ivory), var(--shadow); }
.contact-card h2 { margin: 0; font-size: 20px; }
.contact-card p { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.contact-card .spacer { flex: 1; min-height: 20px; }
.contact-card .btn { align-self: flex-start; }
.contact-mail { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 16px; color: var(--navy); overflow-wrap: anywhere; }

.include { margin-top: 40px; padding: 28px 32px; border-radius: 16px; background: var(--ivory); border: 1px solid #eee8d8; }
.include h2 { margin: 0; font-size: 20px; }
.include ul { margin: 14px 0 0; padding-left: 20px; color: var(--text); columns: 2; column-gap: 40px; }
.include li { margin: 0 0 8px; break-inside: avoid; }
.include li::marker { color: var(--gold-deep); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .include ul { columns: 1; }
}

/* Legal pages: a contents list beside readable prose. */
.legal { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding: 56px 0 96px; }
.toc { position: sticky; top: 100px; align-self: start; font-size: 14px; }
.toc p { margin: 0 0 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.toc a:hover { background: var(--bg-2); color: var(--navy); }

.prose { max-width: 740px; font-size: 16px; color: var(--text); }
.prose h2 { margin: 48px 0 0; font-size: 24px; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 24px 0 0; font-size: 17px; }
.prose p, .prose ul, .prose ol { margin: 12px 0 0; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--gold-deep); }
.prose strong { color: var(--navy); }
.prose table { width: 100%; margin-top: 14px; border-collapse: separate; border-spacing: 0; font-size: 14.5px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.prose th, .prose td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose tr:last-child td { border-bottom: 0; }
.prose th { background: var(--bg-2); color: var(--navy); font-weight: 600; }

/* A fact the site owner still has to supply. Loud on purpose. */
.todo { padding: 1px 6px; border-radius: 4px; background: #fde68a; color: #78350f; font-weight: 600; }

@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
  .toc { position: static; }
}

/* --- Footer ---------------------------------------------------------------- */

.site-foot { padding: 64px 0 40px; background: var(--navy-900); color: #a3aec6; border-top: 3px solid var(--gold); }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.foot-brand img { width: auto; height: 38px; }
.foot-brand p { margin: 16px 0 0; max-width: 26em; font-size: 14.5px; }
.foot-col h2 { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.foot-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14.5px; }
.foot-col a { color: #c3cbdc; text-decoration: none; }
.foot-col a:hover { color: #fff; }
.foot-base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13.5px; color: #7c88a3;
}
.foot-base a { color: #c3cbdc; text-decoration: none; }
.foot-base a:hover { color: #fff; }

@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* --- 404 ------------------------------------------------------------------- */

.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound img { width: 64px; height: 64px; margin: 0 auto 24px; }
.notfound h1 { margin: 0; font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.notfound p { margin: 12px 0 28px; color: var(--muted); }

/* ===========================================================================
   Audience-led home page, About and Developers.
=========================================================================== */

/* Hero visual: a student's phone playing a lesson in the customer's app. */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-visual::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 460px; height: 460px; margin: -230px 0 0 -230px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 180, 90, .2), transparent 68%);
}
.phone {
  position: relative; flex: none; width: 280px; padding: 11px; border-radius: 44px;
  background: var(--navy-900); box-shadow: var(--shadow-lg), inset 0 0 0 2px #26365c;
}
.phone-screen { position: relative; overflow: hidden; border-radius: 34px; background: #fff; }
.phone-notch { position: absolute; top: 9px; left: 50%; width: 92px; height: 24px; margin-left: -46px; border-radius: 14px; background: var(--navy-900); z-index: 2; }
.phone-top { display: flex; align-items: center; gap: 8px; padding: 46px 16px 12px; }
.phone-top b { font-size: 14px; color: var(--navy); }
.phone-top span { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--muted); }
.phone-back { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--bg-2); color: var(--navy); }
.phone-back svg { width: 14px; height: 14px; }
.phone-video { position: relative; aspect-ratio: 16 / 9; background: var(--navy-900); }
.phone-video .mock-play { width: 46px; height: 46px; }
.phone-video .mock-play svg { width: 18px; height: 18px; }
.phone-video .mock-bar { left: 10px; right: 10px; bottom: 8px; font-size: 10px; }
.phone-lesson { padding: 12px 16px 6px; }
.phone-lesson b { display: block; font-size: 14px; color: var(--navy); line-height: 1.3; }
.phone-lesson span { font-size: 11.5px; color: var(--muted); }
.phone-list { margin: 6px 0 0; padding: 0 10px 16px; list-style: none; display: grid; gap: 6px; }
.phone-list li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; font-size: 12.5px; font-weight: 600; color: var(--text); background: var(--bg-2); }
.phone-list li.now { background: var(--navy); color: #fff; }
.phone-list li small { margin-left: auto; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.phone-list li.now small { color: var(--gold); }
.phone-list .ico { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 8px; background: #fff; color: var(--navy); }
.phone-list li.now .ico { background: var(--gold); color: var(--navy-950); }
.phone-list .ico svg { width: 12px; height: 12px; }

.chips { position: relative; z-index: 2; display: grid; gap: 14px; margin-left: -18px; }
.chip {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  font-size: 12.5px; line-height: 1.35; white-space: nowrap;
}
.chip:nth-child(2) { margin-left: 28px; }
.chip b { display: block; font-size: 13.5px; color: var(--navy); }
.chip span { color: var(--muted); }
.chip-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--navy); color: var(--gold); }
.chip-icon svg { width: 18px; height: 18px; }

@media (max-width: 1100px) { .chip:nth-child(2) { margin-left: 0; } }
@media (max-width: 560px) {
  .hero-visual { flex-direction: column; gap: 20px; }
  .chips { margin: 0; width: 290px; }
  .chip { white-space: normal; }
  .hero-visual::before { width: 320px; height: 320px; margin: -160px 0 0 -160px; }
}

/* Credibility strip under the hero. */
.proof { padding: 28px 0; border-bottom: 1px solid var(--line-2); }
.proof-row { display: flex; align-items: center; justify-content: center; gap: 18px 44px; flex-wrap: wrap; font-size: 14.5px; color: var(--muted); }
.proof-row b { color: var(--navy); font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-right: 6px; }
.proof-by { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy); }
.proof-sep { width: 1px; height: 22px; background: var(--line); }
@media (max-width: 700px) { .proof-sep { display: none; } }

/* Who it's for. */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.aud {
  position: relative; display: flex; flex-direction: column;
  padding: 30px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.aud-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 14px; background: var(--ivory); border: 1px solid var(--gold-soft); color: var(--gold-text); }
.aud-icon svg { width: 26px; height: 26px; }
.aud h3 { margin: 0; font-size: 20px; }
.aud > p { margin: 10px 0 0; font-size: 15.5px; color: var(--muted); }
.aud ul { margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line-2); list-style: none; display: grid; gap: 10px; font-size: 14.5px; color: var(--text); }
.aud li { display: flex; gap: 10px; }
.aud li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--gold-deep); }
@media (max-width: 980px) { .audience { grid-template-columns: 1fr; } }

/* Problems we solve: before and after, side by side. */
.fixes { display: grid; gap: 14px; }
.fix { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: stretch; }
.fix-before, .fix-after { padding: 22px 24px; border-radius: 14px; }
.fix-before { background: #fff; border: 1px solid var(--line); }
.fix-after { background: var(--navy); color: #c9d1e2; }
.fix-label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.fix-before .fix-label { color: var(--muted); }
.fix-after .fix-label { color: var(--gold); }
.fix h3 { margin: 0; font-size: 17px; }
.fix-after h3 { color: #fff; }
.fix p { margin: 6px 0 0; font-size: 14.5px; }
.fix-before p { color: var(--muted); }
.fix-arrow { display: grid; place-items: center; color: var(--gold-deep); }
.fix-arrow svg { width: 22px; height: 22px; }
.fix-note { margin: 18px 0 0; font-size: 13.5px; color: var(--muted); text-align: center; }
@media (max-width: 820px) {
  .fix { grid-template-columns: 1fr; gap: 8px; }
  .fix-arrow { transform: rotate(90deg); height: 24px; }
}

/* Where students watch. */
.devices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.device { padding: 24px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-align: center; }
.device-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; background: var(--navy-50); color: var(--navy); }
.device-icon svg { width: 24px; height: 24px; }
.device h3 { margin: 0; font-size: 16.5px; }
.device p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.devices-note { margin: 24px auto 0; max-width: 640px; text-align: center; font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .devices { grid-template-columns: repeat(2, 1fr); } }

/* Built by Trogon Media. */
.company {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  padding: 48px; border-radius: 20px; background: var(--ivory); border: 1px solid #eee8d8;
}
.company h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); }
.company p { margin: 14px 0 0; font-size: 16.5px; color: var(--text); }
.company .btn { margin-top: 24px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat-box { padding: 20px 22px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.stat-box b { display: block; font-size: 32px; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; color: var(--navy); }
.stat-box span { font-size: 14px; color: var(--muted); }
.stat-src { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) { .company { grid-template-columns: 1fr; padding: 32px 24px; } }

/* FAQ, built from <details> so it needs no script. */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.faq details[open] { border-color: #d3d9e6; box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; font-size: 16.5px; font-weight: 700; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1f3d' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; font-size: 15.5px; color: var(--text); }

/* About. */
.about-intro { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.about-intro .prose { max-width: none; }
.about-intro .prose p:first-child { margin-top: 0; font-size: 19px; color: var(--navy); font-weight: 500; }
.facts { padding: 28px; border-radius: 18px; background: var(--navy); color: #c9d1e2; }
.facts h2 { margin: 0 0 16px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.facts dl { margin: 0; display: grid; gap: 14px; }
.facts dt { font-size: 12.5px; color: #8f9bb6; }
.facts dd { margin: 2px 0 0; font-size: 15.5px; font-weight: 600; color: #fff; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { padding: 28px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.value .feature-icon { margin-bottom: 18px; }
.value h3 { margin: 0; font-size: 18px; }
.value p { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.offices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.office { padding: 26px 28px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.office h3 { margin: 0; font-size: 18px; }
.office p { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .about-intro, .values, .offices { grid-template-columns: 1fr; } }

/* Developers page. */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: flow; margin: 0; padding: 0; list-style: none; }
.flow li { position: relative; padding: 24px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.flow li::before { counter-increment: flow; content: counter(flow); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 14px; border-radius: 9px; background: var(--navy); color: var(--gold); font-weight: 800; font-size: 14px; }
.flow b { display: block; margin-bottom: 4px; font-size: 16px; color: var(--navy); }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

.endpoints { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.endpoints th, .endpoints td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.endpoints tr:last-child td { border-bottom: 0; }
.endpoints th { background: var(--bg-2); color: var(--navy); font-weight: 700; font-size: 13px; }
.endpoints code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; color: var(--navy); }
.method { display: inline-block; min-width: 46px; padding: 2px 8px; border-radius: 6px; font-family: ui-monospace, Menlo, monospace; font-size: 12px; font-weight: 700; text-align: center; }
.method-get { background: #e8f3ec; color: var(--ok); }
.method-post { background: var(--ivory); color: var(--gold-text); border: 1px solid var(--gold-soft); }
.table-wrap { overflow-x: auto; }
.dev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dev-grid h3 { margin: 0 0 12px; font-size: 18px; }
.dev-grid p { margin: 0 0 14px; font-size: 15px; color: var(--muted); }
.notice { padding: 16px 20px; border-radius: 12px; background: var(--ivory); border: 1px solid #eee8d8; font-size: 14.5px; color: var(--text); }
@media (max-width: 900px) { .dev-grid { grid-template-columns: 1fr; } }
