/* Naturaliza — "Organic" design system with the Mexican green / red on beige palette.
   Values are copied from the design handoff (prototype/Naturaliza.dc.html). */

:root {
  --color-bg: #f7efe0;
  --color-surface: #fffaf0;
  --color-text: #201e1d;
  --color-accent: #c3352a;
  --color-accent-2: #12684a;
  --color-divider: color-mix(in srgb, #201e1d 16%, transparent);

  --color-neutral-100: #f9f4ed; --color-neutral-200: #eee7db; --color-neutral-300: #dcd3c4;
  --color-neutral-400: #c0b6a5; --color-neutral-500: #a19786; --color-neutral-600: #82796a;
  --color-neutral-700: #645c50; --color-neutral-800: #474238; --color-neutral-900: #2e2b25;

  --color-accent-100: #fdeeeb; --color-accent-200: #f9d4cf; --color-accent-300: #f2aca3;
  --color-accent-400: #e17d71; --color-accent-500: #c3352a; --color-accent-600: #a42a20;
  --color-accent-700: #85211a; --color-accent-800: #5f1712; --color-accent-900: #3d0f0b;

  --color-accent-2-100: #e7f3ec; --color-accent-2-200: #c8e4d5; --color-accent-2-300: #9ccfb5;
  --color-accent-2-400: #5fb08e; --color-accent-2-500: #2a8b64; --color-accent-2-600: #12684a;
  --color-accent-2-700: #0e5139; --color-accent-2-800: #0a3a29; --color-accent-2-900: #06231a;

  --font-heading: "Caprasimo", "Yeseva One", Georgia, serif;
  --font-body: "Figtree", "Manrope", system-ui, sans-serif;

  --space-1: 4.4px; --space-2: 8.8px; --space-3: 13.2px; --space-4: 17.6px; --space-6: 26.4px; --space-8: 35.2px;
  --radius-sm: 8px; --radius-md: 16px; --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(46, 43, 37, .14);
  --shadow-md: 0 3px 10px rgba(46, 43, 37, .16);
  --shadow-lg: 0 12px 32px rgba(46, 43, 37, .22);
  --hdr-h: 83px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: 15px; line-height: 1.55; font-weight: 400;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: 400;
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--space-2);
}
h1 { font-size: 42px; } h2 { font-size: 32px; } h3 { font-size: 25px; } h4 { font-size: 20px; } h5 { font-size: 16px; }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent-700); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--color-accent); text-decoration: underline; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: var(--font-body); color: var(--color-text); }
button { cursor: pointer; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }
.text-muted { color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.hr { height: 1px; border: 0; margin: var(--space-4) 0; background: var(--color-divider); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none; font-family: var(--font-heading); font-weight: 400;
  font-size: 14px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2); border-radius: 999px;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); color: var(--color-bg); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-white { background: #fff; color: var(--color-accent-2-800); }
.btn-white:hover { background: var(--color-accent-2-100); }
.btn-outline-w { border: 1px solid rgba(255, 255, 255, .45); color: #fff; }
.btn-outline-w:hover { background: rgba(255, 255, 255, .1); }
.nowrap { white-space: nowrap; flex: none; }

/* — header — */
.hdr {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 20px;
  padding: 12px 28px; background: rgba(255, 250, 240, .92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-divider);
}
.logo { border: 0; background: transparent; padding: 0; display: flex; }
.logo:hover { opacity: .85; }
.logo img { height: 58px; width: auto; }
.hdr-burger { display: none; }
.spacer { flex: 1; }
.streak { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--color-accent-2-100); }
.streak-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: var(--color-accent-2-600); color: #fff; font-size: 12px; font-weight: 700; }
.streak-t { font-size: 13px; font-weight: 600; color: var(--color-accent-2-800); white-space: nowrap; }
.seg { display: flex; padding: 3px; border-radius: 999px; background: var(--color-neutral-200); }
.seg button { border: 0; border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-weight: 700; background: transparent; color: var(--color-text); white-space: nowrap; }
.seg button.on { background: var(--color-accent-2-600); color: #fff; }
.seg.lg button { padding: 8px 16px; font-size: 13px; }
.chip {
  display: flex; align-items: center; gap: 9px; padding: 4px 14px; border: 0;
  border-left: 1px solid var(--color-divider); background: transparent; text-align: left;
  border-radius: 0 999px 999px 0;
}
.chip:hover { background: var(--color-accent-100); }
.chip-av { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 999px; background: var(--color-accent-200); font-weight: 700; font-size: 13px; color: var(--color-accent-800); }
.chip-txt { line-height: 1.15; }
.chip-name { font-size: 13px; font-weight: 700; }
.chip-sub { font-size: 11px; opacity: .6; white-space: nowrap; }

/* — layout — */
.shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); transition: grid-template-columns .25s ease; align-items: start; }
.shell.closed { grid-template-columns: 64px minmax(0, 1fr); }
.nav { position: sticky; top: var(--hdr-h); padding: 22px 14px 40px; display: flex; flex-direction: column; gap: 22px; overflow: hidden; max-height: calc(100vh - var(--hdr-h)); overflow-y: auto; }
.nav-toggle { align-self: flex-start; display: flex; align-items: center; border: 0; background: transparent; color: #000; padding: 6px; margin-left: 8px; }
.nav-toggle:hover { opacity: .6; }
.shell.closed .nav-groups { display: none; }
.nav-groups { display: flex; flex-direction: column; gap: 22px; }
.nav-label { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; opacity: .45; padding: 0 12px 8px; white-space: nowrap; }
.nav-items { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; text-align: left; border: 0; border-radius: 999px;
  padding: 10px 14px; font-size: 15px; font-weight: 500; background: transparent; color: var(--color-text); white-space: nowrap;
}
.nav-item:hover { background: var(--color-accent-2-100); }
.nav-item .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--color-neutral-400); flex: none; }
.nav-item.on { background: var(--color-accent-2-600); color: #fff; font-weight: 700; }
.nav-item.on .dot { background: #fff; }
.main { padding: 26px 34px 80px; min-width: 0; }
.scrim { display: none; }

/* — generic pieces — */
.lede { margin-bottom: 20px; }
.panel { background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.green { background: var(--color-accent-2-600); color: #fff; border-radius: var(--radius-lg); }
.green h4, .green h3 { color: #fff; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.col-main { flex: 999 1 420px; min-width: 0; }
.pill { display: inline-block; border-radius: 999px; }
.bar { height: 10px; border-radius: 999px; background: var(--color-neutral-200); overflow: hidden; }
.bar > div { height: 100%; border-radius: 999px; }
.kicker { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; font-weight: 700; }
.imp-badge { background: var(--color-accent); color: #fff; border-radius: 999px; padding: 3px 11px; font-size: 11px; font-weight: 700; display: inline-block; }

/* — home — */
.hero { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--color-accent-2-600); color: #fff; padding: 54px 56px; display: flex; flex-wrap: wrap; gap: 30px; align-items: center; }
.hero-c1 { position: absolute; right: -90px; top: -80px; width: 320px; height: 320px; border-radius: 999px; background: rgba(255, 255, 255, .07); }
.hero-c2 { position: absolute; right: 120px; bottom: -140px; width: 260px; height: 260px; border-radius: 999px; background: var(--color-accent-500); opacity: .5; }
.hero-l { position: relative; flex: 999 1 420px; min-width: 0; }
.hero-tag { display: inline-block; padding: 5px 13px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 12px; font-weight: 700; letter-spacing: .04em; margin-bottom: 16px; }
.hero h1 { font-size: 52px; color: #fff; margin: 0 0 14px; letter-spacing: -.02em; }
.hero p { font-size: 17px; max-width: 46ch; opacity: .92; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-ctas .btn { padding: 13px 26px; font-size: 15px; }
.hero-r { position: relative; display: grid; place-items: center; flex: 1 1 250px; }
.hero-ring { width: 250px; height: 250px; border-radius: 999px; background: rgba(255, 255, 255, .12); display: grid; place-items: center; }
.hero-ring img { width: 210px; height: 210px; border-radius: 999px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 14px; }
.stat { background: var(--color-surface); border-radius: var(--radius-md); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.stat-n { font-family: var(--font-heading); font-size: 30px; color: var(--color-accent-2-700); line-height: 1; }
.stat-l { font-size: 12.5px; margin-top: 5px; font-weight: 600; }
.home-h2 { margin: 44px 0 26px; }
.hcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.hcard { text-align: left; border: 1px solid var(--color-divider); background: var(--color-surface); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.hcard:hover { box-shadow: var(--shadow-md); border-color: var(--color-accent-300); }
.hcard-n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 999px; font-family: var(--font-heading); font-size: 19px; }
.hcard-t { font-family: var(--font-heading); font-size: 20px; }
.hcard-d { font-size: 13.5px; opacity: .72; line-height: 1.5; }
.hcard-cta { font-size: 12px; color: var(--color-accent-700); font-weight: 700; }
.exam-box { margin-top: 44px; background: var(--color-accent-100); border-radius: var(--radius-lg); padding: 34px 38px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 34px; align-items: center; }
.exam-box p { font-size: 14px; opacity: .8; }
.exam-parts { display: flex; flex-direction: column; gap: 10px; }
.exam-part { display: flex; gap: 14px; align-items: center; background: var(--color-surface); border-radius: 999px; padding: 12px 20px; }
.exam-part b { font-family: var(--font-heading); font-weight: 400; color: var(--color-accent); font-size: 17px; }
.exam-part span { font-size: 13.5px; font-weight: 600; }
.vid-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px; margin-bottom: 16px; }
.vid { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-accent-2-800); box-shadow: var(--shadow-md); }
.vid-btn { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: var(--color-accent-2-800); }
.vid-btn:hover { filter: brightness(1.05); }
.vid-btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid-grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 35, 26, 0) 40%, rgba(6, 35, 26, .75) 100%); }
.vid-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 92px; height: 92px; border-radius: 999px; background: var(--color-accent); box-shadow: var(--shadow-lg); }
.vid-lbl { position: absolute; left: 28px; bottom: 24px; color: #fff; font-size: 15px; font-weight: 700; }
.vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-yt { display: flex; justify-content: flex-end; margin-top: 10px; font-size: 13px; font-weight: 700; }

/* — dashboard — */
.dash-card { background: var(--color-surface); border-radius: var(--radius-lg); padding: 26px 28px; box-shadow: var(--shadow-sm); }
.mastery { display: flex; flex-direction: column; gap: 15px; }
.mastery-top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.review { padding: 26px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.review p { font-size: 13.5px; opacity: .88; margin: 0; }
.review .btn { padding: 12px 22px; }
.side-col { display: flex; flex-direction: column; gap: 20px; flex: 1 1 260px; max-width: 340px; }
.ring { position: relative; width: 150px; height: 150px; margin: 0 auto; }
.ring-fill { position: absolute; inset: 0; border-radius: 999px; }
.ring-hole { position: absolute; inset: 16px; border-radius: 999px; background: var(--color-surface); display: grid; place-items: center; }
.ring-pct { font-family: var(--font-heading); font-size: 34px; line-height: 1; }
.mini { display: flex; gap: 10px; align-items: flex-start; text-align: left; border: 0; background: transparent; padding: 6px 8px; margin: -6px -8px; border-radius: var(--radius-md); }
.mini:hover { background: var(--color-accent-2-100); }
.mini-dot { width: 18px; height: 18px; border-radius: 999px; flex: none; margin-top: 2px; border: 2px solid; }
.mini b { display: block; font-size: 13px; font-weight: 600; }
.mini small { display: block; font-size: 11.5px; opacity: .6; }

/* — dropdown (themes, legends) — */
.dd { position: relative; max-width: 760px; }
.dd-btn { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; border: 1px solid var(--color-divider); background: var(--color-surface); border-radius: var(--radius-lg); padding: 14px 20px; box-shadow: var(--shadow-sm); }
.dd-btn:hover { border-color: var(--color-accent-2-300); }
.dd-num { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 999px; background: var(--color-accent-2-600); color: #fff; font-family: var(--font-heading); font-size: 17px; }
.dd-txt { flex: 1; min-width: 0; }
.dd-kick { display: block; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; font-weight: 700; opacity: .55; }
.dd-name { display: block; font-size: 16.5px; font-weight: 700; }
.dd-count { font-size: 12.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: var(--color-accent-2-100); color: var(--color-accent-2-800); white-space: nowrap; }
.chev { flex: none; transition: transform .2s; }
.dd.open .dd-btn .chev { transform: rotate(180deg); }
.dd-panel { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 4px; max-height: min(70vh, 640px); overflow-y: auto; }
.dd-opt { display: flex; align-items: center; gap: 12px; text-align: left; border: 0; border-radius: var(--radius-md); padding: 11px 14px; background: transparent; }
.dd-opt:hover { background: var(--color-accent-2-100); }
.dd-opt.on { background: var(--color-accent-2-100); }
.dd-opt-n { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--color-neutral-200); color: var(--color-text); }
.dd-opt.on .dd-opt-n { background: var(--color-accent-2-600); color: #fff; }
.dd-opt-t { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.3; }
.dd-opt.on .dd-opt-t { font-weight: 700; }
.dd-opt-m { display: block; font-size: 11.5px; opacity: .6; font-weight: 400; }
.dd-opt-c { font-size: 12px; opacity: .55; }

/* — flashcards — */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.imp-btn { border: 0; border-radius: 999px; padding: 10px 18px; font-size: 13px; font-weight: 700; background: var(--color-accent-100); color: var(--color-accent-800); }
.imp-btn.on { background: var(--color-accent); color: #fff; }
.flip { cursor: pointer; perspective: 1600px; height: 420px; }
.flip-in { position: relative; width: 100%; height: 100%; transition: transform .55s cubic-bezier(.4, .1, .2, 1); transform-style: preserve-3d; }
.flip.on .flip-in { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; overflow: auto; }
.face-f { background: var(--color-surface); padding: 40px; border: 1px solid var(--color-divider); }
.face-b { background: var(--color-accent-2-600); color: #fff; padding: 44px; transform: rotateY(180deg); }
.face-tag { background: var(--color-accent-2-100); color: var(--color-accent-2-800); border-radius: 999px; padding: 4px 12px; font-size: 11px; font-weight: 700; margin-bottom: 18px; }
.face-imp { position: absolute; top: 22px; right: 22px; background: var(--color-accent); color: #fff; border-radius: 999px; padding: 5px 13px; font-size: 11.5px; font-weight: 700; }
.face-q { font-family: var(--font-heading); font-size: 28px; line-height: 1.22; max-width: 24ch; text-wrap: balance; }
.face-hint { font-size: 12px; opacity: .45; margin-top: 22px; }
.face-a { font-size: 23px; font-weight: 700; line-height: 1.35; max-width: 26ch; }
.face-note { font-size: 13.5px; opacity: .8; margin-top: 16px; max-width: 36ch; line-height: 1.5; }
.card-ctrl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.card-ctrl .mid { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-hard { background: var(--color-accent-200); color: var(--color-accent-800); }
.btn-hard:hover { background: var(--color-accent-300); }
.btn-easy { background: var(--color-accent-2-200); color: var(--color-accent-2-800); }
.btn-easy:hover { background: var(--color-accent-2-300); }
.deck-bar { margin-top: 16px; height: 8px; border-radius: 999px; background: var(--color-neutral-200); overflow: hidden; }
.deck-bar div { height: 100%; background: var(--color-accent); }
.deck-lbl { font-size: 12px; opacity: .6; margin-top: 7px; }
.qa-list { display: flex; flex-direction: column; gap: 12px; }
.qa { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid transparent; overflow: hidden; }
.qa.imp { border-color: var(--color-accent-300); }
.qa-q { padding: 20px 24px; display: flex; gap: 12px; align-items: flex-start; }
.qa-n { flex: none; font-family: var(--font-heading); font-size: 15px; color: var(--color-accent-2-700); min-width: 26px; }
.qa-qt { font-size: 15.5px; font-weight: 700; line-height: 1.4; }
.qa-a { padding: 20px 24px; background: var(--color-accent-2-100); border-left: 3px solid var(--color-accent-2-500); font-size: 15px; line-height: 1.5; color: var(--color-accent-2-900); }
.acc { display: flex; flex-direction: column; gap: 12px; }
.acc-h { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; border: 1px solid var(--color-divider); background: var(--color-surface); border-radius: var(--radius-lg); padding: 14px 20px; box-shadow: var(--shadow-sm); }
.acc-h:hover { border-color: var(--color-accent-2-300); }
.acc-item.open .acc-h .chev { transform: rotate(180deg); }
.acc-body { padding: 12px 0 8px; }

/* — simulator — */
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 26px; }
.mode { text-align: left; border: 2px solid transparent; background: var(--color-surface); border-radius: var(--radius-lg); padding: 18px 20px; }
.mode:hover { border-color: var(--color-accent-2-300); }
.mode.on { background: var(--color-accent-2-100); border-color: var(--color-accent-2-600); }
.mode-t { font-family: var(--font-heading); font-size: 18px; margin-bottom: 4px; }
.mode-d { font-size: 12.5px; opacity: .75; line-height: 1.45; }
.mode-m { font-size: 11px; opacity: .6; margin-top: 8px; }
.sim-empty { background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px; text-align: center; }
.sim-empty .big { font-family: var(--font-heading); font-size: 56px; line-height: 1; color: var(--color-accent-2-600); }
.intro-pills { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.intro-pills span { padding: 6px 14px; border-radius: 999px; background: var(--color-accent-2-100); color: var(--color-accent-2-800); font-size: 13px; font-weight: 700; }
.intro-pills span.red { background: var(--color-accent-100); color: var(--color-accent-800); }
.result { border-radius: var(--radius-lg); color: #fff; padding: 40px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.result-score { font-family: var(--font-heading); font-size: 72px; line-height: 1; }
.rev { display: flex; gap: 14px; align-items: flex-start; background: var(--color-surface); border: 1px solid; border-radius: var(--radius-lg); padding: 16px 20px; }
.rev-mark { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 999px; color: #fff; font-weight: 700; font-size: 14px; }
.qcard { background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.qbar { display: flex; align-items: center; gap: 16px; padding: 16px 28px; background: var(--color-accent-2-700); color: #fff; }
.qbar-l { font-size: 13px; font-weight: 700; white-space: nowrap; }
.qbar-p { flex: 1; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.qbar-p div { height: 100%; background: #fff; }
.qbar-t { font-family: var(--font-heading); font-size: 16px; font-variant-numeric: tabular-nums; }
.qbody { padding: 34px 38px; }
.q-topic { color: var(--color-accent-700); margin-bottom: 10px; }
.q-q { font-family: var(--font-heading); font-size: 27px; line-height: 1.25; margin-bottom: 30px; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.opt { display: flex; gap: 12px; align-items: center; text-align: left; font-size: 14.5px; padding: 16px 18px; border-radius: var(--radius-md); border: 2px solid var(--color-divider); background: var(--color-surface); }
.opt:hover:not([disabled]) { border-color: var(--color-accent-2-300); background: var(--color-accent-2-100); }
.opt[disabled] { cursor: default; }
.opt-k { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 999px; background: var(--color-neutral-200); color: var(--color-neutral-800); font-size: 12px; font-weight: 700; }
.opt-t { flex: 1; }
.opt-m { font-weight: 700; }
.opt.good, .opt.pick { background: var(--color-accent-2-100); border-color: var(--color-accent-2-600); }
.opt.good .opt-k, .opt.pick .opt-k { background: var(--color-accent-2-600); color: #fff; }
.opt.bad { background: var(--color-accent-100); border-color: var(--color-accent-500); }
.feedback { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; background: var(--color-accent-2-100); border-radius: var(--radius-md); padding: 18px 22px; }
.feedback .btn { padding: 12px 24px; }

/* — legends — */
.leg-tabs { display: flex; gap: 6px; padding: 14px 26px 0; flex-wrap: wrap; }
.leg-tabs button { border: 0; background: var(--color-neutral-200); font-weight: 700; font-size: 13px; padding: 10px 20px; border-radius: 999px; }
.leg-tabs button.on { background: var(--color-accent-2-600); color: #fff; }
.leg-body { padding: 22px 40px 40px; }
.leg-text { max-width: 66ch; font-size: 16.5px; line-height: 1.75; }
.leg-text p { margin-bottom: 16px; }
.kw { margin-top: 26px; background: var(--color-accent-100); border-radius: var(--radius-md); padding: 18px 22px; max-width: 66ch; }
.kw-list { display: flex; gap: 8px; flex-wrap: wrap; }
.kw-list span { background: var(--color-surface); border-radius: 999px; padding: 5px 13px; font-size: 12.5px; font-weight: 600; }
.lq { margin-bottom: 26px; }
.lq-q { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.lq-opts { display: flex; flex-direction: column; gap: 8px; }
.lq-opt { display: flex; gap: 11px; align-items: center; text-align: left; font-size: 14px; padding: 12px 16px; border-radius: var(--radius-md); border: 2px solid var(--color-divider); background: var(--color-bg); }
.lq-opt:hover:not([disabled]) { border-color: var(--color-accent-2-300); background: var(--color-accent-2-100); }
.lq-opt[disabled] { cursor: default; }
.lq-opt.good { background: var(--color-accent-2-100); border-color: var(--color-accent-2-600); }
.lq-opt.bad { background: var(--color-accent-100); border-color: var(--color-accent-500); }
.score-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; background: var(--color-accent-2-100); border-radius: var(--radius-md); padding: 16px 22px; }

/* — documents — */
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 20px 26px; margin-bottom: 22px; }
.banner-bar { flex: 1 1 180px; max-width: 220px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.banner-bar div { height: 100%; background: #fff; }
.docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.doc { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.doc.on { border-color: var(--color-accent-2-300); }
.chk { flex: none; width: 26px; height: 26px; border-radius: 999px; border: 2px solid var(--color-neutral-400); background: transparent; color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; margin-top: 2px; padding: 0; }
.chk:hover { border-color: var(--color-accent-2-500); }
.doc.on .chk { background: var(--color-accent-2-600); border-color: var(--color-accent-2-600); }
.doc-top { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin-bottom: 4px; }
.doc-t { font-size: 15px; font-weight: 700; }
.doc-tag { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--color-neutral-200); color: var(--color-neutral-800); white-space: nowrap; }
.doc-tag.req { background: var(--color-accent-200); color: var(--color-accent-800); }
.doc-d { font-size: 13px; opacity: .75; line-height: 1.5; }
.doc-tip { font-size: 12px; color: var(--color-accent-700); font-weight: 600; margin-top: 8px; }

/* — steps — */
.tl { position: relative; padding-left: 34px; }
.tl-rail { position: absolute; left: 12px; top: 10px; bottom: 10px; width: 3px; background: var(--color-neutral-300); border-radius: 999px; }
.tl-step { position: relative; margin-bottom: 16px; }
.tl-dot { position: absolute; left: -34px; top: 20px; width: 27px; height: 27px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--color-neutral-300); color: var(--color-neutral-800); border: 3px solid var(--color-bg); }
.tl-card { background: var(--color-surface); border-radius: var(--radius-lg); padding: 20px 24px; border: 1px solid var(--color-divider); box-shadow: var(--shadow-sm); }
.tl-head { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.st-btn { border: 0; font-size: 12px; font-weight: 700; padding: 6px 12px 6px 14px; border-radius: 999px; background: var(--color-neutral-200); color: var(--color-neutral-800); display: flex; align-items: center; gap: 6px; }
.st-btn:hover { filter: brightness(.95); }
.tl-step.doing .tl-dot { background: var(--color-accent-500); color: #fff; }
.tl-step.doing .tl-card { border-color: var(--color-accent-300); }
.tl-step.doing .st-btn { background: var(--color-accent-200); color: var(--color-accent-800); }
.tl-step.done .tl-dot { background: var(--color-accent-2-600); color: #fff; }
.tl-step.done .st-btn { background: var(--color-accent-2-200); color: var(--color-accent-2-800); }
.tl-time { font-size: 12px; opacity: .55; }
.tl-d { font-size: 13.5px; opacity: .78; margin: 0 0 4px; max-width: 78ch; }
.tl-links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tl-links .btn-primary { color: #fff; }
.tl-links .lnk { font-size: 13px; font-weight: 700; color: var(--color-accent-2-700); }

/* — costs — */
.fees { background: var(--color-surface); border-radius: var(--radius-lg); padding: 12px 26px; box-shadow: var(--shadow-sm); }
.fee { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--color-divider); }
.fee:last-child { border-bottom: 0; }
.tog { flex: none; width: 44px; height: 26px; border-radius: 999px; border: 0; background: var(--color-neutral-300); position: relative; padding: 0; }
.tog span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 999px; background: #fff; transition: left .18s; }
.tog.on { background: var(--color-accent-2-600); }
.tog.on span { left: 21px; }
.fee-txt { flex: 1 1 180px; min-width: 0; }
.fee-t { font-size: 14.5px; font-weight: 700; }
.fee-d { font-size: 12px; opacity: .65; }
.fee-amt { font-family: var(--font-heading); font-size: 17px; opacity: .4; }
.fee.on .fee-amt { opacity: 1; }
.total { padding: 28px; position: sticky; top: 90px; flex: 1 1 280px; max-width: 340px; }
.total-n { font-family: var(--font-heading); font-size: 44px; line-height: 1.1; margin: 6px 0 14px; }

/* — citas — */
.citas { display: flex; flex-direction: column; gap: 14px; }
.cita { background: var(--color-surface); border-left: 6px solid var(--color-neutral-400); border-radius: var(--radius-lg); padding: 20px 24px; box-shadow: var(--shadow-sm); }
.cita-v { display: flex; gap: 20px; flex-wrap: wrap; }
.cita-date { text-align: center; flex: none; width: 70px; }
.cita-day { font-family: var(--font-heading); font-size: 30px; line-height: 1; }
.cita-mon { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .6; }
.cita-main { flex: 1 1 220px; min-width: 0; }
.cita-t { font-size: 16px; font-weight: 700; }
.cita-sub { font-size: 13px; opacity: .7; margin-bottom: 9px; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chips span { font-size: 11.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--color-accent-2-100); color: var(--color-accent-2-800); }
.cita-act { align-self: center; display: flex; gap: 8px; }
.cita-act .btn { font-size: 12.5px; white-space: nowrap; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.full { grid-column: 1 / -1; }
.fld { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 700; color: color-mix(in srgb, var(--color-text) 80%, transparent); }
.inp { width: 100%; border: 1px solid var(--color-divider); border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 400; background: var(--color-bg); color: var(--color-text); min-height: 42px; }
.inp:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.inp:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
select.inp { cursor: pointer; appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23201e1d' stroke-width='2.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
textarea.inp { border-radius: var(--radius-md); resize: vertical; min-height: 100px; }
.chk-row { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.chk-row input { width: 18px; height: 18px; accent-color: var(--color-accent-2-600); }
.add-btn { border: 2px dashed var(--color-neutral-300); background: transparent; border-radius: var(--radius-lg); padding: 18px; font-size: 14px; font-weight: 700; color: var(--color-accent-2-700); }
.add-btn:hover { border-color: var(--color-accent-2-400); background: var(--color-accent-2-100); }
.count-box { background: var(--color-accent-100); border-radius: var(--radius-lg); padding: 24px; flex: 1 1 240px; max-width: 320px; }
.count-n { font-family: var(--font-heading); font-size: 52px; line-height: 1; color: var(--color-accent-700); }

/* — video call — */
.price { padding: 30px; flex: 1 1 260px; display: flex; flex-direction: column; justify-content: center; }
.price-n { font-family: var(--font-heading); font-size: 40px; line-height: 1.1; margin: 6px 0 4px; }
.incl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 22px; }
.incl-i { display: flex; gap: 12px; align-items: flex-start; }
.incl-i > span { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 999px; background: var(--color-accent-2-100); color: var(--color-accent-2-800); font-weight: 700; font-size: 13px; }
.incl-t { font-size: 14.5px; font-weight: 700; }
.incl-d { font-size: 13px; opacity: .7; line-height: 1.5; }
.call-form { padding: 32px 36px; }
.call-form .form-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 20px; }
.call-form .fld { gap: 6px; color: var(--color-neutral-700); }
.call-form .inp { padding: 11px 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--color-accent-700); }
.ok { min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; }
.ok-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 999px; background: var(--color-accent-2-600); color: #fff; font-size: 28px; font-weight: 700; }

/* — profile — */
.prof { display: flex; flex-wrap: wrap; gap: 22px; align-items: stretch; min-height: calc(100vh - 200px); }
.prof-form { padding: 40px 44px; flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; }
.prof-form .form-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 24px; flex: 1; align-content: start; }
.prof-form label { display: block; font-size: 12px; font-weight: 700; opacity: .65; margin-bottom: 6px; }
.prof-form .inp { padding: 11px 18px; }
.route { padding: 40px 32px; text-align: center; flex: 1 1 300px; max-width: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.route img { width: 170px; height: 170px; margin: 0 auto 22px; border-radius: 999px; }
.route-t { font-family: var(--font-heading); font-size: 21px; }
.route-y { font-size: 13px; font-weight: 700; margin-top: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); display: inline-block; }

/* — footer — */
.ftr { background: var(--color-accent-2-800); border-top: 4px solid var(--color-accent); color: rgba(255, 250, 240, .78); padding: 56px 34px 34px; }
.ftr-in { max-width: 1540px; margin: 0 auto; }
.ftr-top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 36px 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 250, 240, .18); }
.ftr-logo { display: flex; align-items: center; gap: 14px; border: 0; background: transparent; padding: 0; color: #fff; font-family: var(--font-heading); font-size: 28px; letter-spacing: -.015em; }
.ftr-logo:hover { opacity: .85; }
.ftr-logo img { width: 46px; height: 46px; border-radius: 999px; }
.ftr-brand p { font-size: 16px; line-height: 1.6; margin: 16px 0 0; max-width: 44ch; }
.ftr-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 10px; }
.ftr-h { color: var(--color-accent-2-200); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.ftr-link { border: 0; background: transparent; padding: 0; text-align: left; font-size: 15.5px; color: rgba(255, 250, 240, .78); overflow-wrap: anywhere; }
.ftr-link:hover { color: #fff; text-decoration: none; }
a.ftr-link:hover { color: #fff; text-decoration: underline; }
.ftr .ftr-link:focus-visible, .ftr-logo:focus-visible { outline-color: var(--color-accent-300); }
.ftr-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; padding-top: 26px; font-size: 13.5px; color: rgba(255, 250, 240, .6); }

/* — help dialog — */
.dlg-bg { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--color-neutral-900) 50%, transparent); }
.dlg { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 30px 32px; border-radius: calc(var(--radius-lg) * 1.15); background: var(--color-surface); box-shadow: var(--shadow-lg); }
.dlg ul { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.6; }
.dlg li { margin-bottom: 6px; }
.dlg-act { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 6px; }

/* — responsive — */
@media (max-width: 900px) {
  .main { padding: 24px 24px 72px; }
  .hero { padding: 40px 36px; }
  .side-col, .total, .count-box, .route { max-width: none; }
  .total { position: static; }
  .ftr-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ftr-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .ftr { padding: 44px 16px 28px; }
  .ftr-top { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .ftr-col:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --hdr-h: 65px; }
  .hdr { padding: 10px 16px; gap: 10px; }
  .logo img { height: 44px; }
  .hdr-burger { display: flex; border: 0; background: transparent; color: #000; padding: 6px; margin-left: -6px; }
  .hdr-help, .chip-txt, .streak-t { display: none; }
  .streak { padding: 4px; }
  .chip { padding: 0 0 0 10px; }
  .shell, .shell.closed { display: block; }
  .nav {
    position: fixed; z-index: 50; top: 0; left: 0; bottom: 0; width: min(300px, 86vw); max-height: none;
    background: var(--color-surface); box-shadow: var(--shadow-lg); padding-top: 18px;
    transform: translateX(-105%); transition: transform .25s ease;
  }
  .shell.drawer .nav { transform: none; }
  .shell.closed .nav-groups { display: flex; }
  .scrim { position: fixed; inset: 0; z-index: 45; background: color-mix(in srgb, var(--color-neutral-900) 40%, transparent); }
  .scrim.on { display: block; }
  .main { padding: 20px 16px 64px; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .hero { padding: 30px 22px 34px; gap: 22px; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 16px; margin-bottom: 24px; }
  .hero-r { display: none; }
  .exam-box { padding: 26px 22px; gap: 22px; }
  .exam-part { border-radius: var(--radius-md); }
  .hcards, .docs { grid-template-columns: minmax(0, 1fr); }
  .dd-panel { grid-template-columns: minmax(0, 1fr); }
  .dd-btn, .acc-h { padding: 12px 14px; gap: 10px; }
  .dd-count { display: none; }
  .flip { height: 380px; }
  .face-f { padding: 56px 22px 28px; }
  .face-b { padding: 28px 22px; }
  .face-q { font-size: 23px; }
  .face-a { font-size: 20px; }
  .face-imp { top: 16px; right: 16px; }
  .card-ctrl > .btn { flex: 1 1 40%; }
  .card-ctrl .mid { order: 3; flex: 1 1 100%; }
  .card-ctrl .mid .btn { flex: 1; }
  .qbar { padding: 14px 18px; gap: 12px; }
  .qbody { padding: 24px 20px; }
  .q-q { font-size: 22px; }
  .opts { grid-template-columns: minmax(0, 1fr); }
  .result { padding: 28px 24px; gap: 18px; }
  .result-score { font-size: 56px; }
  .leg-tabs { padding: 14px 16px 0; }
  .leg-body { padding: 20px 20px 28px; }
  .leg-text { font-size: 16px; }
  .fees { padding: 6px 18px; }
  .call-form, .prof-form { padding: 26px 20px; }
  .prof { min-height: 0; }
  .dash-card, .review { padding: 22px 20px; }
  .total-n { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
