/* Ruth Ai Systems — website v2 stylesheet.
   Brand tokens are shared with the audit report and the social carousels (see PROJECT.md).
   Look: "Mockup B · Night" — night/forest hero with fluted glass, bone and paper sections below. */

/* ---------- Tokens ---------- */
:root {
  --bone: #F2EEE4; --paper: #F9F6F0; --white: #FFFFFF;
  --forest: #0B4F3E; --green: #0F6E56; --ink: #093F32; --text: #1F2D28; --muted: #536D64; /* brand #5A756C darkened slightly for text contrast (≥4.5:1 on bone) */
  --mint: #5DCAA5; --mint-soft: #E3F4EC; --line: #C8D3CC; --night: #0E0F0E; --night-2: #121614;
  --amber: #B45309; --amber-soft: #FDF1DE; --red: #B91C1C;
  --on-night: rgb(242 238 228 / .74); --on-night-2: rgb(242 238 228 / .58); --night-line: rgb(242 238 228 / .12);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-lg: 28px; --r-md: 18px; --r-sm: 12px; --r-pill: 999px;
  --gutter: clamp(16px, 5vw, 72px); --maxw: 1240px;
  --section: clamp(72px, 9vw, 128px);
  --shadow: 0 2px 4px rgb(9 63 50 / .06), 0 18px 40px -12px rgb(9 63 50 / .18), 0 50px 90px -40px rgb(9 63 50 / .22);
  --shadow-sm: 0 1px 2px rgb(9 63 50 / .06), 0 8px 22px -10px rgb(9 63 50 / .16);
  --ease: cubic-bezier(.23, 1, .32, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; font-size: 17px; line-height: 1.6; }
img, video { max-width: 100%; height: auto; display: block; }
figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--mint); color: var(--night); font-weight: 800; padding: 10px 16px; border-radius: var(--r-pill); text-decoration: none; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
h1 { font-weight: 800; font-size: clamp(2.7rem, 1.4rem + 5.6vw, 6.4rem); line-height: 1.04; letter-spacing: -.035em; color: var(--ink); text-wrap: balance; }
h1.page { font-size: clamp(2.4rem, 1.4rem + 4.2vw, 5rem); }
h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); line-height: 1.06; letter-spacing: -.03em; font-weight: 800; color: var(--ink); text-wrap: balance; }
h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); line-height: 1.2; letter-spacing: -.015em; font-weight: 800; color: var(--ink); }
mark.hl { background: linear-gradient(transparent 14%, var(--mint) 14%, var(--mint) 94%, transparent 94%); color: var(--night); padding: 0 .1em; margin: 0 -.04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.label { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.lede { font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem); line-height: 1.55; font-weight: 500; color: var(--muted); max-width: 38ch; }
.prose { max-width: 62ch; color: var(--muted); font-size: 18px; line-height: 1.7; }
.prose p + p { margin-top: 1em; }
.head { display: grid; gap: 14px; max-width: 760px; }
.head p { color: var(--muted); font-size: 18px; max-width: 58ch; }
.center { text-align: center; margin-inline: auto; justify-items: center; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 16px; line-height: 1.2; padding: 16px 24px; border-radius: var(--r-pill); border: 0; cursor: pointer; transition: transform .15s var(--ease), background-color .15s, box-shadow .15s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--forest); color: var(--bone); }
.btn-primary:hover { background: var(--ink); }
.btn-mint { background: var(--mint); color: var(--night); }
.btn-mint:hover { background: #7ad7b6; }
.btn-ghost { background: rgb(255 255 255 / .65); color: var(--ink); box-shadow: inset 0 0 0 1.5px rgb(9 63 50 / .2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px rgb(9 63 50 / .45); }
.btn-ghost-night { background: rgb(242 238 228 / .08); color: var(--bone); box-shadow: inset 0 0 0 1.5px rgb(242 238 228 / .28); }
.btn-ghost-night:hover { box-shadow: inset 0 0 0 1.5px rgb(242 238 228 / .55); }
.play { width: 24px; height: 24px; border-radius: 50%; background: var(--bone); display: grid; place-items: center; flex: none; }
.play svg { width: 9px; height: 9px; fill: var(--night); margin-left: 2px; }
.btn-ghost .play { background: var(--forest); } .btn-ghost .play svg { fill: var(--bone); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.textlink { display: inline-flex; font-weight: 700; color: var(--green); text-decoration: none; border-bottom: 2px solid var(--mint); padding-bottom: 2px; }
.textlink:hover { color: var(--ink); }

/* ---------- Nav ---------- */
.nav { position: fixed; top: max(14px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 50; width: min(calc(100% - 32px), 780px); display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 14px; border-radius: var(--r-pill); background: rgb(14 15 14 / .62); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: inset 0 1px 0 rgb(242 238 228 / .08), 0 0 0 1px rgb(242 238 228 / .12), 0 10px 30px -12px rgb(0 0 0 / .5); }
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; color: var(--bone); text-decoration: none; margin-right: auto; white-space: nowrap; }
.nav .brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav .link { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--bone); padding: 10px 14px; border-radius: var(--r-pill); }
.nav .link:hover, .nav .link[aria-current="page"] { background: rgb(242 238 228 / .1); }
.nav .cta { text-decoration: none; font-weight: 700; font-size: 15px; color: var(--night); background: var(--mint); padding: 11px 18px; border-radius: var(--r-pill); white-space: nowrap; }
.nav .cta:hover { background: #7ad7b6; }
.nav .menu-btn { display: none; border: 0; background: rgb(242 238 228 / .1); color: var(--bone); font-weight: 700; font-size: 14px; padding: 10px 14px; border-radius: var(--r-pill); cursor: pointer; }
@media (max-width: 720px) { .nav .link { display: none; } .nav .menu-btn { display: block; } .nav .cta { padding: 10px 14px; font-size: 14px; } }
@media (max-width: 400px) { .nav .brand span { display: none; } }
.menu-panel { position: fixed; inset: 0; z-index: 70; background: var(--night); color: var(--bone); padding: max(18px, env(safe-area-inset-top)) var(--gutter) 32px; display: flex; flex-direction: column; gap: 8px; }
.menu-panel[hidden] { display: none; }
.menu-panel .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.menu-panel .top img { width: 34px; height: 34px; border-radius: 9px; }
.menu-panel .close { border: 0; background: rgb(242 238 228 / .1); color: var(--bone); font-weight: 700; padding: 10px 16px; border-radius: var(--r-pill); cursor: pointer; }
.menu-panel a.item { color: var(--bone); text-decoration: none; font-size: 34px; font-weight: 800; letter-spacing: -.02em; padding: 8px 0; border-bottom: 1px solid var(--night-line); }
.menu-panel .btn { margin-top: 24px; }
body.menu-open { overflow: hidden; }

/* ---------- Night hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(1100px 700px at 75% 20%, #0B3A2E, transparent 60%), var(--night); color: var(--bone); }
.hero canvas.glass { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: .9; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(14 15 14 / .9) 0%, rgb(14 15 14 / .55) 42%, rgb(14 15 14 / .05) 100%); pointer-events: none; }
@media (max-width: 860px) { .hero::after { background: linear-gradient(180deg, rgb(14 15 14 / .55) 0%, rgb(14 15 14 / .75) 55%, rgb(14 15 14 / .4) 100%); } }
.hero h1 { color: var(--bone); margin-top: 22px; }
.hero .lede { color: var(--on-night); margin-top: 24px; max-width: 34ch; }
.hero .actions { margin-top: 30px; }
.metaline { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-night-2); padding-top: clamp(96px, 11vw, 132px); }
.hero .inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(48px, 7vw, 96px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding: 8px 14px; border-radius: var(--r-pill); background: rgb(242 238 228 / .12); color: #fff; box-shadow: 0 0 0 1px rgb(242 238 228 / .22); }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgb(93 202 165 / .25); }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 36px; padding: 0; margin: 40px 0 0; }
.facts b { display: block; font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); font-weight: 800; letter-spacing: -.02em; color: var(--bone); }
.facts span { font-size: 14px; color: var(--on-night-2); font-weight: 600; }
.cutout { position: relative; justify-self: end; width: 100%; max-width: 520px; aspect-ratio: 3 / 4; }
.cutout img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; -webkit-mask-image: radial-gradient(ellipse 52% 56% at 50% 44%, #000 38%, transparent 96%); mask-image: radial-gradient(ellipse 52% 56% at 50% 44%, #000 38%, transparent 96%); }
.cutout figcaption { position: absolute; left: 0; bottom: 8%; font-size: 14px; color: var(--on-night); font-weight: 600; }
.cutout figcaption b { display: block; color: var(--bone); font-size: 16px; }
@media (max-width: 860px) {
  .hero .inner { grid-template-columns: 1fr; }
  .cutout { justify-self: center; max-width: 360px; }
  .metaline span:nth-child(n+2) { display: none; }
}
/* Home hero: centred, full-width headline (no photo) */
.hero-center::after { background: radial-gradient(ellipse 62% 55% at 50% 48%, rgb(14 15 14 / .66) 0%, rgb(14 15 14 / .32) 60%, rgb(14 15 14 / .04) 100%); }
.hero-center .inner { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding-top: clamp(40px, 6vw, 84px); padding-bottom: clamp(64px, 9vw, 120px); }
.hero-center .inner > div { display: flex; flex-direction: column; align-items: center; width: 100%; }
.hero-center h1 { font-size: clamp(2.2rem, .2rem + 10vw, 9rem); line-height: 1; letter-spacing: -.045em; max-width: none; text-wrap: initial; }
.hero-center h1 .line { display: block; }
@media (min-width: 340px) { .hero-center h1 .line { white-space: nowrap; } }
.hero-center .lede { max-width: 44ch; margin-inline: auto; margin-top: 38px; }
.hero-center .actions { justify-content: center; }
.hero-center .facts { justify-content: center; gap: 14px 56px; margin-top: 48px; }
/* Smaller page header (Services, About, Free audit, legal) */
.page-hero .inner { grid-template-columns: minmax(0, 1fr); padding-bottom: clamp(48px, 6vw, 80px); }
.page-hero .lede { max-width: 52ch; }
.page-hero.with-photo .inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
@media (max-width: 860px) { .page-hero.with-photo .inner { grid-template-columns: 1fr; } }

/* Works-with strip */
.works { border-top: 1px solid var(--night-line); }
.works .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; padding-block: 22px; }
.works p { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-night-2); }
.works ul { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 32px; margin: 0; padding: 0; }
.works li { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--bone); font-size: 16px; }
.works li img { width: 26px; height: 26px; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.bone { background: var(--bone); }
.paper { background: var(--paper); }
.night { background: var(--night); color: var(--bone); }
.night h2, .night h3 { color: var(--bone); }
.night .head p, .night .prose { color: var(--on-night); }
.night .label { color: var(--mint); }

/* Problem cards */
.pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.pcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; }
.pcard h3 { font-size: 20px; }
.pcard p { color: var(--muted); margin-top: 10px; font-size: 16px; }
.pcard .n { font-size: 13px; font-weight: 800; color: var(--amber); letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: 14px; }
.source { margin-top: 28px; font-size: 14px; color: var(--muted); max-width: 70ch; }
.source b { color: var(--ink); }
@media (max-width: 860px) { .pcards { grid-template-columns: 1fr; } }

/* How it works */
.how { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.how .side { position: sticky; top: 120px; display: grid; gap: 20px; }
.how .side .video-tile { margin-top: 8px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.steps::before { content: ""; position: absolute; left: 27px; top: 30px; bottom: 30px; border-left: 2px dashed var(--line); }
.step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px 20px 0; padding-left: 0; }
.step .dot { width: 56px; display: grid; justify-items: center; padding-top: 2px; }
.step .dot span { width: 36px; height: 36px; border-radius: 50%; background: var(--forest); color: var(--bone); font-weight: 800; font-size: 15px; display: grid; place-items: center; box-shadow: 0 0 0 6px var(--paper); }
.step h3 { font-size: 19px; }
.step p { color: var(--muted); margin-top: 6px; font-size: 16px; }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; } .how .side { position: static; } }

/* Video tile + dialog */
.video-tile { position: relative; display: block; width: 100%; border: 0; padding: 0; cursor: pointer; border-radius: var(--r-md); overflow: hidden; background: var(--night); box-shadow: var(--shadow-sm); aspect-ratio: 16 / 9; }
.video-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.video-tile:hover img { transform: scale(1.03); }
.video-tile .badge { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: var(--r-pill); background: rgb(14 15 14 / .78); color: var(--bone); font-weight: 700; font-size: 15px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
dialog.video { border: 0; padding: 0; background: transparent; width: min(1100px, calc(100vw - 32px)); max-width: none; }
dialog.video::backdrop { background: rgb(14 15 14 / .86); }
dialog.video video { width: 100%; border-radius: var(--r-md); background: #000; }
dialog.video .close { position: absolute; right: 0; top: -52px; border: 0; background: var(--bone); color: var(--night); font-weight: 800; padding: 10px 16px; border-radius: var(--r-pill); cursor: pointer; }
dialog.video .wrapper { position: relative; margin-top: 56px; }

/* Services overview cards */
.scards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.scard { display: flex; flex-direction: column; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.scard:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.scard .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--mint-soft); display: grid; place-items: center; }
.scard .ico svg { width: 22px; height: 22px; stroke: var(--green); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.scard h3 { font-size: 19px; margin-top: 6px; }
.scard p { color: var(--muted); font-size: 15.5px; }
.scard .go { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--green); font-size: 15px; }
.more-row { margin-top: 28px; }
@media (max-width: 1000px) { .scards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .scards { grid-template-columns: 1fr; } }

/* Try it live band */
.live { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.live .chatprev { display: grid; gap: 10px; max-width: 360px; justify-self: end; }
.bubble { max-width: 86%; padding: 11px 15px; font-size: 15.5px; line-height: 1.4; border-radius: 18px; }
.bubble.me { justify-self: end; background: var(--mint); color: var(--night); border-radius: 18px 18px 5px 18px; }
.bubble.bot { justify-self: start; background: rgb(242 238 228 / .09); color: var(--bone); border-radius: 18px 18px 18px 5px; box-shadow: inset 0 0 0 1px var(--night-line); }
@media (max-width: 860px) { .live { grid-template-columns: 1fr; } .live .chatprev { justify-self: start; } }

/* Founder block */
.founder { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.founder .photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.founder .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.founder h2 { margin-top: 14px; }
.founder .prose { margin-top: 20px; }
.founder .textlink { margin-top: 26px; }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; } .founder .photo { aspect-ratio: 4 / 4.2; } }

/* Audit block */
.audit { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 6vw, 88px); align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 56px); box-shadow: var(--shadow-sm); }
.audit .prose { margin-top: 18px; }
.audit .small { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--amber); }
.audit .actions { margin-top: 26px; }
.report { position: relative; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); transform: rotate(1.5deg); background: var(--paper); max-height: 520px; }
.report img { width: 100%; object-fit: cover; object-position: top; }
.report::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, var(--white)); }
.report figcaption { position: absolute; left: 14px; top: 14px; z-index: 1; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--amber-soft); color: var(--amber); padding: 6px 10px; border-radius: 8px; }
@media (max-width: 860px) { .audit { grid-template-columns: 1fr; } .report { transform: none; } }

/* FAQ */
.faq { display: grid; gap: 10px; margin-top: 40px; max-width: 860px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 22px; font-weight: 700; font-size: 17.5px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(45deg) translateY(-3px); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq .a { padding: 0 22px 20px; color: var(--muted); max-width: 70ch; }
.faq .a p + p { margin-top: .7em; }

/* ---------- Services stack ---------- */
.stack { position: relative; }
.panel { position: sticky; top: 0; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-block: 104px 40px; }
.panel .card { width: 100%; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 5vw, 64px); align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 56px); box-shadow: var(--shadow); transform-origin: 50% 0; transform: scale(calc(1 - var(--p, 0) * .06)); opacity: calc(1 - var(--p, 0) * .55); }
.panel .num { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.panel h2 { margin-top: 10px; font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); }
.panel .prose { margin-top: 16px; font-size: 17px; }
.chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; font-weight: 700; color: var(--ink); background: var(--mint-soft); padding: 8px 12px; border-radius: var(--r-pill); }
.preview { border-radius: var(--r-md); background: var(--night); padding: 22px; display: grid; gap: 10px; min-height: 300px; align-content: center; box-shadow: inset 0 0 0 1px var(--night-line); }
.preview .bubble { font-size: 14.5px; }
.preview .bar { display: flex; align-items: center; gap: 10px; color: var(--on-night); font-size: 13px; font-weight: 700; padding-bottom: 6px; border-bottom: 1px solid var(--night-line); margin-bottom: 4px; }
.preview .bar i { width: 28px; height: 28px; border-radius: 8px; background: var(--bone); display: grid; place-items: center; color: var(--ink); font-style: normal; font-weight: 800; }
.adprev { background: var(--white); border-radius: 14px; overflow: hidden; }
.adprev .img { height: 150px; background: radial-gradient(400px 200px at 70% 20%, #1c6b55, #0B2E25); color: var(--bone); padding: 18px; font-weight: 800; font-size: 19px; line-height: 1.2; display: flex; align-items: flex-end; }
.adprev .row { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; font-size: 13.5px; font-weight: 700; color: var(--ink); gap: 10px; }
.adprev .row span:last-child { background: #25D366; color: var(--night); padding: 8px 12px; border-radius: 9px; white-space: nowrap; }
.pill-status { justify-self: start; display: inline-flex; gap: 8px; align-items: center; background: rgb(93 202 165 / .18); color: var(--mint); font-weight: 800; font-size: 13.5px; padding: 7px 12px; border-radius: var(--r-pill); }
.siteprev { background: var(--paper); border-radius: 14px; overflow: hidden; }
.siteprev .chrome { display: flex; gap: 6px; padding: 10px 12px; background: #E8E3D7; }
.siteprev .chrome i { width: 10px; height: 10px; border-radius: 50%; background: #C9C2B3; }
.siteprev .body { padding: 18px; display: grid; gap: 10px; }
.siteprev .body b { font-size: 20px; color: var(--ink); line-height: 1.15; }
.siteprev .body span { height: 8px; border-radius: 6px; background: #DCD6C9; }
.siteprev .body span:nth-child(3) { width: 70%; }
.siteprev .body em { justify-self: start; font-style: normal; background: var(--forest); color: var(--bone); font-weight: 700; font-size: 13px; padding: 8px 12px; border-radius: var(--r-pill); }
.scores { display: flex; gap: 10px; flex-wrap: wrap; }
.scores span { font-size: 12.5px; font-weight: 800; color: var(--mint); background: rgb(93 202 165 / .12); padding: 6px 10px; border-radius: 8px; }
@media (max-width: 860px) {
  .panel { position: relative; min-height: 0; padding-block: 12px; }
  .panel .card { grid-template-columns: 1fr; transform: none; opacity: 1; }
  .stack { padding-block: 24px 48px; }
}

/* Engagement steps */
.esteps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: e; }
.esteps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; counter-increment: e; }
.esteps li::before { content: counter(e, decimal-leading-zero); display: block; font-size: 13px; font-weight: 800; color: var(--green); letter-spacing: .1em; margin-bottom: 14px; }
.esteps h3 { font-size: 18px; }
.esteps p { color: var(--muted); font-size: 15px; margin-top: 6px; }
@media (max-width: 1000px) { .esteps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .esteps { grid-template-columns: 1fr; } }

/* Ownership */
.owns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.own { border-radius: var(--r-md); padding: 26px; background: rgb(242 238 228 / .06); box-shadow: inset 0 0 0 1px var(--night-line); }
.own h3 { color: var(--bone); }
.own p { color: var(--on-night); margin-top: 10px; font-size: 16px; }
.own .tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--night); background: var(--mint); padding: 5px 9px; border-radius: 7px; margin-bottom: 14px; }
@media (max-width: 760px) { .owns { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { display: grid; gap: 18px; justify-items: center; text-align: center; }
.cta-band p { color: var(--on-night); max-width: 52ch; font-size: 18px; }

/* ---------- About ---------- */
.quote { margin-top: 28px; padding: 26px 28px; border-radius: var(--r-md); background: var(--night); color: var(--bone); }
.quote p { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); line-height: 1.45; font-weight: 700; letter-spacing: -.01em; }
.quote cite { display: block; margin-top: 14px; font-style: normal; font-size: 14px; color: var(--mint); font-weight: 700; }
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.principle { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.principle h3 { font-size: 18px; }
.principle p { color: var(--muted); font-size: 15.5px; margin-top: 8px; }
@media (max-width: 1000px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }
.details { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px 28px; margin-top: 28px; font-size: 16.5px; }
.details dt { color: var(--muted); font-weight: 600; }
.details dd { color: var(--ink); font-weight: 700; }
.details a { color: var(--green); }
@media (max-width: 560px) { .details { grid-template-columns: 1fr; gap: 2px; } .details dd { margin-bottom: 12px; } }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

/* ---------- Free audit ---------- */
.audit-page { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.audit-page .col { display: grid; gap: 44px; }
.checklist { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; color: var(--text); }
.checklist li::before { content: ""; width: 20px; height: 20px; margin-top: 3px; border-radius: 6px; background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F6E56' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.formcard { position: sticky; top: 104px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }
.formcard h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }
.formcard .sub { color: var(--muted); margin-top: 8px; font-size: 15.5px; }
.form { display: grid; gap: 16px; margin-top: 24px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 700; font-size: 15px; color: var(--ink); }
.field .opt { font-weight: 600; color: var(--muted); }
.field input, .field select { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 13px 14px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgb(93 202 165 / .25); }
.field[data-invalid] input, .field[data-invalid] select { border-color: var(--red); }
.field .err { color: var(--red); font-size: 14px; font-weight: 600; }
.field .err:empty { display: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }
.consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15px; color: var(--text); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); }
.form .fine { font-size: 13.5px; color: var(--muted); }
.form .fine a { color: var(--green); }
.form .btn { width: 100%; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form-status { font-size: 15px; font-weight: 600; padding: 12px 14px; border-radius: var(--r-sm); }
.form-status:empty { display: none; }
.form-status.error { background: #FBE7E7; color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 960px) { .audit-page { grid-template-columns: 1fr; } .formcard { position: static; } }

/* ---------- Legal documents ---------- */
.doc { max-width: 820px; }
.lang-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: rgb(242 238 228 / .08); box-shadow: inset 0 0 0 1px var(--night-line); margin-top: 26px; }
.lang-toggle button { border: 0; cursor: pointer; background: transparent; color: var(--bone); font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: var(--r-pill); }
.lang-toggle button[aria-pressed="true"] { background: var(--mint); color: var(--night); }
.doc .doc-title { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); line-height: 1.1; letter-spacing: -.025em; }
.doc .doc-sub { color: var(--muted); font-weight: 700; margin-top: 6px; }
.doc .updated { color: var(--muted); font-size: 15px; margin-top: 4px; }
.doc .rule { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.doc .sec { font-size: clamp(1.3rem, 1.15rem + .5vw, 1.6rem); margin: 40px 0 12px; letter-spacing: -.015em; }
.doc .subsec { font-size: 1.1rem; margin: 22px 0 8px; color: var(--ink); }
.doc .body { color: var(--text); font-size: 17px; line-height: 1.7; margin: 0 0 12px; }
.doc ul.body, .doc ol.body { padding-left: 1.3em; }
.doc ul.body li + li, .doc ol.body li + li { margin-top: 6px; }
.doc a { color: var(--green); }
.doc .table-wrap { overflow-x: auto; margin: 14px 0 18px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 560px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--bone); color: var(--ink); }
.doc .accept { background: var(--mint-soft); border-radius: var(--r-sm); padding: 16px 18px; color: var(--ink); }
.lang-section[hidden] { display: none; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: var(--on-night); padding-block: 64px 40px; }
.footer .top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: start; }
.footer .brand { display: flex; align-items: center; gap: 12px; color: var(--bone); text-decoration: none; font-weight: 800; font-size: 18px; }
.footer .brand img { width: 36px; height: 36px; border-radius: 9px; }
.footer .tag { margin-top: 12px; font-size: 16px; }
.footer nav { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 40px; }
.footer nav a { color: var(--bone); text-decoration: none; font-weight: 600; }
.footer nav a:hover { color: var(--mint); }
.footer .base { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; font-size: 14px; color: var(--on-night-2); }
.footer .base a { color: var(--on-night); }
@media (max-width: 640px) { .footer .top { grid-template-columns: 1fr; } }

/* ---------- Chat panel (booking agent) ---------- */
.rai-chat-panel { display: none; flex-direction: column; position: fixed; right: 24px; bottom: 24px; width: 380px; height: 600px; max-height: calc(100vh - 48px); background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px -20px rgb(11 79 62 / .4); z-index: 90; }
.rai-chat-panel.is-open { display: flex; }
.rai-chat-header { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--ink); color: var(--bone); font-weight: 700; font-size: 15px; }
.rai-chat-close { appearance: none; border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 22px; line-height: 1; padding: 2px 8px; border-radius: 8px; }
.rai-chat-close:hover { background: rgb(242 238 228 / .14); }
.rai-chat-frame { flex: 1 1 auto; width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 860px) { .rai-chat-panel { right: 10px; left: 10px; top: 10px; bottom: 10px; width: auto; height: auto; max-height: none; } }

/* ---------- Motion (only when JS adds .js-motion, i.e. motion allowed) ---------- */
/* Hero entrance */
.js-motion .hero .metaline, .js-motion .hero .eyebrow, .js-motion .hero h1, .js-motion .hero .lede,
.js-motion .hero .actions, .js-motion .hero .facts, .js-motion .hero .cutout, .js-motion .hero .lang-toggle {
  opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js-motion .hero .cutout { transform: translateY(18px) scale(.97); transition-duration: 1.3s; }
.js-motion.is-loaded .hero .metaline { opacity: 1; transform: none; transition-delay: .05s; }
.js-motion.is-loaded .hero .eyebrow { opacity: 1; transform: none; transition-delay: .15s; }
.js-motion.is-loaded .hero h1 { opacity: 1; transform: none; transition-delay: .25s; }
.js-motion.is-loaded .hero .lede { opacity: 1; transform: none; transition-delay: .5s; }
.js-motion.is-loaded .hero .actions, .js-motion.is-loaded .hero .lang-toggle { opacity: 1; transform: none; transition-delay: .62s; }
.js-motion.is-loaded .hero .facts { opacity: 1; transform: none; transition-delay: .74s; }
.js-motion.is-loaded .hero .cutout { opacity: 1; transform: none; transition-delay: .35s; }
/* Highlight sweeps across the key words */
.js-motion .hero mark.hl { background-size: 0% 100%; background-repeat: no-repeat; transition: background-size 1s var(--ease) .85s; }
.js-motion.is-loaded .hero mark.hl { background-size: 100% 100%; }
/* Live dot pulse */
.eyebrow i { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgb(93 202 165 / .25); } 50% { box-shadow: 0 0 0 9px rgb(93 202 165 / 0); } }

/* Scroll reveals */
.js-motion [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js-motion [data-reveal].is-in { opacity: 1; transform: none; }

/* Buttons: arrow nudge */
.btn span[aria-hidden="true"]:not(.play) { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover span[aria-hidden="true"]:not(.play) { transform: translateX(4px); }
.textlink { transition: color .2s, border-color .2s; }
.textlink:hover { border-color: var(--green); }

/* Works-with marquee */
.works .marquee { overflow: hidden; flex: 1 1 320px; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.works .marquee ul { flex-wrap: nowrap; width: max-content; gap: 0; }
.works .marquee li { padding-right: 48px; white-space: nowrap; }
.js-motion .works .marquee ul { animation: marquee 26s linear infinite; }
.works .marquee:hover ul { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* How it works: mint line fills down the steps */
.steps::after { content: ""; position: absolute; left: 26px; top: 30px; width: 4px; border-radius: 4px; height: calc(var(--fill, 0) * (100% - 60px)); background: var(--mint); z-index: 0; }
.step { z-index: 1; }
.step .dot span { transition: background-color .4s, color .4s, transform .4s var(--ease); }
.step.is-lit .dot span { background: var(--mint); color: var(--night); transform: scale(1.08); }

/* Try it live: chat plays out */
.chatprev .typing { justify-self: start; display: inline-flex; gap: 5px; padding: 13px 15px; border-radius: 18px; background: rgb(242 238 228 / .09); box-shadow: inset 0 0 0 1px var(--night-line); }
.chatprev .typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--on-night); animation: blink 1.2s infinite ease-in-out; }
.chatprev .typing i:nth-child(2) { animation-delay: .15s; } .chatprev .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.js-motion .chatprev .bubble, .js-motion .chatprev .typing { display: none; }
.js-motion .chatprev .is-shown { display: inline-block; animation: pop .45s var(--ease) both; }
.js-motion .chatprev .typing.is-shown { display: inline-flex; }
.chatprev { min-height: 268px; align-content: start; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

/* Services stack: chips light up when the panel arrives */
.js-motion .panel .chips li { opacity: .35; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease), background-color .5s; transition-delay: calc(var(--i, 0) * 110ms + .2s); }
.js-motion .panel.is-in .chips li { opacity: 1; transform: none; }
.js-motion .panel .preview > * { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 450ms + .3s); }
.js-motion .panel.is-in .preview > * { opacity: 1; transform: none; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .panel .card { transform: none !important; opacity: 1 !important; }
  .works .marquee ul { animation: none !important; }
}
