:root {
  --navy: #001f5b;
  --blue: #00338d;
  --teal: #00a9c6;
  --cyan: #26c6da;
  --orange: #ff6b3d;
  --ink: #0b1b3a;
  --muted: #667085;
  --muted-2: #98a2b3;
  --border: #dce4ec;
  --surface: #ffffff;
  --canvas: #f5f7fa;
  --success: #1f9d67;
  --danger: #d94747;
  --soft-teal: #eaf9fc;
  --soft-orange: #fff1ec;
  --soft-green: #ecfdf3;
  --soft-red: #fff1f1;
  --shadow-sm: 0 6px 16px rgba(0, 20, 51, 0.06);
  --shadow-md: 0 14px 36px rgba(0, 31, 91, 0.12);
  --radius: 18px;
  --content: 1312px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 9999;
  left: 16px;
  top: -60px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
  transition: top .15s ease;
}
.skip-link:focus { top: 16px; }

.app-root { min-height: 100vh; }
.container { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; }
.screen { min-height: 100vh; background: var(--canvas); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 74px;
  padding: 12px 48px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
}
.topbar__center { color: var(--navy); font-size: 15px; font-weight: 700; text-align: center; }
.topbar__right { display: flex; justify-content: flex-end; align-items: center; gap: 18px; color: var(--muted); font-size: 12px; }
.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 12px;
  border: 0;
  padding: 0;
  color: var(--navy);
  background: transparent;
  text-align: left;
}
.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  color: #fff;
  background: var(--blue);
  font-size: 23px;
  font-weight: 800;
}
.brand__dots { position: absolute; right: 8px; top: 8px; display: grid; gap: 3px; }
.brand__dots i { width: 7px; height: 6px; border-radius: 3px; background: var(--teal); }
.brand__dots i:nth-child(2) { background: var(--cyan); }
.brand__dots i:nth-child(3) { background: var(--orange); }
.brand__name { display: block; font-size: 17px; line-height: 1.05; font-weight: 800; }
.brand__product { display: block; margin-top: 4px; color: var(--teal); font-size: 8px; line-height: 1; font-weight: 700; }
.header-action { border: 0; background: transparent; color: var(--navy); font-size: 13px; font-weight: 600; }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 26px; color: var(--muted); font-size: 12px; }
.breadcrumbs button { border: 0; padding: 0; color: var(--muted); background: transparent; }
.breadcrumbs span[aria-current="page"] { color: var(--navy); font-weight: 700; }
.breadcrumbs__sep { color: var(--muted-2); }

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 18px;
  color: var(--navy);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.btn:focus-visible, .header-action:focus-visible, .brand:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.btn--primary { color: #fff; background: var(--blue); }
.btn--outline { border-color: var(--border); color: var(--blue); background: #fff; }
.btn--sm { min-height: 36px; padding: 8px 14px; font-size: 12px; }

.chip { display: inline-flex; min-height: 26px; align-items: center; border-radius: 999px; padding: 6px 10px; color: var(--blue); background: var(--soft-teal); font-size: 10px; font-weight: 700; line-height: 1; }
.chip--orange { color: var(--orange); background: var(--soft-orange); }

.card { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }

.toast-region { position: fixed; z-index: 100; top: 88px; right: 24px; display: grid; width: min(376px, calc(100vw - 32px)); gap: 10px; pointer-events: none; }
.toast { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 10px; align-items: center; min-height: 66px; border: 1px solid #a6f4c5; border-radius: 14px; padding: 11px 12px; background: var(--soft-green); box-shadow: var(--shadow-md); pointer-events: auto; }
.toast--error { border-color: #f4b4b4; background: var(--soft-red); }
.toast__icon { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid currentColor; border-radius: 50%; color: var(--success); background: #fff; font-weight: 800; }
.toast--error .toast__icon { color: var(--danger); }
.toast__title { color: var(--navy); font-size: 13px; font-weight: 700; }
.toast__message { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.toast__close { border: 0; color: var(--muted); background: transparent; font-size: 14px; }

.store-page { padding: 12px 0 72px; }
.store-hero { padding: 0 0 42px; }
.store-hero .breadcrumbs { margin-bottom: 10px; }
.store-hero h1 { max-width: 900px; margin: 18px 0 8px; color: var(--navy); font-size: clamp(30px, 3vw, 42px); line-height: 1.15; }
.store-hero p { max-width: 900px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.template-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 36px; }
.template-card { display: grid; grid-template-columns: 162px minmax(0,1fr); min-height: 300px; gap: 20px; padding: 17px; overflow: hidden; }
.template-card__preview { display: grid; min-height: 228px; place-items: center; border-radius: 12px; background: var(--canvas); overflow: hidden; }
.template-card__content { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; padding: 6px 0; }
.template-card h2 { margin: 18px 0 8px; color: var(--navy); font-size: 17px; line-height: 1.25; }
.template-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.template-card__price { margin-top: auto; color: var(--teal); font-size: 14px; font-weight: 800; }
.template-card__price--offer { color: var(--orange); }
.template-card__actions { display: grid; grid-template-columns: 1fr 1.12fr; width: 100%; gap: 10px; margin-top: 28px; }

.mini-resume { position: relative; width: 148px; height: 210px; overflow: hidden; border: 1px solid #ced7e2; background: #fff; color: var(--navy); box-shadow: 0 8px 20px rgba(0,31,91,.08); }
.mini-resume__top { height: 30px; background: var(--blue); }
.mini-resume__name { position: absolute; top: 12px; left: 18px; right: 18px; height: 6px; border-radius: 3px; background: currentColor; }
.mini-resume__role { position: absolute; top: 22px; left: 18px; width: 58px; height: 3px; border-radius: 2px; background: var(--teal); }
.mini-resume__body { position: absolute; inset: 42px 12px 12px; display: grid; grid-template-columns: 1fr 36px; gap: 9px; }
.mini-resume__lines { display: grid; align-content: start; gap: 6px; }
.mini-resume__lines i { display: block; width: 100%; height: 3px; border-radius: 2px; background: #dce4ec; }
.mini-resume__lines i:nth-child(1), .mini-resume__lines i:nth-child(5), .mini-resume__lines i:nth-child(9) { background: var(--teal); }
.mini-resume__lines i:nth-child(3n) { width: 72%; }
.mini-resume__rail { background: #f1f6f8; }
.mini-resume--graduate { color: #fff; }
.mini-resume--graduate .mini-resume__top { position:absolute; inset:0 auto 0 0; width:44px; height:auto; background: var(--blue); }
.mini-resume--graduate .mini-resume__name { left: 54px; top: 15px; right: 16px; background: var(--navy); }
.mini-resume--graduate .mini-resume__role { left: 54px; top: 26px; }
.mini-resume--graduate .mini-resume__body { left: 54px; top: 42px; grid-template-columns: 1fr; }
.mini-resume--technical .mini-resume__top { height: 24px; background: #182230; }
.mini-resume--creative .mini-resume__top { position:absolute; inset:0 auto 0 0; width:48px; height:auto; background: var(--teal); }
.mini-resume--creative::before { content:""; position:absolute; left:0; top:0; width:48px; height:20px; background:var(--orange); }
.mini-resume--creative .mini-resume__name { left:58px; top:15px; background:var(--navy); }
.mini-resume--creative .mini-resume__role { left:58px; top:26px; background:var(--orange); }
.mini-resume--creative .mini-resume__body { left:58px; top:42px; grid-template-columns:1fr; }
.mini-resume--executive .mini-resume__top { height: 39px; background: var(--navy); border-bottom: 2px solid #b7872f; }
.mini-resume--executive .mini-resume__role { background:#d8b86b; }
.mini-resume--classic .mini-resume__top { height: 0; }
.mini-resume--classic .mini-resume__name { top: 15px; left: 25px; right: 25px; background: var(--blue); }
.mini-resume--classic .mini-resume__role { top: 27px; left: 42px; width: 64px; background:#a8b3c2; }
.mini-resume--classic .mini-resume__body { top: 50px; grid-template-columns: 1fr; }

.detail-page { padding: 12px 0 64px; }
.detail-layout { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(340px,.85fr); gap: 46px; align-items: start; margin-top: 36px; }
.detail-preview { display: grid; min-height: 610px; place-items: center; padding: 32px; border-radius: 20px; background: #eef3f7; }
.detail-panel { padding: 28px; }
.detail-panel h1 { margin: 16px 0 8px; color: var(--navy); font-size: 30px; line-height: 1.2; }
.detail-price { color: var(--orange); font-size: 28px; font-weight: 800; }
.detail-copy { color: var(--muted); line-height: 1.6; }
.feature-list { display: grid; gap: 14px; margin: 28px 0; padding: 0; list-style: none; }
.feature-list li { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 13px; }
.feature-list li::before { content: "✓"; display:grid; width:28px; height:28px; place-items:center; border-radius:50%; color:var(--success); background:#eaf7f1; font-weight:800; }

.cv-sheet { position:relative; width:595px; min-height:842px; padding:40px; overflow:hidden; color:#172033; background:#fff; box-shadow:0 18px 48px rgba(0,31,91,.16); font-family:Arial,sans-serif; font-size:9px; line-height:1.46; --cv-primary:var(--blue); --cv-accent:var(--teal); }
.cv-sheet.watermarked::after { content:"JENGA PREVIEW"; position:absolute; inset:0; display:grid; place-items:center; color:rgba(0,51,141,.1); font-family:Inter,Arial,sans-serif; font-size:46px; font-weight:800; transform:rotate(-18deg); pointer-events:none; }
.cv-header { text-align:center; }
.cv-header h1 { margin:0; color:var(--cv-primary); font-size:26px; text-transform:uppercase; }
.cv-header__title { margin:7px 0 15px; color:var(--muted); font-style:italic; }
.cv-contact { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin-bottom:20px; border:1px solid #dce4ec; background:#f3f7fc; }
.cv-contact div { padding:6px 9px; border-right:1px solid #dce4ec; border-bottom:1px solid #dce4ec; }
.cv-contact div:nth-child(2n) { border-right:0; }
.cv-contact div:nth-last-child(-n+2) { border-bottom:0; }
.cv-contact strong { color:var(--cv-primary); }
.cv-section { margin-top:17px; }
.cv-section h2 { margin:0 0 8px; padding-bottom:3px; border-bottom:1px solid var(--cv-accent); color:var(--cv-primary); font-size:11px; text-transform:uppercase; }
.cv-section h3 { margin:0 0 3px; color:var(--navy); font-size:10px; }
.cv-section p { margin:0; }
.cv-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 32px; }
.cv-entry + .cv-entry { margin-top:10px; }
.cv-meta { color:var(--muted); font-style:italic; }
.cv-link { margin-top:3px !important; color:var(--cv-accent); }
.cv-list { margin:5px 0 0; padding-left:16px; }
.cv-list li { margin-bottom:3px; }
.cv-footer { margin-top:22px; color:var(--muted); font-size:8px; text-align:center; }

.cv-sheet--graduate { border-left:18px solid var(--cv-primary); padding-left:34px; }
.cv-sheet--graduate .cv-header { text-align:left; }
.cv-sheet--graduate .cv-header__title { color:var(--cv-accent); font-style:normal; font-weight:700; }
.cv-sheet--graduate .cv-contact { border:0; background:#f7f9fc; }
.cv-sheet--graduate .cv-section h2 { border-bottom-width:2px; }

.cv-sheet--modern .cv-header,
.cv-sheet--technical .cv-header { margin:-40px -40px 22px; padding:34px 40px 22px; color:#fff; background:var(--cv-primary); text-align:left; }
.cv-sheet--modern .cv-header h1,
.cv-sheet--technical .cv-header h1 { color:#fff; }
.cv-sheet--modern .cv-header__title,
.cv-sheet--technical .cv-header__title { color:var(--cv-accent); font-style:normal; }
.cv-sheet--modern .cv-contact,
.cv-sheet--technical .cv-contact { margin-bottom:0; border-color:rgba(255,255,255,.2); color:#e8eef5; background:transparent; }
.cv-sheet--modern .cv-contact div,
.cv-sheet--technical .cv-contact div { border-color:rgba(255,255,255,.2); }
.cv-sheet--modern .cv-contact strong,
.cv-sheet--technical .cv-contact strong { color:var(--cv-accent); }

.cv-sheet--technical { font-family:"Courier New",monospace; }
.cv-sheet--technical .cv-section h2::before { content:"> "; color:var(--cv-accent); }
.cv-sheet--technical .cv-list { list-style:square; }

.cv-sheet--creative { border-left:22px solid var(--cv-primary); padding-left:32px; }
.cv-sheet--creative::before { content:""; position:absolute; top:0; left:0; width:22px; height:128px; background:var(--cv-accent); }
.cv-sheet--creative .cv-header { text-align:left; }
.cv-sheet--creative .cv-header__title { color:var(--cv-accent); font-style:normal; font-weight:700; }
.cv-sheet--creative .cv-section h2 { width:max-content; max-width:100%; border-bottom-width:3px; }

.cv-sheet--executive { font-family:Georgia,"Times New Roman",serif; }
.cv-sheet--executive .cv-header { padding-bottom:16px; border-bottom:2px solid var(--cv-accent); }
.cv-sheet--executive .cv-header__title { color:var(--cv-accent); font-style:normal; letter-spacing:.5px; }
.cv-sheet--executive .cv-section h2 { border-bottom:0; letter-spacing:1px; }

.public-footer { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-top:64px; border-top:1px solid var(--border); padding:24px 0 0; color:var(--muted); font-size:12px; }
.public-footer nav { display:flex; flex-wrap:wrap; gap:16px; }
.public-footer button { border:0; padding:0; color:var(--blue); background:transparent; font-weight:600; }
.information-page { padding:12px 0 64px; }
.information-card { max-width:820px; margin:28px auto 0; padding:36px; }
.information-card h1,.not-found h1 { margin:16px 0 10px; color:var(--navy); font-size:34px; }
.information-intro { color:var(--muted); font-size:16px; line-height:1.6; }
.information-card section { margin-top:28px; }
.information-card h2 { margin:0 0 8px; color:var(--navy); font-size:18px; }
.information-card section p,.information-review { color:var(--muted); line-height:1.7; }
.information-review { margin-top:32px; border-top:1px solid var(--border); padding-top:18px; font-size:12px; }
.not-found { max-width:680px; margin:48px auto; padding:44px; text-align:center; }
.not-found p { color:var(--muted); }
.not-found > div { display:flex; justify-content:center; gap:12px; margin-top:24px; }

.btn--orange { color: var(--navy); background: var(--orange); }
.public-topbar { min-height:80px; padding:12px max(48px, calc((100vw - var(--content)) / 2)); }
.public-nav { display:flex; align-items:center; justify-content:center; gap:32px; }
.public-nav button { border:0; padding:8px 0; color:var(--ink); background:transparent; font-size:14px; font-weight:500; }
.public-nav button:hover,.public-nav button:focus-visible { color:var(--blue); }
.public-create { min-height:48px; padding-inline:28px; }

.home-screen { background:#fff; }
.home-hero { min-height:560px; background:#fff; }
.home-hero__layout { display:grid; grid-template-columns:minmax(0,1fr) 580px; gap:66px; align-items:center; min-height:560px; padding-block:42px 48px; }
.home-hero__layout > * { min-width:0; }
.home-hero__copy h1 { max-width:650px; margin:20px 0 10px; color:var(--navy); font-size:clamp(42px,3.7vw,52px); line-height:1.075; letter-spacing:-1.4px; }
.home-hero__copy > p { max-width:570px; margin:0; color:var(--muted); font-size:18px; line-height:1.55; }
.home-hero__actions { display:flex; gap:16px; margin-top:48px; }
.home-hero__actions .btn { min-height:52px; padding-inline:28px; }
.home-trust { display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; color:var(--success); font-size:13px; font-weight:600; }
.product-demo { position:relative; display:grid; grid-template-columns:216px 294px; gap:20px; min-height:470px; padding:34px 26px; overflow:hidden; border:1px solid var(--border); border-radius:26px; background:var(--canvas); }
.product-demo::before { content:""; position:absolute; width:420px; height:420px; right:-80px; top:-60px; border-radius:50%; background:radial-gradient(circle,rgba(0,169,198,.16),rgba(0,169,198,0) 70%); }
.product-demo__form,.product-demo__preview { position:relative; z-index:1; border-radius:16px; padding:18px; }
.product-demo__form { display:flex; flex-direction:column; background:#fff; }
.product-demo__form h2 { margin:0 0 18px; color:var(--navy); font-size:15px; }
.product-demo__form label { display:grid; gap:8px; margin-bottom:12px; color:var(--muted); font-size:12px; font-weight:600; }
.product-demo__form label span { display:flex; min-height:42px; align-items:center; border:1px solid var(--border); border-radius:10px; padding:0 13px; color:var(--ink); font-size:13px; font-weight:500; }
.product-demo__form .btn { margin-top:auto; }
.product-demo__preview { background:#eef3f7; }
.product-demo__resume { position:relative; display:grid; min-height:302px; place-items:center; }
.product-demo__resume .mini-resume { width:198px; height:286px; }
.product-demo__resume strong { position:absolute; color:rgba(0,51,141,.12); font-size:16px; line-height:1; text-align:center; transform:rotate(17deg); }

.home-featured { padding:28px 0 32px; background:var(--canvas); }
.home-featured__layout { display:grid; grid-template-columns:minmax(300px,1fr) minmax(0,692px); gap:56px; align-items:start; }
.home-featured h2,.home-explainer h2,.home-pricing h2,.home-career h2 { margin:10px 0 6px; color:var(--navy); font-size:28px; line-height:1.25; }
.home-featured p,.home-explainer p,.home-pricing p,.home-career p { margin:0; color:var(--muted); line-height:1.55; }
.home-featured__cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.home-template-card { display:grid; grid-template-columns:78px minmax(0,1fr); gap:14px; min-height:200px; border:1px solid var(--border); border-radius:16px; padding:16px; background:#fff; }
.home-template-preview { overflow:hidden; }
.home-template-preview .mini-resume { width:78px; height:118px; box-shadow:none; }
.home-template-card h3 { margin:12px 0 14px; color:var(--navy); font-size:14px; line-height:1.25; }
.home-template-card strong { display:block; color:var(--teal); font-size:12px; }
.home-template-card .btn { margin-top:28px; }

.home-explainer,.home-pricing,.home-career { padding:76px 0; background:#fff; }
.home-explainer h2 { font-size:36px; }
.home-steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px; margin-top:32px; }
.home-steps article { border:1px solid var(--border); border-radius:16px; padding:24px; background:var(--canvas); }
.home-steps article > strong { display:grid; width:34px; height:34px; place-items:center; border-radius:50%; color:#fff; background:var(--blue); }
.home-steps h3 { margin:20px 0 8px; color:var(--navy); }
.home-pricing { background:var(--navy); }
.home-pricing__layout,.home-career__layout { display:flex; align-items:center; justify-content:space-between; gap:32px; }
.home-pricing h2,.home-pricing p { color:#fff; }
.home-pricing p,.home-career p { max-width:720px; }
.home-career { background:var(--soft-teal); }

.store-page { padding-top:0; }
.store-hero { padding-top:6px; padding-bottom:48px; }
.store-hero h1 { margin-top:18px; font-size:38px; }
.store-layout { display:grid; grid-template-columns:250px minmax(0,1fr); gap:30px; align-items:start; }
.template-filters { position:sticky; top:100px; padding:20px; box-shadow:none; }
.template-filters__toggle { display:none; }
.template-filters__body { display:block; }
.template-filters h2 { margin:0 0 20px; color:var(--navy); font-size:17px; }
.template-filters h3 { margin:24px 0 12px; color:var(--navy); font-size:13px; }
.template-filter-list { display:grid; gap:11px; }
.template-filter-list button { min-height:42px; border:1px solid var(--border); border-radius:10px; padding:0 14px; color:var(--ink); background:#fff; font-size:13px; text-align:left; }
.template-filter-list button.is-active { border-color:var(--soft-teal); color:var(--blue); background:var(--soft-teal); font-weight:700; }
.template-filters label { display:block; margin-top:10px; color:var(--muted); font-size:13px; }
.template-filters input { accent-color:var(--blue); }
.store-layout .template-grid { grid-template-columns:repeat(3,300px); gap:30px; }
.store-layout .template-card { grid-template-columns:105px minmax(0,1fr); min-height:232px; gap:17px; padding:16px; box-shadow:none; }
.store-layout .template-card__preview { min-height:154px; border:0; background:transparent; }
.store-layout .template-card__preview .mini-resume { width:105px; height:154px; box-shadow:none; }
.store-layout .template-card__content { padding:0; }
.store-layout .template-card h2 { order:0; margin:7px 0 12px; font-size:16px; }
.store-layout .template-card .chip { order:1; }
.store-layout .template-card__price { order:2; margin-top:16px; font-size:13px; }
.store-layout .template-card__actions { order:3; display:flex; gap:8px; margin-top:22px; }
.store-layout .template-card__actions .btn { min-width:0; padding-inline:10px; }
.template-empty { padding:36px; text-align:center; }
.template-empty h2 { color:var(--navy); }
.template-empty p { color:var(--muted); }
.store-home { margin-top:18px; }

@media (max-width: 1180px) {
  .template-grid,.store-layout .template-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .home-hero__layout { grid-template-columns:minmax(0,1fr) 500px; gap:34px; }
  .product-demo { grid-template-columns:190px 254px; padding-inline:22px; }
  .home-featured__layout { grid-template-columns:1fr; }
}
@media (min-width: 1181px) and (max-width: 1360px) {
  .store-layout .template-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
}
@media (max-width: 1100px) {
  .detail-layout { grid-template-columns:1fr; gap:24px; }
  .detail-preview { min-height:560px; overflow:hidden; }
  .detail-preview .cv-sheet { transform:scale(.72); transform-origin:center top; margin-bottom:-230px; }
}
@media (max-width: 820px) {
  .container { width: min(100% - 40px, var(--content)); }
  .topbar { grid-template-columns:1fr auto; min-height:64px; padding:10px 20px; }
  .topbar__center { display:none; }
  .topbar__right .desktop-only { display:none; }
  .public-nav { display:none; }
  .public-create { display:none; }
  .home-hero__layout { grid-template-columns:1fr; padding-block:54px; }
  .home-hero__copy h1 { font-size:clamp(40px,12vw,56px); }
  .product-demo { width:min(100%,580px); margin-inline:auto; grid-template-columns:minmax(0,216px) minmax(0,294px); }
  .home-featured__cards,.home-steps { grid-template-columns:1fr; }
  .home-template-card { min-height:160px; }
  .home-pricing__layout,.home-career__layout { align-items:flex-start; flex-direction:column; }
  .store-layout { grid-template-columns:1fr; }
  .template-filters { position:static; }
  .template-filter-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .template-grid { grid-template-columns:1fr; gap:18px; }
  .store-layout .template-grid { grid-template-columns:1fr; }
  .template-card { grid-template-columns:94px minmax(0,1fr); min-height:154px; gap:18px; padding:14px; }
  .template-card__preview { min-height:126px; }
  .template-card .mini-resume { width:82px; height:126px; }
  .template-card h2 { margin:10px 0 6px; font-size:15px; }
  .template-card p { display:-webkit-box; overflow:hidden; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
  .template-card__price { margin-top:10px; font-size:13px; }
  .template-card__actions { display:flex; margin-top:auto; justify-content:flex-end; }
  .template-card__actions .btn { min-height:34px; padding:8px 12px; }
  .detail-preview { min-height:390px; overflow:auto; }
  .detail-preview .cv-sheet { transform:scale(.62); transform-origin:center top; margin-bottom:-300px; }
  .toast-region { top:72px; right:16px; }
  .public-footer { align-items:flex-start; flex-direction:column; }
  .information-card,.not-found { padding:24px; }
}

@media (max-width: 560px) {
  .public-topbar { padding-inline:16px; }
  .home-hero__actions { align-items:stretch; flex-direction:column; }
  .home-hero__copy h1 { overflow-wrap:break-word; font-size:42px; }
  .home-trust { align-items:flex-start; flex-direction:column; }
  .product-demo { grid-template-columns:1fr; min-height:0; }
  .product-demo__preview { min-height:360px; }
  .home-featured__cards { gap:14px; }
  .template-filter-list { grid-template-columns:1fr; }
  .store-layout .template-card { grid-template-columns:94px minmax(0,1fr); }
  .store-layout .template-card__preview .mini-resume { width:88px; height:132px; }
}

/* Production template visibility pass */
.template-sample { position:relative; width:var(--sample-width); max-width:100%; height:var(--sample-height); overflow:hidden; margin-inline:auto; background:#fff; box-shadow:0 12px 30px rgba(0,31,91,.16); }
.template-sample .cv-sheet { position:absolute; top:0; left:0; transform:scale(var(--sample-scale)); transform-origin:top left; box-shadow:none; }
.product-demo__preview { display:grid; align-content:start; justify-items:center; gap:14px; }
.product-demo__resume { min-height:278px; }
.product-demo__resume .template-sample { border:1px solid var(--border); }

.home-featured { padding:52px 0 62px; }
.home-featured__layout { grid-template-columns:1fr; gap:30px; }
.home-featured__layout > div:first-child { max-width:760px; }
.home-featured__cards { grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.home-template-card { grid-template-columns:190px minmax(0,1fr); min-height:302px; align-items:center; gap:20px; padding:20px; }
.home-template-preview { display:grid; place-items:center; overflow:visible; }
.home-template-card__body { min-width:0; }
.home-template-card h3 { margin:12px 0 8px; font-size:18px; }
.home-template-card p { margin:0 0 18px; color:var(--muted); font-size:12px; line-height:1.55; }
.home-template-card strong { font-size:14px; }
.home-template-card .btn { margin-top:20px; }

.store-layout { grid-template-columns:238px minmax(0,1fr); gap:26px; }
.store-layout .template-grid { grid-template-columns:repeat(3,minmax(280px,1fr)); gap:24px; align-items:stretch; }
.store-layout .template-card { display:flex; min-height:0; flex-direction:column; gap:0; padding:0; overflow:hidden; box-shadow:var(--shadow-sm); }
.store-layout .template-card__preview { position:relative; display:grid; width:100%; min-height:410px; place-items:center; border:0; border-bottom:1px solid var(--border); border-radius:0; padding:20px 14px 18px; background:linear-gradient(145deg,#eef3f7,#f8fafc); }
.template-card__preview > span { position:absolute; right:12px; bottom:12px; border-radius:999px; padding:7px 10px; color:#fff; background:rgba(0,31,91,.84); font-size:10px; font-weight:700; }
.store-layout .template-card__content { display:flex; flex:1; padding:22px; }
.template-card__eyebrow { display:flex; width:100%; align-items:center; justify-content:space-between; gap:10px; color:var(--muted); font-size:10px; font-weight:700; text-transform:uppercase; }
.store-layout .template-card h2 { margin:16px 0 10px; font-size:21px; line-height:1.18; }
.store-layout .template-card p { display:block; color:var(--muted); font-size:13px; line-height:1.58; }
.template-card__audience { margin-top:16px !important; }
.template-card__audience strong { color:var(--navy); }
.store-layout .template-card__price { margin-top:22px; font-size:17px; }
.store-layout .template-card__actions { display:grid; grid-template-columns:1fr; width:100%; gap:9px; margin-top:20px; }
.store-layout .template-card__actions .btn { width:100%; min-height:44px; }

@media (max-width: 1280px) {
  .store-layout .template-grid { grid-template-columns:repeat(2,minmax(280px,1fr)); }
  .home-template-card { grid-template-columns:170px minmax(0,1fr); }
  .home-template-card .template-sample { transform:scale(.89); }
}
@media (max-width: 900px) {
  .store-layout { grid-template-columns:1fr; }
  .template-filters { padding:0; overflow:hidden; }
  .template-filters__toggle { display:flex; width:100%; min-height:58px; align-items:center; justify-content:space-between; border:0; padding:0 18px; color:var(--navy); background:#fff; font-weight:800; }
  .template-filters__toggle strong { color:var(--blue); font-size:11px; }
  .template-filters__body { display:none; padding:0 18px 18px; border-top:1px solid var(--border); }
  .template-filters.is-open .template-filters__body { display:block; }
  .template-filters__body h2 { margin-top:18px; }
  .home-featured__cards { grid-template-columns:1fr; }
  .home-template-card { grid-template-columns:190px minmax(0,1fr); }
  .home-template-card .template-sample { transform:none; }
  .store-layout .template-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .store-layout { grid-template-columns:1fr; }
  .store-layout .template-grid { grid-template-columns:1fr; }
  .store-layout .template-card__preview { min-height:405px; }
  .home-template-card { grid-template-columns:1fr; justify-items:center; text-align:center; }
  .home-template-card__body { display:grid; justify-items:center; }
  .home-template-card p { max-width:420px; }
}
@media (max-width: 820px) {
  .detail-preview { position:relative; min-height:670px; overflow:hidden; }
  .detail-preview .cv-sheet { position:absolute; top:32px; left:calc(50% - 214px); transform:scale(.72); transform-origin:top left; margin:0; }
}
@media (max-width: 560px) {
  .detail-preview { min-height:504px; padding:20px; }
  .detail-preview .cv-sheet { top:24px; left:calc(50% - 155px); transform:scale(.52); }
}
@media (max-width: 360px) {
  .template-sample--store { width:250px !important; height:354px !important; }
  .template-sample--store .cv-sheet { transform:scale(.42); }
  .store-layout .template-card__preview { min-height:388px; }
}
