/* Mindento quote wizard: same brand as roicardlink.mindento.com (Plus Jakarta Sans, dark teal gradient,
   mint -> teal pill buttons, 20px radius). Mobile first: one column, sticky action bar in thumb reach. */
@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/PlusJakartaSans-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/PlusJakartaSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/PlusJakartaSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --teal: #2ecee3;
  --mint: #64e0ba;
  --teal-ink: #0e8796;
  --deep: #02454e;
  --abyss: #000e10;
  --ink: #13171a;
  --text: #3c464b;
  --muted: #7a868b;
  --line: #e3e9eb;
  --page: #ffffff;
  --soft: #f3f7f8;
  --track: #e6eef0;
  --danger: #e0203f;
  --tint: #eafafb;
  --grad: linear-gradient(45deg, var(--teal) 0%, var(--mint) 100%);
  --grad-h: linear-gradient(90deg, var(--mint), var(--teal));
  --dark: linear-gradient(-45deg, var(--deep) 50%, var(--abyss) 100%);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 20px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; background: var(--soft); color: var(--text); font: 400 16px/1.55 var(--font); }
h1, h2, h3 { color: var(--ink); font-weight: 600; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
button, input, textarea { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  width: 100%; max-width: 720px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Header */
.top { background: var(--dark); color: #d9e7ea; padding-top: env(safe-area-inset-top, 0px); }
.nav { display: flex; justify-content: space-between; align-items: center; padding-block: 18px; }
.nav__brand img { height: 22px; width: auto; display: block; }
.nav__lang { color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; padding: 8px 6px; opacity: .85; }
.nav__lang:hover, .nav__lang:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* Progress */
.progress { padding-block: 0 18px; }
.progress[hidden] { display: none; }
.progress__meta { display: flex; justify-content: space-between; font-size: 13px; color: #9fb7bb; margin-bottom: 8px; }
.progress__track { height: 6px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.progress__fill { height: 100%; width: 0; background: var(--grad-h); border-radius: 99px; transition: width .3s ease; }

/* Intro (start step) */
.intro { background: var(--dark); color: #c9dcdf; padding-block: 12px 40px; }
.intro h1 { color: #fff; font-size: clamp(30px, 7vw, 46px); line-height: 1.12; }
.intro__lede { font-size: 18px; font-weight: 300; margin: 16px 0 0; max-width: 32em; }
.intro__list { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 12px; }
.intro__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.intro__list li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--grad) center / 100% no-repeat; -webkit-mask: radial-gradient(circle, #000 0 60%, transparent 61%); mask: radial-gradient(circle, #000 0 60%, transparent 61%); }
.intro__modules { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; padding: 0; list-style: none; }
.intro__modules li { font-size: 13px; color: #fff; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }

/* Main card */
main { flex: 1; }
.stage { padding-block: 24px 120px; }
.card { background: #fff; border-radius: var(--r); box-shadow: 0 1px 3px rgba(0,30,35,.06); padding: 26px 20px; }
@media (min-width: 560px) { .card { padding: 34px 36px; } }
.step__title { font-size: clamp(24px, 5.5vw, 32px); line-height: 1.2; outline: none; }
.step__lede { margin: 8px 0 0; color: var(--muted); }
.fields { display: grid; gap: 26px; margin-top: 26px; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field__label { display: block; padding: 0; margin-bottom: 10px; font-weight: 600; font-size: 16px; color: var(--ink); }
.field__opt { font-weight: 400; color: var(--muted); font-size: 14px; }
.field__error { margin: 8px 0 0; color: var(--danger); font-size: 14px; }
.field__error:empty { display: none; }
.field--invalid .input, .field--invalid .tiles { box-shadow: 0 0 0 2px var(--danger); border-radius: 14px; }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tiles--wide { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tiles.tiles--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 52px; text-align: left;
  padding: 12px 40px 12px 14px; border-radius: 14px; border: 0; background: var(--soft); cursor: pointer;
  box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .15s ease, background .15s ease; -webkit-tap-highlight-color: transparent;
}
.tile:hover { box-shadow: inset 0 0 0 1.5px var(--teal); }
.tile:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.tile__label { font-weight: 600; font-size: 15px; color: var(--ink); line-height: 1.3; }
.tile__hint { font-size: 13px; color: var(--muted); line-height: 1.35; }
.tile::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px #c5d1d4; background: #fff;
}
.tile--multi::after { border-radius: 6px; }
.tile[aria-pressed="true"], .tile[aria-checked="true"] { background: var(--tint); box-shadow: inset 0 0 0 2px var(--teal); }
.tile[aria-pressed="true"]::after, .tile[aria-checked="true"]::after { box-shadow: none; background: var(--grad); }
.check { position: absolute; right: 16px; top: 50%; width: 12px; height: 12px; margin-top: -6px; color: #fff; display: none; z-index: 1; }
.tile[aria-pressed="true"] .check, .tile[aria-checked="true"] .check { display: block; }
.tile--module { min-height: 76px; }

/* Number field */
.number { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.input {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 0; background: var(--soft);
  box-shadow: inset 0 0 0 1.5px var(--line); font-size: 18px; color: var(--ink); -webkit-appearance: none; appearance: none;
}
.input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--teal); background: #fff; }
.input::placeholder { color: #a8b3b7; }
.number .input { flex: 1 1 120px; width: auto; min-width: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.number .input:disabled { opacity: .45; }
textarea.input { min-height: 110px; resize: vertical; font-size: 16px; }
.seg { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--soft); box-shadow: inset 0 0 0 1.5px var(--line); }
.seg button { border: 0; background: transparent; padding: 0 14px; min-height: 44px; border-radius: 10px; cursor: pointer; font-size: 14px; color: var(--text); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 4px rgba(0,30,35,.12); }
.seg button:focus-visible { outline: 3px solid var(--mint); outline-offset: 1px; }
.unknown {
  flex: none; white-space: nowrap; border: 0; background: transparent; padding: 0 14px; min-height: 52px; border-radius: 14px; cursor: pointer;
  font-size: 14px; color: var(--teal-ink); box-shadow: inset 0 0 0 1.5px var(--line);
}
.unknown[aria-pressed="true"] { background: var(--tint); box-shadow: inset 0 0 0 2px var(--teal); font-weight: 600; }

/* Consent */
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--teal-ink); }
.ts { min-height: 0; }

/* Summary */
.sum { display: grid; gap: 14px; margin-top: 22px; }
.sum__block { border-radius: 16px; background: var(--soft); padding: 16px 16px 10px; }
.sum__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.sum__head h3 { font-size: 16px; color: var(--teal-ink); }
.sum__edit { border: 0; background: none; padding: 6px 0; color: var(--teal-ink); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sum dl { margin: 0; }
.sum dl div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 8px 0; border-top: 1px solid var(--line); }
@media (min-width: 560px) { .sum dl div { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; } }
.sum dt { font-size: 14px; color: var(--muted); }
.sum dd { margin: 0; font-weight: 600; color: var(--ink); font-size: 15px; }

/* Done */
.done { text-align: center; padding-block: 12px; }
.done__icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(46,206,227,.35); }
.done__icon svg { width: 32px; height: 32px; }
.done p { max-width: 30em; margin: 12px auto 0; }

/* Alerts */
.alert { margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: #fdecef; color: #a3122b; font-size: 14px; }
.alert:empty { display: none; }

/* Sticky action bar */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 -1px 0 var(--line);
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
}
.bar[hidden] { display: none; }
.bar__inner { display: flex; gap: 10px; padding-top: 12px; }
.bar__inner .pill--grad { flex: 1; }

/* Buttons */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px;
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer;
  padding: 0 28px; border-radius: 999px; border: 0; color: #fff; white-space: nowrap;
  transition: filter .15s ease, transform .15s ease; -webkit-tap-highlight-color: transparent;
}
.pill:hover { filter: brightness(1.05); }
.pill:active { transform: translateY(1px); }
.pill:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
.pill--grad { background: var(--grad); box-shadow: 0 6px 20px rgba(46,206,227,.28); }
.pill--outline { background: #fff; color: var(--teal-ink); box-shadow: inset 0 0 0 1.5px var(--line); padding: 0 20px; }
.pill[disabled] { opacity: .6; cursor: progress; }

.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-block: 0 110px; color: var(--muted); font-size: 13px; }
.foot img { height: 17px; width: auto; }
.foot a { color: var(--teal-ink); }

.step-enter { animation: enter .25s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
