/* ==========================================================
   Dream Element — site styles
   Change colors or fonts here; every page picks them up.
   ========================================================== */

@font-face { font-family: "Fraunces"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/fraunces-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/fraunces-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/fraunces-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --plum: #3F1255;         /* brand color, from the logo mark */
  --lilac: #C9B6E4;
  --paper: #F7F4EF;
  --paper-2: #EFE8F4;
  --ink: #1C1621;
  --ink-soft: #5C5463;
  --rule: #DED6D3;
  --accent: var(--plum);
  --accent-ink: #FFFFFF;
  --mark: var(--plum);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15111A;
    --paper-2: #211A29;
    --ink: #F1ECF5;
    --ink-soft: #ABA2B4;
    --rule: #352C3E;
    --accent: var(--lilac);
    --accent-ink: #15111A;
    --mark: var(--lilac);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 21px; font-weight: 500;
  text-decoration: none; letter-spacing: -0.01em;
}
.brand svg { width: 30px; height: 30px; color: var(--mark); }
.nav { display: flex; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav a:not(.nav-cta) { display: none; } }
.nav-cta { color: var(--accent) !important; font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding: 112px 0 96px; border-bottom: 1px solid var(--rule); }
.eyebrow {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 20px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(42px, 7vw, 84px); line-height: 1.02;
  letter-spacing: -0.025em; margin: 0 0 28px; max-width: 14ch;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p.lede { font-size: 20px; color: var(--ink-soft); max-width: 46ch; margin: 0 0 40px; }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-weight: 600; font-size: 15px;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-quiet {
  background: transparent; color: var(--ink);
  border: 1px solid var(--rule); margin-left: 10px;
}

/* ---------- Sections ---------- */
section { padding: 96px 0; border-bottom: 1px solid var(--rule); }
.section-head {
  display: grid; grid-template-columns: 1fr 2fr; gap: 48px; margin-bottom: 56px;
}
.section-head h2 {
  font-family: var(--serif); font-weight: 400; font-size: 40px;
  line-height: 1.1; letter-spacing: -0.02em; margin: 0;
}
.section-head p { color: var(--ink-soft); margin: 6px 0 0; max-width: 52ch; }
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  section { padding: 72px 0; }
}

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); }
.service {
  padding: 32px 28px 36px 0; border-bottom: 1px solid var(--rule);
}
.service:not(:nth-child(3n)) { border-right: 1px solid var(--rule); }
.service:not(:nth-child(3n+1)) { padding-left: 28px; }
.service .num { font-family: var(--serif); color: var(--accent); font-size: 15px; }
.service h3 { font-size: 19px; font-weight: 600; margin: 10px 0 10px; letter-spacing: -0.01em; }
.service p { color: var(--ink-soft); margin: 0; font-size: 16px; }
@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }
  .service { border-right: 0 !important; padding: 28px 0 !important; }
}

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0 0 10px; }
.step .label { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.step p { color: var(--ink-soft); margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 32px; } }

/* About / sectors */
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 64px; }
.about-grid p { margin: 0 0 18px; max-width: 60ch; }
.sectors { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.sectors li {
  padding: 14px 0; border-bottom: 1px solid var(--rule);
  font-family: var(--serif); font-size: 22px;
}
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Apps */
.apps-box {
  position: relative; overflow: hidden;
  background: var(--plum); color: #fff; border-radius: 20px; padding: 56px 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.apps-box::after {
  content: ""; position: absolute; right: -150px; top: -170px; width: 380px; height: 380px;
  background: url("img/mark-white.svg") center / contain no-repeat; opacity: .06; pointer-events: none;
}
.apps-box > * { position: relative; z-index: 1; }
.apps-box h2 { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
.apps-box p { color: var(--lilac); margin: 0; }
.app-list { list-style: none; margin: 0; padding: 0; }
.app-list li { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.18); display: flex; justify-content: space-between; gap: 16px; }
.app-list li:last-child { border-bottom: 0; }
.app-list a { color: #fff; }
.app-list .status { font-size: 13px; color: var(--lilac); white-space: nowrap; }
@media (max-width: 820px) { .apps-box { grid-template-columns: 1fr; padding: 32px 24px; } }

/* Contact */
.contact { text-align: center; border-bottom: 0; }
.contact h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.02em; margin: 0 0 16px; }
.contact p { color: var(--ink-soft); margin: 0 auto 32px; max-width: 44ch; }
.contact .email { font-family: var(--serif); font-size: 24px; display: block; margin-top: 24px; color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 40px 0; font-size: 14px; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.footer-links { display: flex; gap: 22px; }

/* ---------- Legal pages ---------- */
.legal { padding: 80px 0 96px; border-bottom: 0; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: 52px; letter-spacing: -0.02em; margin: 0 0 8px; }
.legal .updated { color: var(--ink-soft); margin: 0 0 48px; }
.legal h2 { font-size: 20px; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 20px; }

/* ---------- Start a project ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--plum); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.start-page { --card: #FFFFFF; --field: #FFFFFF; --field-line: #8E8495; --error: #A1241B; }
@media (prefers-color-scheme: dark) { .start-page { --card: #1E1826; --field: #15111A; --field-line: #7E7487; --error: #F4A49D; } }

.start-layout { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; min-height: calc(100vh - 69px); }

/* Side panel: the one bold element. Plum field, the tracker drawn as the network mark. */
.start-aside { background: var(--plum); color: #fff; position: relative; overflow: hidden; }
.start-aside::before {
  content: ""; position: absolute; width: 520px; height: 520px; left: -260px; bottom: -200px;
  background: url("img/mark-white.svg") center / contain no-repeat; opacity: .07; pointer-events: none;
}
.aside-inner { position: sticky; top: 69px; padding: 56px 36px 48px 40px; display: flex; flex-direction: column; gap: 48px; }
.aside-title { font-family: var(--serif); font-size: 22px; margin: 0 0 18px; color: #fff; }

.tracker-wrap { display: none; }
.js [data-path="questions"] .tracker-wrap { display: block; }
.tracker { list-style: none; margin: 0; padding: 0; position: relative; --progress: 0; }
.tracker::before, .tracker::after { content: ""; position: absolute; left: 13px; top: 14px; width: 2px; }
.tracker::before { bottom: 14px; background: rgba(255,255,255,.22); }
.tracker::after { height: calc((100% - 28px) * var(--progress)); background: var(--lilac); transition: height .3s ease; }
.tracker li { position: relative; z-index: 1; }
.tracker li + li { margin-top: 6px; }
.tracker button {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 44px; padding: 4px 8px 4px 0;
  background: none; border: 0; color: rgba(255,255,255,.72); font: 400 16px/1.3 var(--sans); text-align: left; cursor: pointer; border-radius: 8px;
}
.tracker button:disabled { cursor: default; color: rgba(255,255,255,.55); }
.tracker button:not(:disabled):hover .tracker-label { text-decoration: underline; text-underline-offset: 3px; }
.tracker button:focus-visible { outline-color: #fff; }
.node { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); background: var(--plum); position: relative; }
.tracker .done .node { border-color: var(--lilac); background: var(--lilac); }
.tracker .done .node::after { content: ""; position: absolute; left: 8px; top: 4px; width: 7px; height: 12px; border: solid var(--plum); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.tracker .done button { color: #fff; }
.tracker .current .node { border-color: #fff; border-width: 2px; box-shadow: 0 0 0 5px rgba(201,182,228,.35); }
.tracker .current .node::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.tracker .current button { color: #fff; font-weight: 600; }

.next-list { margin: 0; padding: 0 0 0 20px; color: var(--lilac); font-size: 15px; line-height: 1.55; }
.next-list li { padding-left: 4px; margin-bottom: 10px; }
.next-list li::marker { color: #fff; font-family: var(--serif); }

/* Main column */
.start-main { padding: 64px clamp(20px, 5vw, 72px) 96px; max-width: 860px; }
.start-main h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.6vw, 54px); line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 16px; max-width: 16ch; }
.start-lede { font-size: 18px; color: var(--ink-soft); margin: 0 0 40px; max-width: 54ch; }

.choose { border: 0; padding: 0; margin: 0 0 32px; min-width: 0; }
.choose legend { font-weight: 600; font-size: 17px; padding: 0; margin-bottom: 14px; }
.choose-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.choice { position: relative; cursor: pointer; display: block; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-body {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 18px 18px 48px; position: relative;
  border: 1.5px solid var(--rule); border-radius: 14px; background: transparent; transition: border-color .15s ease, background-color .15s ease;
}
.choice-body::before { content: ""; position: absolute; left: 18px; top: 20px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--field-line); background: var(--field); }
.choice:hover .choice-body { border-color: var(--accent); }
.choice input:checked + .choice-body { border-color: var(--accent); background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:checked + .choice-body::before { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 45%, var(--field) 50%); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--accent); outline-offset: 3px; }
.choice-title { font-weight: 600; font-size: 16px; }
.choice-note { font-size: 14px; color: var(--ink-soft); line-height: 1.45; }
@media (max-width: 760px) { .choose-options { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: clamp(24px, 4vw, 44px); }
.js .panel { display: none; }
.js .panel.active { display: block; }
.card-title { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; margin: 0 0 24px; }
.card > p { margin: 0 0 16px; }

.step-count { font-size: 14px; color: var(--ink-soft); margin: 0 0 6px; }
.no-js .step-count, html:not(.js) .step-count { display: none; }
.step { padding: 0; border: 0; }
.step-title { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 32px); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 28px; }
.step-title:focus { outline: none; }
html:not(.js) .step { margin-bottom: 48px; }

.field { margin: 0 0 26px; }
.field label { display: block; font-weight: 600; font-size: 16px; line-height: 1.4; margin-bottom: 8px; }
.field input, .field textarea {
  display: block; width: 100%; font: 400 17px/1.5 var(--sans); color: var(--ink); min-height: 48px;
  background: var(--field); border: 1.5px solid var(--field-line); border-radius: 10px; padding: 11px 14px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover, .field textarea:hover { border-color: var(--ink-soft); }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.field-hint { font-size: 14px; line-height: 1.5; color: var(--ink-soft); margin: 8px 0 0; }
.field-error { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; font-weight: 600; color: var(--error); margin: 8px 0 0; }
.field-error[hidden] { display: none; }
.field-error::before { content: "!"; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--error); color: var(--card); font-size: 13px; line-height: 20px; text-align: center; margin-top: 1px; }
.tag { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--paper-2); color: var(--ink-soft); vertical-align: 2px; }

.group { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
.group legend { font-weight: 600; font-size: 16px; padding: 0; margin-bottom: 4px; }
.group legend + .options { margin-top: 10px; }
.group .field-hint { margin: 0 0 12px; }
.options { display: flex; flex-wrap: wrap; gap: 10px; }
.option { position: relative; cursor: pointer; display: inline-flex; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option input + .mark + span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 10px 16px 10px 44px;
  border: 1.5px solid var(--rule); border-radius: 12px; font-size: 15px; line-height: 1.35; background: var(--field);
  transition: border-color .12s ease, background-color .12s ease;
}
.option .mark { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; border: 2px solid var(--field-line); background: var(--field); z-index: 1; }
.option input[type=checkbox] + .mark { border-radius: 5px; }
.option input[type=radio] + .mark { border-radius: 50%; }
.option:hover input + .mark + span { border-color: var(--accent); }
.option input:checked + .mark + span { border-color: var(--accent); background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 600; }
.option input:checked + .mark { border-color: var(--accent); background: var(--accent); }
.option input[type=checkbox]:checked + .mark::after { content: ""; position: absolute; left: 4px; top: 0; width: 5px; height: 10px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.option input[type=radio]:checked + .mark { background: radial-gradient(circle, var(--accent-ink) 0 30%, var(--accent) 34%); }
.option input:focus-visible + .mark + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.review { border-top: 1px solid var(--rule); margin: 8px 0 20px; padding-top: 24px; }
.review h4 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 0 0 16px; }
.review-section { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.review-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.review-title { font-weight: 600; margin: 0 0 6px; }
.review dl { margin: 0; display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 6px 16px; font-size: 15px; }
.review dt { color: var(--ink-soft); }
.review dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-empty { margin: 0; font-size: 15px; color: var(--ink-soft); }
@media (max-width: 560px) { .review dl { grid-template-columns: 1fr; gap: 2px; } .review dd { margin-bottom: 8px; } }
.link-btn { background: none; border: 0; padding: 6px 4px; min-height: 32px; font: 600 15px var(--sans); color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.fine { font-size: 14px; color: var(--ink-soft); margin: 0 0 24px; }
.form-nav { display: flex; gap: 12px; align-items: center; border-top: 1px solid var(--rule); padding-top: 24px; margin-top: 8px; }
.form-nav .btn { border: 1.5px solid transparent; cursor: pointer; font-family: var(--sans); min-height: 48px; }
.form-nav .btn-quiet { margin-left: 0; border-color: var(--field-line); }
.form-nav [data-next], .form-nav [data-submit], #panel-brief .form-nav .btn { margin-left: auto; }
.form-nav .btn:disabled { opacity: .6; cursor: default; }
.form-nav [hidden] { display: none; }
.form-error { color: var(--error); font-size: 15px; font-weight: 600; margin: 14px 0 0; }
.form-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.checklist { color: var(--ink-soft); padding-left: 20px; margin: 0 0 28px; }
.checklist li { margin-bottom: 6px; }
.sent .card-title:focus { outline: none; }
.sent p { color: var(--ink-soft); }

@media (max-width: 900px) {
  .start-layout { grid-template-columns: 1fr; }
  .aside-inner { position: static; padding: 28px 20px; gap: 28px; }
  .start-aside { order: 2; }
  .start-main { order: 1; padding-top: 44px; }
  .js [data-path="questions"] .start-aside { order: 0; }
  .tracker { display: flex; justify-content: space-between; }
  .tracker::before, .tracker::after { left: 14px; right: 14px; top: 13px; width: auto; height: 2px; bottom: auto; }
  .tracker::after { right: auto; width: calc((100% - 28px) * var(--progress)); height: 2px; }
  .tracker li + li { margin-top: 0; }
  .tracker button { flex-direction: column; gap: 6px; padding: 0; min-width: 44px; }
  .tracker .tracker-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tracker .current .tracker-label { position: static; width: auto; height: auto; clip: auto; font-size: 13px; text-align: center; white-space: normal; max-width: 90px; }
  [data-path="questions"] .next { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tracker::after, .choice-body, .option input + .mark + span { transition: none; } }

/* Contact options on the home page */
.contact-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 900px; margin: 0 auto 8px; text-align: left; }
.contact-option { display: block; text-decoration: none; border: 1px solid var(--rule); border-radius: 14px; padding: 20px; transition: border-color .15s ease, transform .15s ease; }
.contact-option:hover { border-color: var(--accent); transform: translateY(-1px); }
.contact-option strong { display: block; font-size: 16px; margin-bottom: 6px; }
.contact-option span { font-size: 14px; color: var(--ink-soft); line-height: 1.45; display: block; }
.contact-option.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.contact-option.primary span { color: var(--accent-ink); opacity: .85; }
@media (max-width: 820px) { .contact-options { grid-template-columns: 1fr; } }
