/* ==========================================================================
   Apline AI — styles (Bootstrap 5 + custom 3D theme)
   ========================================================================== */
:root {
  --night: #0c1714;
  --night-2: #13221d;
  --night-3: #1b2e27;
  --lime: #c5f36a;
  --lime-2: #9fd84a;
  --mint: #7ef0c8;
  --paper: #f5f7f1;
  --ink: #15221d;
  --muted: #66746c;
  --line: #e2e9e1;
  --shadow: 0 30px 70px -30px rgba(12, 30, 20, .35);
}

*, *::before, *::after { box-sizing: border-box; scroll-margin-top: 90px; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: "DM Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; background: #fff; overflow-x: hidden; }
h1, h2, h3, h4, .brand, .title, .svc-title { font-family: "Manrope", system-ui, sans-serif; }
a { text-underline-offset: .22em; }
.ico { width: 26px; height: 26px; }
.ico.sm { width: 18px; height: 18px; }
.ico.xs { width: 15px; height: 15px; }

/* ---------- Buttons & labels ---------- */
.btn { font-weight: 600; transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease, color .22s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: var(--night); border: 1px solid var(--lime); font-weight: 700;
  box-shadow: 0 4px 0 #88b23e, 0 8px 16px -8px rgba(12,23,20,.45); }
.btn-lime:hover, .btn-lime:focus { background: #d5ff8e; border-color: #d5ff8e; color: var(--night); box-shadow: 0 5px 0 #88b23e, 0 10px 18px -8px rgba(12,23,20,.5); }
.btn-lime:active { transform: translateY(4px); box-shadow: 0 1px 0 #88b23e; }
.btn-dark { box-shadow: 0 4px 0 #000, 0 8px 16px -8px rgba(0,0,0,.5); }
.btn-ghost { color: #fff; border: 1px solid #ffffff4d; background: #ffffff0d; backdrop-filter: blur(8px); }
.btn-ghost:hover { color: var(--night); background: #fff; }
.eyebrow { color: var(--lime); font-weight: 700; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; }
.label { color: #4f7a3e; font-weight: 700; font-size: .76rem; letter-spacing: .15em; text-transform: uppercase; }
.dark .label, .label.on-dark { color: var(--lime); }
.title { font-size: clamp(1.9rem, 3.8vw, 3.2rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.08; text-wrap: balance; }
.lead-copy { color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.dark .lead-copy { color: #aebdb5; }
.section { padding: clamp(64px, 8vw, 104px) 0; }
.soft-bg { background: radial-gradient(ellipse at 100% 0, #eaf2df 0, transparent 45%), var(--paper); }
.dark { color: #fff; background: radial-gradient(ellipse at 90% 10%, #1f3a2e 0, transparent 45%), radial-gradient(ellipse at 0% 100%, #22301b 0, transparent 40%), var(--night); }

/* ---------- Navigation ---------- */
.site-nav { padding: 14px 0; background: rgba(10, 20, 17, .82); border-bottom: 1px solid rgba(255,255,255,.07); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff !important; font-weight: 800; font-size: 1.6rem; letter-spacing: -.06em; text-decoration: none; }
.brand-mark { color: var(--lime); }
.brand-logo { width: 38px; height: 38px; flex-shrink: 0; margin-top: -4px; filter: drop-shadow(0 4px 10px rgba(197,243,106,.25)); transition: transform .3s ease; }
.brand:hover .brand-logo { transform: translateY(-2px) scale(1.05); }
.brand { gap: 8px; }
.site-nav .nav-link { color: #cfd8d3; font-size: .94rem; font-weight: 500; padding: .5rem .75rem !important; border-radius: 999px; transition: color .2s, background .2s; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--lime); }
.site-nav .nav-link.active { background: #ffffff0f; }
.navbar-toggler { border-color: #ffffff35; }
@media (max-width: 991.98px) { .site-nav .navbar-collapse { padding: 8px 0 16px; } }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 6vw, 80px);
  background: radial-gradient(ellipse at 75% 45%, #1f3d31 0, transparent 42%), radial-gradient(ellipse at 90% 110%, #34482a 0, transparent 38%), var(--night); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .22;
  background-image: radial-gradient(#d4f8b4 .7px, transparent .7px); background-size: 26px 26px; mask-image: linear-gradient(90deg, transparent 20%, #000 80%); }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); font-weight: 700; line-height: 1; letter-spacing: -.06em; }
.hero h1 span { color: var(--lime); }
.hero-copy { max-width: 560px; color: #bfcbc4; font-size: 1.12rem; line-height: 1.75; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags span { padding: 6px 12px; border-radius: 999px; font-size: .82rem; color: #dce8e0; background: #ffffff0d; border: 1px solid #ffffff1c; }
.hero-3d { position: relative; height: clamp(340px, 46vw, 560px); }
.hero-3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.hero-3d.is-webgl .fallback-orb { display: none; }
.fallback-orb { position: absolute; left: 50%; top: 50%; width: 180px; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle at 31% 25%, #fff 0, #edffd1 5%, #c7ed83 16%, #80a94a 42%, #496d3a 64%, #263c2f 82%, #15251f 100%);
  box-shadow: inset -20px -25px 35px #07130f99, inset 11px 12px 24px #ffffffb0, 0 0 60px #c5f36a42; }
.hero-hint { position: absolute; right: 8px; bottom: 6px; font-size: .75rem; color: #8fa197; }

/* data-type marquee */
.types { background: #10201a; border-top: 1px solid #ffffff10; border-bottom: 1px solid #ffffff10; overflow: hidden; }
.types-track { display: flex; gap: 14px; width: max-content; padding: 16px 0; animation: marquee 38s linear infinite; }
.types-track span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: #d8e4dd; font-weight: 600; font-size: .92rem; padding: 7px 16px; border-radius: 999px; background: #ffffff08; border: 1px solid #ffffff14; }
.types-track span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 3D cards ---------- */
.tilt { position: relative; transform-style: preserve-3d; transition: transform .18s ease-out, box-shadow .3s ease, border-color .3s ease; will-change: transform; }
.tilt-inner { transform: translateZ(26px); height: 100%; }
.tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.55), transparent 42%); mix-blend-mode: soft-light; }
.tilt.is-tilting::after { opacity: 1; }
.icon-3d { width: 54px; height: 54px; flex-shrink: 0; display: grid; place-items: center; border-radius: 17px; color: #fff;
  background: linear-gradient(150deg, #2c4a3a, #0f1d18);
  box-shadow: inset 1px 1px 0 #ffffff30, inset -2px -3px 6px #00000055, 0 6px 0 #07110d, 0 18px 28px -12px rgba(12,23,20,.8); }
.icon-3d .ico { color: var(--lime); filter: drop-shadow(0 0 6px rgba(197,243,106,.45)); }
.icon-3d.dark { background: linear-gradient(150deg, #e9f7d4, #c5e59a); box-shadow: inset 1px 1px 0 #fff, 0 5px 0 #9dbd6c, 0 16px 26px -12px rgba(0,0,0,.6); }
.icon-3d.dark .ico { color: var(--night); filter: none; }

.svc-card { height: 100%; border-radius: 22px; padding: 24px; background: linear-gradient(160deg, #fff 30%, #f7faf3);
  border: 1px solid var(--line); box-shadow: 0 8px 0 #e7eee4, 0 26px 50px -30px rgba(12,30,20,.35); }
.svc-card:hover { border-color: #c9dcc0; box-shadow: 0 10px 0 #dde8d6, 0 36px 60px -28px rgba(12,30,20,.45); }
.pillar-tag { margin: 18px 0 0; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #5d8c3f; }
.pillar-tag + .svc-title { margin-top: 4px; }
.svc-card.extra { border-style: dashed; border-color: #c3d8b6; }
.svc-card.cta-card { background: radial-gradient(ellipse at 100% 0, #2a4a3a 0, transparent 60%), var(--night); border-color: #ffffff14; box-shadow: 0 8px 0 #050b09, 0 26px 50px -30px #000; }
.svc-card.cta-card .svc-title { color: #fff; }
.svc-card.cta-card .svc-text { color: #aebdb5; }
.svc-card.cta-card .pillar-tag { color: var(--lime); }
.svc-card.cta-card .svc-link { color: var(--lime); }
.svc-title { margin: 18px 0 8px; font-size: 1.16rem; font-weight: 800; letter-spacing: -.02em; }
.svc-text { color: var(--muted); font-size: .94rem; line-height: 1.65; margin-bottom: 14px; }
.svc-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; color: #3f6f2f; text-decoration: none; }
.svc-link:hover { color: var(--night); gap: 10px; }
.tick-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.tick-list li { position: relative; padding-left: 26px; font-size: .92rem; color: #3b4b43; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .15em; width: 17px; height: 17px; border-radius: 6px;
  background: #e5f5cf url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%233f6f2f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.dark .tick-list li { color: #c9d6cf; }
.dark .tick-list li::before { background-color: #c5f36a26; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  color: var(--ink); font-weight: 600; font-size: .9rem; text-decoration: none; transition: .2s; }
.chip b { font-size: .75rem; color: var(--muted); }
.chip:hover { border-color: #b9d1ac; }
.chip.is-active { background: var(--night); color: #fff; border-color: var(--night); box-shadow: 0 4px 0 #000; }
.chip.is-active b { color: var(--lime); }
.mini-chip { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #eef6e2; color: #3f6f2f; text-decoration: none; }
.mini-chip:hover { background: var(--lime); color: var(--night); }

/* ---------- Showcase ---------- */
.show-tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 16px; background: #ffffff0d; border: 1px solid #ffffff1a; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.show-tab { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: #b8c7bf; padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: .9rem; transition: .2s; }
.show-tab:hover { color: #fff; }
.show-tab.is-active { background: var(--lime); color: var(--night); box-shadow: 0 4px 0 #88b23e; }
.stage { position: relative; border-radius: 26px; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #173028 0, #0a1512 70%);
  border: 1px solid #ffffff17; box-shadow: 0 40px 80px -30px #000, inset 0 1px 0 #ffffff14; }
.lidar { height: clamp(360px, 52vw, 560px); cursor: grab; }
.lidar:active { cursor: grabbing; }
.lidar canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.tool-bar { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; flex-wrap: wrap; pointer-events: none; }
.tool-bar span { font-size: .75rem; font-weight: 700; color: #d9e6df; padding: 6px 10px; border-radius: 10px; background: #0c1714cc; border: 1px solid #ffffff1f; backdrop-filter: blur(6px); }
.tool-bar span.on { color: var(--night); background: var(--lime); }
.legend { position: absolute; top: 14px; right: 14px; padding: 12px 14px; border-radius: 14px; background: #0c1714d9; border: 1px solid #ffffff1f; backdrop-filter: blur(6px); pointer-events: none; font-size: .8rem; color: #d9e6df; min-width: 160px; }
.legend p { margin: 0 0 6px; font-weight: 800; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #8fa197; }
.legend div { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.legend b { margin-left: auto; color: #fff; }
.frame-bar { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: #0c1714d9; border: 1px solid #ffffff1f; color: #cfdcd5; font-size: .8rem; pointer-events: none; }
.frame-bar .track { flex: 1; height: 6px; border-radius: 6px; background: #ffffff1a; position: relative; overflow: hidden; }
.frame-bar .track::after { content: ""; position: absolute; inset: 0 60% 0 0; border-radius: 6px; background: linear-gradient(90deg, var(--lime-2), var(--lime)); animation: scrub 12s linear infinite; }
@keyframes scrub { from { right: 100%; } to { right: 0; } }
@media (max-width: 575.98px) { .legend { top: auto; bottom: 70px; right: 10px; min-width: 0; font-size: .72rem; } .tool-bar span:nth-child(n+3) { display: none; } }

/* LLM evaluation mock */
.mock { padding: clamp(16px, 3vw, 30px); }
.mock-panel { border-radius: 20px; background: #f7faf4; color: var(--ink); padding: clamp(16px, 2.4vw, 26px); box-shadow: 0 30px 60px -30px #000, inset 0 1px 0 #fff; transform: perspective(1400px) rotateX(3deg); }
.mock-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.mock-head b { color: var(--ink); }
.prompt { margin: 14px 0; padding: 14px 16px; border-radius: 14px; background: var(--night); color: #e6efe9; font-size: .95rem; }
.prompt small { display: block; color: var(--lime); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .68rem; margin-bottom: 4px; }
.resp { height: 100%; border-radius: 14px; padding: 14px; background: #fff; border: 2px solid var(--line); font-size: .9rem; color: #3b4b43; line-height: 1.6; }
.resp.pick { border-color: var(--lime-2); box-shadow: 0 0 0 4px #c5f36a40; }
.resp h4 { font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; display: flex; justify-content: space-between; color: var(--ink); }
.resp h4 em { font-style: normal; color: #3f6f2f; }
.rubric { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rubric span { font-size: .8rem; font-weight: 600; padding: 6px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.rubric span b { color: #3f6f2f; }
.rationale { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px dashed #bcd3ae; font-size: .88rem; color: #3b4b43; }

/* Speech mock */
.wave-box { border-radius: 14px; background: var(--night); padding: 14px; }
.wave-box svg { width: 100%; height: 64px; }
.wave-box rect { fill: #3a5347; }
.wave-box rect.s1 { fill: var(--lime); }
.wave-box rect.s2 { fill: var(--mint); }
.seg { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); margin-top: 10px; font-size: .9rem; }
.seg .time { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; color: var(--muted); }
.seg .who { font-weight: 800; font-size: .78rem; }
.seg .who.s1 { color: #5d8d2a; } .seg .who.s2 { color: #1b8a70; }
.seg .txt { grid-column: 1 / -1; color: var(--ink); }
.seg .tr { grid-column: 1 / -1; color: var(--muted); font-size: .84rem; }
.tagline { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 8px; background: #fff3d6; color: #8a5a00; margin-left: 6px; }

/* ---------- Process ---------- */
.steps { counter-reset: s; position: relative; }
@media (min-width: 992px) { .steps::before { content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, transparent, #c5f36a66, transparent); } }
.step-card { position: relative; text-align: center; padding: 0 8px; }
.step-cube { width: 68px; height: 68px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 20px; font: 800 1.35rem Manrope, sans-serif; color: var(--night);
  background: linear-gradient(150deg, #e3ffb3, var(--lime) 50%, #8fc344); box-shadow: inset 2px 2px 0 #ffffffa0, inset -3px -4px 8px #5e8a2a70, 0 7px 0 #6f9a33, 0 22px 34px -12px rgba(197,243,106,.6); transform: rotate(-4deg); }
.step-card:nth-child(even) .step-cube { transform: rotate(4deg); }
.step-card h3 { font-size: 1.1rem; font-weight: 800; }
.step-card p { color: #aebdb5; font-size: .93rem; line-height: 1.6; }

/* ---------- Industries ---------- */
.ind-card { display: block; height: 100%; text-decoration: none; color: #fff; border-radius: 20px; padding: 20px;
  background: linear-gradient(160deg, #ffffff12, #ffffff05); border: 1px solid #ffffff1a; box-shadow: 0 24px 40px -26px #000; }
.ind-card:hover { border-color: #c5f36a55; color: #fff; }
.ind-card h3 { margin: 16px 0 0; font-size: 1rem; font-weight: 700; line-height: 1.35; }
.ind-detail { height: 100%; border-radius: 24px; padding: clamp(22px, 3vw, 32px); background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 0 #e7eee4, 0 30px 60px -34px rgba(12,30,20,.4); }
.pillar-num { font: 800 .8rem Manrope, sans-serif; letter-spacing: .1em; color: #6f9a33; }
.dark .pillar-num { color: var(--lime); }

/* ---------- Principles / glass ---------- */
.glass { height: 100%; border-radius: 22px; padding: 24px; background: linear-gradient(160deg, #ffffff14, #ffffff05); border: 1px solid #ffffff1c; backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 #ffffff1c, 0 30px 50px -30px #000; }
.glass h3 { font-size: 1.08rem; font-weight: 800; margin: 16px 0 8px; }
.glass p { color: #aebdb5; font-size: .93rem; line-height: 1.6; margin: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: clamp(56px, 8vw, 100px) 0 clamp(52px, 7vw, 90px);
  background: radial-gradient(ellipse at 83% 10%, #26463a 0, transparent 40%), var(--night); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .18; background-image: radial-gradient(#d4f8b4 .7px, transparent .7px); background-size: 26px 26px; mask-image: linear-gradient(90deg, transparent 35%, #000); }
.page-hero .orb { position: absolute; z-index: -1; right: 7%; top: 50%; width: clamp(170px, 24vw, 320px); aspect-ratio: 1; border-radius: 50%; transform: translateY(-50%); opacity: .9;
  background: radial-gradient(circle at 30% 24%, #fff 0, #e9ffc6 5%, #c5ec7f 15%, #6b9a4f 40%, #365543 60%, #15271f 80%, #08110f 100%);
  box-shadow: inset -28px -34px 45px #020a09aa, inset 14px 15px 22px #ffffff99, 0 0 80px #b8f36a33, 0 45px 80px #0008; animation: orb-float 7s ease-in-out infinite; }
.page-hero .orb::before { content: ""; position: absolute; inset: -34%; border-radius: 50%; border: 1px solid #dcffb74d; transform: rotateX(70deg) rotateZ(-20deg); box-shadow: 0 0 25px #c5f36a1a; }
.page-hero .orb::after { content: ""; position: absolute; inset: -58%; border-radius: 50%; border: 1px dashed #dcffb72e; transform: rotateX(70deg) rotateZ(-20deg); animation: spin 40s linear infinite; }
.page-hero h1 { max-width: 780px; font-size: clamp(2.3rem, 5.4vw, 4.6rem); line-height: 1.03; letter-spacing: -.055em; font-weight: 700; text-wrap: balance; }
.page-hero .lead { max-width: 640px; color: #bdc9c2; line-height: 1.75; font-size: 1.1rem; }
@keyframes orb-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes spin { to { transform: rotateX(70deg) rotateZ(340deg); } }
@media (max-width: 767.98px) { .page-hero .orb { right: -14%; top: 22%; opacity: .35; } }
/* real 3D planet (assets/orb3d.js) — replaces the CSS orb when WebGL is available */
.orb-3d { position: absolute; z-index: -1; top: 0; bottom: 0; right: 0; width: min(54%, 760px); pointer-events: none; }
.orb-3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.page-hero.has-webgl .orb { display: none; }
@media (max-width: 991.98px) { .orb-3d { width: 75%; right: -18%; opacity: .45; } }
@media (max-width: 575.98px) { .orb-3d { width: 100%; right: -35%; opacity: .3; } }

.sticky-chips { position: sticky; top: 70px; z-index: 20; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.pillar { padding: clamp(56px, 7vw, 90px) 0; }

/* ---------- Forms ---------- */
.form-card { border-radius: 26px; padding: clamp(22px, 4vw, 40px); background: #fff; border: 1px solid var(--line);
  box-shadow: 0 10px 0 #e7eee4, 0 40px 80px -40px rgba(12,30,20,.45); }
.form-card .form-label { font-weight: 600; font-size: .9rem; color: #2c3a33; margin-bottom: 6px; }
.form-card .form-label .req { color: #b0452e; }
.form-card .form-control, .form-card .form-select { border-radius: 12px; border: 1.5px solid #dbe4d8; padding: .72rem .9rem; font-size: .96rem; background-color: #fbfcf9; transition: border-color .2s, box-shadow .2s; }
.form-card .form-control:focus, .form-card .form-select:focus { border-color: var(--lime-2); box-shadow: 0 0 0 4px #c5f36a45; background-color: #fff; }
.form-card textarea.form-control { min-height: 130px; }
.check-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.check-grid input { position: absolute; opacity: 0; pointer-events: none; }
.check-grid label { cursor: pointer; padding: 8px 14px; border-radius: 999px; border: 1.5px solid #dbe4d8; font-size: .88rem; font-weight: 600; background: #fbfcf9; transition: .2s; }
.check-grid input:checked + label { background: var(--night); border-color: var(--night); color: var(--lime); }
.check-grid input:focus-visible + label { box-shadow: 0 0 0 4px #c5f36a55; }
.form-status { margin: 0; font-weight: 600; font-size: .92rem; }
.form-status.is-error { color: #b0452e; } .form-status.is-success { color: #2f6b2b; } .form-status.is-pending { color: var(--muted); }
.visually-hidden-field { position: absolute; left: -9999px; }
.contact-side { border-radius: 26px; padding: clamp(22px, 3.5vw, 34px); }
.contact-line { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid #ffffff17; }
.contact-line:last-child { border-bottom: 0; }
.contact-line a { color: #fff; text-decoration: none; font-weight: 600; }
.contact-line a:hover { color: var(--lime); }
.contact-line small { display: block; color: #8fa197; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: #fff; margin-bottom: 10px; padding: 0 18px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #eef6e2; color: #3f6f2f; transition: transform .3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); line-height: 1.7; padding-bottom: 16px; margin: 0; }

/* ---------- CTA & footer ---------- */
.cta { position: relative; overflow: hidden; border-radius: 30px; padding: clamp(28px, 5vw, 56px); color: var(--night);
  background: radial-gradient(ellipse at 100% 0, #eaffc4 0, transparent 50%), linear-gradient(120deg, var(--lime), #d9f9a2);
  box-shadow: 0 12px 0 #88b23e, 0 50px 80px -40px rgba(120,170,50,.7); }
.cta::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; aspect-ratio: 1; border-radius: 50%; border: 1px solid #4f7a3e33; box-shadow: 0 0 0 30px #ffffff22, 0 0 0 60px #ffffff14; pointer-events: none; }
.cta .title { color: var(--night); }
.site-footer { color: #b7c4bc; background: var(--night); padding: clamp(48px, 6vw, 72px) 0 24px; }
.site-footer a:not(.btn) { color: #e3e9e5; text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--lime); }
.footer-head { color: #fff; font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-copy { max-width: 340px; line-height: 1.7; }
.footer-bottom { border-top: 1px solid #ffffff17; padding-top: 18px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 575.98px) {
  .svc-card { padding: 20px; }
  .hero-tags span { font-size: .76rem; }
}

/* ---------- Phones: compact service rows on the home page ---------- */
@media (max-width: 575.98px) {
  #home-services { --bs-gutter-y: .75rem; }
  #home-services .svc-card { padding: 16px; box-shadow: 0 5px 0 #e7eee4, 0 18px 30px -24px rgba(12,30,20,.35); }
  #home-services .tilt-inner { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; align-items: start; }
  #home-services .icon-3d { width: 46px; height: 46px; border-radius: 14px; grid-row: span 3; }
  #home-services .icon-3d .ico { width: 22px; height: 22px; }
  #home-services .pillar-tag { margin: 0; font-size: .64rem; }
  #home-services .svc-title { margin: 2px 0 4px; font-size: 1.02rem; }
  #home-services .svc-text { margin: 0; font-size: .87rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  /* the link stays (it stretches over the whole card) but takes no space */
  #home-services .svc-link { display: block; height: 0; overflow: hidden; margin: 0; }
}
@media (hover: none) { .hero-hint { display: none; } }

/* ---------- Page loader (covers the page until the shared header is rendered, and between pages) ---------- */
.page-loader { position: fixed; inset: 0; z-index: 3000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: radial-gradient(ellipse at 50% 40%, var(--night-3) 0, var(--night) 60%); transition: opacity .45s ease, visibility .45s ease;
  animation: loader-failsafe 0s 6s forwards; }
html.is-ready .page-loader { opacity: 0; visibility: hidden; pointer-events: none; animation: none; }
.loader-orb { position: relative; width: 64px; height: 64px; display: grid; place-items: center; animation: loader-bob 1.4s ease-in-out infinite; }
.loader-orb img { width: 56px; height: 56px; filter: drop-shadow(0 6px 14px rgba(197,243,106,.3)); }
.loader-orb::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1.5px solid transparent;
  border-top-color: var(--lime); border-right-color: #c5f36a55; animation: loader-spin .9s linear infinite; }
.loader-brand { color: #fff; font: 700 1.25rem "Manrope", system-ui, sans-serif; letter-spacing: -.02em; margin-top: 8px; }
.loader-brand span { color: var(--lime); }
.loader-bar { position: relative; width: 120px; height: 3px; border-radius: 3px; background: #ffffff14; overflow: hidden; }
.loader-bar::after { content: ""; position: absolute; inset: 0 60% 0 0; border-radius: inherit; background: var(--lime); animation: loader-slide 1.1s ease-in-out infinite; }
@keyframes loader-spin { to { transform: rotate(360deg); } }
@keyframes loader-bob { 50% { transform: translateY(-6px); } }
@keyframes loader-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@media (prefers-reduced-motion: reduce) {
  .loader-orb, .loader-orb::after, .loader-bar::after { animation: none; }
}

/* ---------- Legal pages (terms, privacy) ---------- */
.legal-toc { position: sticky; top: 96px; border-radius: 20px; padding: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 0 #e7eee4, 0 24px 40px -30px rgba(12,30,20,.35); }
.legal-toc p { margin: 0 0 8px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #5d8c3f; }
.legal-toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 6px; font-size: .9rem; }
.legal-toc a { color: var(--ink); text-decoration: none; }
.legal-toc a:hover { color: #3f6f2f; text-decoration: underline; }
.legal-body { border-radius: 24px; padding: clamp(22px, 4vw, 44px); background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 0 #e7eee4, 0 30px 60px -40px rgba(12,30,20,.4); }
.legal-body h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; margin: 2.2rem 0 .8rem; scroll-margin-top: 96px; }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h3 { font-size: 1.02rem; font-weight: 700; margin: 1.3rem 0 .5rem; }
.legal-body p, .legal-body li { color: #3b4b43; line-height: 1.75; }
.legal-body ul { padding-left: 1.2rem; }
.legal-body a { color: #3f6f2f; font-weight: 600; }
.legal-note { border-radius: 16px; padding: 14px 18px; background: #f3f9ea; border: 1px dashed #bcd3ae; font-size: .92rem; color: #3b4b43; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.legal-meta span { font-size: .82rem; padding: 6px 12px; border-radius: 999px; background: #ffffff12; border: 1px solid #ffffff1f; color: #dce8e0; }
@media (max-width: 991.98px) { .legal-toc { position: static; } }
