/* ============================================================
   AG8NTIFY — Section styles (infographics, viz, form)
   ============================================================ */

/* ---------- PROBLEM + BEFORE/AFTER ---------- */
.problem-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
@media (max-width: 940px) { .problem-grid { grid-template-columns: 1fr; gap: 48px; } }

.prob-list { display: flex; flex-direction: column; gap: 0; }
.prob-item { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.prob-item:last-child { border-bottom: 1px solid var(--line); }
.prob-item .pn { font-family: var(--mono); font-size: 12px; color: var(--gold); padding-top: 3px; }
.prob-item h4 { font-size: 17px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.prob-item p { font-size: 14px; color: var(--muted); }

/* before / after comparison viz */
.ba {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.ba-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.ba-head .label { color: var(--muted); }
.ba-toggle { display: flex; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 100px; padding: 4px; }
.ba-toggle button { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 14px; border-radius: 100px; color: var(--muted); transition: 0.3s; }
.ba-toggle button.on { background: var(--surface-2); color: var(--white); }
.ba-toggle button.on[data-mode="ai"] { color: var(--gold); }

.ba-rows { display: flex; flex-direction: column; gap: 20px; }
.ba-row .br-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.ba-row .br-top .k { color: var(--cream); }
.ba-row .br-top .v { font-family: var(--mono); color: var(--gold); font-size: 12.5px; }
.ba-bar { height: 12px; border-radius: 100px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; position: relative; }
.ba-fill { display: block; height: 100%; border-radius: 100px; width: 0; transition: width 1.1s var(--ease); }
.ba-fill.manual { background: linear-gradient(90deg, #4a443a, #6a6052); }
.ba-fill.ai { background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright)); box-shadow: 0 0 16px var(--gold-glow); }
.ba-foot { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.ba-foot .bf-k { font-size: 13px; color: var(--muted); }
.ba-foot .bf-v { font-family: var(--serif); font-size: 34px; }
.ba-foot .bf-v.save { color: var(--green); }

/* ---------- 4-LAYER OS — horizontal flowchart (static) ---------- */
.os-section { background: var(--bg-2); border-block: 1px solid var(--line); position: relative; overflow: hidden; }
.os-section::before {
  content: ''; position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%);
  width: 1000px; height: 620px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse, var(--gold-glow), transparent 66%); opacity: 0.09;
}
.os-section .wrap { position: relative; z-index: 1; }
.os-diagram { margin-top: 60px; position: relative; }

.osflow {
  display: flex; align-items: stretch; justify-content: center; gap: 0;
  width: 100vw; margin-left: calc(50% - 50vw); box-sizing: border-box;
  padding-inline: max(28px, calc((100vw - 1580px) / 2));
}
.osflow-tile {
  flex: 1 1 0; min-width: 0; position: relative;
  display: flex; flex-direction: column; gap: 11px;
  border: 1px solid var(--line-2); border-radius: 18px; padding: 24px 24px 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.012));
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.osflow-tile:hover {
  border-color: var(--gold); transform: translateY(-5px);
  box-shadow: 0 26px 64px -32px var(--gold-glow), inset 0 1px 0 rgba(255,255,255,0.05);
}
.osflow-ic {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  color: var(--gold); border: 1px solid var(--gold-deep);
  background: linear-gradient(155deg, rgba(217,164,65,0.18), rgba(217,164,65,0.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 24px -10px var(--gold-glow);
}
.osflow-k { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-top: 2px; }
.osflow-tag {
  align-self: flex-start; margin-top: auto;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-2); border-radius: 100px; padding: 4px 11px;
}
.osflow-tile h4 { font-size: 19px; color: var(--white); font-weight: 700; letter-spacing: -0.015em; }
.osflow-tile p { font-size: 13px; line-height: 1.55; color: var(--muted); }

/* connector arrow between tiles */
.osflow-arrow { flex: 0 0 32px; display: flex; align-items: center; justify-content: center; color: var(--gold-deep); align-self: center; }
.osflow-arrow svg { width: 32px; height: 20px; overflow: visible; }

/* terminal "outcomes" tile */
.osflow-tile.out {
  border-color: var(--gold-deep);
  background: linear-gradient(165deg, rgba(217,164,65,0.16), rgba(217,164,65,0.03) 72%);
}
.osflow-tile.out:hover { border-color: var(--gold-bright); }
.osflow-ic.out { color: #14110a; border: none; background: linear-gradient(155deg, var(--gold-bright), var(--gold)); }
.osflow-k.out { color: var(--gold-bright); }
.osflow-live {
  position: absolute; top: 18px; right: 18px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold);
  border: 1px solid var(--gold-deep); border-radius: 100px; padding: 4px 10px 4px 18px;
}
.osflow-live::before {
  content: ''; position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green);
}

@media (max-width: 1080px) {
  .osflow { flex-wrap: wrap; gap: 14px; width: auto; max-width: 760px; margin: 0 auto; margin-left: auto; padding-inline: 0; }
  .osflow-tile { flex: 1 1 calc(50% - 7px); }
  .osflow-arrow { display: none; }
}
@media (max-width: 560px) {
  .osflow-tile { flex: 1 1 100%; }
}

/* ---------- AGENT NETWORK ---------- */
.net-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (max-width: 940px) { .net-grid { grid-template-columns: 1fr; } }
.net-canvas-wrap { position: relative; aspect-ratio: 1 / 0.92; }
.net-canvas-wrap canvas { width: 100%; height: 100%; }

/* live feed terminal */
.term {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #060608; font-family: var(--mono); font-size: 12.5px;
  box-shadow: 0 40px 80px -50px rgba(0,0,0,0.9);
}
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-3); }
.term-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.term-bar .dot.r { background: #e0625b; } .term-bar .dot.y { background: #e0b15b; } .term-bar .dot.g { background: #6fbf73; }
.term-bar .tt { margin-left: 8px; color: var(--muted-2); font-size: 11.5px; }
.term-bar .live { margin-left: auto; color: var(--green); font-size: 11px; display: flex; align-items: center; gap: 6px; }
.term-bar .live::before { content:''; width:7px; height:7px; border-radius:50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.term-body { padding: 16px 18px; min-height: 232px; display: flex; flex-direction: column; gap: 9px; }
.term-line { display: flex; gap: 11px; align-items: baseline; opacity: 0; transform: translateY(6px); animation: feedin 0.5s var(--ease) forwards; }
@keyframes feedin { to { opacity: 1; transform: none; } }
.term-line .ts { color: var(--muted-2); flex: none; }
.term-line .atag { flex: none; padding: 1px 7px; border-radius: 5px; font-size: 11px; border: 1px solid; }
.atag.lead { color: var(--gold); border-color: rgba(217,164,65,0.4); }
.atag.qual { color: var(--green); border-color: rgba(116,214,155,0.4); }
.atag.crm { color: var(--blue); border-color: rgba(123,169,255,0.4); }
.atag.out { color: var(--violet); border-color: rgba(183,156,255,0.4); }
.atag.enr { color: var(--rose); border-color: rgba(240,149,144,0.4); }
.atag.cal { color: var(--green); border-color: rgba(116,214,155,0.4); }
.term-line .msg { color: var(--cream); }
.term-line .msg b { color: var(--white); font-weight: 500; }
.term-line .msg .dim { color: var(--muted-2); }

/* ---------- RESULTS DASHBOARD ---------- */
.dash { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
@media (max-width: 880px) { .dash { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 460px) { .dash { grid-template-columns: 1fr; } }
.stat {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  background: var(--surface); position: relative; overflow: hidden;
  transition: border-color 0.4s, transform 0.4s;
}
.stat:hover { border-color: var(--gold-deep); transform: translateY(-3px); }
.stat .sv { font-family: var(--serif); font-size: clamp(40px, 4.5vw, 56px); color: var(--gold); line-height: 1; }
.stat .sk { font-size: 14px; color: var(--white); font-weight: 600; margin-top: 8px; }
.stat .sd { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.stat .spark { position: absolute; right: 0; bottom: 0; opacity: 0.5; width: 60%; }

.charts { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
@media (max-width: 880px) { .charts { grid-template-columns: 1fr; } }
.chart-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--surface); }
.chart-card .ch-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.chart-card .ch-title { font-size: 14px; color: var(--white); font-weight: 600; }
.chart-card .ch-sub { font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.bars { display: flex; align-items: flex-end; gap: 12px; height: 180px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; justify-content: flex-end; }
.bar-col .bk { height: 100%; width: 100%; display: flex; align-items: flex-end; }
.bar-col .bf { width: 100%; border-radius: 6px 6px 0 0; height: 0; transition: height 1.2s var(--ease); background: linear-gradient(180deg, #34302a, #211f1b); }
.bar-col.hot .bf { background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep)); box-shadow: 0 0 24px -6px var(--gold-glow); }
.bar-col .blab { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.bar-col .bval { font-size: 12px; color: var(--white); font-weight: 600; }

.donut-wrap { display: flex; align-items: center; gap: 22px; }
.donut { position: relative; width: 132px; height: 132px; flex: none; }
.donut .dlabel { position: absolute; inset: 0; display: grid; place-items: center; flex-direction: column; text-align: center; }
.donut .dlabel .dv { font-family: var(--serif); font-size: 32px; color: var(--gold); line-height: 1; }
.donut .dlabel .dk { font-size: 10px; color: var(--muted-2); font-family: var(--mono); }
.donut-legend { font-size: 13px; color: var(--muted); }
.donut-legend p { margin-bottom: 4px; }

/* growth trajectory */
.traj svg { width: 100%; height: 190px; display: block; }
.traj-legend { display: flex; gap: 22px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.traj-legend span { display: inline-flex; align-items: center; gap: 8px; }
.traj-legend i { width: 16px; height: 2.5px; border-radius: 2px; display: inline-block; }
.traj-legend .lg-ai { background: var(--gold-bright); box-shadow: 0 0 6px var(--gold-glow); }
.traj-legend .lg-man { background: rgba(150,145,135,0.8); }

.dash-note { text-align: center; margin-top: 22px; font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); }

/* ---------- CAPABILITIES ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 980px) { .cap-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .cap-grid { grid-template-columns: 1fr; } }
.cap {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--surface);
  transition: border-color 0.4s, background 0.4s, transform 0.4s; position: relative; overflow: hidden;
}
.cap::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 0%, rgba(217,164,65,0.1), transparent 55%); opacity: 0; transition: opacity 0.5s; }
.cap:hover { border-color: var(--gold-deep); transform: translateY(-4px); }
.cap:hover::after { opacity: 1; }
.cap .ci { width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 10px; display: grid; place-items: center; color: var(--gold); margin-bottom: 18px; }
.cap h4 { font-size: 15.5px; color: var(--white); font-weight: 600; margin-bottom: 6px; }
.cap p { font-size: 13px; color: var(--muted); }

/* ---- PRODUCT SHOWCASE ---- */
.showcase-grid { display: grid; grid-template-columns: 1.7fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; margin-top: 52px; }
@media (max-width: 820px) { .showcase-grid { grid-template-columns: 1fr; grid-template-rows: auto; } }
.shot { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-3); position: relative; transition: border-color 0.4s, transform 0.4s; }
.shot:hover { border-color: var(--gold-deep); transform: translateY(-3px); }
.shot.main { grid-row: 1 / 3; }
.shot.main .shot-body { height: 420px; }
@media (max-width: 820px) { .shot.main .shot-body { height: 300px; } .shot.side .shot-body { height: 220px; } }
.shot.side .shot-body { height: 100%; min-height: 200px; }
.shot-chrome { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.shot-chrome .cdot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.shot-chrome .curl { margin-left: 10px; font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.shot image-slot { width: 100%; height: 100%; display: block; }

/* ---- LOGOS STRIP ---- */
.logos { padding-block: 56px; border-block: 1px solid var(--line); background: var(--bg-2); }
.logos .label { display: block; text-align: center; margin-bottom: 28px; }
.logos-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; align-items: center; max-width: 900px; margin: 0 auto; }
@media (max-width: 720px) { .logos-row { grid-template-columns: repeat(3, 1fr); } }
.logos-row image-slot { width: 100%; height: 56px; display: block; opacity: 0.85; transition: opacity 0.3s; }
.logos-row image-slot:hover { opacity: 1; }

/* ---------- USE CASES ---------- */
.uc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 820px) { .uc-grid { grid-template-columns: 1fr; } }
.uc {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
  background: var(--surface); transition: border-color 0.4s, transform 0.4s; position: relative; overflow: hidden;
}
.uc:hover { border-color: var(--gold-deep); transform: translateY(-4px); }
.uc .uk { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--gold); text-transform: uppercase; }
.uc-ic { width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 12px; display: grid; place-items: center; color: var(--gold); margin-bottom: 20px; transition: border-color 0.4s, background 0.4s; }
.uc:hover .uc-ic { border-color: var(--gold); background: rgba(217,164,65,0.07); }
.uc h3 { font-family: var(--serif); font-size: 30px; color: var(--white); margin: 14px 0 12px; line-height: 1.05; }
.uc p { font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.uc .um { display: flex; align-items: center; gap: 9px; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--gold); }
.uc .um::before { content: '↗'; }

/* ---------- ROI CALCULATOR ---------- */
.roi-section { background: var(--bg-2); border-block: 1px solid var(--line); }
.roi-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (max-width: 940px) { .roi-grid { grid-template-columns: 1fr; } }
.roi-controls { display: flex; flex-direction: column; gap: 30px; }
.roi-field .rf-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.roi-field .rf-k { font-size: 14px; color: var(--cream); }
.roi-field .rf-v { font-family: var(--serif); font-size: 26px; color: var(--gold); }
.roi-field input[type=range] { -webkit-appearance: none; width: 100%; height: 3px; border-radius: 4px; background: var(--line-2); outline: none; }
.roi-field input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--gold-bright); cursor: pointer; box-shadow: 0 0 0 5px rgba(217,164,65,0.16), 0 4px 12px rgba(0,0,0,0.5); transition: transform 0.2s; }
.roi-field input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.roi-field input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border: none; border-radius: 50%; background: var(--gold-bright); cursor: pointer; box-shadow: 0 0 0 5px rgba(217,164,65,0.16); }

.roi-out {
  background: linear-gradient(165deg, var(--bg-3), #0b0a08);
  border: 1px solid var(--gold-deep); border-radius: var(--radius); padding: 38px;
  position: relative; overflow: hidden;
  box-shadow: 0 0 70px -34px var(--gold-glow);
}
.roi-out .ro-glow { position: absolute; top: -40%; right: -20%; width: 70%; aspect-ratio: 1; background: radial-gradient(circle, rgba(217,164,65,0.16), transparent 65%); pointer-events: none; }
.roi-out .ro-k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.roi-out .ro-big { font-family: var(--serif); font-size: clamp(56px, 8vw, 88px); color: var(--gold-bright); line-height: 1; margin: 10px 0 6px; }
.roi-out .ro-sub { font-size: 14px; color: var(--muted); }
.roi-out .ro-split { display: flex; gap: 0; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.roi-out .ro-cell { flex: 1; }
.roi-out .ro-cell + .ro-cell { border-left: 1px solid var(--line); padding-left: 24px; }
.roi-out .ro-cell .cv { font-family: var(--serif); font-size: 34px; color: var(--white); line-height: 1; }
.roi-out .ro-cell .ck { font-size: 12px; color: var(--muted-2); margin-top: 6px; }

/* ---------- PROCESS TIMELINE ---------- */
.timeline { position: relative; margin-top: 60px; }
.timeline .tl-track { position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: var(--line); }
.timeline .tl-fill { position: absolute; left: 0; top: 27px; height: 2px; background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright)); width: 0; transition: width 1.4s var(--ease); box-shadow: 0 0 12px var(--gold-glow); }
.tl-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 820px) { .tl-steps { grid-template-columns: 1fr 1fr; gap: 40px 24px; } .timeline .tl-track, .timeline .tl-fill { display: none; } }
@media (max-width: 480px) { .tl-steps { grid-template-columns: 1fr; } }
.tl-step { position: relative; padding-top: 64px; }
.tl-ic { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 11px; display: grid; place-items: center; color: var(--gold); margin-bottom: 16px; transition: border-color 0.5s, background 0.5s; }
.tl-step.on .tl-ic { border-color: var(--gold-deep); background: rgba(217,164,65,0.06); }
.tl-step .tl-node {
  position: absolute; top: 16px; left: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg-2); border: 2px solid var(--line-2); display: grid; place-items: center;
  transition: border-color 0.5s, background 0.5s, box-shadow 0.5s;
}
.tl-step .tl-node::after { content:''; width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); transition: 0.5s; }
.tl-step.on .tl-node { border-color: var(--gold); box-shadow: 0 0 0 6px rgba(217,164,65,0.12); }
.tl-step.on .tl-node::after { background: var(--gold-bright); box-shadow: 0 0 10px var(--gold); }
.tl-step .tn { font-family: var(--mono); font-size: 12px; color: var(--gold); }
.tl-step h4 { font-family: var(--serif); font-size: 26px; color: var(--white); margin: 6px 0 10px; }
.tl-step p { font-size: 13.5px; color: var(--muted); }

/* ---------- WHY ---------- */
.why-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 84px); align-items: center; }
@media (max-width: 940px) { .why-grid { grid-template-columns: 1fr; } }
.why-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .why-cards { grid-template-columns: 1fr; } }
.why-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--surface); transition: 0.4s; }
.why-card:hover { border-color: var(--gold-deep); transform: translateY(-3px); }
.why-card .wk { display: flex; align-items: center; gap: 9px; font-size: 15px; color: var(--white); font-weight: 600; margin-bottom: 10px; }
.why-card .wk::before { content:''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold-glow); }
.why-card p { font-size: 13px; color: var(--muted); }

/* ---------- MULTI-STEP FORM / FINAL CTA ---------- */
.cta-section { position: relative; overflow: hidden; }
.cta-glow { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: min(900px, 110vw); aspect-ratio: 1.4; background: radial-gradient(ellipse at top, rgba(217,164,65,0.13), transparent 60%); pointer-events: none; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (max-width: 940px) { .cta-grid { grid-template-columns: 1fr; gap: 48px; } }

.qual {
  background: linear-gradient(165deg, var(--bg-3), #0a0a0d);
  border: 1px solid var(--line-2); border-radius: 22px; padding: 32px;
  box-shadow: 0 50px 100px -50px rgba(0,0,0,0.9);
}
.qual-prog { display: flex; align-items: center; gap: 8px; margin-bottom: 26px; }
.qual-prog .qp { flex: 1; height: 3px; border-radius: 4px; background: var(--line); overflow: hidden; }
.qual-prog .qp .qpf { display: block; height: 100%; width: 0; background: var(--gold-bright); transition: width 0.5s var(--ease); }
.qual-prog .qpn { font-family: var(--mono); font-size: 11px; color: var(--muted-2); white-space: nowrap; }
.qual-step { display: none; animation: qstep 0.5s var(--ease); }
.qual-step.active { display: block; }
@keyframes qstep { from { opacity: 0; transform: translateX(16px); } }
.qual-step .qq { font-family: var(--serif); font-size: 25px; color: var(--white); margin-bottom: 4px; line-height: 1.1; }
.qual-step .qhint { font-size: 13px; color: var(--muted-2); margin-bottom: 22px; }
.qopts { display: flex; flex-direction: column; gap: 9px; }
.qopt {
  display: flex; align-items: center; gap: 13px; text-align: left; width: 100%;
  border: 1px solid var(--line); border-radius: 12px; padding: 15px 17px; background: var(--surface);
  transition: 0.25s; color: var(--cream); font-size: 14.5px;
}
.qopt:hover { border-color: var(--gold-deep); background: var(--surface-2); }
.qopt.sel { border-color: var(--gold); background: rgba(217,164,65,0.07); }
.qopt .qbox { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line-2); flex: none; display: grid; place-items: center; transition: 0.25s; color: transparent; font-size: 12px; }
.qopt.sel .qbox { background: var(--gold); border-color: var(--gold); color: #14110a; }
.qfields { display: flex; flex-direction: column; gap: 14px; }
.qfield label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; font-family: var(--mono); letter-spacing: 0.05em; }
.qfield input {
  width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 11px;
  padding: 13px 15px; color: var(--white); font-size: 14.5px; transition: 0.25s;
}
.qfield input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,164,65,0.12); }
.qual-nav { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.qual-nav .qback { font-size: 13px; color: var(--muted); padding: 12px 4px; transition: color 0.25s; }
.qual-nav .qback:hover { color: var(--white); }
.qual-nav .btn { margin-left: auto; }
.qual-done { text-align: center; padding: 20px 0; display: none; }
.qual-done.show { display: block; animation: qstep 0.5s var(--ease); }
.qual-done .qd-icon { width: 60px; height: 60px; margin: 0 auto 20px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; color: var(--gold); box-shadow: 0 0 40px -10px var(--gold-glow); }
.qual-done h3 { font-family: var(--serif); font-size: 30px; color: var(--white); margin-bottom: 10px; }
.qual-done p { font-size: 14px; color: var(--muted); max-width: 36ch; margin: 0 auto; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 64px 40px; background: var(--bg-2); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 50px; }
.footer .tagline { font-size: 14px; color: var(--muted); max-width: 30ch; margin-top: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; text-align: right; }
.footer-links a { font-size: 14px; color: var(--muted); transition: color 0.25s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted-2); text-transform: uppercase; flex-wrap: wrap; gap: 12px; }
/* keep the brand name out of caps even inside the uppercased footer line */
.footer-bottom .brand-name { text-transform: none; }
@media (max-width: 600px) { .footer-links { text-align: left; } }
