/* ============================================================
   Seen From Many — see yourself through the people who know you
   Warm, safe, colorful design system
   ============================================================ */

:root {
  /* surfaces */
  --cream: #FAF6EF;
  --cream-2: #F3ECDF;
  --card: #FFFFFF;
  --ink: #2E2A26;
  --ink-2: #5C544B;
  --ink-3: #8A8177;
  --line: #E5DCCC;

  /* brand hues */
  --terra: #C05B33;
  --terra-deep: #9E4523;
  --terra-soft: #F6E3D9;
  --sage: #4E7A52;
  --sage-soft: #E3EDDF;
  --blue: #3F6E9E;
  --blue-soft: #E0EAF3;
  --plum: #7D5BA6;
  --plum-soft: #ECE4F4;
  --gold: #A87718;
  --gold-soft: #F6ECD4;

  /* categorical chart palette (validated: CVD-safe in this fixed order) */
  --c1: #C05B33;
  --c2: #2C6FB3;
  --c3: #3F7D3B;
  --c4: #8153B8;
  --c5: #B07A0D;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 2px 8px rgba(46,42,38,.06), 0 12px 32px rgba(46,42,38,.07);
  --shadow-sm: 0 1px 4px rgba(46,42,38,.08);

  --font-display: "Source Serif 4", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0.24 0 0 0 0 0.20 0 0 0 0 0.16 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.18; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--ink-2); }

a { color: var(--terra-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }

img, svg { max-width: 100%; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 22px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,246,239,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1060px; margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; gap: 26px;
}
.logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem;
  color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 9px;
}
.logo .mark { width: 30px; height: 30px; flex: none; }
.logo em { font-style: normal; color: var(--terra); }
.nav-links { display: flex; gap: 20px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--terra-deep); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 13px 26px; border-radius: 999px; border: none; cursor: pointer;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--terra); color: #fff; box-shadow: 0 4px 14px rgba(192,91,51,.32); }
.btn-primary:hover { background: var(--terra-deep); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-soft { background: var(--cream-2); color: var(--ink); }
.btn-soft:hover { background: var(--line); }
.btn-sage { background: var(--sage); color: #fff; }
.btn-sage:hover { background: #3E6342; }
.btn-sm { padding: 8px 16px; font-size: .88rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 60px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--terra-deep);
  background: var(--terra-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { margin-bottom: 20px; }
.hero .lede { font-size: 1.18rem; margin-bottom: 30px; max-width: 34em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- cards & sections ---------- */
.section { padding: 62px 0; }
.section-tight { padding: 40px 0; }
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px; border: 1px solid rgba(229,220,204,.6);
}
.card-soft { background: var(--cream-2); box-shadow: none; border: none; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.pill-icon {
  width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center;
  justify-content: center; font-size: 1.35rem; margin-bottom: 14px;
}
.bg-terra { background: var(--terra-soft); } .bg-sage { background: var(--sage-soft); }
.bg-blue { background: var(--blue-soft); } .bg-plum { background: var(--plum-soft); }
.bg-gold { background: var(--gold-soft); }

.center { text-align: center; }
.section-head { max-width: 620px; margin: 0 auto 42px; text-align: center; }
.section-head p { margin-top: 12px; font-size: 1.06rem; }

/* ---------- stage chips ---------- */
.stage-chip {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase; padding: 5px 13px; border-radius: 999px;
}
.stage-1 { background: var(--gold-soft); color: var(--gold); }
.stage-2 { background: var(--blue-soft); color: var(--blue); }
.stage-3 { background: var(--sage-soft); color: var(--sage); }
.stage-4 { background: var(--plum-soft); color: var(--plum); }

/* ---------- forms ---------- */
label.field-label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 7px; color: var(--ink); }
.hint { font-size: .86rem; color: var(--ink-3); margin-top: 6px; }
input[type=text], input[type=email], input[type=date], select, textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 12px 15px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: #fff; transition: border-color .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--terra); }
textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.field { margin-bottom: 22px; }

/* ---------- adjective chips ---------- */
.adj-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.adj {
  font-size: .93rem; font-weight: 500; padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; cursor: pointer; color: var(--ink-2);
  transition: all .13s ease; user-select: none;
}
.adj:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.adj.on { background: var(--terra); border-color: var(--terra); color: #fff; box-shadow: 0 3px 10px rgba(192,91,51,.3); }
.adj-count { font-weight: 700; color: var(--terra-deep); }

/* ---------- likert ---------- */
.likert { margin-bottom: 30px; }
.likert-q { font-weight: 600; margin-bottom: 4px; font-size: 1.02rem; color: var(--ink); }
.likert-scale { display: flex; gap: 8px; margin-top: 12px; }
.likert-dot {
  flex: 1; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  cursor: pointer; font-weight: 600; color: var(--ink-3); font-size: .95rem;
  transition: all .13s ease;
}
.likert-dot:hover { border-color: var(--sage); }
.likert-dot.on { background: var(--sage); border-color: var(--sage); color: #fff; }
.likert-ends { display: flex; justify-content: space-between; font-size: .8rem; color: var(--ink-3); margin-top: 6px; }

/* ---------- card sort ---------- */
.sort-deck { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.sort-card {
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 18px;
  font-weight: 600; font-size: .95rem; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: all .15s ease; position: relative; color: var(--ink);
}
.sort-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.sort-card .emoji { margin-right: 8px; }
.sort-card.picked { opacity: .35; pointer-events: none; }
.sort-bins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 720px) { .sort-bins { grid-template-columns: 1fr; } }
.sort-bin { border-radius: var(--radius); padding: 18px; min-height: 150px; border: 2px dashed transparent; }
.sort-bin.b1 { background: var(--plum-soft); } .sort-bin.b2 { background: var(--gold-soft); } .sort-bin.b3 { background: var(--cream-2); }
.sort-bin.hot { border-color: var(--plum); }
.sort-bin h4 { font-family: var(--font-body); font-size: .84rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; color: var(--ink-2); }
.sort-bin .placed { background: #fff; border-radius: 10px; padding: 8px 12px; font-size: .88rem; font-weight: 600; margin-bottom: 8px; display: flex; justify-content: space-between; gap: 8px; align-items: center; box-shadow: var(--shadow-sm); }
.sort-bin .placed button { border: none; background: none; cursor: pointer; color: var(--ink-3); font-size: 1rem; line-height: 1; }

/* ---------- stems ---------- */
.stem-pick { display: flex; flex-direction: column; gap: 12px; }
.stem {
  text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 15px 18px; cursor: pointer; font-family: var(--font-display); font-size: 1.06rem;
  font-style: italic; color: var(--ink-2); transition: all .13s;
}
.stem:hover { border-color: var(--sage); }
.stem.on { border-color: var(--sage); background: var(--sage-soft); color: var(--ink); }
.stem-answer { margin: 10px 0 18px; }

/* ---------- progress ---------- */
.progress-rail { height: 8px; background: var(--cream-2); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--terra), var(--sage), var(--plum)); transition: width .4s ease; }
.stepper { display: flex; gap: 6px; margin: 18px 0 8px; flex-wrap: wrap; }
.step-dot { display: flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600; color: var(--ink-3); padding: 5px 12px; border-radius: 999px; background: var(--cream-2); }
.step-dot.now { background: var(--ink); color: #fff; }
.step-dot.done { background: var(--sage-soft); color: var(--sage); }

/* ---------- johari report ---------- */
.johari { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .johari { grid-template-columns: 1fr; } }
.johari-q { border-radius: var(--radius); padding: 24px; min-height: 190px; }
.johari-q h4 { font-size: 1.12rem; margin-bottom: 4px; }
.johari-q .sub { font-size: .84rem; color: var(--ink-2); margin-bottom: 14px; }
.johari-q.open   { background: var(--sage-soft); }
.johari-q.blind  { background: var(--blue-soft); }
.johari-q.hidden-q { background: var(--gold-soft); }
.johari-q.unknown { background: var(--cream-2); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: #fff; border-radius: 999px; padding: 5px 13px; font-size: .88rem; font-weight: 600; box-shadow: var(--shadow-sm); }
.tag .n { color: var(--terra-deep); font-size: .78rem; margin-left: 4px; }

/* ---------- charts ---------- */
.bar-row { display: grid; grid-template-columns: 220px 1fr 52px; gap: 14px; align-items: center; margin-bottom: 13px; }
@media (max-width: 640px) { .bar-row { grid-template-columns: 1fr; gap: 4px; margin-bottom: 20px; } }
.bar-label { font-size: .92rem; font-weight: 600; color: var(--ink); }
.bar-rail { height: 14px; background: var(--cream-2); border-radius: 4px 8px 8px 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 0 8px 8px 0; }
.bar-val { font-size: .9rem; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dist-dots { display: flex; gap: 3px; margin-top: 4px; }
.dist-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.dist-dot.f { background: var(--sage); }

/* ---------- quotes ---------- */
.quote-card {
  background: #fff; border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px; box-shadow: var(--shadow-sm); margin-bottom: 16px;
}
.quote-card p { font-family: var(--font-display); font-size: 1.08rem; font-style: italic; color: var(--ink); }
.quote-terra { border-color: var(--terra); } .quote-sage { border-color: var(--sage); }
.quote-blue { border-color: var(--blue); } .quote-plum { border-color: var(--plum); } .quote-gold { border-color: var(--gold); }

mark { background: var(--gold-soft); color: inherit; border-radius: 4px; padding: 0 3px; }

/* ---------- misc ---------- */
.notice {
  display: flex; gap: 13px; background: var(--sage-soft); border-radius: var(--radius-sm);
  padding: 15px 18px; font-size: .93rem; color: var(--ink-2); align-items: flex-start;
}
.notice.warn { background: var(--gold-soft); }
.notice.blue { background: var(--blue-soft); }
.notice .ico { font-size: 1.15rem; line-height: 1.4; }

.divider { border: none; border-top: 1px solid var(--line); margin: 34px 0; }

.footer { border-top: 1px solid var(--line); padding: 36px 0 48px; margin-top: 60px; font-size: .9rem; color: var(--ink-3); }
.footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer a { color: var(--ink-2); }

.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); padding: 10px 12px; border-bottom: 1.5px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--cream-2); }

.badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge-green { background: var(--sage-soft); color: var(--sage); }
.badge-wait { background: var(--gold-soft); color: var(--gold); }

.copy-link {
  display: flex; gap: 8px; align-items: center; background: var(--cream-2);
  border-radius: 10px; padding: 8px 8px 8px 14px; font-size: .84rem; color: var(--ink-2);
  overflow: hidden;
}
.copy-link code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }

.big-stat { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; line-height: 1; }
.big-stat-label { font-size: .85rem; color: var(--ink-3); font-weight: 600; margin-top: 6px; }

.breath {
  background: linear-gradient(135deg, var(--sage-soft), var(--blue-soft));
  border-radius: var(--radius); padding: 34px; text-align: center;
}

.timeline { position: relative; margin: 26px 0; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item::before { content: ""; position: absolute; left: -27px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--terra); border: 3px solid var(--cream); }
.tl-item h4 { font-family: var(--font-body); font-size: 1rem; }
.tl-item .when { font-size: .8rem; font-weight: 700; color: var(--terra-deep); text-transform: uppercase; letter-spacing: .07em; }

/* ---------- monoline icons ---------- */
.mli { width: 1.2em; height: 1.2em; fill: none; vertical-align: -0.22em; display: inline-block; }
.notice .ico { line-height: 1; padding-top: 3px; }
.notice .ico .mli { width: 1.3em; height: 1.3em; color: var(--ink-2); }
.mli-lg { width: 26px; height: 26px; }
.mli-xl { width: 52px; height: 52px; margin-bottom: 6px; }
.sort-bin h4 .mli, .tag .mli { width: 1.05em; height: 1.05em; }

/* ---------- block-print art ---------- */
.art-card { display:block; height:78px; margin:0 auto 12px; }
.art-float { float:right; width:112px; margin:0 0 12px 18px; }
@media (max-width:560px) { .art-float { width:84px; margin-left:12px; } }
.art-hero { display:block; width:100%; max-width:420px; margin:0 auto; }

.fade-in { animation: fadeIn .5s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.report-section { margin-bottom: 54px; }
.report-band { border-radius: var(--radius); padding: 6px 18px; display: inline-block; margin-bottom: 18px; }

/* ============================================================
   v2 layout system — editorial rows, paper bands, diagram frames
   (adapted from the four-stage design handoff)
   ============================================================ */
:root { --paper: #F4ECD8; --paper-deep: #E9DDC4; }

.band { padding: clamp(56px, 8vw, 104px) 0; }
.band.paper { background: var(--paper); }
.band.cream2 { background: var(--cream-2); }

.edit-row {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,.92fr);
  gap: clamp(28px, 6vw, 84px); align-items: center;
}
.edit-row .edit-art img { width: 100%; max-width: 640px; height: auto; display: block; margin: 0 auto; }
.edit-row.rev .edit-art { order: -1; }
.edit-row .eyebrow { margin-bottom: 10px; display: inline-block; }
@media (max-width: 860px) {
  .edit-row, .edit-row.rev { grid-template-columns: 1fr; }
  .edit-row.rev .edit-art { order: initial; }
}

.diagram { width: 100%; max-width: 1040px; margin: 26px auto 0; display: block; height: auto; }
.diagram-narrow { max-width: 760px; }

.hero-art-v2 { width: 108%; max-width: none; margin-right: -8%; display: block; height: auto; }
@media (max-width: 860px) { .hero-art-v2 { width: 106%; margin: 10px -3% -14px; } }

.seal { width: 132px; height: auto; display: block; margin: 0 auto 16px; }
.accent-img { max-width: 420px; width: 100%; height: auto; display: block; margin: 0 auto; }
.accent-sm { max-width: 300px; }
.strip-img { width: 100%; max-width: 880px; height: auto; display: block; margin: 24px auto; }
.legal-divider { width: 220px; height: auto; display: block; margin: 34px auto; opacity: .85; }

.faq-item { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; margin-bottom: 26px; }
.faq-item img { width: 48px; height: 48px; }
.faq-item h3 { margin-bottom: 6px; font-size: 1.15rem; }

.quote-band { max-width: 780px; margin: 0 auto; text-align: center; }
.quote-band h2 { font-style: italic; font-weight: 400; }

.report-cover { width: 100%; max-width: 720px; display: block; margin: 0 auto 10px; height: auto; border-radius: var(--radius-sm); }
