/*
Theme Name: GDS Trainer
Theme URI: https://gds-trainer.com
Author: Mounir Aboulama
Description: Site de formation indépendant et non officiel : simulateur de terminal cryptique Amadeus (disponibilités, PNR, tarification, émission, NDC, files d'attente), essai gratuit, abonnement Stripe, suivi des inscriptions et des scores. Interface FR / EN / DE.
Version: 2.5.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: amsim
*/

/* Airport wayfinding palette: apron grey, board slate, signage yellow */
:root {
	--apron: #eceff2;
	--slate: #1b2128;
	--slate-2: #252c35;
	--slate-3: #3a4450;
	--sign: #ffc72c;
	--sign-2: #ffd866;
	--flap-ink: #f4eedc;
	--ok: #3ddc97;
	--line: #cbd2da;
	--mute: #5a6573;
	--white: #ffffff;
	--font-display: 'Archivo', 'Arial Narrow', sans-serif;
	--font-body: 'IBM Plex Sans', system-ui, sans-serif;
	--font-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
	/* back-compat names used by other templates */
	--navy: var(--slate); --navy-2: var(--slate-2); --gold: var(--sign); --gold-2: var(--sign-2);
	--bg: var(--apron); --text: var(--slate); --mute-c: var(--mute);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.6 var(--font-body); background: #fff; color: var(--slate); -webkit-font-smoothing: antialiased; }
a { color: var(--slate); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--sign); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

/* ---------- Layout basics ---------- */
.wrap { max-width: 1440px; margin: 0 auto; }
.site-main { padding: 24px; }
.site-main.narrow { max-width: 920px; margin: 0 auto; padding-top: 40px; }
.site-main-full { padding: 0; }
.entry-title { font: 800 clamp(30px, 4vw, 42px)/1.05 var(--font-display); font-stretch: 104%; letter-spacing: -.03em; margin: 0 0 24px; color: #111827; }
.card { background: var(--white); border: 1px solid #e5e7eb; border-radius: 14px; padding: 28px; }

/* ---------- Buttons ---------- */
.gt-btn { display: inline-block; padding: 12px 20px; border-radius: 10px; font: 700 16px/1.15 var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; text-align: center; }
.gt-btn-sign, .gt-btn-gold { background: var(--sign); color: var(--slate); }
.gt-btn-sign:hover, .gt-btn-gold:hover { background: var(--sign-2); }
.gt-btn-ghost { border-color: #5b6673; color: var(--white); }
.gt-btn-ghost:hover { border-color: var(--white); }
.gt-btn-dark { background: var(--slate); color: var(--white); }
.gt-btn-dark:hover { background: var(--slate-2); }
.gt-btn-line { border-color: var(--line); color: var(--slate); background: var(--white); }
.gt-btn-line:hover { border-color: var(--slate); }
.gt-block { display: block; width: 100%; }

/* (home page styles: see SaaS section at the end) */

/* ---------- Forms, account, paywall ---------- */
.gt-form, .gt-account { max-width: 540px; margin: 8px 0 40px; }
.gt-paywall { margin: 40px auto; }
.gt-form h2, .gt-account h2 { margin-top: 0; font: 800 28px/1.1 var(--font-display); font-stretch: 112%; }
.gt-form label { display: block; font-weight: 600; font-size: 15px; margin: 0 0 16px; }
.gt-form input[type=text], .gt-form input[type=email], .gt-form input[type=password], .amsim-login input[type=text], .amsim-login input[type=password] { display: block; width: 100%; margin-top: 6px; padding: 12px 13px; border: 1px solid #aeb7c2; border-radius: 4px; font: inherit; background: var(--white); }
.gt-form input:focus { border-color: var(--slate); }
.gt-form small { font-weight: 400; color: var(--mute); }
.gt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gt-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.gt-check input { margin-top: 5px; accent-color: var(--slate); }
.gt-hp { position: absolute !important; left: -9999px !important; }
.gt-alert { background: #fde8e6; color: #8a1f17; border-radius: 4px; padding: 11px 14px; margin: 0 0 18px; font-size: 15px; }
.gt-alert.gt-ok { background: #e2f5ec; color: #145a3a; }
.gt-hello { font-weight: 700; }
.gt-hello span { font-weight: 400; color: var(--mute); }
.gt-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: 14px; background: #e5e9ee; }
.gt-st-trial { background: #fff1c4; color: #6b4e00; }
.gt-st-active, .gt-st-sub_trial, .gt-st-staff { background: #e2f5ec; color: #145a3a; }
.gt-st-past_due, .gt-st-unpaid, .gt-st-expired, .gt-st-canceled, .gt-st-blocked { background: #fde8e6; color: #8a1f17; }
.gt-st-canceling, .gt-st-manual { background: #e8eefb; color: #24447a; }
.gt-small { font-size: 14px; color: var(--mute); margin: 14px 0 0; }
.gt-paywall { text-align: center; }
.amsim-login { max-width: 480px; margin: 40px auto; }
.amsim-login h2 { margin-top: 0; font: 800 28px/1.1 var(--font-display); font-stretch: 112%; }
.amsim-login input[type=submit] { background: var(--slate); color: var(--white); border: 0; border-radius: 4px; padding: 12px 20px; font-weight: 700; cursor: pointer; }
.button-gold { background: var(--sign); color: var(--slate); border-radius: 4px; padding: 12px 20px; font-weight: 700; text-decoration: none; display: inline-block; }

/* ---------- Team admin ---------- */
.gt-account { max-width: 920px; }
.gt-subscribe { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.gt-subscribe label { display: flex; align-items: center; gap: 12px; font-weight: 600; flex-wrap: wrap; }
.gt-num { width: 90px; padding: 9px 10px; border: 1px solid #aeb7c2; border-radius: 4px; font: inherit; }
.gt-subscribe .gt-btn { margin-top: 14px; }
.gt-team { max-width: 920px; margin: 0 0 48px; }
.gt-team-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.gt-team-head h2 { margin: 0; font: 800 28px/1.1 var(--font-display); font-stretch: 112%; }
.gt-seats { font: 600 18px/1 var(--font-mono); color: var(--mute); }
.gt-seats b { font: 900 34px/1 var(--font-display); font-stretch: 118%; color: var(--slate); }
.gt-seats-l { margin: 6px 0 10px; }
.gt-seatbar { display: flex; gap: 6px; margin: 0 0 22px; flex-wrap: wrap; }
.gt-seatbar i { width: 34px; height: 12px; border-radius: 2px; background: var(--apron); box-shadow: inset 0 0 0 1px var(--line); }
.gt-seatbar i.on { background: var(--sign); box-shadow: inset 0 0 0 1px #d9a400; }
.gt-cred { background: var(--slate); color: var(--white); border-radius: 6px; padding: 18px 20px; margin: 0 0 20px; }
.gt-cred p { margin: 0 0 10px; }
.gt-cred dl { display: flex; gap: 32px; margin: 0; flex-wrap: wrap; }
.gt-cred dt { font-size: 13px; color: #aab4c0; }
.gt-cred dd { margin: 2px 0 0; }
.gt-cred code { font: 700 18px/1.3 var(--font-mono); color: var(--sign); background: none; user-select: all; }
.gt-cred .gt-small { color: #aab4c0; margin-top: 12px; }
.gt-team-table { width: 100%; border-collapse: collapse; margin: 0 0 26px; font-size: 15px; }
.gt-team-table th { text-align: left; font-weight: 600; font-size: 13px; color: var(--mute); padding: 8px 10px; border-bottom: 2px solid var(--slate); }
.gt-team-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.gt-team-table small { color: var(--mute); }
.gt-team-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.gt-team-acts { white-space: nowrap; }
.gt-team-acts a { margin-right: 12px; font-size: 14px; }
.gt-team-acts a:last-child { color: #a3261b; }
.gt-team-add { max-width: none; margin: 0 0 8px; padding: 20px; background: var(--apron); border-radius: 6px; }
.gt-team-add h3, .gt-extra h3 { margin: 0 0 14px; font: 700 19px/1.2 var(--font-display); font-stretch: 105%; }
.gt-row3 { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 12px; }
.gt-extra { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.gt-inline { display: flex; gap: 10px; align-items: center; }
.gt-inline .gt-btn { padding: 9px 16px; }

/* ---------- Ranking & stats ---------- */
.amsim-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); font-size: 15px; }
.amsim-table th { background: var(--slate); color: var(--white); text-align: left; padding: 11px 14px; font-weight: 600; }
.amsim-table td { padding: 11px 14px; border-top: 1px solid var(--line); }
.amsim-table tr.me td { background: #fff6d6; font-weight: 600; }
.amsim-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.medal { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 4px; background: var(--apron); font-weight: 700; }
.medal.g1 { background: var(--sign); }
.medal.g2 { background: #d4dae1; }
.medal.g3 { background: #ecc9a0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 16px 0 32px; }
.stat-grid div { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
.stat-grid div:first-child { background: var(--slate); color: var(--white); border-color: var(--slate); }
.stat-grid div:first-child b { color: var(--sign); }
.stat-grid b { display: block; font: 800 30px/1.1 var(--font-display); font-stretch: 112%; }
.stat-grid span { color: var(--mute); font-size: 14px; }
.stat-grid div:first-child span { color: #c9d1db; }

@media (max-width: 900px) {
	.gt-hero-row, .gt-split, .gt-signs, .gt-route { grid-template-columns: 1fr; }
	.gt-route::before { display: none; }
	.gt-pass { grid-template-columns: 1fr; }
	.gt-pass-stub { border-left: 0; border-top: 2px dashed rgba(27,33,40,.45); border-radius: 0 0 10px 10px; }
	.gt-pass-stub::before { top: -13px; left: -12px; }
	.gt-pass-stub::after { top: -13px; bottom: auto; left: auto; right: -12px; }
	.gt-pass-fields, .gt-pass-list { grid-template-columns: 1fr 1fr; }
	.gt-sec { padding: 72px 0; }
	.gt-split { gap: 32px; }
	.header-right { margin-left: 0; width: 100%; }
}
@media (max-width: 680px) {
	.gt-board .gt-c3 { display: none; }
	.gt-flap { width: 12px; height: 20px; font-size: 12px; }
	.gt-board-head span:nth-child(1) { width: auto; }
	.gt-cryptic dl div { grid-template-columns: 1fr; gap: 4px; }
	.gt-row, .gt-row3 { grid-template-columns: 1fr; }
	.gt-team-table thead { display: none; }
	.gt-team-table td { display: block; border: 0; padding: 4px 0; }
	.gt-team-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
	.gt-pass-list { grid-template-columns: 1fr; }
	.gt-pass-main { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}


/* =====================================================================
   SaaS layer — marketing site (.sx-*) and application shell (.app-*)
   ===================================================================== */
:root {
	--ink: #111827; --ink-2: #374151; --muted: #6b7280; --border: #e5e7eb; --surface: #f8fafc; --brand: #ffc72c; --brand-strong: #f5b400;
	--brand-soft: #fff7d6; --dark: #1b2128; --radius: 14px; --shadow: 0 1px 2px rgba(16,24,40,.05), 0 12px 32px -12px rgba(16,24,40,.14);
}
.sx-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sx-center { text-align: center; }
.sx-ic { width: 20px; height: 20px; flex: none; }
.sx-logo-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: var(--dark); font: 900 13px/1 var(--font-display); font-stretch: 118%; }

/* Buttons */
.sx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font: 600 15px/1.2 var(--font-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; }
.sx-btn-primary { background: var(--dark); color: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.12); }
.sx-btn-primary:hover { background: #2b333d; color: #fff; }
.sx-btn-ghost { background: #fff; color: var(--ink); border-color: var(--border); }
.sx-btn-ghost:hover { border-color: #c5cad3; }
.sx-btn-lg { padding: 14px 24px; font-size: 16px; }
.sx-btn-sm { padding: 8px 14px; font-size: 14px; }
.sx-btn-block { display: flex; width: 100%; }
.sx-link { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.sx-link:hover { color: var(--ink); }

/* Header */
.sx-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); }
.admin-bar .sx-header { top: 32px; }
.sx-header-in { display: flex; align-items: center; gap: 32px; height: 68px; }
.sx-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 18px/1 var(--font-display); font-stretch: 108%; letter-spacing: -.01em; }
.sx-brand img { max-height: 34px; width: auto; }
.sx-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.sx-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.sx-nav a:hover { background: var(--surface); color: var(--ink); }
.sx-header-r { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.sx-lang { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); }
.sx-lang a { padding: 4px 8px; border-radius: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
.sx-lang a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16,24,40,.08); }

/* Hero */
.sx-hero { padding: 80px 0 40px; background: radial-gradient(900px 420px at 50% -120px, var(--brand-soft), transparent 70%), #fff; overflow: hidden; }
.sx-pill { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--ink-2); font-size: 14px; text-decoration: none; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.sx-pill span { padding: 3px 10px; border-radius: 999px; background: var(--dark); color: #fff; font-size: 12.5px; font-weight: 600; }
.sx-h1 { font: 800 clamp(40px, 6vw, 72px)/1.03 var(--font-display); font-stretch: 104%; letter-spacing: -.035em; color: var(--ink); margin: 26px auto 22px; max-width: 16ch; }
.sx-lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 64ch; margin: 0 auto 32px; }
.sx-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.sx-note { color: var(--muted); font-size: 14px; margin: 16px 0 0; }

/* Product screenshot */
.sx-shot { margin: 56px auto 0; max-width: 1080px; border-radius: 16px; border: 1px solid var(--border); background: #fff; box-shadow: 0 40px 80px -24px rgba(16,24,40,.28), 0 0 0 8px rgba(255,199,44,.12); overflow: hidden; }
.sx-shot-bar { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--surface); }
.sx-shot-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e3e6ea; }
.sx-shot-bar span { margin: 0 auto; padding: 4px 14px; border-radius: 6px; background: #fff; border: 1px solid var(--border); font: 12px var(--font-mono); color: var(--muted); }
.sx-shot-app { display: grid; grid-template-columns: 64px minmax(0, 1fr) 230px; height: 400px; }
.sx-shot-side { background: var(--dark); display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 14px; }
.sx-shot-side span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: #8b96a4; }
.sx-shot-side span.on { background: #2b333d; color: var(--brand); }
.sx-shot-side .sx-logo-mark { margin-bottom: 10px; }
.sx-shot-term { margin: 0; padding: 18px 20px; background: #12171c; color: #f4eedc; font: 12.5px/1.6 var(--font-mono); white-space: pre; overflow: hidden; text-align: left; }
.sx-caret { color: var(--brand); animation: sxblink 1s steps(1) infinite; }
@keyframes sxblink { 50% { opacity: 0; } }
.sx-shot-panel { padding: 16px; display: flex; flex-direction: column; gap: 10px; border-left: 1px solid var(--border); text-align: left; }
.sx-kpi { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.sx-kpi b { display: block; font: 800 22px/1.1 var(--font-display); color: var(--ink); }
.sx-kpi span { font-size: 12px; color: var(--muted); }
.sx-kpi-dark { background: var(--dark); border-color: var(--dark); }
.sx-kpi-dark b { color: var(--brand); }
.sx-kpi-dark span { color: #c9d1db; }
.sx-mini { font-size: 12px; color: var(--ink-2); }
.sx-mini span { display: block; margin-bottom: 4px; }
.sx-mini i { display: block; height: 6px; border-radius: 3px; background: var(--brand); }

/* Stats strip */
.sx-stats { padding: 40px 0 24px; }
.sx-trust { text-align: center; color: var(--muted); font-size: 15px; margin: 0 0 26px; }
.sx-stats dl { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.sx-stats dl div { padding: 22px 24px; border-left: 1px solid var(--border); }
.sx-stats dl div:first-child { border-left: 0; }
.sx-stats dt { font: 800 34px/1 var(--font-display); color: var(--ink); letter-spacing: -.02em; }
.sx-stats dd { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

/* Sections */
.sx-sec { padding: 96px 0; }
.sx-soft { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sx-head { max-width: 700px; margin: 0 auto 52px; }
.sx-h2 { font: 800 clamp(30px, 3.6vw, 44px)/1.08 var(--font-display); font-stretch: 104%; letter-spacing: -.03em; color: var(--ink); margin: 0 0 14px; }
.sx-sub { color: var(--muted); font-size: 18px; margin: 0; }
.sx-p { color: var(--ink-2); margin: 0 0 14px; max-width: 60ch; }
.sx-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.sx-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Features */
.sx-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sx-feature { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.sx-feature-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: var(--brand-soft); color: var(--dark); border: 1px solid #f5e3a3; }
.sx-feature h3 { margin: 18px 0 8px; font: 700 18px/1.3 var(--font-display); color: var(--ink); }
.sx-feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* Cryptic examples */
.sx-cryptic { overflow: hidden; }
.sx-card-t { margin: 0; padding: 16px 22px; font-weight: 600; border-bottom: 1px solid var(--border); color: var(--ink); }
.sx-cryptic dl { margin: 0; }
.sx-cryptic dl div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 15px 22px; border-bottom: 1px solid var(--border); align-items: baseline; }
.sx-cryptic dl div:last-child { border-bottom: 0; }
.sx-cryptic dt { font: 700 14px/1.3 var(--font-mono); color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; justify-self: start; }
.sx-cryptic dd { margin: 0; color: var(--muted); font-size: 15px; }

/* Team mock + checks */
.sx-split-rev > :first-child { order: 0; }
.sx-teammock { padding: 22px; }
.sx-teammock-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.sx-teammock-h b { font: 700 18px var(--font-display); color: var(--ink); }
.sx-teammock-h span { font: 700 15px var(--font-mono); color: var(--muted); }
.sx-seatbar { display: flex; gap: 6px; margin-bottom: 14px; }
.sx-seatbar i { flex: 1; height: 8px; border-radius: 4px; background: var(--border); }
.sx-seatbar i.on { background: var(--brand); }
.sx-teammock-row { display: grid; grid-template-columns: 34px 1fr auto 52px; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--border); font-size: 14.5px; }
.sx-av { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--dark); font-weight: 700; border: 1px solid #f5e3a3; }
.sx-tm-n { font-weight: 600; color: var(--ink); }
.sx-tm-p { color: var(--muted); font-variant-numeric: tabular-nums; }
.sx-tm-a { text-align: right; color: #15803d; font-weight: 600; }
.sx-teammock-add { margin-top: 12px; padding: 11px; border: 1px dashed #cdd2d9; border-radius: 10px; text-align: center; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.sx-checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.sx-checks li { display: flex; gap: 10px; align-items: center; color: var(--ink-2); }
.sx-checks .sx-ic { color: #15803d; background: #dcfce7; border-radius: 50%; padding: 3px; width: 22px; height: 22px; }

/* Steps */
.sx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sx-steps li { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.sx-step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--dark); color: var(--brand); font: 800 15px var(--font-display); }
.sx-steps h3 { margin: 16px 0 6px; font: 700 18px/1.3 var(--font-display); color: var(--ink); }
.sx-steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* Pricing */
.sx-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; max-width: 1080px; margin: 0 auto; }
.sx-plan { position: relative; display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--border); border-radius: 18px; background: #fff; }
.sx-plan h3 { margin: 0; font: 700 20px var(--font-display); color: var(--ink); }
.sx-plan-d { color: var(--muted); font-size: 15px; margin: 8px 0 20px; min-height: 48px; }
.sx-price { display: flex; align-items: baseline; gap: 8px; margin: 0 0 22px; }
.sx-price b { font: 800 46px/1 var(--font-display); letter-spacing: -.03em; color: var(--ink); }
.sx-price span { color: var(--muted); font-size: 15px; }
.sx-plan ul { list-style: none; padding: 22px 0 0; margin: 22px 0 0; border-top: 1px solid var(--border); display: grid; gap: 11px; }
.sx-plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.sx-plan li .sx-ic { color: #15803d; width: 18px; height: 18px; margin-top: 2px; }
.sx-plan-featured { border: 2px solid var(--dark); box-shadow: 0 30px 60px -24px rgba(16,24,40,.3); }
.sx-plan-tag { position: absolute; top: -13px; left: 30px; padding: 4px 12px; border-radius: 999px; background: var(--brand); color: var(--dark); font-size: 12.5px; font-weight: 700; }
.sx-plan-note { text-align: center; color: var(--muted); font-size: 14px; margin: 28px auto 0; max-width: 70ch; }

/* FAQ */
.sx-faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.sx-faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; margin-bottom: 10px; }
.sx-faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.sx-faq summary::-webkit-details-marker { display: none; }
.sx-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); }
.sx-faq details[open] summary::after { content: "–"; }
.sx-faq details p { margin: 10px 0 0; color: var(--muted); }

/* CTA band */
.sx-ctaband { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 48px 52px; border-radius: 24px; background: var(--dark); color: #fff; background-image: radial-gradient(500px 220px at 90% 0, rgba(255,199,44,.25), transparent 70%); }
.sx-ctaband h2 { margin: 0 0 8px; font: 800 clamp(26px, 3vw, 36px)/1.1 var(--font-display); letter-spacing: -.02em; }
.sx-ctaband p { margin: 0; color: #c9d1db; }
.sx-ctaband .sx-btn-primary { background: var(--brand); color: var(--dark); }
.sx-ctaband .sx-btn-primary:hover { background: var(--brand-strong); }

/* Footer */
.sx-footer { border-top: 1px solid var(--border); padding: 56px 0 36px; background: #fff; color: var(--muted); font-size: 14px; }
.sx-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.sx-footer h4 { margin: 4px 0 12px; color: var(--ink); font-size: 14px; }
.sx-footer a:not(.sx-brand) { display: block; color: var(--muted); text-decoration: none; margin-bottom: 8px; }
.sx-footer a:not(.sx-brand):hover { color: var(--ink); }
.sx-footer-brand p { margin: 12px 0 0; max-width: 32ch; }
.sx-footer-disc { margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; max-width: 110ch; }
.sx-footer-copy { margin: 10px 0 0; font-size: 13px; }

/* Pages without app layout (sign-up, login) */
.is-site .site-main.narrow { padding-top: 48px; padding-bottom: 64px; }
.is-site .gt-form { margin-left: auto; margin-right: auto; }
.is-site .amsim-login { margin: 0 auto; }
.gt-login { max-width: 440px; }
.gt-login-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -4px 0 18px; font-size: 14px; }
.gt-login-row .gt-check { margin: 0; }
.gt-center { text-align: center; }
.gt-pw-t { margin: 0 0 16px; font: 700 20px/1.2 var(--font-display); }
.gt-pw .gt-form { max-width: none; margin: 0; }
.app-page .gt-login, .is-site .gt-login { margin-left: auto; margin-right: auto; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 32px; box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 12px 32px -12px rgba(16,24,40,.14); }
.is-site .card { border-radius: var(--radius); box-shadow: var(--shadow); border-color: var(--border); }

/* ---------- Application shell ---------- */
.is-app { background: var(--surface); }
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--dark) 252px, var(--surface) 252px); }
.app-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--dark); color: #c9d1db; padding: 18px 14px; }
.admin-bar .app-side { top: 32px; height: calc(100vh - 32px); }
.app-logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 800 17px var(--font-display); padding: 4px 8px 22px; }
.app-nav { display: grid; gap: 2px; }
.app-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #c9d1db; text-decoration: none; font-size: 15px; font-weight: 500; }
.app-nav a:hover { background: #252c35; color: #fff; }
.app-nav a.on { background: #2b333d; color: #fff; box-shadow: inset 3px 0 0 var(--brand); }
.app-nav a.on .sx-ic { color: var(--brand); }
.app-side-foot { margin-top: auto; display: grid; gap: 12px; }
.app-trial { background: #252c35; border-radius: 12px; padding: 14px; }
.app-trial p { margin: 0 0 8px; color: #fff; font-size: 14px; font-weight: 600; }
.app-trial-bar { display: block; height: 6px; border-radius: 3px; background: #3a4450; margin-bottom: 12px; overflow: hidden; }
.app-trial-bar i { display: block; height: 100%; background: var(--brand); }
.app-trial .sx-btn-primary { background: var(--brand); color: var(--dark); }
.app-user { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-top: 1px solid #2c343e; }
.app-user b { display: block; color: #fff; font-size: 14px; line-height: 1.3; }
.app-user small { color: #8b96a4; font-size: 12.5px; }
.app-side-links a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; color: #8b96a4; text-decoration: none; font-size: 13.5px; border-radius: 8px; }
.app-side-links a:hover { color: #fff; background: #252c35; }
.app-side-links .sx-ic { width: 17px; height: 17px; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 28px; background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.admin-bar .app-top { top: 32px; }
.app-top h1 { margin: 0; font: 700 20px var(--font-display); color: var(--ink); letter-spacing: -.01em; }
.app-content { padding: 24px 28px 40px; }
.app-page .card { border-radius: var(--radius); border-color: var(--border); box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.app-page .gt-account, .app-page .gt-team { max-width: 980px; margin: 0 0 20px; }
.app-page .amsim { height: calc(100vh - 64px - 48px); min-height: 520px; border-radius: var(--radius); }
.admin-bar .app-page .amsim { height: calc(100vh - 96px - 48px); }
.app-page .amsim-login { margin: 0; }

@media (max-width: 1000px) {
	.sx-features, .sx-plans, .sx-steps { grid-template-columns: 1fr; }
	.sx-split, .sx-faq { grid-template-columns: 1fr; gap: 36px; }
	.sx-stats dl { grid-template-columns: 1fr 1fr; }
	.sx-stats dl div:nth-child(3) { border-left: 0; }
	.sx-stats dl div:nth-child(n+3) { border-top: 1px solid var(--border); }
	.sx-shot-app { grid-template-columns: 52px minmax(0, 1fr); height: 320px; }
	.sx-shot-panel { display: none; }
	.sx-nav { display: none; }
	.sx-ctaband { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
	.sx-footer-grid { grid-template-columns: 1fr 1fr; }
	.app { grid-template-columns: 1fr; background: var(--surface); }
	.app-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; }
	.admin-bar .app-side { height: auto; }
	.app-logo { padding: 4px 8px; }
	.app-nav { display: flex; flex-wrap: wrap; }
	.app-nav a span { display: none; }
	.app-side-foot { display: none; }
	.app-content { padding: 16px; }
}
@media (max-width: 600px) {
	.sx-header-r .sx-link { display: none; }
	.sx-header-r { gap: 8px; }
	.sx-brand span:last-child { display: none; }
	.sx-hero { padding-top: 48px; }
	.sx-shot-term { font-size: 10.5px; padding: 12px; }
	.sx-cryptic dl div { grid-template-columns: 1fr; gap: 6px; }
}
