/* SimiBee website 1.0 (SIM-12). Base styles unchanged from the predecessor's website; additions for SimiBee are at the
   end. Own fonts, no third-party requests. Colours from the app (Brand in Simibee/Learning/Model.swift),
   darkened where white text sits on them so every text pair reaches WCAG AA. */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url("fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url("fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url("fonts/Inter-Bold.woff2") format("woff2"); }

:root {
  --bg: #ffffff;
  --surface: #f6f7fb;
  --card: #ffffff;
  --ink: #171728;
  --muted: #55556a;
  --line: rgba(23, 23, 40, 0.12);
  --link: #1f45d6;
  --grad-text: linear-gradient(135deg, #234eef, #7b49e8 55%, #c8166f);
  --grad-button: linear-gradient(135deg, #2349e0, #6a3bd6 55%, #b8166f);
  --shadow: 0 24px 60px rgba(35, 40, 110, 0.22);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1020;
    --surface: #171831;
    --card: #1e1f3a;
    --ink: #f1f1f7;
    --muted: #b9b9cc;
    --line: rgba(241, 241, 247, 0.14);
    --link: #9cb2ff;
    --grad-text: linear-gradient(135deg, #8ea6ff, #b896ff 55%, #ff86c0);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; text-wrap: balance; }
p, li, summary { text-wrap: pretty; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.skip-link { position: absolute; left: 16px; top: -48px; background: var(--card); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand img { border-radius: 9px; }
.nav-links { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.nav-links a, .lang-switch a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 6px 0; }
.nav-links a:hover, .lang-switch a:hover { color: var(--link); }
.lang-switch { display: flex; gap: 4px; }
.lang-switch a { padding: 6px 8px; border-radius: 8px; }
.lang-switch a[aria-current="page"] { background: var(--surface); color: var(--link); }
@media (max-width: 760px) {
  .nav { gap: 8px 16px; padding-block: 10px; }
  .nav-links { order: 3; width: 100%; margin-left: 0; gap: 16px; }
  .lang-switch { margin-left: auto; }
}

.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (forced-colors: active) { .grad { color: CanvasText; background: none; } }

.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(32px, 6vw, 72px); overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 36em; }
.note { color: var(--muted); font-size: 0.95rem; }
.actions { margin: 28px 0 14px; }
.button { display: inline-block; padding: 14px 26px; border-radius: 999px; background: var(--grad-button); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 10px 24px rgba(60, 50, 180, 0.28); }
.button:hover { filter: brightness(1.08); }
.button--light { background: #fff; color: #171728; box-shadow: none; }
.hero-shots { position: relative; display: flex; justify-content: center; min-height: 420px; }
.shot { width: 260px; border-radius: 34px; box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; }
.hero-shots .shot--back { transform: translateX(-70px) rotate(-4deg); }
.hero-shots .shot--front { position: absolute; transform: translate(80px, 40px) rotate(3deg); }
@media (max-width: 560px) {
  .shot { width: 200px; border-radius: 26px; }
  .hero-shots { min-height: 0; }
  .hero-shots .shot--back { transform: translateX(-50px) rotate(-4deg); }
  .hero-shots .shot--front { transform: translate(55px, 30px) rotate(3deg); }
}

.section { padding: clamp(56px, 9vw, 104px) 0; }
.section--tint { background: var(--surface); }
.section-lead { color: var(--muted); font-size: 1.15rem; max-width: 40em; }
.small { color: var(--muted); font-size: 0.95rem; margin-top: 18px; }

.cards { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.card p { color: var(--muted); margin: 0; }

/* Features carry the page: large, numbered panels, alternating sides. */
.feature-chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.feature-chips a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.feature-chips a:hover { border-color: var(--link); color: var(--link); }
#features > .container > h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.feature { display: grid; gap: 32px; align-items: center; margin: 28px 0; padding: clamp(28px, 5vw, 56px);
  border-radius: 32px; background: var(--surface); scroll-margin-top: 90px; }
.feature-number { font-weight: 700; font-size: 1rem; letter-spacing: 0.08em; margin: 0 0 8px; }
.feature-number { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.feature h3 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.feature p { color: var(--muted); font-size: 1.15rem; max-width: 32em; }
.feature .shot { justify-self: center; width: 280px; }
@media (min-width: 820px) {
  .feature { grid-template-columns: 1fr 320px; gap: 64px; }
  .feature .shot { width: 320px; }
  .feature:nth-of-type(even) { grid-template-columns: 320px 1fr; }
  .feature:nth-of-type(even) > div { order: 2; }
}
@media (forced-colors: active) { .feature-number { color: CanvasText; background: none; } }
.contents-title { margin-top: 56px; font-size: 1.5rem; }
.tiles { list-style: none; padding: 0; columns: auto; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
/* SIM-12, 18.11.2026: stat tiles (large number + label) and short text tiles, both with a muted note. */
.tiles li { display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 22px 22px 20px; margin: 0; color: var(--ink); position: relative; overflow: hidden; }
.tiles li::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 4px; background: var(--grad-button); opacity: 0.85; }
.tile-value { font-size: clamp(2.6rem, 6vw, 3.4rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tile-label, .tile-title { font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.tile-title { font-size: 1.35rem; margin-top: 4px; }
.tile-note { color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
@media (forced-colors: active) { .tile-value { color: CanvasText; background: none; } .tiles li::before { display: none; } }

/* Privacy: short and plain, near the end of the page. */
.section--compact { padding: clamp(36px, 6vw, 56px) 0; border-top: 1px solid var(--line); }
.h-small { font-size: 1.4rem; }
.facts { padding-left: 1.2em; color: var(--muted); font-size: 0.98rem; }
.facts li { margin-bottom: 8px; }
.facts strong { color: var(--ink); }

.plans { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.plan p { color: var(--muted); margin: 0; }
.plan--lessons { border: 2px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad-button) border-box; }
.req-title { margin-top: 64px; }
.req { padding-left: 1.2em; color: var(--muted); }
.req li { margin-bottom: 8px; }

details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; padding: 14px 0; list-style-position: outside; }
details p { color: var(--muted); }

.final-cta { background: var(--grad-button); color: #fff; text-align: center; padding: clamp(56px, 9vw, 96px) 0; }
.final-cta p { font-size: 1.15rem; }

.site-footer { padding: 36px 0 48px; color: var(--muted); font-size: 0.95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 4px; }
.pending { color: var(--muted); }

.chooser { min-height: 100vh; display: grid; place-content: center; text-align: center; gap: 8px; padding: 32px 16px; }
.chooser img { margin: 0 auto; border-radius: 16px; }
.chooser-list { list-style: none; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.chooser-list a { display: inline-block; padding: 12px 20px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; }
/* Imprint and website privacy (DIL-109) */
.legal h1 { font-size: 2rem; margin-bottom: 18px; }
.legal h2 { font-size: 1.3rem; margin-top: 28px; }
.legal p { margin-top: 12px; }
.placeholder { background: #fff3b0; color: #1d1d1f; padding: 0 3px; border-radius: 3px; }
/* Apple's App Store badge (DIL-116): unmodified, at least 40 px high, with clear space around it */
.store-badge { display: inline-block; line-height: 0; border-radius: 10px; }
.store-badge img { display: block; height: 54px; width: auto; }
.store-badge:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }

/* ---- SimiBee 1.0 additions (SIM-12) ---- */
/* Features without a screenshot (none exist yet) span the full width instead of leaving an empty column. */
@media (min-width: 820px) {
  .feature.feature--text, .feature.feature--text:nth-of-type(even) { grid-template-columns: 1fr; }
  .feature.feature--text > div { order: 0; }
}
.feature--text p { max-width: 44em; }
/* Hero without screenshots: the app icon, rounded like on the iPhone home screen. */
.hero-icon { display: flex; justify-content: center; }
.hero-icon img { width: clamp(160px, 26vw, 240px); border-radius: 22.5%; box-shadow: var(--shadow); }
/* Course list as in the app (CourseRow): gradient code badge, name, explanation languages. */
.course-panel { justify-self: center; width: 100%; max-width: 360px; background: var(--card); border: 1px solid var(--line);
  border-radius: 28px; padding: 22px 20px; box-shadow: var(--shadow); }
.course-panel-title { font-weight: 700; margin: 0 0 12px; }
.course-list { list-style: none; padding: 0; margin: 0; }
.course-list li { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.course-list li:first-child { border-top: 0; }
.course-code { flex: none; width: 44px; height: 44px; display: grid; place-content: center; border-radius: 13px;
  background: var(--grad-button); color: #fff; font-weight: 700; letter-spacing: 0.02em; }
.course-text { display: flex; flex-direction: column; line-height: 1.35; }
.course-text span { color: var(--muted); font-size: 0.95rem; }
.feature .course-panel p, .feature .course-panel span { max-width: none; }
.feature .course-panel .course-panel-title { color: var(--ink); font-size: 1.05rem; }
@media (forced-colors: active) { .course-code { background: none; color: CanvasText; border: 1px solid CanvasText; } }
/* No App Store ID yet: a plain note instead of Apple's badge, not a link (SIM-35). */
.store-pending { display: inline-block; padding: 12px 22px; border-radius: 12px; border: 2px dashed currentColor;
  font-weight: 700; margin-right: 8px; }
.final-cta .placeholder { font-size: 0.95rem; }
.hero .actions .placeholder { display: table; margin-top: 12px; }
