/* Palette "verde fresco": deep petrol green for trust (hero, bands, logo), mint for every action, lime only as a highlight on dark.
   Inspired by the green-mint-lime family of La Haus but with our own tones, a white page body and our own layout. */
:root {
  --bg: #FFFFFF;
  --text: #16211F;
  --muted: #56635F;
  --surface: #F3F6F4;       /* alternate sections */
  --paper: #FFFFFF;         /* cards and the chat */
  --border: #E1E8E4;
  --bubble-bot: #F0F4F2;
  --accent: #3FD99B;        /* mint: buttons and actions (dark text on it: 8.1:1) */
  --accent-hover: #2FC88A;
  --accent-ink: #0B2E29;
  --accent-strong: #0F4C44; /* large text accents on white */
  --accent-text: #0E7A5A;   /* small green text on white (5.3:1) */
  --lime: #DCF25C;          /* highlight on dark backgrounds only (7.9:1 on petrol) */
  --lime-ink: #0B2E29;
  --petrol: #0F4C44;        /* deep green: hero, bands, user bubbles, logo */
  --petrol-ink: #FFFFFF;
  --petrol-soft: #DCE8E2;
  --amber-soft: #E9FBF2;    /* soft mint tint (icon tiles, glows) */
  --logo-ink: #0F4C44;      /* the P of the logo */
  --logo-light: #DCF25C;    /* the light inside the logo's door */
  --danger: #B42318;
  --on-danger: #FFFFFF;
  --chat-user-bg: #0F4C44;
  --chat-user-text: #FFFFFF;
  --chat-send: #3FD99B;
  --chat-send-ink: #0B2E29;
  --nav-bg: #FFFFFF;
  --shadow: 0 1px 2px rgba(10, 40, 34, 0.06);
  --shadow-lg: 0 1px 2px rgba(10, 40, 34, 0.06), 0 18px 40px -12px rgba(10, 40, 34, 0.2);
  --ease: cubic-bezier(0.32, 0.72, 0, 1); /* decelerating, settles like a critically damped spring */
  --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D1917;
    --text: #E8F1EE;
    --muted: #9FB3AD;
    --surface: #12221F;
    --paper: #142623;
    --border: #22382F;
    --bubble-bot: #1B302B;
    --accent: #3FD99B;
    --accent-hover: #63E3B0;
    --accent-ink: #0B2E29;
    --accent-strong: #3FD99B;
    --accent-text: #5FE3AE;
    --petrol: #0F3F38;
    --petrol-ink: #FFFFFF;
    --petrol-soft: #16302A;
    --amber-soft: #16302A;
    --logo-ink: #E8F1EE;
    --danger: #F97066;
    --on-danger: #2A0B08;
    --chat-user-bg: #1E6A5B;
    --chat-user-text: #FFFFFF;
    --nav-bg: #0D1917;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 1px 2px rgba(0, 0, 0, 0.5), 0 18px 40px -12px rgba(0, 0, 0, 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 32px, 1120px); margin-inline: auto; }
.container--narrow { width: min(100% - 32px, 720px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 8px; }

/* Type: an editorial serif for display, a friendly sans for reading */
.display { font-weight: 800; font-size: clamp(2.375rem, 6.4vw, 4.75rem); line-height: 1.04; letter-spacing: -0.04em; text-wrap: balance; }
.display em { font-style: normal; color: var(--accent-strong); }
.display--md { font-size: clamp(2.125rem, 5.2vw, 3.75rem); }
.h2 { font-weight: 800; font-size: clamp(1.75rem, 3.8vw, 2.75rem); line-height: 1.1; letter-spacing: -0.035em; max-width: 22ch; text-wrap: balance; margin-bottom: 3rem; }
.h2--center { margin-inline: auto; text-align: center; }
h3 { font-weight: 700; font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.015em; }
.lead { font-size: clamp(1.0625rem, 2vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 58ch; }
.kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* Buttons: soft rectangles (not pills), feedback on press */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; font-weight: 600; border-radius: 10px;
  padding: 0 22px; height: 44px; transition: transform 100ms ease-out, background-color 150ms ease-out, border-color 150ms;
  -webkit-tap-highlight-color: transparent;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--light { background: var(--paper); color: var(--text); }
.btn--light:hover { background: var(--bg); }
.btn:active { transform: scale(0.97); }
.btn--sm { height: 36px; padding: 0 16px; font-size: 0.875rem; }
.btn--lg { height: 52px; padding: 0 26px; font-size: 1.0625rem; }
.link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 5px; transition: text-decoration-color 150ms; }
.link:hover { text-decoration-color: currentColor; }

/* NAV */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color 250ms, backdrop-filter 250ms, box-shadow 250ms; }
.nav.is-scrolled { background: var(--nav-bg); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); box-shadow: 0 1px 0 var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
/* The logo's P (an open door with light inside) is the first letter of the word: "P" + "ropik" reads Propik */
.logo { display: inline-block; white-space: nowrap; font-weight: 800; font-size: 1.625rem; line-height: 1; letter-spacing: -0.045em; color: var(--text); }
.logo__mark { display: inline-block; height: 0.74em; width: auto; vertical-align: baseline; margin-right: 0.03em; overflow: visible; }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: 0.9375rem; font-weight: 500; }
.nav__links a { color: var(--muted); transition: color 150ms; }
.nav__links a:hover { color: var(--text); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; cursor: pointer; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 300ms var(--ease); }
.nav__toggle span:first-child { top: 18px; } .nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.drawer { position: fixed; inset: 64px 0 0 0; z-index: 40; background: var(--nav-bg); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 250ms, transform 350ms var(--ease), visibility 0s 350ms; }
.drawer.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.drawer nav { display: flex; flex-direction: column; gap: 4px; padding: 24px 16px; }
.drawer nav a:not(.btn) { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; padding: 14px 0; border-bottom: 1px solid var(--border); }
.drawer .btn { margin-top: 20px; height: 52px; }

/* HERO: value first (example results around the chat), warm glow and a Lima skyline */
.hero { position: relative; padding: 140px 0 0; overflow: hidden; }
.hero__glow { position: absolute; inset: 0 0 auto 0; height: 760px; background: radial-gradient(60% 55% at 50% 0%, var(--amber-soft) 0%, transparent 70%); pointer-events: none; }
.hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.hero__inner .lead { margin-inline: auto; }
.hero__stage { position: relative; width: min(100%, 640px); margin-top: 32px; text-align: left; }
.examples { position: absolute; inset: 0; pointer-events: none; }
.example { position: absolute; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; width: 252px; padding: 12px 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.example__icon { grid-row: span 2; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--amber-soft); color: var(--petrol); }
.example__icon svg, .trust__icon svg, .profile__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.example__label { font-size: 0.75rem; color: var(--muted); line-height: 1.3; }
.example strong { font-size: 1.0625rem; letter-spacing: -0.02em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.example--a { left: -276px; top: 36px; transform: rotate(-2deg); }
.example--b { right: -284px; top: 120px; transform: rotate(2deg); }
.example--c { left: -252px; top: 236px; transform: rotate(1deg); }
.examples__note { margin-top: 14px; text-align: center; font-size: 0.8125rem; color: var(--muted); }
.skyline { display: block; width: 100%; height: 180px; margin-top: 56px; color: color-mix(in srgb, var(--petrol) 30%, transparent); }
.skyline__sun { fill: var(--amber-soft); stroke: color-mix(in srgb, var(--accent) 60%, transparent); stroke-width: 1.5; }

/* CHAT */
.chat { background: var(--paper); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.chat__head small { display: block; color: var(--muted); font-size: 0.75rem; line-height: 1.2; }
.chat__head strong { font-size: 0.9375rem; line-height: 1.3; display: block; }
.chat__head > div { flex: 1; min-width: 0; }
.avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--petrol); color: var(--petrol-ink); display: grid; place-items: center; font-weight: 800; font-size: 0.9375rem; }
.chat__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px; min-height: 200px; max-height: 440px; overflow-y: auto; font-size: 0.9688rem; line-height: 1.55; overscroll-behavior: contain; }
.msg { max-width: 85%; padding: 11px 15px; border-radius: 16px; animation: pop 350ms var(--ease) both; transform-origin: bottom left; overflow-wrap: anywhere; }
.msg--bot { align-self: flex-start; background: var(--bubble-bot); border-bottom-left-radius: 4px; }
.msg--user { align-self: flex-end; background: var(--chat-user-bg); color: var(--chat-user-text); border-bottom-right-radius: 4px; transform-origin: bottom right; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: none; } }
.typing { display: flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dot 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.chat__input { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 18px; border-top: 1px solid var(--border); background: var(--paper); }
.chat__input input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font-size: 1rem; padding: 8px 0; }
.chat__input input::placeholder { color: var(--muted); }
.chat__input:focus-within { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.send { flex: none; width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--chat-send); color: var(--chat-send-ink); display: grid; place-items: center; cursor: pointer; transition: transform 100ms ease-out; font-weight: 700; }
.send:active { transform: scale(0.92); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 9px 16px; font-size: 0.9375rem; cursor: pointer; transition: transform 100ms ease-out, border-color 150ms, background-color 150ms; text-align: left; }
.chip:hover { border-color: var(--accent); }
.chip:active { transform: scale(0.97); }

/* SECTIONS */
.section { padding: 120px 0; }
.section--alt { background: var(--surface); }

/* Before / with Depalo */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin-inline: auto; }
.compare__col { border-radius: 18px; padding: 32px; }
.compare__col h3 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px; }
.compare__col ul { display: grid; gap: 14px; }
.compare__col li { position: relative; padding-left: 30px; line-height: 1.5; }
.compare__col li::before { position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 800; }
.compare__col--before { background: var(--surface); color: var(--muted); }
.compare__col--before h3 { color: var(--muted); }
.compare__col--before li::before { content: "✕"; background: var(--border); color: var(--muted); }
.compare__col--after { background: var(--petrol); color: var(--petrol-ink); }
.compare__col--after h3 { color: var(--accent); }
.compare__col--after li::before { content: "✓"; background: var(--accent); color: var(--accent-ink); }

/* Dark petrol band: how it works, as a path */
.band { background: var(--petrol); color: var(--petrol-ink); }
.band .h2 { color: var(--petrol-ink); }
.path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; margin-bottom: 56px; }
.path::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 1px; background: color-mix(in srgb, var(--petrol-ink) 30%, transparent); }
.path__step { position: relative; display: flex; flex-direction: column; gap: 12px; }
.path__n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 1.0625rem; margin-bottom: 12px; }
.profile p, .trust__item p { color: var(--muted); }
.band .path__step p { color: color-mix(in srgb, var(--petrol-ink) 78%, transparent); }

/* Figures in a row, separated by rules */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.figures div { padding: 32px 24px 32px 0; display: flex; flex-direction: column; gap: 10px; }
.figures div + div { padding-left: 24px; border-left: 1px solid var(--border); }
.figures dt { font-weight: 800; font-size: clamp(1.625rem, 2.8vw, 2.25rem); letter-spacing: -0.035em; line-height: 1.05; color: var(--text); font-variant-numeric: tabular-nums; }
.figures dd { color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }
.sources { margin-top: 20px; color: var(--muted); font-size: 0.8125rem; }

/* Trust: four reasons, icon cards */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust__item { background: var(--paper); border: 1px solid var(--border); border-radius: 16px; padding: 24px 22px; display: flex; flex-direction: column; gap: 10px; }
.trust__icon, .profile__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--petrol); color: var(--accent); margin-bottom: 6px; }
.trust__item p { font-size: 0.9375rem; line-height: 1.5; }

/* For whom: three situation cards */
.profiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.profile { border: 1px solid var(--border); border-radius: 16px; padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.profile__icon { background: var(--amber-soft); color: var(--petrol); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--paper); border: 1px solid var(--border); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 700; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); font-weight: 600; transition: transform 250ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); }
.faq a { text-decoration: underline; text-underline-offset: 2px; }

/* Final call: petrol band, the amber button is the only bright thing */
.final { text-align: center; background: var(--petrol); color: var(--petrol-ink); }
.final .container { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.final .display { max-width: 16ch; }
.final .lead { color: color-mix(in srgb, var(--petrol-ink) 80%, transparent); }
.disclaimer { max-width: 60ch; color: color-mix(in srgb, var(--petrol-ink) 70%, transparent); font-size: 0.875rem; margin-top: 24px; }

.footer { padding: 56px 0; color: var(--muted); font-size: 0.875rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; align-items: start; }
.footer p { margin-top: 4px; }
.footer nav { display: flex; flex-direction: column; gap: 8px; }
.footer nav a:hover { color: var(--text); }
.footer__meta { display: flex; flex-direction: column; gap: 8px; }

/* Reveal: fade + slide up, driven by IntersectionObserver */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 800ms var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 1240px) {
  .example--a, .example--c { left: -210px; } .example--b { right: -210px; }
}
@media (max-width: 1100px) {
  .trust { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; margin-left: auto; margin-right: -10px; }
  .hero { padding: 108px 0 0; }
  .hero__stage { margin-top: 16px; }
  .examples { position: static; display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px 14px; padding: 4px 16px 10px; scroll-snap-type: x mandatory; pointer-events: auto; }
  .example { position: static; transform: none; flex: none; width: 220px; scroll-snap-align: start; box-shadow: var(--shadow); }
  .examples { scrollbar-width: none; }
  .examples::-webkit-scrollbar { display: none; }
  .kicker { font-size: 0.6875rem; letter-spacing: 0.08em; text-align: center; }
  .kicker::before { display: none; }
  .skyline { height: 110px; margin-top: 40px; }
  .compare, .trust, .profiles { grid-template-columns: 1fr; }
  .compare__col { padding: 24px 20px; }
  .section { padding: 76px 0; }
  .h2 { margin-bottom: 2rem; }
  .path { grid-template-columns: 1fr; gap: 32px; }
  .path::before { top: 22px; bottom: 22px; left: 22px; right: auto; width: 1px; height: auto; }
  .path__step { padding-left: 64px; }
  .path__n { position: absolute; left: 0; top: 0; }
  .figures { grid-template-columns: repeat(2, 1fr); }
  .figures div, .figures div + div { padding: 24px 12px; border-left: 0; }
  .figures div:nth-child(even) { border-left: 1px solid var(--border); }
  .figures div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .footer__grid { grid-template-columns: 1fr; }
  .chat__body { min-height: 180px; max-height: 56vh; }
}

/* Accessibility adaptations (reduced motion = gentler, not none) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity 300ms ease; }
  .msg { animation: fade 200ms ease both; }
  .typing i { animation: none; opacity: 0.6; }
  .btn:active, .chip:active { transform: none; }
  .drawer { transform: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-transparency: reduce) {
  .nav.is-scrolled, .drawer { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --border: #8A7A6A; --muted: #4E433A; }
  .nav.is-scrolled, .drawer { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) { :root { --muted: #E0D2BE; } }

/* Chat extras: privacy notice, quick replies, sources, feedback, register card */
.msg p + p, .msg p + ul, .msg ul + p { margin-top: 8px; }
.msg__list { padding-left: 18px; list-style: disc; }
.msg__src { display: block; margin-top: 10px; color: var(--muted); font-size: 0.75rem; line-height: 1.4; }
.msg__fb { display: flex; gap: 6px; margin-top: 8px; }
.msg__fb button { background: none; border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; font-size: 0.75rem; color: var(--muted); cursor: pointer; transition: transform 100ms ease-out, border-color 150ms; }
.msg__fb button:hover:not(:disabled) { border-color: var(--accent); color: var(--text); }
.msg__fb button:active:not(:disabled) { transform: scale(0.96); }
.msg__fb button.is-on { color: var(--text); border-color: var(--text); }
.msg__fb button:disabled:not(.is-on) { opacity: 0.45; cursor: default; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; animation: pop 350ms var(--ease) both; }
.chip--pick { background: var(--paper); font-family: inherit; font-size: 0.875rem; padding: 8px 14px; }
.chip--pick[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip-done { margin-left: auto; }
.chip--quick { background: var(--paper); font-family: inherit; font-size: 0.875rem; padding: 8px 14px; }
.register { align-self: stretch; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 14px 16px; animation: pop 350ms var(--ease) both; font-family: inherit; }
.register p { font-size: 0.9375rem; }
.register__row { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.register__no { background: none; border: 0; cursor: pointer; font-size: 0.875rem; color: var(--muted); }


/* Account, consent and feedback dialogs; toast */
[hidden] { display: none !important; }  /* .btn sets display, which would otherwise win over the hidden attribute */
.btn--ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn--danger { background: var(--danger); color: var(--on-danger); }
.btn--danger-text { color: var(--danger); }
.nav__account { margin-left: 4px; }
.chat__end { margin-left: auto; font-size: 0.8125rem; font-weight: 600; background: none; border: 0; cursor: pointer; color: var(--muted); }
.chat__end:hover { color: var(--text); }
.msg--note { align-self: center; max-width: 92%; background: none; border: 1px dashed var(--border); color: var(--muted); font-family: inherit; font-size: 0.8125rem; text-align: center; }

.modal { width: min(92vw, 460px); max-height: 90vh; overflow-y: auto; padding: 28px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg); color: var(--text); box-shadow: var(--shadow-lg); }
.modal::backdrop { background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open] { animation: pop 300ms var(--ease) both; }
.modal h2 { font-weight: 800; font-size: 1.375rem; letter-spacing: -0.03em; line-height: 1.2; letter-spacing: -0.02em; }
.modal__lead { margin-top: 8px; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.modal__note { margin-top: 10px; color: var(--muted); font-size: 0.8125rem; }
.modal__error { margin-top: 14px; color: var(--danger); font-size: 0.9375rem; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.modal__danger { margin-top: 18px; padding: 16px; border: 1px solid var(--danger); border-radius: 12px; font-size: 0.9375rem; }
.modal__danger .modal__actions { margin-top: 14px; }
.field { display: block; margin-top: 16px; font-size: 0.9375rem; font-weight: 600; }
.field input, .field textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font: inherit; font-weight: 400; color: var(--text); }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field__opt, .field__hint { color: var(--muted); font-size: 0.8125rem; font-weight: 400; }
.field__hint { display: block; margin-top: 6px; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; font-size: 0.9375rem; line-height: 1.45; cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.consent a, .modal a { text-decoration: underline; text-underline-offset: 2px; }
.plan { margin-top: 18px; padding: 16px; border-radius: 12px; background: var(--surface); }
.plan dt { color: var(--muted); font-size: 0.8125rem; }
.plan dd { margin: 0 0 10px; font-weight: 600; }
.plan__diag { margin-top: 6px; color: var(--muted); font-size: 0.875rem; }

.toast { position: fixed; z-index: 200; left: 50%; bottom: 24px; max-width: min(92vw, 520px); padding: 12px 18px; border-radius: 14px; background: var(--text); color: var(--bg); font-size: 0.9375rem; line-height: 1.4; text-align: center;
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity 250ms, transform 350ms var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 860px) { .nav__account { display: none !important; } }   /* on phones the button lives in the menu */
@media (prefers-reduced-motion: reduce) { .toast { transform: translate(-50%, 0); transition: opacity 200ms; } .modal[open] { animation: fade 200ms ease both; } }


/* Privacy gate (first bubble of the chat), simpler account dialog */
.privacy-gate { max-width: 100%; font-family: inherit; font-size: 0.9375rem; line-height: 1.5; }
.privacy-gate strong { display: block; font-size: 1rem; }
.privacy-gate p { margin-top: 6px; color: var(--muted); }
.privacy-gate a { text-decoration: underline; text-underline-offset: 2px; color: var(--text); }
.privacy-gate__btn { margin-top: 12px; height: 40px; font-size: 0.9375rem; }
.chat__input input:disabled { cursor: not-allowed; }
.chat__input .send:disabled { opacity: 0.4; cursor: not-allowed; }
.modal { position: relative; }
.modal__x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.modal__x:hover { background: var(--surface); color: var(--text); }
.modal__more { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.875rem; }
.modal__more summary { cursor: pointer; width: fit-content; }
.modal__more p { margin-top: 10px; }
.link--danger { margin-top: 10px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 600; color: var(--danger); text-decoration: underline; text-underline-offset: 3px; }

/* Privacy page */
.doc { max-width: 720px; margin: 0 auto; padding: 120px 0 80px; }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.doc h2 { margin-top: 40px; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.doc p, .doc li { margin-top: 12px; color: var(--muted); }
.doc ul { padding-left: 20px; list-style: disc; }
.doc strong { color: var(--text); }
.doc a { text-decoration: underline; text-underline-offset: 2px; }
.draft { margin-top: 20px; padding: 14px 16px; border: 1px solid var(--danger); border-radius: 12px; color: var(--text); font-size: 0.9375rem; }

.link--plain { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--muted); }
#loginCode { font-size: 1.375rem; letter-spacing: 0.3em; text-align: center; font-variant-numeric: tabular-nums; }
#loginCode::placeholder { letter-spacing: 0.3em; }
.btn--google { width: 100%; justify-content: center; gap: 10px; margin-top: 18px; background: var(--bg); border: 1px solid var(--border); color: var(--text); }
.btn--google:hover { border-color: var(--accent); }
.login__or { display: flex; align-items: center; gap: 12px; margin-top: 16px; color: var(--muted); font-size: 0.8125rem; }
.login__or::before, .login__or::after { content: ''; flex: 1; height: 1px; background: var(--border); }


/* Chat focus mode: large centred panel while the user talks (full screen on phones); compact in the hero otherwise */
.chat__size { flex: none; width: 36px; height: 36px; margin-left: 8px; border-radius: 10px; border: 1px solid var(--border); background: var(--paper); color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: color 150ms, border-color 150ms, transform 100ms ease-out; }
.chat__size:hover { color: var(--text); border-color: var(--text); }
.chat__size:active { transform: scale(0.94); }
.chat__end { margin-left: 0; }
.chat-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(26, 21, 18, 0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade 200ms ease both; }
.chat--focus { position: fixed; z-index: 61; left: 50%; top: 50%; width: min(920px, calc(100vw - 48px)); height: min(860px, calc(100dvh - 48px)); transform: translate(-50%, -50%); display: flex; flex-direction: column; animation: chatIn 320ms var(--ease) both; }
.chat--focus .chat__body { flex: 1; min-height: 0; max-height: none; padding: 24px; font-size: 1rem; }
.chat--focus .chat__head { padding: 14px 18px; }
.chat--focus .msg { max-width: 78%; }
@keyframes chatIn { from { opacity: 0; transform: translate(-50%, -47%) scale(0.98); } to { opacity: 1; transform: translate(-50%, -50%); } }
.chat-open, .chat-open body { overflow: hidden; }
.chat-launcher { position: fixed; right: 20px; bottom: 20px; z-index: 55; display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border: 0; border-radius: 999px; background: var(--petrol); color: var(--petrol-ink); font-weight: 700; font-size: 0.9375rem; box-shadow: var(--shadow-lg); cursor: pointer; animation: pop 300ms var(--ease) both; }
.chat-launcher .avatar { background: var(--accent); color: var(--accent-ink); }
.chat-launcher:active { transform: scale(0.97); }
@media (max-width: 860px) {
  .chat--focus { inset: 0; left: 0; top: 0; width: 100%; height: 100dvh; transform: none; border: 0; border-radius: 0; animation: chatUp 320ms var(--ease) both; padding-bottom: env(safe-area-inset-bottom); }
  .chat--focus .chat__body { padding: 18px 16px; }
  .chat--focus .msg { max-width: 88%; }
  @keyframes chatUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  .chat-launcher { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { .chat--focus, .chat-launcher { animation: fade 200ms ease both; } }


/* Dark hero: deep green with a mint glow, white title, lime highlight; the chat and the example cards stay white */
.nav { background: var(--nav-bg); box-shadow: 0 1px 0 var(--border); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.hero { background: var(--petrol); color: var(--petrol-ink); }
.hero__glow { height: 100%; background: radial-gradient(50% 45% at 50% 0%, rgba(63, 217, 155, 0.28) 0%, rgba(63, 217, 155, 0) 70%); }
.hero .kicker { color: var(--lime); }
.hero .display { color: var(--petrol-ink); }
.hero .display em { color: var(--lime); }
.hero .lead { color: rgba(255, 255, 255, 0.82); }
.hero .examples__note { color: rgba(255, 255, 255, 0.7); }
.hero .chat, .hero .example { color: var(--text); }
.hero .skyline { color: rgba(255, 255, 255, 0.22); }
.hero .skyline__sun { fill: var(--lime); stroke: var(--lime); fill-opacity: 0.85; }

/* Lime as the highlight on dark green; deep green icons on light tiles */
.compare__col--after h3 { color: var(--lime); }
.compare__col--after li::before { background: var(--lime); color: var(--lime-ink); }
.path__n { background: var(--lime); color: var(--lime-ink); }
.trust__icon { color: var(--lime); }
.example__icon, .profile__icon { color: var(--petrol); }
.chat-launcher .avatar { background: var(--lime); color: var(--lime-ink); }
@media (prefers-color-scheme: dark) {
  .example__icon, .profile__icon { color: var(--accent); }
}

/* Online status in the chat header: grey while "connecting", a green dot with one soft pulse once online */
.chat__status { display: inline-flex; align-items: center; gap: 5px; }
.chat__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: 0.6; transition: background-color 300ms, opacity 300ms; }
.chat__status.is-online::before { background: #22C55E; opacity: 1; animation: online 2.4s ease-out 1; }
@keyframes online { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); } 100% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } }
@media (prefers-reduced-motion: reduce) { .chat__status.is-online::before { animation: none; } }

/* Official source links inside Depalo's replies */
.msg--bot a { color: inherit; text-decoration: underline; overflow-wrap: anywhere; }
