/* Linguette: a mini-site in the Strataic family. Dark-first, with a light mode. */
:root {
  color-scheme: dark light;
  --ink: #201d35;
  --night: #15121f;
  --night-2: #1c1829;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-solid: #221e33;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f6f3ef;
  --muted: #bdb6c9;
  --faint: #8e879d;
  --coral: #ff7a6a;
  --mauve: #c882b5;
  --lilac: #9b8cff;
  --cream: #f8f6f1;
  --success: #86dbab;
  --grad: linear-gradient(100deg, var(--coral) 0%, var(--mauve) 48%, var(--lilac) 100%);
  --radius: 18px;
  --maxw: 1140px;
  --shadow: 0 40px 120px -50px rgba(0, 0, 0, 0.8);
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --night: #f8f6f1;
    --night-2: #f1ede6;
    --panel: rgba(32, 29, 53, 0.04);
    --panel-solid: #ffffff;
    --line: rgba(32, 29, 53, 0.10);
    --line-strong: rgba(32, 29, 53, 0.18);
    --text: #201d35;
    --muted: #5b5670;
    --faint: #7c7690;
    --shadow: 0 40px 110px -55px rgba(32, 29, 53, 0.45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0 0 0.4em; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--cream); color: var(--ink); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 24px;
  min-height: 64px; padding: 10px clamp(18px, 5vw, 56px);
  background: color-mix(in srgb, var(--night) 78%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.wordmark { font-family: var(--serif); font-size: 1.45rem; letter-spacing: -0.04em; font-weight: 500; }
.site-header nav { display: flex; gap: clamp(14px, 2.4vw, 30px); margin-left: auto; color: var(--muted); font-size: 0.95rem; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 650; font-size: 0.98rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.button.primary { background: var(--cream); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(255, 122, 106, 0.55); }
.button.primary:hover { transform: translateY(-1px); box-shadow: 0 16px 40px -14px rgba(155, 140, 255, 0.7); }
.button.ghost { border: 1px solid var(--line-strong); color: var(--text); }
.button.ghost:hover { border-color: var(--lilac); }
.button.small { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
@media (prefers-color-scheme: light) {
  .button.primary { background: var(--ink); color: var(--cream); }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(64px, 11vw, 132px) clamp(18px, 6vw, 56px) clamp(56px, 8vw, 96px);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; pointer-events: none;
}
.hero::before { width: 560px; height: 560px; left: -140px; top: -180px; background: radial-gradient(circle, rgba(255,122,106,.55), transparent 65%); }
.hero::after { width: 640px; height: 640px; right: -180px; top: 80px; background: radial-gradient(circle, rgba(155,140,255,.5), transparent 65%); }
.hero-inner {
  position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 72px); align-items: center;
}
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 700; color: var(--faint); margin-bottom: 18px; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.7rem, 6.2vw, 4.7rem); letter-spacing: -0.035em; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: 0.9rem; color: var(--faint); }

/* Phone mock-up */
.phone {
  justify-self: center; width: min(360px, 100%); aspect-ratio: 9 / 18.5;
  border-radius: 48px; padding: 12px;
  background: linear-gradient(160deg, #3a3350, #15121f);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.08);
}
.phone-screen {
  height: 100%; border-radius: 38px; overflow: hidden; position: relative;
  background:
    radial-gradient(120% 60% at 20% 0%, rgba(255,122,106,.28), transparent 60%),
    radial-gradient(120% 70% at 100% 100%, rgba(155,140,255,.30), transparent 60%),
    #1b1729;
  color: #f6f3ef; display: flex; flex-direction: column; padding: 22px 16px 18px; gap: 12px; font-size: 0.86rem;
}
.phone-top { display: flex; align-items: center; gap: 10px; padding: 4px 6px 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.orb { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 24px rgba(200,130,181,.6); animation: breathe 3.2s ease-in-out infinite; }
.phone-top strong { display: block; font-size: 0.95rem; }
.phone-top small { color: #b9b2c8; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 18px; line-height: 1.4; }
.bubble.tutor { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); border-bottom-left-radius: 6px; }
.bubble.learner { align-self: flex-end; background: var(--cream); color: #201d35; border-bottom-right-radius: 6px; }
.bubble em { display: block; font-style: normal; color: #b9b2c8; font-size: 0.78rem; margin-top: 4px; }
.bubble.learner em { color: #6f6886; }
.hint { align-self: stretch; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(134,219,171,.35); background: rgba(134,219,171,.08); font-size: 0.8rem; }
.hint b { color: var(--success); }
.mic { margin-top: auto; align-self: center; width: 58px; height: 58px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(248,246,241,.06); }
@keyframes breathe { 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } html { scroll-behavior: auto; } }

/* Sections */
section { padding: clamp(56px, 9vw, 104px) clamp(18px, 6vw, 56px); }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.section-head { max-width: 46em; margin-bottom: 44px; }
.section-head h2, .band h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  transition: border-color .2s ease, transform .2s ease;
}
.feature:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.feature .icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: var(--grad); color: #201d35; font-size: 1.2rem; }
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* Scenes */
.scenes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.scene { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--line); }
.scene img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.scene:hover img { transform: scale(1.04); }
.scene figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 16px 16px; color: #fff;
  background: linear-gradient(transparent, rgba(16,13,26,.85)); font-size: 0.92rem;
}
.scene figcaption b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.15rem; }

/* Levels */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.level { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.level .tag { font-weight: 800; font-size: 0.82rem; letter-spacing: .08em; padding: 5px 11px; border-radius: 999px; background: var(--panel-solid); border: 1px solid var(--line-strong); display: inline-block; margin-bottom: 14px; }
.level h3 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; }
.level p { color: var(--muted); margin: 0; }
.languages { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.language { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line-strong); font-weight: 600; }
.language.soon { color: var(--faint); border-style: dashed; }

/* Privacy band */
.band {
  max-width: var(--maxw); margin: 0 auto; border-radius: 28px; overflow: hidden; position: relative;
  padding: clamp(36px, 6vw, 64px); border: 1px solid var(--line);
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(255,122,106,.16), transparent 55%),
    radial-gradient(90% 120% at 100% 100%, rgba(155,140,255,.18), transparent 55%),
    var(--panel);
}
.band-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
.band p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.checks li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 800; background: var(--grad); color: #201d35; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.06rem; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-weight: 400; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }
.faq a { color: var(--lilac); text-decoration: underline; text-underline-offset: 3px; }

/* CTA */
.cta { text-align: center; }
.cta h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.cta p { color: var(--muted); max-width: 32em; margin: 0 auto 28px; }

/* Pages: legal, support, contact */
.page { max-width: 860px; margin: 0 auto; padding: clamp(48px, 8vw, 88px) clamp(18px, 6vw, 56px); }
.page h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 5vw, 3.4rem); }
.page .updated { color: var(--faint); font-size: 0.92rem; margin-bottom: 36px; }
.page h2 { font-size: 1.4rem; margin-top: 44px; }
.page h3 { font-size: 1.08rem; margin-top: 26px; }
.page p, .page li { color: var(--muted); }
.page ul { padding-left: 22px; }
.page li { margin-bottom: 8px; }
.page a:not(.button) { color: var(--lilac); text-decoration: underline; text-underline-offset: 3px; }
.callout { padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); border-left: 3px solid var(--coral); background: var(--panel); margin: 26px 0; }
.callout p { margin: 0; color: var(--text); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.toc a { font-size: 0.86rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted) !important; text-decoration: none !important; }
.toc a:hover { border-color: var(--line-strong); color: var(--text) !important; }
table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.95rem; }
#requirements td:not(:first-child), #requirements th:not(:first-child) { text-align: center; width: 22%; }
.hero-note a { color: var(--lilac); text-decoration: underline; text-underline-offset: 3px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--text); font-weight: 650; }
td { color: var(--muted); }

.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; margin-top: 30px; }
.card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.card h2 { margin-top: 0; font-size: 1.25rem; }
.aside { display: grid; gap: 16px; align-content: start; }
.form-field { display: grid; gap: 6px; margin-bottom: 16px; }
label { font-weight: 600; font-size: 0.95rem; }
.optional { color: var(--faint); font-weight: 400; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--panel-solid); border: 1px solid var(--line-strong);
  border-radius: 12px; padding: 12px 14px; width: 100%;
}
textarea { min-height: 160px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lilac); box-shadow: 0 0 0 3px rgba(155,140,255,.25); }
.privacy-note { font-size: 0.86rem; color: var(--faint); }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.ok { color: var(--success); }
.form-status.error { color: var(--coral); }

/* Footer */
footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px;
  padding: 34px clamp(18px, 5vw, 56px); border-top: 1px solid var(--line); color: var(--faint); font-size: 0.92rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a:hover { color: var(--text); }
.strataic-link { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
.strataic-link img { height: 22px; width: auto; background: var(--cream); padding: 4px 8px; border-radius: 8px; box-sizing: content-box; }

/* Responsive */
@media (max-width: 980px) {
  .hero-inner, .band-grid, .split { grid-template-columns: 1fr; }
  .features, .levels { grid-template-columns: 1fr 1fr; }
  .scenes { grid-template-columns: 1fr 1fr; }
  .phone { width: min(320px, 86%); }
}
@media (max-width: 640px) {
  .site-header nav { display: none; }
  .features, .levels { grid-template-columns: 1fr; }
  .strataic-link { margin-left: 0; }
}

/* Keep navigation available on small screens and keyboard focus visible. */
:focus-visible { outline:3px solid var(--lilac); outline-offset:4px; }
@media(max-width:640px) {
 .site-header { flex-wrap:wrap; gap:12px; }
 .site-header nav { display:flex; flex-wrap:wrap; order:3; width:100%; gap:8px 16px; font-size:.85rem; }
}
