/* khukan v0.1 — calm graphite interface, one accent, one task per screen. */
:root {
  --bg: #f8faff; --bg2: #ffffff; --bg3: #f3f1ff; --line: #e8e9f5; --line2: #d9dbee;
  --text: #071c3e; --muted: #6f7896; --faint: #a3aac2; --accent: #8043f5; --accent-d: #6e31e9; --warn: #d6455d;
  --lav: #eee9ff; --shadow: 0 18px 50px rgba(38, 52, 92, .09);
  --r: 22px; --font: "Prompt", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); }
body { font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

.screen { min-height: 100dvh; max-width: 600px; margin: 0 auto; display: flex; flex-direction: column;
  padding: calc(18px + env(safe-area-inset-top)) 20px calc(28px + env(safe-area-inset-bottom)); animation: in .5s var(--ease); }
@keyframes in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: 8px; }
.brand { font-weight: 500; letter-spacing: .04em; font-size: 17px; text-decoration: none; }
.brand::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--accent);
  margin-right: 9px; vertical-align: 1px; box-shadow: 6px 0 0 -1.5px var(--bg), 6px 0 0 0 var(--accent); }
.back { background: none; border: 0; color: var(--muted); min-height: 44px; padding: 0 2px; cursor: pointer; font-size: 15px; }
.back:hover { color: var(--text); }
.steps { display: flex; gap: 6px; margin: 6px 0 30px; }
.steps i { flex: 1; height: 2px; border-radius: 2px; background: var(--line); }
.steps i.on { background: var(--accent); }

h1 { font-weight: 500; font-size: clamp(34px, 9vw, 52px); line-height: 1.18; letter-spacing: -.01em; margin: 0 0 14px; }
h2 { font-weight: 500; font-size: 22px; line-height: 1.35; margin: 0 0 12px; }
.kicker { color: var(--muted); font-size: 14px; letter-spacing: .06em; margin: 0 0 10px; }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 28px; max-width: 34em; }
.small { color: var(--muted); font-size: 14px; }
.faint { color: var(--faint); }
.grow { flex: 1; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: 999px;
  border: 1px solid var(--line2); background: transparent; cursor: pointer; transition: background .2s, border-color .2s, opacity .2s; text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #ffffff; font-weight: 500; }
.btn.primary:hover { background: #6e31e9; }
.btn.ghost:hover { border-color: var(--muted); }
.btn[disabled] { opacity: .45; cursor: default; }
.actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.actions .btn { width: 100%; }

/* form */
.field { margin: 0 0 22px; }
.field label, .field .lbl { display: block; font-size: 15px; color: var(--muted); margin: 0 0 8px; }
.field input, .field select { width: 100%; min-height: 54px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--bg2); outline: none; transition: border-color .2s; color-scheme: dark; }
.field input:focus, .field select:focus { border-color: var(--accent-d); }
.field input:disabled { opacity: .45; }
/* birth date as วัน / เดือน / ปี พ.ศ. */
.date3 { display: grid; grid-template-columns: 1fr 1.7fr 1.3fr; gap: 8px; }
.date3 select { padding: 0 10px; font-size: 16px; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 26px; }
.seg { display: grid; grid-template-columns: 1fr; gap: 8px; }
.seg label { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--bg2); cursor: pointer; color: var(--text); margin: 0; font-size: 16px; }
.seg input { appearance: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line2); margin: 0; flex: none; min-height: 0; padding: 0; background: none; }
.seg input:checked { border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--bg2), inset 0 0 0 9px var(--accent); }
.seg label:has(input:checked) { border-color: var(--accent-d); }
.hint { font-size: 14px; color: var(--muted); margin-top: 8px; }
.err { color: var(--warn); font-size: 15px; min-height: 1.4em; margin: 4px 0 0; }

/* review */
.block { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin: 0 0 14px; background: var(--bg2); }
.block h3 { margin: 0 0 12px; font-weight: 500; font-size: 18px; }
.row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 16px; }
.row:first-of-type { border-top: 0; }
.row span:first-child { color: var(--muted); }
.row span:last-child { text-align: right; }
.quota { color: var(--muted); font-size: 14px; text-align: center; margin-top: 14px; }

/* visual */
.visual { width: 100%; max-width: 420px; margin: 8px auto 26px; display: block; }
.visual .ring { fill: none; stroke: var(--line2); stroke-width: 1; }
.visual .core { fill: none; stroke: var(--accent); stroke-width: 1.4; }
.visual .soft { fill: var(--accent); opacity: .05; }
.visual .link { fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: .85; stroke-linecap: round; }
.visual .link.half { opacity: .45; stroke-dasharray: 2 5; }
.visual .dot { fill: var(--accent); }
.visual text { fill: var(--muted); font-size: 12px; font-family: var(--font); }
.breathe { transform-origin: center; animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.035); } }

/* analysing */
.analysing { justify-content: center; align-items: center; text-align: center; }
.analysing .visual { max-width: 300px; }
.approach-l { animation: appL 3.2s var(--ease) infinite alternate; }
.approach-r { animation: appR 3.2s var(--ease) infinite alternate; }
@keyframes appL { from { transform: translateX(-22px); } to { transform: none; } }
@keyframes appR { from { transform: translateX(22px); } to { transform: none; } }
.draw { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 3.2s var(--ease) infinite alternate; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.status { color: var(--muted); min-height: 1.7em; transition: opacity .4s; }

/* result */
.names { color: var(--muted); margin: -4px 0 18px; }
.summary p { font-size: 19px; line-height: 1.7; margin: 0 0 14px; }
.summary .kicker, .summary .note { font-size: 14px; }
.summary.reading p.note { color: var(--faint); }
.legend { list-style: none; padding: 0; margin: 0 0 8px; }
.legend li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 16px; }
.legend li span:last-child { color: var(--muted); font-size: 14px; text-align: right; }
.legend li.none span:first-child { color: var(--faint); }
.legend li.none span:last-child { color: var(--faint); }
.legend li.partial span:first-child { color: var(--muted); }
.legend li.found span:last-child { color: var(--accent); }
.sides { margin: 14px 0 6px; }
.sides .row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line);
  font-size: 15px; color: var(--muted); }
.sides .row span:last-child { color: var(--text); text-align: right; }
.dim.found > button .p { color: var(--accent); }
.reasons { margin-top: 48px; padding-top: 8px; border-top: 1px solid var(--line); }
.mode { display: inline-block; margin: 0 0 18px; padding: 4px 12px; border: 1px solid var(--line2); border-radius: 999px;
  color: var(--muted); font-size: 13.5px; }
.dir.supp h4 { color: var(--muted); }
.dir.supp li::before { border-style: dashed; border-color: var(--faint); }
.dim.none > button .t, .dim.awaiting > button .t { color: var(--muted); }
.ev .tag { display: inline-block; margin: 0 8px 4px 0; padding: 1px 9px; border-radius: 999px; font-size: 12.5px;
  border: 1px solid var(--line2); color: var(--muted); }
.ev.core .tag { border-color: var(--accent-d); color: var(--accent); }
.notice { border-left: 2px solid var(--accent-d); padding: 2px 0 2px 14px; color: var(--muted); font-size: 15px; margin: 0 0 16px; }

.dim { border-top: 1px solid var(--line); }
.dim:last-child { border-bottom: 1px solid var(--line); }
.dim > button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 64px;
  background: none; border: 0; padding: 10px 2px; cursor: pointer; text-align: left; }
.dim > button .t { font-size: 18px; }
.dim > button .p { color: var(--muted); font-size: 14px; white-space: nowrap; }
.dim > button .p::after { content: "+"; margin-left: 12px; color: var(--faint); font-size: 18px; }
.dim.open > button .p::after { content: "−"; }
.dim .body { display: none; padding: 0 2px 22px; }
.dim.open .body { display: block; animation: in .35s var(--ease); }
.dir { margin: 16px 0 0; }
.dir h4 { margin: 0 0 6px; font-weight: 500; font-size: 15px; color: var(--accent); }
.dir ul, .list { margin: 0; padding: 0; list-style: none; }
.dir li, .list li { position: relative; padding: 6px 0 6px 18px; }
.dir li::before, .list li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--accent-d); }
.dir .empty { color: var(--faint); font-size: 15px; }
.section { margin: 44px 0 0; }
.section > p { margin: 0 0 12px; }
.note { color: var(--faint); font-size: 14px; margin-top: 14px; }

details.evidence { margin: 48px 0 0; border-top: 1px solid var(--line); }
details.evidence summary { list-style: none; cursor: pointer; min-height: 60px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
details.evidence summary::-webkit-details-marker { display: none; }
details.evidence summary::after { content: "+"; color: var(--faint); font-size: 18px; }
details.evidence[open] summary::after { content: "−"; }
.ev { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 0 0 10px; font-size: 14.5px; background: var(--bg2); }
.ev b { font-weight: 500; }
.ev .m { color: var(--muted); }

.saved { margin-top: 36px; }
.saved a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; min-height: 44px; }
.saved a span:last-child { color: var(--muted); font-size: 14px; white-space: nowrap; }
.saved a { align-items: center; }
/* the count / action on the right looks like a button, so it reads as tappable (the whole row stays the link) */
.saved a span.go { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: 14px; font-weight: 500; }
.saved a .go i { font-style: normal; font-size: 18px; line-height: 1; }
.saved a:hover .go { background: rgba(128, 67, 245, .1); }

/* home: compact on phones so the content below the button starts inside the first screen */
.home-screen .visual { max-height: 30vh; margin: 0 auto 14px; }
.home-screen h1 { font-size: clamp(30px, 8.4vw, 52px); }
.home-screen .lead { margin-bottom: 22px; }
.nw { white-space: nowrap; }
/* home: the start button is the standard rounded primary button (full width on phones), no animation */
.start-wrap { margin-top: 6px; }
.actions .btn.start-btn { font-size: 17px; }
.home-screen .quota { margin-top: 10px; }
.home-screen .saved { margin-top: 22px; }
.scroll-hint { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(248, 250, 255, .85);
  display: grid; place-items: center; cursor: pointer; z-index: 5; animation: hint-bob 1.8s ease-in-out infinite; }
.scroll-hint[hidden] { display: none; }
.scroll-hint svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes hint-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* desktop: intentional two-column compositions, not a stretched phone */
@media (min-width: 960px) {
  .screen { max-width: 1120px; padding-left: 48px; padding-right: 48px; }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; flex: 1; }
  .split .visual { max-width: 460px; margin: 0 auto; }
  .home-screen .visual { max-height: none; }
  .start-wrap { align-items: flex-start; }
  .actions .btn.start-btn { min-width: 260px; }
  .narrow { max-width: 560px; width: 100%; margin: 0 auto; }
  .overview { display: grid; grid-template-columns: 440px 1fr; column-gap: 80px; grid-template-areas: "vis head" "vis text" "legend text";
    grid-template-rows: auto auto 1fr; align-items: start; }
  .ov-head { grid-area: head; } .ov-vis { grid-area: vis; } .ov-text { grid-area: text; } .ov-legend { grid-area: legend; }
  .quota { text-align: left; }
  .actions { flex-direction: row; }
  .actions .btn { width: auto; min-width: 200px; }
  h1 { font-size: 56px; }
}
.visual .link.partial { stroke-dasharray: 3 5; opacity: .6; }

/* accounts */
.login { margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.login h2 { margin-bottom: 6px; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 4px; font-size: 15px; color: var(--muted); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.consent b { color: var(--text); font-weight: 500; }
.history { margin: 18px 0 0; }
.hrow { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.hrow b { display: block; font-weight: 500; }
.btn.sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn.google { gap: 12px; }
.btn.google .g { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg); color: var(--accent); font-weight: 600; font-size: 14px; }
/* LINE sign-in (LINE brand green) and linked sign-ins on "ผลการวิเคราะห์ของคุณ" */
.btn.line { gap: 12px; background: #06c755; color: #fff; border-color: #06c755; }
.btn.line:hover { background: #05b34c; border-color: #05b34c; }
.btn.line .g { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px;
  background: #fff; color: #06c755; font-weight: 700; font-size: 14px; }
.login .actions { display: flex; flex-direction: column; gap: 10px; }
.accounts { margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.accounts h2 { margin-bottom: 6px; }
.acc { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
/* what khukan is (home) and what each result level means (results) */
.about { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.levels { margin: 18px 0; border: 1px solid var(--line); border-radius: var(--r); padding: 0 16px; }
.levels summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--muted); font-size: 15px; list-style: none; }
.levels summary::-webkit-details-marker { display: none; }
.levels summary::after { content: "+"; margin-left: auto; color: var(--accent); font-size: 18px; }
.levels[open] summary::after { content: "−"; }
.levels dl { margin: 0 0 14px; }
.levels dl > div { padding: 10px 0 10px 14px; border-top: 1px solid var(--line); border-left: 3px solid var(--line2); }
.levels dl > div.found { border-left-color: var(--accent); }
.levels dl > div.partial { border-left-color: var(--accent-d); }
.levels dt { font-weight: 500; }
.levels dd { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.ov-levels { grid-column: 1 / -1; }
.dir-note { margin-top: 18px; }
/* delete result / account: quiet link first, explicit confirm second */
.dzone { margin: 36px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.btn.link-danger { min-height: 44px; padding: 0; border: 0; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.btn.link-danger:hover { color: var(--warn); }
.dzone .confirm { border: 1px solid rgba(232, 144, 138, .35); border-radius: var(--r); padding: 14px 16px; }
.dzone .confirm p { margin: 0 0 12px; }
.drow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.btn.danger { background: var(--warn); border-color: var(--warn); color: #1d0c0b; font-weight: 500; }
.dzone .err:empty { min-height: 0; }
[hidden] { display: none !important; }
/* real-life relationship status (optional, after the result) */
.rel { margin: 26px 0 0; padding: 18px 16px 6px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg2); }
.rel h2 { font-size: 19px; margin-bottom: 14px; }
.rel .kicker { margin-bottom: 6px; }
.rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rel-opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: 10px 4px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--muted); cursor: pointer; font-size: 14px;
  line-height: 1.3; text-align: center; transition: border-color .2s, color .2s, background .2s; }
.rel-opt:hover { border-color: var(--line2); color: var(--text); }
.rel-opt[aria-checked="true"] { border-color: var(--accent); color: var(--text); background: rgba(128, 67, 245, .08); }
.rel-opt[aria-checked="true"] .ri { color: var(--accent); }
.ri { width: 24px; height: 24px; flex: none; }
.rel > .small { margin: 12px 0 10px; }
.rel .err:empty { min-height: 0; }
.rel-said { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; color: var(--text); }
.rel-said .ri { color: var(--accent); }
.hrel { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.hrel .ri { width: 18px; height: 18px; color: var(--accent); }
.legend li.said, .legend li.said span { color: var(--text); }
.legend li.said span:last-child { color: var(--accent); }
/* birth date in ค.ศ. + worldwide birth place search */
.date-says { color: var(--text); }
.date-says:empty { display: none; }
.date-says.bad, #placeSays.bad { color: var(--warn); }
.linkbtn { background: none; border: 0; padding: 0 2px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer; font-size: inherit; min-height: 32px; }
.field input[type=text] { width: 100%; min-height: 54px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--bg2); outline: none; transition: border-color .2s; }
.field input[type=text]:focus { border-color: var(--accent-d); }
.place-field { position: relative; }
.placelist { position: absolute; z-index: 20; left: 0; right: 0; margin: 6px 0 0; padding: 6px; list-style: none; max-height: 320px;
  overflow-y: auto; background: var(--bg3); border: 1px solid var(--line2); border-radius: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); }
.placelist li { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px;
  border-radius: 10px; cursor: pointer; }
.placelist li .small { text-align: right; }
.placelist li[aria-selected="true"], .placelist li:hover { background: var(--bg2); }
.placelist li.none { cursor: default; color: var(--muted); font-size: 14px; }

/* AI reading + per-dimension findings (consumer 0.2.0) */
.reading { border-left: 2px solid var(--accent-d); padding: 4px 0 4px 16px; margin: 24px 0; }
.reading h3 { font-size: 16px; color: var(--accent); margin: 18px 0 6px; font-weight: 500; }
.dread { margin: 10px 0 14px; }
.dread .tend { color: var(--text); background: var(--bg2); border-radius: 10px; padding: 10px 12px; }
.dread .tend b { color: var(--accent); font-weight: 500; margin-right: 6px; }
.findings { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.findings li { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; }
.findings li.core { border-color: var(--accent-d); }
.findings .fs { color: var(--muted); font-size: 13px; }
.findings li.core .fs { color: var(--accent); }
.findings .ft { font-size: 15px; }
.findings .fw { color: var(--faint); font-size: 13px; }

/* DRP scoring spec v0.1: direction under the status, % calibrating chip */
.legend small.dir, .dim .p small.dir { display: block; color: var(--accent); font-size: 13px; margin-top: 2px; }
.score-note { margin: 10px 0 0; }
.pct { display: inline-block; border: 1px dashed var(--line2); border-radius: 999px; padding: 4px 12px; font-size: 13px;
  color: var(--muted); margin: 6px 0 10px; }
.pct b { color: var(--text); font-weight: 500; margin-right: 6px; }

/* provisional axis level: 4 segments, no number */
.lvl { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: 8px; }
.lvl i { width: 10px; height: 6px; border-radius: 2px; background: var(--line2); display: inline-block; }
.lvl i.on { background: var(--accent); }

/* ---------------------------------------------------------------- SPLASH_v0.1 (relationship graphic) */
:root { --caution: #d9a27c; }
.splash { display: flex; flex-direction: column; gap: 4px; }
.sp-head { text-align: center; }
.sp-head h1 { margin-bottom: 4px; }
.sp-head .names { color: var(--muted); margin: 0; }
.sp-vis { margin: 6px 0 2px; }
/* splash: the answer first (Partner Guidance level), above the graphic */
.sp-verdict { text-align: left; max-width: 460px; margin: 16px auto 4px; background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 18px; }
.sp-verdict .kicker { margin-bottom: 6px; }
.sp-verdict .pg-level { font-size: 21px; margin-bottom: 6px; }
.sp-verdict .pg-text { font-size: 15.5px; line-height: 1.7; color: var(--text); }
.sp-consider { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.sp-consider b { color: var(--text); font-weight: 500; margin-right: 4px; }
.sp-graph { display: block; width: 100%; max-width: 460px; margin: 0 auto; overflow: visible; }
.sp-graph .halo { fill: var(--accent); opacity: .05; }
.sp-graph .track { fill: none; stroke: var(--line2); stroke-width: 1; }
.sp-graph .core { fill: none; stroke: var(--accent); stroke-width: 1.4; }
.sp-graph .sp-link { fill: none; stroke: var(--accent); stroke-width: 1.3; opacity: .85; stroke-linecap: round; }
.sp-graph .sp-dot { fill: var(--accent); }
.sp-graph .sp-name { fill: var(--text); font-size: 15.5px; font-weight: 600; font-family: var(--font); }
/* axis colours (SPLASH_v0.2): fixed per axis, opacity = strength */
.ax-liking { --c: #eba3b8; } .ax-attraction { --c: #e5675a; } .ax-bond { --c: #f0b46a; }
.ax-binding { --c: #9c8cf0; } .ax-depth { --c: #4fb3a9; } .ax-tension_distance { --c: #8fa3b8; }
.sp-seg { fill: none; stroke: var(--c); stroke-width: 9; stroke-linecap: round; }
/* stroke-opacity, so the entry fade (opacity) never overrides the strength */
.sp-seg.s-medium { stroke-opacity: .7; } .sp-seg.s-secondary { stroke-opacity: .35; } .sp-seg.s-none { stroke-opacity: .09; }
.sp-seg.s-strong { filter: drop-shadow(0 0 4px var(--c)); }
.sp-graph .sp-cap { fill: var(--muted); font-size: 13px; font-family: var(--font); }
.sp-rings { text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.5; margin: 6px auto 10px; max-width: 360px; }
.sp-key { max-width: 360px; margin: 0 auto; }
.sp-kh, .sp-kr { display: grid; grid-template-columns: minmax(0, 1fr) 158px minmax(0, 1fr); align-items: center; column-gap: 10px; }
.sp-kh { color: var(--text); font-size: 12.5px; line-height: 1.35; text-align: center; margin-bottom: 4px; }
.sp-kh span[title] { cursor: help; }
.sp-kh b { font-weight: 500; } .sp-kh .short { display: none; white-space: nowrap; }
@media (max-width: 374px) { .sp-kh .long { display: none; } .sp-kh .short { display: inline; } }
.sp-sum .sp-both { color: var(--muted); font-size: 13px; margin-top: 8px; }
.sp-kr { min-height: 28px; }
.sp-n { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 14px; white-space: nowrap; }
.sp-n em { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.sp-kr.off .sp-n { color: var(--faint); }
/* level ticks: 3 = strong, 2 = medium, 1 = light signal, 0 = not found; filled ticks sit next to the axis name */
.sp-b { display: flex; gap: 4px; align-items: center; }
.sp-b.l { flex-direction: row-reverse; }   /* filled ticks next to the name on both sides */
.sp-b i { display: block; flex: 0 1 22px; height: 8px; border-radius: 4px; background: var(--line); }
.sp-b i.on { background: var(--c); }
.sp-b.s-strong i.on { box-shadow: 0 0 6px var(--c); }
button.sp-n { font: inherit; color: inherit; background: none; border: 0; padding: 4px 2px; cursor: pointer; }
button.sp-n { text-decoration: underline dotted var(--faint); text-underline-offset: 4px; }
button.sp-n[aria-expanded="true"] { text-decoration-color: var(--c); }
.sp-about { grid-column: 1 / -1; margin: 2px 0 8px; padding: 8px 12px; border-left: 2px solid var(--c); background: var(--bg2);
  border-radius: 6px; color: var(--muted); font-size: 13px; line-height: 1.55; text-align: left; }
.sp-graph .sp-comet { fill: var(--accent); filter: drop-shadow(0 0 6px rgba(128, 67, 245, .8)); }
.sp-seg.s-strong { stroke-width: 13; }
.sp-side { max-width: 460px; width: 100%; margin: 0 auto; }
.sp-sum { text-align: center; }
.sp-sum p { margin: 4px 0; font-size: 15px; line-height: 1.55; }
.sp-sum small { color: var(--muted); font-size: 13px; }
.sp-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; color: var(--muted); font-size: 12.5px; }
.sp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sp-legend .sp-lt { display: inline-flex; gap: 2px; } .sp-legend .sp-lt i { display: block; width: 7px; height: 6px; border-radius: 3px; background: var(--line2); } .sp-legend .sp-lt i.on { background: var(--text); }
.sp-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.sp-cta .btn { width: 100%; }
.sp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sp-msg:empty { display: none; }
.sp-saved, .sp-cta .note { text-align: center; margin: 2px 0 0; }
.sp-mini { display: block; }
.sp-graph.mini { height: 140px; width: auto; max-width: 100%; margin: 0 auto 10px; }
.sp-graph.mini .sp-name { font-size: 26px; }             /* readable at ~140px high */
.sp-graph.mini .sp-seg { stroke-width: 12; }

/* animation: circles → A→B → B→A → labels → summary/CTA (delays via --d, set by match.js) */
@keyframes sp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sp-pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes sp-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.splash.animate .sp-node { transform-box: fill-box; transform-origin: center; animation: sp-pop .45s var(--ease) both; }
.splash.animate .sp-seg { animation: sp-fade .5s var(--ease) var(--d, 0ms) both; }
.splash.animate .sp-kr { animation: sp-rise .4s var(--ease) var(--d, 0ms) both; }
.splash.animate .sp-after { animation: sp-rise .45s var(--ease) var(--d, 0ms) both; }
.splash.skip * { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .splash * { animation: none !important; } }

@media (min-width: 900px) {
  .splash { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 420px); grid-template-areas: "head head" "vis side";
            justify-content: center; column-gap: 64px; align-items: center; }
  .sp-head { grid-area: head; } .sp-vis { grid-area: vis; } .sp-side { grid-area: side; }
  .sp-graph.full { max-width: 600px; }
  .sp-sum { text-align: left; }
  .sp-saved, .sp-cta .note { text-align: left; }
}

/* full-screen image (save / share fallback for in-app browsers) */
.sp-img { position: fixed; inset: 0; z-index: 50; background: rgba(10, 11, 13, .985); display: grid; place-items: center; padding: 16px; }
.sp-img-in { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 12px; max-height: 100%; }
.sp-img img { width: 100%; height: auto; max-height: 72vh; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); -webkit-touch-callout: default; user-select: auto; }
.sp-img-hint { text-align: center; color: var(--muted); font-size: 14px; margin: 0; }

/* ---------------------------------------------------------------- LANDING_v0.1: home hero picture + content below the fold */
.hero-vis { max-width: 460px; overflow: visible; }
.hero-vis .hv-a, .hero-vis .hv-b, .hero-vis .hv-chip { transform-box: fill-box; transform-origin: center; }
.hero-vis .hv-a { animation: hv-drift 7s ease-in-out infinite; }
.hero-vis .hv-b { animation: hv-drift 7s ease-in-out infinite reverse; }
.hero-vis .hv-c { animation: hv-glow 4s ease-in-out infinite; }
.hero-vis .hv-name { font-family: var(--font); font-size: 22px; font-weight: 600; }
.hero-vis .hv-name.a { fill: #071c3e; } .hero-vis .hv-name.b { fill: #071c3e; }
.hero-vis .hv-chip rect { fill: #ffffff; stroke: var(--c); stroke-opacity: .6; }
.hero-vis .hv-chip text { fill: var(--c); font-family: var(--font); font-size: 14px; }
.hero-vis .c1 { animation: hv-float 5s ease-in-out infinite; }
.hero-vis .c2 { animation: hv-float 6s ease-in-out .8s infinite; }
.hero-vis .c3 { animation: hv-float 5.5s ease-in-out 1.6s infinite; }
.hero-vis .c4 { animation: hv-float 6.5s ease-in-out .4s infinite; }
@keyframes hv-drift { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
@keyframes hv-glow { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes hv-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.lp-nav { display: none; gap: 4px; }
.lp-nav button { background: none; border: 0; color: var(--muted); font: inherit; font-size: 15px; min-height: 44px; padding: 0 12px; cursor: pointer; }
.lp-nav button:hover { color: var(--text); }

.landing { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.lp-sec { padding: 48px 0; border-top: 1px solid var(--line); }
.lp-sec:first-child { border-top: 0; }
.lp-sec h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 600; line-height: 1.3; margin: 0 0 24px; }
.lp-sec h3 { font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.lp-sec p { margin: 0; }
.lp-kicker { color: var(--accent); font-size: 14px; letter-spacing: .1em; margin: 0 0 8px !important; }
.lp-p { color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 40em; }
.lp-sec > .lp-p { margin-bottom: 28px !important; }
.lp-note { color: var(--faint); font-size: 13px; margin-top: 12px !important; }
.lp-plain { text-align: center; }
.lp-plain .lp-p { margin: 16px auto 0 !important; }
.lp-big { font-size: clamp(21px, 2.8vw, 30px); line-height: 1.6; font-weight: 500; }
.lp-big em { font-style: normal; color: var(--accent); }
.lp-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.lp-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.lp-card p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.lp-step { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 14px; }
.lp-ico { flex: none; width: 48px; height: 48px; border-radius: 14px; background: #2a2516; color: var(--accent); display: grid; place-items: center; }
.lp-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lp-ax { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; display: flex; gap: 16px; align-items: flex-start; }
.lp-ax p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.lp-demo { background: var(--bg2); border: 1px solid var(--line); border-radius: 26px; padding: 28px 20px; display: flex; flex-direction: column; gap: 28px; }
.lp-demo-vis { display: flex; flex-direction: column; gap: 14px; }
.lp-not > div { border-top: 2px solid var(--accent); padding-top: 18px; }
.lp-not p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.lp-narrow { max-width: 760px; width: 100%; margin: 0 auto; }
.lp-faq { display: flex; flex-direction: column; gap: 12px; }
.lp-faq details { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.lp-faq summary { cursor: pointer; list-style: none; font-size: 17px; font-weight: 500; min-height: 56px; display: flex; align-items: center; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 22px; }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq details p { color: var(--muted); font-size: 15px; line-height: 1.7; padding: 0 0 18px; }
.lp-creator { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.lp-creator img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.lp-creator > div { flex: 1 1 280px; display: flex; flex-direction: column; gap: 4px; }
.lp-name { font-size: 19px; font-weight: 600; }
.lp-role { font-size: 14px; color: var(--text); margin-bottom: 6px !important; }
.lp-cta { background: var(--accent); color: #ffffff; border-radius: 26px; padding: 28px 24px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.lp-cta > div:first-child { flex: 1 1 300px; }
.lp-cta h2 { color: #ffffff; font-weight: 700; margin: 0 0 8px; }
.lp-cta p { font-size: 17px; }
.lp-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.lp-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font-size: 16px; font-weight: 600; text-decoration: none; }
.lp-btn.dark { background: var(--bg); color: var(--accent); }
.lp-btn.line { border: 1.5px solid #ffffff; color: #ffffff; }
.lp-qr { display: none; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.lp-qr img { width: 140px; height: 140px; background: #fff; border-radius: 16px; padding: 8px; box-sizing: content-box; image-rendering: pixelated; }
@media (min-width: 700px) {
  .lp-qr { display: flex; }                 /* a QR is for scanning from a computer screen; phones use the LINE button */
  .lp-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-grid.axes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .lp-nav { display: flex; }
  .lp-sec { padding: 72px 0; }
  .lp-grid.axes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-demo { flex-direction: row; align-items: center; padding: 44px; }
  .lp-demo-text { flex: 1 1 340px; }
  .lp-demo-vis { flex: 1 1 440px; }
  .lp-cta { padding: 48px 56px; }
}

/* Phase 1 (presentation cleanup): tap-to-open connections per axis, one "read more" block, multi-axis tag */
.dim .about { margin-top: 14px; }
details.links { margin: 12px 0 4px; border-top: 1px solid var(--line); }
details.links summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--accent); font-size: 15px; }
details.links summary::-webkit-details-marker { display: none; }
details.links summary::after { content: "+"; margin-left: auto; font-size: 18px; }
details.links[open] summary::after { content: "−"; }
.findings .fx { color: var(--faint); font-size: 13px; }
details.more { margin: 36px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
details.more > summary { list-style: none; cursor: pointer; min-height: 64px; padding: 12px 28px 12px 0; position: relative; display: grid; gap: 2px; align-content: center; font-size: 17px; }
details.more > summary span { color: var(--muted); font-size: 14px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 20px; }
details.more[open] > summary::after { content: "−"; }
details.more > .section:first-of-type { margin-top: 20px; }
details.more > .section:last-child { margin-bottom: 28px; }
.howto .list { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.levels dd .dd2 { display: block; margin-top: 4px; }

/* 1.5.0 answer-first overview: answer, two sides, what to know; graph + axes and detail are supporting (expandable) */
.v15 .answer { margin: 8px 0 34px; }
.v15 .answer .ans { font-size: 20px; line-height: 1.75; margin: 0; }
.v15 .two h2 { font-size: 20px; margin: 0 0 14px; }
.v15 details.know ul { margin: 6px 0 18px; }
.v15 .two { margin: 0 0 8px; }
.two-grid { display: grid; gap: 12px; }
.side-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.side-card h3 { margin: 0 0 6px; font-size: 15px; font-weight: 500; color: var(--accent); letter-spacing: .03em; }
.side-card p { margin: 0; font-size: 16.5px; line-height: 1.7; }
/* 1.10.0 semantic reading: overview + two directions + good points / limits (plain Thai lists) */
.v15 .sem .sem-ov { display: grid; gap: 10px; }
.v15 .sem .sem-ov .ans + .ans { font-size: 17px; }
.sem-two, .sem-pts { margin-bottom: 18px; }
.sem-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sem-list li { font-size: 16px; line-height: 1.7; padding-left: 16px; position: relative; }
.sem-list li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .7; }
.sem-limit li::before { background: transparent; border: 1px solid var(--accent); }
.sem-more .sem-list { margin: 8px 0 16px; }
.v15 .know ul { list-style: none; padding: 0; margin: 0; }
.v15 .know li { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.v15 .know li:last-child { border-bottom: 1px solid var(--line); }
.v15 .know b { font-weight: 500; font-size: 16px; color: var(--text); }
.v15 .know li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 9px; position: absolute; }
.v15 .know li b, .v15 .know li span { padding-left: 16px; }
.v15 .know li { position: relative; }
.v15 .know li span { color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.v15 > .ov-text > .note { margin: 18px 0 0; }
.v15 .ov-axes .ov-vis { max-width: 320px; margin: 18px auto 6px; }
.v15 .ov-axes .legend { margin: 6px 0 14px; }
.dtl { list-style: none; padding: 0; margin: 8px 0 0; }
.dtl li { padding: 12px 0 12px 14px; border-top: 1px solid var(--line); border-left: 2px solid var(--accent-d); margin-bottom: 8px; }
.dtl li.part { border-left-color: var(--line2); }
.dtl p { margin: 0; }
.dt-m { font-size: 16px; }
.dt-w { color: var(--muted); font-size: 14px; margin-top: 4px !important; }
.dt-t { color: var(--faint); font-size: 13px; margin-top: 2px !important; overflow-wrap: anywhere; }
.ov-detail h3 { font-size: 15px; font-weight: 500; color: var(--accent); margin: 0 0 6px; }
/* 1.7.0 Partner Guidance */
.v15 .partner { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin: 0 0 30px; }
.v15 .partner .kicker { margin-bottom: 8px; }
.pg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pg-level { margin: 0 0 10px; font-size: 18px; font-weight: 500; line-height: 1.5; color: var(--accent); }
.pg-ticks { display: inline-flex; gap: 4px; flex: none; }
.pg-ticks i { width: 14px; height: 5px; border-radius: 3px; background: var(--line2); }
.pg-ticks i.on { background: var(--accent); }
.pg-text { margin: 0; font-size: 16.5px; line-height: 1.75; }
.pg-consider { margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.pg-ck { margin: 0 0 6px; font-size: 14px; color: var(--muted); letter-spacing: .03em; }
.pg-consider ul { margin: 0; padding-left: 18px; }
.pg-consider li { font-size: 16px; line-height: 1.7; }
.pg-note { margin: 14px 0 0; color: var(--faint); }
@media (min-width: 700px) { .two-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
  .overview.v15 { display: block; max-width: 760px; margin: 0 auto; }
  .v15 .answer .ans { font-size: 22px; }
}

/* expansion v0.1 (research switch only) */
.v15 .deep { margin: 0; }
.v15 .ov-deep .dx-sec { margin: 0; }
.v15 .ov-deep .dx-sec summary { font-size: 16px; }
.v15 .dx-lines { margin: 4px 0 10px; padding-left: 18px; }
.v15 .dx-lines li { margin: 0 0 8px; line-height: 1.7; color: var(--text); overflow-wrap: anywhere; }
.v15 .dx-ai { font-size: 17px; line-height: 1.75; margin: 10px 0 14px; }
.v15 .dx-tech .dt-t { overflow-wrap: anywhere; }

/* Reading V2 (r3 beta, folded under the 1.9.1 summary; drawn only when the server switch allows the user) */
details.more.v2 > summary { color: var(--accent); }
.v2-body { padding: 4px 0 28px; display: grid; gap: 14px; }
.v2-head { font-size: 22px; line-height: 1.4; margin: 6px 0 4px; }
.v2-sec, .v2-next { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.v2-sec h3, .v2-next h3 { font-size: 15px; margin: 0 0 6px; color: var(--accent); }
.v2-sec p, .v2-next p { margin: 0; line-height: 1.7; }
.v2-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.v2-consent input { margin-top: 4px; accent-color: var(--accent); }
.v2-fb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.v2-fb p { width: 100%; margin: 0; }
.v2-fb [aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }

/* ---------------------------------------------------------------- LANDING_v0.2 (2026-10-13): night sky + gold, same content.
   Decoration stays behind the content and never carries meaning; the hero ring is an illustration, not a result. */
.home-screen { position: relative; isolation: isolate; }
.lp-sky { position: absolute; z-index: -1; left: 50%; top: 0; width: 100vw; height: min(980px, 130vh); transform: translateX(-50%);
  pointer-events: none; overflow: hidden;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(7, 28, 62,.8), transparent 60%), radial-gradient(1px 1px at 27% 62%, rgba(7, 28, 62,.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 44% 9%, rgba(7, 28, 62,.75), transparent 60%), radial-gradient(1px 1px at 63% 33%, rgba(7, 28, 62,.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 81% 14%, rgba(7, 28, 62,.8), transparent 60%), radial-gradient(1px 1px at 92% 52%, rgba(7, 28, 62,.55), transparent 60%),
    radial-gradient(1px 1px at 6% 78%, rgba(7, 28, 62,.5), transparent 60%), radial-gradient(1px 1px at 71% 71%, rgba(7, 28, 62,.45), transparent 60%),
    radial-gradient(60% 45% at 30% 30%, rgba(242,190,80,.16), transparent 70%),
    radial-gradient(50% 40% at 85% 10%, rgba(156,140,240,.08), transparent 70%),
    linear-gradient(180deg, #f3f1ff 0%, #f8faff 100%); }
.lp-sky::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 40%;
  background: radial-gradient(70% 90% at 50% 100%, rgba(242,190,80,.10), transparent 70%), linear-gradient(180deg, transparent, var(--bg)); }

/* header */
.home-screen .top { min-height: 56px; }
.brand { font-size: 19px; font-weight: 600; letter-spacing: .02em; }
.brand { position: relative; padding-left: 26px; }
.brand::before, .brand::after { content: ""; position: absolute; top: 50%; width: 13px; height: 13px; margin: -7px 0 0; border: 2px solid var(--accent);
  border-radius: 50%; box-shadow: none; box-sizing: border-box; }
.brand::before { left: 0; } .brand::after { left: 8px; }
.lp-nav { align-items: center; }
.lp-pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; margin-left: 10px; border: 1px solid var(--accent);
  border-radius: 999px; color: var(--accent); text-decoration: none; font-size: 15px; }
.lp-pill:hover { background: rgba(128, 67, 245, .1); }

/* hero */
.hero h1 { font-weight: 600; text-shadow: 0 0 40px rgba(128, 67, 245, .18); }
.hero .lead { color: #45527c; }
.arr { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn.primary.start-btn { gap: 10px; background: linear-gradient(180deg, #9c78fb, #6e31e9); border-color: #8043f5;
  box-shadow: 0 8px 30px -8px rgba(128, 67, 245, .55), inset 0 1px 0 rgba(255, 255, 255, .35); font-weight: 600; }
.btn.primary.start-btn:hover { background: linear-gradient(180deg, #a98bff, #8a52f7); }
.hero-vis { max-width: 480px; }
.hero-vis .hv-star { fill: #c9b8ff; opacity: .8; }
.hero-vis .hv-track { fill: none; stroke: rgba(128, 67, 245, .14); stroke-width: 1; }
.hero-vis .hv-arc { fill: none; stroke: var(--c); stroke-width: 7; stroke-linecap: round; stroke-opacity: .85; filter: drop-shadow(0 0 5px var(--c)); }
.hero-vis .hv-core { fill: rgba(128, 67, 245, .04); stroke: var(--accent); stroke-width: 1.6; filter: drop-shadow(0 0 8px rgba(128, 67, 245, .5)); }
.hero-vis .hv-link { stroke: var(--accent); stroke-width: 1; opacity: .5; }
.hero-vis .hv-spark { fill: #c9b8ff; filter: drop-shadow(0 0 4px #8043f5); }
.hero-vis .hv-name { fill: #071c3e; font-family: var(--font); font-size: 22px; font-weight: 600; }
.hero-vis .hv-chip rect { fill: rgba(255, 255, 255, .9); stroke: var(--c); stroke-opacity: .7; }
.hero-vis .c5 { animation: hv-float 6s ease-in-out 1.1s infinite; }
.hero-vis .c6 { animation: hv-float 5.8s ease-in-out .2s infinite; }
.hero-vis .hv-chip text { font-size: 14.5px; }

/* sections */
.lp-sec { border-top: 0; position: relative; }
.lp-sec + .lp-sec::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(128, 67, 245, .35), transparent); }
.lp-rule { display: flex; align-items: center; justify-content: center; gap: 14px; text-transform: uppercase; }
.lp-rule::before, .lp-rule::after { content: ""; width: 48px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent)); }
.lp-rule::after { transform: scaleX(-1); }
.lp-line { display: flex; align-items: center; gap: 20px; }
.lp-line::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(128, 67, 245, .5), transparent); }
.lp-card, .lp-ax, .lp-faq details, .lp-creator { background: linear-gradient(180deg, #ffffff, #ffffff); border-color: #e8e9f5; }
.lp-card { position: relative; transition: border-color .2s, transform .2s; }
.lp-card:hover, .lp-ax:hover { border-color: rgba(128, 67, 245, .4); }
.lp-ico { background: rgba(128, 67, 245, .07); border: 1px solid rgba(128, 67, 245, .35); box-shadow: 0 0 18px -6px rgba(128, 67, 245, .5); }
.lp-step span { color: var(--accent); }
/* axis cards: a round coloured icon instead of a dot */
.lp-ax { align-items: center; padding: 18px 20px; transition: border-color .2s; }
.lp-ax h3 { color: var(--c); }
.ax-ico { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--c);
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c) 34%, transparent), color-mix(in srgb, var(--c) 8%, transparent));
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 0 20px -6px var(--c); }
.ax-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* example panel: gold frame with a soft glow */
.lp-demo { background: radial-gradient(120% 90% at 80% 20%, rgba(128, 67, 245, .07), transparent 60%), #ffffff;
  border: 1px solid rgba(128, 67, 245, .45); box-shadow: 0 0 60px -20px rgba(128, 67, 245, .35), inset 0 0 40px -20px rgba(128, 67, 245, .2); }
.lp-demo h2 { margin-bottom: 16px; }
/* what khukan does not do */
.lp-not > div { border-top: 0; padding-top: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 4px; align-items: start; }
.lp-not > div .lp-ico { grid-row: span 2; width: 44px; height: 44px; }
.lp-not h3 { align-self: end; }
.lp-faq summary::after { color: var(--accent); }
.lp-faq details[open] { border-color: rgba(128, 67, 245, .35); }
.lp-creator { border-color: rgba(128, 67, 245, .25); }
.lp-creator img { box-shadow: 0 0 0 2px rgba(128, 67, 245, .5), 0 0 24px -4px rgba(128, 67, 245, .5); }
/* closing band */
.lp-cta { position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(60% 120% at 88% 50%, rgba(128, 67, 245, .55), transparent 60%), linear-gradient(100deg, #f4d36a 0%, #e8b93e 60%, #d9a634 100%);
  box-shadow: 0 20px 60px -30px rgba(128, 67, 245, .6); }
.lp-cta::before { content: ""; position: absolute; z-index: -1; right: -60px; top: 50%; width: 320px; height: 320px; border-radius: 50%;
  transform: translateY(-50%); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 0 0 40px rgba(255, 255, 255, .03), 0 0 0 80px rgba(255, 255, 255, .025); }
.lp-btn { gap: 10px; }
.lp-btn.dark { background: #ffffff; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .6); }
.lp-qr { background: #ffffff; color: var(--accent); padding: 14px 14px 10px; border-radius: 20px; }
.lp-qr img { width: 124px; height: 124px; }
/* footer on the app page */
.legal-foot { display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: 1120px; margin: 0 auto; opacity: .7; }
.legal-foot .foot-brand { font-weight: 600; letter-spacing: .02em; opacity: .9; }
.legal-foot .foot-brand { position: relative; padding-left: 22px; }
.legal-foot .foot-brand::before, .legal-foot .foot-brand::after { content: ""; position: absolute; top: 50%; width: 11px; height: 11px; margin-top: -6px;
  border: 1.8px solid var(--accent); border-radius: 50%; box-sizing: border-box; }
.legal-foot .foot-brand::before { left: 0; } .legal-foot .foot-brand::after { left: 7px; }
@media (min-width: 720px) {
  .lp-steps .lp-card:not(:last-child)::after { content: "›"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%);
    color: var(--accent); font-size: 26px; line-height: 1; z-index: 1; }
  .lp-not { gap: 0; }
  .lp-not > div { padding: 0 24px; border-left: 1px solid #e8e9f5; }
  .lp-not > div:first-child { padding-left: 0; border-left: 0; }
}
@media (min-width: 960px) {
  .legal-foot { flex-direction: row; justify-content: space-between; padding: 8px 48px 28px; }
  .hero { gap: 40px; }
  .hero h1 { font-size: 60px; }
}
@media (max-width: 959px) {
  .home-screen .hero-vis { max-height: 34vh; }
}

/* ---------------------------------------------------------------- RESULTS_v0.2 (2026-10-13): result screens in the
   home page's night sky + gold look. Same data, same words; icons follow the fixed axis colours. */
.res-screen { position: relative; isolation: isolate; }
.lp-sky.soft { height: 640px; opacity: .75; }
.ax-integration { --c: #9fbf7a; }
.ax-ico.sm { width: 30px; height: 30px; box-shadow: none; }
.ax-ico.sm svg { width: 16px; height: 16px; }
.ax-ico.xs { width: 22px; height: 22px; box-shadow: none; border-width: 1px; }
.ax-ico.xs svg { width: 13px; height: 13px; stroke-width: 2; }
.btn.primary { background: linear-gradient(180deg, #9c78fb, #6e31e9); border-color: #8043f5;
  box-shadow: 0 8px 28px -10px rgba(128, 67, 245, .55), inset 0 1px 0 rgba(255, 255, 255, .35); font-weight: 600; }
.btn.primary:hover { background: linear-gradient(180deg, #a98bff, #8a52f7); }
/* the relationship-level card (rule-decided Partner Guidance) is the framed answer, as on the concept */
.sp-verdict, .v15 .partner { background: radial-gradient(120% 100% at 85% 0%, rgba(128, 67, 245, .08), transparent 60%), #ffffff;
  border: 1px solid rgba(128, 67, 245, .5); box-shadow: 0 0 40px -16px rgba(128, 67, 245, .45); border-radius: 20px; }
.sp-verdict .pg-level, .v15 .partner .pg-level { color: var(--accent); }
/* the two-ring graph sits on a soft gold glow */
.sp-vis { position: relative; }
.sp-vis::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 0; width: 100%; max-width: 620px; aspect-ratio: 1.45;
  transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 50%, rgba(128, 67, 245, .12), transparent 70%); pointer-events: none; }
.sp-graph .core { filter: drop-shadow(0 0 6px rgba(128, 67, 245, .45)); }
.sp-key { max-width: 400px; background: linear-gradient(180deg, #ffffff, #ffffff); border: 1px solid #e8e9f5; border-radius: 18px; padding: 12px 10px 6px; }
.sp-n { gap: 8px; }
/* overview */
.v15 .answer { border-left: 2px solid var(--accent); padding-left: 18px; }
.side-card { background: linear-gradient(180deg, #ffffff, #ffffff); border-color: #e8e9f5; border-radius: 16px; }
.v15 details.more, .narrow > details.more, details.levels.howto { border: 1px solid #e8e9f5; border-radius: 16px; padding: 0 18px;
  background: linear-gradient(180deg, #ffffff, #ffffff); margin-top: 14px; }
.v15 details.more[open], .narrow > details.more[open] { border-color: rgba(128, 67, 245, .35); }
.legend li > span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.legend li { align-items: center; }
/* six axes: one card per axis with its icon */
.dims { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.dim, .dim:last-child { border: 1px solid #e8e9f5; border-radius: 16px; padding: 0 16px; background: linear-gradient(180deg, #ffffff, #ffffff);
  transition: border-color .2s; }
.dim.open { border-color: rgba(128, 67, 245, .4); box-shadow: 0 0 30px -18px rgba(128, 67, 245, .5); }
.dim > button .t { display: inline-flex; align-items: center; gap: 12px; text-align: left; }
.dim > button .t .ax-ico { width: 40px; height: 40px; box-shadow: none; }
.dim > button .t .ax-ico svg { width: 20px; height: 20px; }
.dim.none > button .t .ax-ico, .dim.awaiting > button .t .ax-ico { opacity: .55; }
.lp-sky { -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }

/* LANDING_v0.3 (2026-10-13): closer to the approved concept: orbit swirl, ridge with two small figures, moon in the CTA band */
.hero-vis { max-width: 520px; }
.hero-vis .hv-orbit ellipse { fill: none; stroke: #8043f5; stroke-width: 1.4; }
.hero-vis .hv-orbit ellipse:first-child { stroke-width: 1.6; opacity: .7; filter: drop-shadow(0 0 5px rgba(246, 196, 90, .7)); }
.hero-vis .hv-ridge { fill: url(#hvGround); }
.hero-vis .hv-rim { fill: none; stroke: rgba(128, 67, 245, .45); stroke-width: 1; }
.hero-vis .hv-people { fill: #050506; }
.hero-vis .hv-arc { stroke-width: 9; }
.hero h1 { text-shadow: 0 0 32px rgba(128, 67, 245, .28), 0 0 2px rgba(7, 28, 62, .2); }
.lp-sky { background:
    radial-gradient(1px 1px at 12% 18%, rgba(7, 28, 62,.8), transparent 60%), radial-gradient(1px 1px at 27% 62%, rgba(7, 28, 62,.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 44% 9%, rgba(7, 28, 62,.75), transparent 60%), radial-gradient(1px 1px at 63% 33%, rgba(7, 28, 62,.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 81% 14%, rgba(7, 28, 62,.8), transparent 60%), radial-gradient(1px 1px at 92% 52%, rgba(7, 28, 62,.55), transparent 60%),
    radial-gradient(1px 1px at 6% 78%, rgba(7, 28, 62,.5), transparent 60%), radial-gradient(1px 1px at 71% 71%, rgba(7, 28, 62,.45), transparent 60%),
    radial-gradient(1px 1px at 35% 40%, rgba(7, 28, 62,.5), transparent 60%), radial-gradient(1.5px 1.5px at 55% 58%, rgba(7, 28, 62,.6), transparent 60%),
    radial-gradient(45% 35% at 28% 34%, rgba(246,180,70,.24), transparent 70%),
    radial-gradient(30% 25% at 12% 60%, rgba(246,160,60,.12), transparent 70%),
    radial-gradient(50% 40% at 85% 10%, rgba(156,140,240,.08), transparent 70%),
    linear-gradient(180deg, #f3f1ff 0%, #f8faff 100%); }
.lp-sky.soft { opacity: .6; }
/* CTA band: a pale moon on the right */
.lp-cta::after { content: ""; position: absolute; z-index: -1; right: 18%; top: -40px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(7, 28, 62, .75), rgba(7, 28, 62, .25) 55%, transparent 72%); opacity: .7; }
@media (max-width: 719px) { .lp-cta::after { right: -40px; top: -60px; } }
.ax-ico { background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c) 40%, transparent), color-mix(in srgb, var(--c) 10%, transparent)); }
.ax-ico svg { fill: color-mix(in srgb, var(--c) 30%, transparent); }
.ax-ico.ax-binding svg, .ax-ico.ax-depth svg { fill: none; }
/* RESULTS_v0.3: splash = graph -> framed level card -> two-way table; axis cards show the approved one-line description */
.sp-vis .sp-verdict { margin: 18px auto 22px; }
.dim { position: relative; }
.dim > button { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ico ttl lvl" "ico ab ab";
  column-gap: 14px; row-gap: 2px; align-items: center; padding: 16px 34px 16px 0; text-align: left; position: relative; }
.dim > button .t, .dim > button .tt { display: contents; }
.dim > button .t > .ax-ico { grid-area: ico; align-self: center; }
.dim > button .tt > span { grid-area: ttl; }
.dim > button .tt .ab { grid-area: ab; font-size: 13.5px; line-height: 1.55; color: var(--muted); white-space: normal; }
.dim.open > button .tt .ab { display: none; }
.dim > button .p { grid-area: lvl; display: block; text-align: right; white-space: nowrap; }
.dim > button .p::after { content: none; }
.dim.open > button .p::after { content: none; }
.dim > button::after { content: ""; position: absolute; right: 0; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%;
  border: 1px solid rgba(128, 67, 245, .5); pointer-events: none; }
.dim > button::before { content: "›"; position: absolute; right: 0; top: 50%; width: 24px; height: 24px; margin-top: -13px; text-align: center;
  line-height: 24px; color: var(--accent); font-size: 18px; transition: transform .2s; pointer-events: none; }
.dim.open > button::before { transform: rotate(90deg); }
@media (max-width: 559px) {
  .dim > button { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ico ttl" "ico lvl" "ico ab"; row-gap: 3px; }
  .dim > button .p { text-align: left; white-space: normal; }
  .dim > button .p small.dir { display: block; margin: 1px 0 0; }
}
/* 2.0.0: entry to ดูหุ้นส่วน (/biz) */
.lp-nav > a:not(.lp-pill) { color: var(--muted); font-size: 15px; min-height: 44px; padding: 0 12px; display: inline-flex; align-items: center; text-decoration: none; }
.lp-nav > a:not(.lp-pill):hover { color: var(--text); }
.biz-link { margin: 14px 0 0; }
.biz-link a { color: var(--accent); text-decoration: none; font-size: 16px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.biz-link a:hover { text-decoration: underline; }
/* 2.0.0 เจตจำนงของแต่ละคน (after the six axes) */
.will { margin: 22px 0; }
.will h2 { font-size: 19px; margin: 4px 0 14px; }
.will-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .will-grid { grid-template-columns: 1fr 1fr; } }
.will-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--bg2); }
.will-card h3 { margin: 0 0 6px; font-size: 16px; color: var(--accent); font-weight: 500; }
.will-nat { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.will-k { margin: 10px 0 4px; font-size: 13px; color: var(--muted); }
.will-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.will-list li { padding-left: 16px; position: relative; }
.will-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.will-list.care li::before { background: none; border: 1.5px solid var(--warn); width: 5px; height: 5px; }
.will-fit { margin-top: 14px; }
.will-fit h3 { font-size: 16px; margin: 0 0 8px; font-weight: 500; }
.will ul.bal { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.will ul.bal li { padding-left: 26px; position: relative; }
.will ul.bal li::before { position: absolute; left: 0; top: .1em; width: 18px; height: 18px; border-radius: 50%; font-size: 12px; display: grid; place-items: center; color: #ffffff; }
.will ul.bal li.good::before { content: "✓"; background: var(--accent); }
.will ul.bal li.care::before { content: "!"; background: var(--warn); }

/* ===================================================================== khukan 2.1 bright theme (owner reference, 19 Oct 2026)
   light page, navy text, one purple accent, Prompt, white cards with soft shadows. Calculation and wording unchanged. */
body { background: radial-gradient(70% 45% at 100% 0, #ece6ff 0, transparent 70%), radial-gradient(60% 40% at 0 35%, #eef6ff 0, transparent 70%), var(--bg); }
h1 { font-weight: 800; letter-spacing: -.02em; line-height: 1.16; }
h2 { font-weight: 700; letter-spacing: -.01em; }
/* khukan logo pack (19 Oct 2026): heart-and-two-people mark + wordmark "khukan." */
.brand { font-weight: 700; font-size: 24px; letter-spacing: -.02em; color: var(--text); padding-left: 0; display: inline-flex; align-items: center; gap: 8px; }
.brand::before, .brand::after, .legal-foot .foot-brand::before, .legal-foot .foot-brand::after { display: none !important; content: none !important; }
.brand b { color: var(--accent); }
.brand-mark { width: 30px; height: auto; display: block; }
.legal-foot .foot-brand { padding-left: 0; display: inline-flex; align-items: center; gap: 6px; }
.legal-foot .foot-brand .brand-mark { width: 20px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; box-shadow: 0 14px 30px rgba(128, 67, 245, .22); }
.btn.primary:hover { background: var(--accent-d); }
.btn { border-color: var(--lav); background: #fff; color: var(--accent); font-weight: 500; }
input, select, textarea { background: #f8f9ff !important; border-color: var(--line) !important; color: var(--text) !important; }
.lp-sky { display: none; }
.lp-card, .lp-ax, .card, .panel, .summary, .lp-faq details, .saved a, .lp-creator { background: #fff; border-color: #edf0fb; box-shadow: var(--shadow); }
.lp-cta { background: linear-gradient(135deg, #9b74ff, var(--accent)); color: #fff; }
.lp-cta h2, .lp-cta p { color: #fff; }
.lp-btn.dark { background: #fff; color: var(--accent); }
.lp-btn.line { border-color: #fff; color: #fff; }
.lp-kicker { color: var(--accent); }
.legal-foot { opacity: .8; }

/* pair picture on a light page: stronger rings, purple cores */
.sp-graph .halo { fill: var(--accent); opacity: .045; }
.sp-graph .track { stroke: #dfe1f0; }
.sp-graph .core { stroke: var(--accent); stroke-width: 1.6; fill: rgba(128, 67, 245, .04); }
.sp-seg.s-none { stroke: #e3e4f2; stroke-opacity: 1; } .sp-seg.s-secondary { stroke-opacity: .45; }

/* home hero (photo right, copy left, sample card overlapping) */
.home-screen { max-width: 1180px; }
.kh-hero { position: relative; min-height: 560px; margin: 4px -20px 0; padding: 26px 20px 0; overflow: hidden; }
.kh-photo { position: absolute; z-index: 0; right: -24px; top: 0; height: 560px; width: 60%; object-fit: cover; object-position: 40% top;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%), linear-gradient(to top, transparent 0, #000 25%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0, #000 30%), linear-gradient(to top, transparent 0, #000 25%, #000 92%, transparent 100%);
  mask-composite: intersect; }
.kh-bubble { position: absolute; z-index: 2; right: 14px; top: 8px; background: #e9e8fa; color: var(--text); font-weight: 600; font-size: 13px;
  line-height: 1.35; text-align: center; padding: 12px 16px; border-radius: 24px 24px 24px 6px; transform: rotate(-8deg); box-shadow: var(--shadow); }
.kh-copy { position: relative; z-index: 1; width: 64%; padding-top: 48px; }
.kh-copy h1 { font-size: clamp(27px, 7.4vw, 66px); margin: 0 0 14px; }
.home-screen .scroll-hint { left: auto; right: 16px; transform: none; background: #fff; box-shadow: var(--shadow); }
.kh-accent { display: inline-block; color: var(--accent); }
.kh-copy .lead { color: var(--text); font-size: 16px; margin: 0 0 22px; }
.kh-copy .start-btn { min-height: 56px; padding: 0 30px; font-size: 18px; }
.kh-copy .quota { color: var(--muted); font-size: 13px; margin: 10px 2px 0; }
.kh-copy .biz-link { margin: 8px 2px 0; font-size: 14px; }
.kh-sample { position: relative; z-index: 3; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-radius: 28px;
  box-shadow: 0 18px 60px rgba(38, 52, 92, .12); padding: 20px 22px 14px; margin: 26px 0 24px; max-width: 420px; }
.kh-sample-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.kh-sample-h b { font-size: 17px; }
.kh-sample .pill { background: var(--lav); color: var(--accent); font-size: 12px; padding: 4px 12px; border-radius: 999px; font-weight: 500; }
.kh-row { display: grid; grid-template-columns: 1.4fr 1fr 70px; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; color: #45527c; }
.kh-dots { display: flex; gap: 6px; }
.kh-dots i { width: 11px; height: 11px; border-radius: 50%; background: #e7e5f4; }
.kh-dots i.on { background: var(--accent); }
.kh-row em { font-style: normal; font-size: 12px; color: var(--muted); text-align: right; }
.kh-more { width: 100%; margin-top: 12px; border: 1px solid #ddd2ff; background: var(--lav); color: var(--accent); border-radius: 999px;
  min-height: 46px; font-weight: 500; cursor: pointer; display: inline-flex; justify-content: center; align-items: center; gap: 8px; }
.kh-more .arr { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.kh-note { text-align: center; color: var(--faint); font-size: 11px; margin: 8px 0 0; }
.kh-feats { display: grid; gap: 14px; margin: 6px 0 26px; }
.kh-feat { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.kh-feat .lp-ico { width: 52px; height: 52px; border-radius: 50%; background: var(--lav); display: grid; place-items: center; flex: none; }
.kh-feat .lp-ico svg { width: 24px; height: 24px; stroke: #6975b0; fill: none; stroke-width: 1.7; }
.home-screen .about { color: var(--muted); font-size: 14px; }
@media (min-width: 900px) {
  .kh-hero { min-height: 660px; margin: 0; padding: 40px 5% 0; border-radius: 0 0 48px 48px;
    background: radial-gradient(ellipse at 80% 25%, #e9edff 0, transparent 47%), linear-gradient(135deg, #f1f7ff, #fff 55%, #f4f1ff); }
  .kh-photo { height: 660px; width: 48%; right: 0; }
  .kh-copy { width: 54%; padding-top: 60px; }
  .kh-copy .lead { font-size: 21px; }
  .kh-bubble { right: 8%; top: 40px; font-size: 16px; padding: 16px 22px; }
  .kh-sample { margin-top: 36px; }
  .kh-feats { grid-template-columns: repeat(3, 1fr); padding: 0 5%; margin-top: 30px; }
}
/* the six axis colours keep their hues; one step deeper so they read on a white page */
.ax-liking { --c: #e0789a; } .ax-attraction { --c: #e4513f; } .ax-bond { --c: #ec9b3b; }
.ax-binding { --c: #7f63ee; } .ax-depth { --c: #2ea596; } .ax-tension_distance { --c: #6f86a6; } .ax-integration { --c: #7ea65a; }
.sp-seg.s-medium { stroke-opacity: .8; }

/* khukan 2.1: saved-results strip as a soft rounded card */
.saved a, .home-screen .saved a {
  border: 1px solid #ebe6fd; border-radius: 22px; padding: 14px 14px 14px 20px; min-height: 64px;
  background: linear-gradient(135deg, #ffffff, #f7f3ff);
  box-shadow: 0 10px 28px -16px rgba(91, 60, 180, .35); font-weight: 500;
  transition: transform .15s ease, box-shadow .15s ease;
}
.saved a + a { margin-top: 10px; }
.saved a:hover { transform: translateY(-1px); box-shadow: 0 14px 32px -16px rgba(91, 60, 180, .45); }
.saved a span.go { border: 0; border-radius: 999px; min-height: 38px; padding: 0 14px 0 16px;
  background: var(--lav); color: var(--accent); font-weight: 600; }
.saved a:hover .go { background: #e4dcff; }

/* 2.1 เจตจำนงในการเลือกคู่ (เรือน 7 + ต้นไม้เจ้าเรือน) */
.will-seek { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 8%, transparent); }
.will-seek .will-k { margin-top: 0; color: var(--accent); font-weight: 500; }
