/* =========================================================
   DONARI V3 — multi-page components
   (loaded after styles.css + base44-layer.css)
   ========================================================= */

/* ---------- nav: current page ---------- */
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--purple); }

/* ---------- shared bits ---------- */
.lede { font-size: 19px; color: #3A3A3C; max-width: 560px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: baseline; font-size: 16.5px; }
.check-list li::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 5px; translate: 0 3px;
  background: var(--purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.x-list li::before {
  background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7 7 17' fill='none' stroke='%230F0F0F' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  box-shadow: inset 0 0 0 1px var(--line);
}
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; background: var(--purple-soft); color: var(--purple); }
.tag--dark { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- hero (home) ---------- */
.hero__note { margin-top: 16px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.hero__note b { color: var(--purple); font-weight: 500; }

/* ---------- buyer fork (home) ---------- */
.fork { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fork__card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; min-height: 440px;
  padding: 40px; border-radius: var(--radius);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.fork__card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), 0 40px 70px -40px rgba(15,15,15,.35); }
.fork__card--dark { background: var(--ink); color: #fff; box-shadow: none; }
.fork__card--dark .eyebrow { color: rgba(255,255,255,.55); }
.fork__card h3 { font-size: clamp(36px, 3.6vw, 54px); letter-spacing: -0.045em; line-height: 1; margin-bottom: 18px; }
.fork__card h3 em { color: var(--purple); }
.fork__card--dark h3 em { color: var(--purple-light); }
.fork__card > p:not(.eyebrow) { color: var(--muted); max-width: 420px; font-size: 17px; }
.fork__card--dark > p:not(.eyebrow) { color: rgba(255,255,255,.65); }
.fork__card ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.fork__card li { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .03em; display: flex; gap: 10px; align-items: center; }
.fork__card li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--purple); }
.fork__card--dark li::before { background: var(--purple-light); }
.fork__go { margin-top: auto; padding-top: 36px; display: flex; align-items: center; justify-content: space-between; font-weight: 500; font-size: 17px; }
.fork__card--dark .arrow { border-color: #fff; }
.fork__card--dark .arrow::before { background: #fff; }
.fork__card--dark .arrow::after { border-color: #fff; }
.fork__card:hover .arrow { background: var(--purple); border-color: var(--purple); transform: translateX(4px); }
.fork__card:hover .arrow::before { background: #fff; }
.fork__card:hover .arrow::after { border-color: #fff; }

/* ---------- sub-page hero ---------- */
.page-hero { padding: 110px 0 70px; }
.page-hero__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 60px; align-items: end; }
.page-hero h1 { font-size: clamp(54px, 7.2vw, 108px); font-weight: 500; letter-spacing: -0.055em; line-height: .96; }
.page-hero h1 em { color: var(--purple); }
.page-hero .lede { margin-bottom: 28px; }
.page-hero__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.page-hero__fit { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.page-hero__fit b { color: var(--ink); font-weight: 500; }

/* ---------- numbered cards ("what you get") ---------- */
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ncard { background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); padding: 28px; display: flex; flex-direction: column; }
.ncard__n { font-family: var(--font-mono); font-size: 12px; color: var(--purple); margin-bottom: 48px; }
.ncard h3 { font-size: 23px; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 10px; }
.ncard p { color: var(--muted); font-size: 15.5px; }

/* ---------- two big reasons ---------- */
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.reason { border-radius: var(--radius); padding: 44px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.reason__big { font-size: clamp(64px, 8vw, 120px); font-weight: 500; letter-spacing: -0.06em; line-height: .9; margin-bottom: 26px; }
.reason__big em { color: var(--purple); }
.reason h3 { font-size: 28px; margin-bottom: 12px; }
.reason p { color: var(--muted); max-width: 460px; }
.reason--purple { position: relative; overflow: hidden; background: var(--purple); color: #fff; box-shadow: none; }
.reason--purple::before { content: ""; position: absolute; inset: 0; background: var(--grain); background-size: 160px; opacity: .4; mix-blend-mode: overlay; pointer-events: none; }
.reason--purple > * { position: relative; }
.reason--purple p { color: rgba(255,255,255,.82); }
.reason--purple .reason__big em { color: #fff; }
.niches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }

/* ---------- promise / never promise ---------- */
.promise { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.promise__col { border-radius: var(--radius); padding: 40px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.promise__col h3 { font-size: 30px; margin-bottom: 26px; }
.promise__col--never { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.promise__note { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }

/* ---------- with you / for you ---------- */
.modes { background: var(--ink); color: #fff; border-radius: 28px; padding: 56px; position: relative; overflow: hidden; }
.modes__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 40px; }
.modes__head .h2 em { color: var(--purple-light); }
.switch { display: inline-flex; padding: 5px; border-radius: 12px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.switch button { height: 42px; padding: 0 20px; border-radius: 8px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.6); transition: background .25s, color .25s; }
.switch button.is-active { background: var(--purple); color: #fff; }
.mode-panel { display: none; grid-template-columns: 1fr 1.3fr; gap: 40px; }
.mode-panel.is-active { display: grid; animation: frameIn .5s var(--ease) both; }
.mode-panel h3 { font-size: clamp(30px, 3vw, 42px); letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 14px; }
.mode-panel > div > p { color: rgba(255,255,255,.65); max-width: 420px; }
.mode-panel .check-list li { color: rgba(255,255,255,.9); }
.mode-panel .check-list li::before { background-color: var(--purple-light); }
.mode-rows { display: grid; gap: 1px; background: rgba(255,255,255,.08); border-radius: 14px; overflow: hidden; }
.mode-row { background: var(--graphite); padding: 18px 22px; display: grid; grid-template-columns: 170px 1fr; gap: 16px; }
.mode-row b { font-weight: 500; }
.mode-row span { color: rgba(255,255,255,.65); font-size: 15.5px; }
@keyframes frameIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- add-ons ---------- */
.addons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.addon { border-radius: 16px; padding: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.addon h4 { font-size: 19px; letter-spacing: -0.02em; margin-bottom: 8px; display: flex; justify-content: space-between; gap: 10px; }
.addon p { color: var(--muted); font-size: 14.5px; }

/* ---------- big quote (volume) ---------- */
.bigquote { max-width: 1000px; }
.bigquote blockquote { margin: 0; font-size: clamp(32px, 3.6vw, 52px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.12; }
.bigquote blockquote em { color: var(--purple); }
.bigquote p { margin-top: 24px; color: var(--muted); max-width: 640px; }

/* ---------- comms: daily update mock ---------- */
.comms { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.update-card { background: var(--surface); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line), 0 40px 70px -45px rgba(15,15,15,.35); padding: 22px; font-size: 15px; }
.update-card__top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.update-card__av { width: 38px; height: 38px; border-radius: 10px; background: var(--purple); color: #fff; display: grid; place-items: center; font-weight: 600; letter-spacing: -0.05em; }
.update-card__top b { font-weight: 600; display: block; }
.update-card__top small { color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; }
.update-card__body p { margin-bottom: 10px; }
.update-bars { display: grid; gap: 8px; margin: 14px 0; }
.update-bar { display: grid; grid-template-columns: 110px 1fr 54px; gap: 10px; align-items: center; font-family: var(--font-mono); font-size: 11.5px; }
.update-bar i { display: block; height: 8px; border-radius: 4px; background: var(--soft); overflow: hidden; position: relative; }
.update-bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--purple); border-radius: 4px; }
.update-bar--warn i::after { background: #E5A33A; }
.update-card__foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }

/* ---------- systems modules ---------- */
.modules { display: grid; gap: 8px; }
.module { display: grid; grid-template-columns: 70px 200px 1fr auto; gap: 18px; align-items: center; padding: 18px 22px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.module__id { font-family: var(--font-mono); font-size: 13px; color: var(--purple); }
.module b { font-weight: 500; font-size: 19px; letter-spacing: -0.02em; }
.module span { color: var(--muted); font-size: 15.5px; }
.module--pilot { box-shadow: inset 0 0 0 1.5px var(--purple); }

/* ---------- audit: lenses, sample, form ---------- */
.lens { display: flex; flex-direction: column; }
.lens .tag { align-self: flex-start; margin-bottom: 40px; }
.lens h3 { font-size: 30px; margin-bottom: 12px; }
.lens p { color: var(--muted); font-size: 15.5px; }
.lens__to { margin-top: auto; padding-top: 22px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; display: flex; justify-content: space-between; border-top: 1px solid var(--line); }
.lens__to b { color: var(--purple); font-weight: 500; }

.sample { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.doc {
  background: #fff; border-radius: 6px; padding: 34px 34px 28px; position: relative;
  box-shadow: 0 1px 0 rgba(15,15,15,.05), 0 50px 80px -50px rgba(15,15,15,.45), inset 0 0 0 1px var(--line);
  rotate: -1.5deg;
}
.doc::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--purple); border-radius: 6px 6px 0 0; }
.doc__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; }
.doc__head b { font-size: 22px; letter-spacing: -0.03em; }
.doc__head small { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.gap { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.gap__n { font-family: var(--font-mono); font-size: 12px; color: var(--muted); padding-top: 3px; }
.gap b { display: block; font-weight: 500; margin-bottom: 4px; }
.gap p { color: var(--muted); font-size: 14px; }
.gap--top .gap__n { color: var(--purple); }
.gap--top b::after { content: "Costing you the most"; margin-left: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--purple); background: var(--purple-soft); padding: 3px 7px; border-radius: 4px; vertical-align: 2px; }
.redact { display: inline-block; height: 10px; border-radius: 3px; background: #E7E4F2; vertical-align: middle; }

.audit-wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: start; }
.audit-wrap .check-list { margin-top: 26px; }
.aform { background: var(--surface); border-radius: 22px; padding: 32px; box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -50px rgba(15,15,15,.35); display: grid; gap: 18px; }
.aform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.aform label, .aform fieldset { display: grid; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 0; padding: 0; margin: 0; }
.aform legend { padding: 0; margin-bottom: 8px; }
.aform input[type=text], .aform input[type=email], .aform input[type=url], .aform select, .aform textarea {
  font: inherit; font-family: var(--font-sans); font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; outline: none; width: 100%;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.aform input:focus, .aform select:focus, .aform textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(100,80,223,.14); background: #fff; }
.aform .is-invalid { border-color: #e5484d !important; box-shadow: 0 0 0 4px rgba(229,72,77,.12) !important; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 10px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font-family: var(--font-sans); font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--ink); transition: .2s; }
.seg span small { font-size: 13px; color: var(--muted); }
.seg input:checked + span { background: var(--purple-soft); box-shadow: inset 0 0 0 1.5px var(--purple); }
.seg label { display: block; position: relative; }
.aform [data-for] { display: none; }
.aform[data-who="brand"] [data-for="brand"], .aform[data-who="agency"] [data-for="agency"] { display: grid; }
.aform__fine { font-size: 13px; color: var(--muted); text-align: center; }
.aform__result { display: none; padding: 18px; border-radius: 12px; background: var(--purple-soft); color: var(--ink); font-size: 15.5px; }
.aform__result b { display: block; color: var(--purple); margin-bottom: 4px; font-weight: 600; }
.aform.is-sent > :not([data-audit-result]) { display: none !important; }
.aform.is-sent [data-audit-result] { display: block; }

/* ---------- next-step strip (end of sub-pages) ---------- */
.next { text-align: center; padding: 110px 0 40px; }
.next h2 { font-size: clamp(44px, 5.6vw, 80px); letter-spacing: -0.05em; line-height: 1; margin-bottom: 18px; }
.next h2 em { color: var(--purple); }
.next p { color: var(--muted); max-width: 520px; margin: 0 auto 30px; }

/* ---------- work page: our own system (board mock) ---------- */
.board { background: var(--ink); border-radius: 22px; padding: 22px; color: #fff; overflow-x: auto; }
.board__bar { display: flex; align-items: center; gap: 12px; padding: 4px 6px 18px; font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.55); }
.board__bar b { color: #fff; font-weight: 500; }
.board__cols { display: grid; grid-template-columns: repeat(5, minmax(190px, 1fr)); gap: 10px; }
.bcol { background: var(--graphite); border-radius: 12px; padding: 12px; min-height: 300px; }
.bcol h5 { margin: 0 0 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.55); display: flex; justify-content: space-between; font-weight: 500; }
.bcard { background: #242427; border-radius: 9px; padding: 11px 12px; margin-bottom: 8px; font-size: 13.5px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.bcard code { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--purple-light); margin-bottom: 6px; }
.bcard small { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--font-mono); font-size: 10.5px; color: rgba(255,255,255,.45); }
.system-points { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 16px; }
.system-points div { padding: 16px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; }
.system-points b { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--purple); margin-bottom: 6px; font-weight: 500; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .fork, .reasons, .promise, .comms, .sample, .audit-wrap, .page-hero__grid { grid-template-columns: 1fr; }
  .cards4, .addons { grid-template-columns: repeat(2, 1fr); }
  .cards3 { grid-template-columns: 1fr; }
  .mode-panel { grid-template-columns: 1fr; }
  .module { grid-template-columns: 60px 1fr; }
  .module span, .module .tag { grid-column: 2; }
  .system-points { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .cards4, .addons, .aform__row, .seg { grid-template-columns: 1fr; }
  .modes { padding: 32px 22px; }
  .mode-row { grid-template-columns: 1fr; gap: 4px; }
  .fork__card, .reason, .promise__col { padding: 28px; }
}
