:root {
  color-scheme: light;
  --ink: #3b2a20;
  --brown: #6f432b;
  --caramel: #9a652f;
  --copper: #b66f43;
  --cream: #fbf7f1;
  --paper: #fffdf9;
  --soft: #f4ecdf;
  --line: #e7d4bf;
  --muted: #796558;
  --white: #fff;
  --shadow: 0 24px 70px rgba(75, 47, 31, .10);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--cream); }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(231, 207, 178, .42), transparent 27rem),
    radial-gradient(circle at 92% 48%, rgba(194, 142, 101, .15), transparent 30rem),
    var(--cream);
  font-family: Inter, Manrope, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.lab-shell { min-height: 100vh; display: flex; flex-direction: column; }
.lab-header {
  width: min(1160px, calc(100% - 40px));
  min-height: 104px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(154, 101, 47, .2);
}
.lab-brand { display: inline-flex; align-items: center; }
.lab-brand img { width: 132px; height: auto; display: block; }
.lab-header-label { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .22em; }

.hub-main { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 90px; }
.hub-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .65fr); gap: 70px; align-items: end; margin-bottom: 50px; }
.lab-eyebrow { margin: 0 0 18px; color: var(--copper); font-size: 12px; font-weight: 800; letter-spacing: .2em; }
.hub-hero h1 { margin: 0; font-family: "Cormorant Garamond", "Noto Serif", Georgia, serif; font-size: clamp(46px, 7vw, 76px); font-weight: 500; letter-spacing: -.045em; line-height: .98; }
.hub-hero h1 em { color: var(--caramel); font-weight: 400; }
.hub-intro { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding-bottom: 8px; }
.hub-count { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--caramel); font-family: Georgia, serif; font-size: 17px; }
.hub-intro p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }

.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.app-card {
  position: relative;
  min-height: 260px;
  padding: 30px;
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 22px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 249, .95);
  box-shadow: 0 14px 40px rgba(75, 47, 31, .055);
  text-decoration: none;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.app-card::after { content: ""; position: absolute; right: -50px; bottom: -70px; width: 170px; height: 170px; border: 1px solid rgba(182, 111, 67, .13); border-radius: 50%; }
.app-card:hover { transform: translateY(-4px); border-color: #cba47b; box-shadow: 0 22px 55px rgba(75, 47, 31, .11); }
.app-card:focus-visible { outline: 3px solid rgba(182, 111, 67, .26); outline-offset: 3px; }
.app-card-featured { grid-column: 1 / -1; min-height: 235px; grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-rows: 1fr; align-items: center; padding: 36px 40px; background: linear-gradient(120deg, #fffdf9 0%, #f7eadb 100%); }
.app-number { position: absolute; top: 22px; right: 25px; z-index: 1; color: #c9ab8f; font-family: Georgia, serif; font-size: 13px; letter-spacing: .08em; }
.app-icon { width: 64px; height: 64px; grid-row: 1 / 3; display: grid; place-items: center; border-radius: 50%; color: var(--caramel); background: var(--soft); }
.app-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.app-card-featured .app-icon { width: 76px; height: 76px; grid-row: auto; background: #f0dfcb; }
.app-card-featured .app-icon svg { width: 40px; height: 40px; }
.app-card-copy { min-width: 0; display: flex; flex-direction: column; align-self: center; }
.app-card-copy small { margin-bottom: 9px; color: var(--copper); font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.app-card-copy strong { margin-bottom: 10px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 29px; font-weight: 600; line-height: 1.08; }
.app-card-featured .app-card-copy strong { font-size: clamp(32px, 4vw, 43px); }
.app-card-copy > span { max-width: 520px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.app-action { z-index: 1; grid-column: 1 / -1; align-self: end; color: var(--brown); font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.app-action b { display: inline-block; margin-left: 4px; color: var(--copper); transition: transform .2s; }
.app-card:hover .app-action b { transform: translate(3px, -3px); }
.app-card-featured .app-action { grid-column: auto; align-self: center; padding: 13px 18px; border: 1px solid #cfae8c; border-radius: 999px; background: rgba(255,255,255,.62); white-space: nowrap; }

.lab-footer { width: min(1160px, calc(100% - 40px)); margin: auto auto 0; padding: 26px 0 34px; display: flex; justify-content: center; gap: 10px; border-top: 1px solid rgba(154, 101, 47, .18); color: #9a8575; font-size: 11px; letter-spacing: .14em; }
.lab-footer i { color: #c5a98d; font-style: normal; }

/* Individual tools */
.tool-main { width: min(920px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 86px; }
.tool-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 42px; color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.tool-back span { color: var(--copper); font-size: 20px; transition: transform .2s; }
.tool-back:hover span { transform: translateX(-3px); }
.tool-back:focus-visible, .primary-button:focus-visible, .secondary-button:focus-visible, .result-cta:focus-visible, .option-card:focus-within { outline: 3px solid rgba(182, 111, 67, .24); outline-offset: 3px; }
.tool-hero { max-width: 760px; margin: 0 auto 38px; text-align: center; }
.tool-hero-icon { width: 68px; height: 68px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; color: var(--caramel); background: var(--soft); }
.tool-hero-icon svg { width: 35px; height: 35px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.tool-hero h1 { margin: 0; font-family: "Cormorant Garamond", "Noto Serif", Georgia, serif; font-size: clamp(42px, 7vw, 66px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.tool-hero h1 em { color: var(--caramel); font-weight: 400; }
.tool-hero p:last-child { max-width: 600px; margin: 20px auto 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.tool-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 253, 249, .96); box-shadow: var(--shadow); }
.tool-form { padding: 36px 40px 40px; }
.tool-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.form-section + .form-section { margin-top: 32px; padding-top: 30px; border-top: 1px solid var(--line); }
.section-heading { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.section-number { padding-top: 3px; color: var(--copper); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.section-heading h2, .section-heading legend { margin: 0 0 5px; padding: 0; color: var(--ink); font-family: "Cormorant Garamond", Georgia, serif; font-size: 27px; font-weight: 600; line-height: 1.05; }
.section-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.option-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.option-card { position: relative; min-height: 76px; display: flex; align-items: center; gap: 13px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.option-card:hover { transform: translateY(-2px); border-color: #cda77e; }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-dot { width: 20px; height: 20px; flex: 0 0 20px; display: grid; place-items: center; border: 1px solid #cbb197; border-radius: 50%; background: #fff; }
.option-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: transparent; }
.option-card:has(input:checked) { border-color: var(--caramel); background: #fcf5ec; box-shadow: inset 0 0 0 1px var(--caramel); }
.option-card:has(input:checked) .option-dot { border-color: var(--caramel); }
.option-card:has(input:checked) .option-dot::after { background: var(--caramel); }
.option-copy { display: flex; flex-direction: column; gap: 3px; }
.option-copy strong { font-size: 15px; line-height: 1.2; }
.option-copy small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field > span { font-size: 14px; font-weight: 750; }
.form-field small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.input-box, .select-box { min-height: 58px; display: flex; align-items: center; border: 1px solid #d8bda1; border-radius: 10px; background: var(--white); }
.input-box:focus-within, .select-box:focus-within { border-color: var(--caramel); box-shadow: 0 0 0 4px rgba(154, 101, 47, .09); }
.input-box input, .select-box select { min-width: 0; width: 100%; min-height: 56px; padding: 0 16px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 17px; }
.select-box { position: relative; }
.select-box::after { content: "⌄"; position: absolute; right: 15px; color: var(--caramel); pointer-events: none; }
.select-box select { padding-right: 40px; appearance: none; }
.input-unit { padding-right: 16px; color: var(--caramel); font-family: Georgia, serif; font-size: 17px; font-style: italic; }
.form-actions { margin-top: 30px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.primary-button, .secondary-button { min-height: 50px; padding: 0 22px; border-radius: 999px; font-weight: 800; cursor: pointer; }
.primary-button { border: 1px solid var(--brown); color: #fff; background: var(--brown); }
.primary-button:hover { background: #57321f; }
.secondary-button { border: 1px solid var(--line); color: var(--brown); background: #fff; }
.secondary-button:hover { border-color: #cda77e; background: var(--soft); }
.button-wide { width: 100%; justify-content: center; }
.form-error { margin: 14px 0 0; color: #9b3c32; font-size: 14px; text-align: right; }

.quiz-progress { padding: 22px 40px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); background: #fcf8f3; }
.progress-track { height: 5px; flex: 1; overflow: hidden; border-radius: 999px; background: #eadbcb; }
.progress-bar { width: 25%; height: 100%; border-radius: inherit; background: var(--caramel); transition: width .25s ease; }
.progress-label { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.quiz-step { animation: reveal .3s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.result-panel { padding: 38px 40px 42px; border-top: 1px solid var(--line); background: linear-gradient(135deg, #f7ebdd, #fffaf4); animation: reveal .35s ease both; }
.result-kicker { display: block; margin-bottom: 9px; color: var(--copper); font-size: 11px; font-weight: 850; letter-spacing: .16em; }
.result-panel h2 { margin: 0 0 12px; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(32px, 5vw, 45px); font-weight: 600; line-height: 1.04; }
.result-summary { max-width: 680px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.result-metrics { margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.metric { min-height: 102px; padding: 17px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(154, 101, 47, .2); border-radius: 12px; background: rgba(255,255,255,.68); }
.metric span { color: var(--muted); font-size: 12px; line-height: 1.35; }
.metric strong { margin-top: 10px; color: var(--brown); font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.result-note { margin: 22px 0 0; padding: 15px 17px; border-left: 3px solid var(--copper); color: var(--muted); background: rgba(255,255,255,.54); font-size: 14px; line-height: 1.55; }
.result-actions { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 10px; }
.result-cta { min-height: 48px; padding: 0 19px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--brown); border-radius: 999px; color: #fff; background: var(--brown); font-size: 14px; font-weight: 800; text-decoration: none; cursor: pointer; }
.result-cta.secondary { border-color: #cba98a; color: var(--brown); background: rgba(255,255,255,.68); }
.result-cta:hover { transform: translateY(-1px); }
.privacy-note { margin: 18px 0 0; color: #9a8575; font-size: 12px; text-align: center; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 10; padding: 11px 17px; border-radius: 999px; color: #fff; background: var(--ink); font-size: 13px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 760px) {
  .lab-header { min-height: 84px; }
  .lab-brand img { width: 110px; }
  .hub-main { padding: 48px 0 64px; }
  .hub-hero { grid-template-columns: 1fr; gap: 28px; margin-bottom: 34px; }
  .hub-intro { max-width: 520px; }
  .app-grid { grid-template-columns: 1fr; }
  .app-card-featured { grid-column: auto; min-height: 280px; grid-template-columns: 64px 1fr; grid-template-rows: auto 1fr auto; align-items: initial; padding: 30px; }
  .app-card-featured .app-icon { width: 64px; height: 64px; grid-row: 1 / 3; }
  .app-card-featured .app-icon svg { width: 34px; height: 34px; }
  .app-card-featured .app-card-copy strong { font-size: 31px; }
  .app-card-featured .app-action { grid-column: 1 / -1; justify-self: start; align-self: end; }
  .tool-main { padding-top: 26px; }
  .tool-back { margin-bottom: 32px; }
  .tool-form, .result-panel { padding: 30px 25px 32px; }
  .quiz-progress { padding: 19px 25px; }
  .option-grid.cols-3 { grid-template-columns: 1fr; }
  .result-metrics { grid-template-columns: 1fr; }
  .metric { min-height: 82px; }
}

@media (max-width: 480px) {
  .lab-header, .hub-main, .lab-footer { width: min(100% - 28px, 1080px); }
  .lab-header-label { font-size: 10px; }
  .hub-hero h1 { font-size: 44px; }
  .hub-intro { grid-template-columns: 40px 1fr; gap: 13px; }
  .hub-count { width: 40px; height: 40px; font-size: 15px; }
  .hub-intro p { font-size: 15px; }
  .app-card, .app-card-featured { min-height: 264px; padding: 24px; grid-template-columns: 54px 1fr; gap: 18px 16px; }
  .app-icon, .app-card-featured .app-icon { width: 54px; height: 54px; }
  .app-icon svg, .app-card-featured .app-icon svg { width: 29px; height: 29px; }
  .app-card-copy strong, .app-card-featured .app-card-copy strong { font-size: 27px; }
  .app-card-copy > span { font-size: 14px; }
  .lab-footer { flex-wrap: wrap; text-align: center; line-height: 1.6; }
  .tool-main { width: min(100% - 28px, 920px); padding-bottom: 64px; }
  .tool-hero { margin-bottom: 30px; }
  .tool-hero h1 { font-size: 43px; }
  .tool-hero p:last-child { font-size: 15px; }
  .tool-form, .result-panel { padding: 25px 20px 28px; }
  .quiz-progress { padding: 17px 20px; }
  .option-grid, .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .option-card { min-height: 72px; }
  .form-actions { justify-content: stretch; }
  .form-actions button { flex: 1; }
  .result-actions { flex-direction: column; }
  .result-cta { width: 100%; }
}
.vani-language-switch{margin-left:auto;display:flex;align-items:center;gap:7px;font:600 11px/1 Manrope,sans-serif;letter-spacing:.12em;color:#b28a67}.vani-language-switch a{color:#8a6448;text-decoration:none;padding:7px 4px;border-bottom:1px solid transparent}.vani-language-switch a.active{color:#3b2a20;border-bottom-color:#b77855}.vani-language-switch span{opacity:.45}
