/* Agon ProMan marketing site. Colours follow the product's three themes (shared/theme/themes.ts in the app). */
:root,
:root[data-theme="solar"] {
  --frame: #0e2a33; --frame-2: #143946; --frame-line: #1f4552; --frame-ink: #d7e3e6; --frame-muted: #93a9b0;
  --primary: #0f6f6a; --primary-dark: #0c5a56; --tint: #eaf5f4; --tint-line: #9fd3ce;
  --ai: #f5b301; --ai-ink: #2e2200; --ai-tint: #fff6da; --ai-text: #5a4100;
  --page: #f4f6f5; --card: #ffffff; --ink: #13232a; --muted: #4c5d61; --soft: #66787a; --line: #dde3e1;
  --att: #a9522d; --att-tint: #f8e9e1; --late: #a32017; --late-tint: #fdecea; --ok: #177457; --ok-tint: #e2f1ef;
}
:root[data-theme="wind"] {
  --frame: #1f2328; --frame-2: #2a3038; --frame-line: #30363d; --frame-ink: #d4d7dc; --frame-muted: #8b949e;
  --primary: #2563eb; --primary-dark: #1d4ed8; --tint: #eff6ff; --tint-line: #bfdbfe;
  --ai: #7c3aed; --ai-ink: #ffffff; --ai-tint: #f1eafe; --ai-text: #4c1d95;
  --page: #f5f6f8; --line: #e1e4e8; --ink: #1f2328; --muted: #475569; --soft: #64748b;
  --att: #b45309; --att-tint: #fef3e2; --ok: #15803d; --ok-tint: #e6f4ea;
}
:root[data-theme="forest"] {
  --frame: #1e3328; --frame-2: #26402f; --frame-line: #2f4d3d; --frame-ink: #d6e1da; --frame-muted: #93a89b;
  --primary: #2f6b4f; --primary-dark: #285a43; --tint: #eef5f1; --tint-line: #acd1bc;
  --ai: #b08d3c; --ai-ink: #ffffff; --ai-tint: #f6efdc; --ai-text: #5c4614;
  --page: #f6f4ee; --line: #e3ded2; --ink: #1e2a24; --muted: #59584c; --soft: #737061;
  --att: #9c5d24; --att-tint: #f6e9dc; --ok: #386c32; --ok-tint: #e4efe8;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--page); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.sec { padding: clamp(56px, 8vw, 96px) 0; }
.sec.white { background: var(--card); }
.sec.dark { background: var(--frame); color: var(--frame-ink); }
.sec.dark h1, .sec.dark h2, .sec.dark h3 { color: #fff; }
.sec.dark p { color: var(--frame-muted); }
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--primary); margin: 0 0 12px; }
.dark .eyebrow { color: var(--ai); }
.lead { font-size: 1.13rem; color: var(--muted); max-width: 44rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); align-items: center; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grid2, .grid3, .grid4 { grid-template-columns: 1fr; } .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; font-size: 0.95rem; padding: 12px 20px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; transition: transform 0.12s, filter 0.12s, background 0.12s; }
.btn:hover { text-decoration: none; filter: brightness(0.96); transform: translateY(-1px); }
.btn.sun { background: var(--ai); color: var(--ai-ink); }
.btn.primary { background: var(--primary); color: #fff; }
.btn.ghost { border-color: var(--frame-line); color: var(--frame-ink); background: transparent; }
.btn.line { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn.sm { padding: 8px 14px; font-size: 0.86rem; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: var(--frame); color: var(--frame-ink); border-bottom: 1px solid var(--frame-line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.sunmark { width: 30px; height: 30px; border-radius: 9px; background: #f5b301; color: #0e2a33; display: grid; place-items: center; flex-shrink: 0; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > li { list-style: none; position: relative; }
.nav > li > a, .nav > li > button { font: inherit; font-size: 0.93rem; font-weight: 500; color: var(--frame-ink); background: none; border: 0; padding: 10px 12px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 5px; }
.nav > li > a:hover, .nav > li > button:hover, .nav > li.open > button { background: var(--frame-2); color: #fff; text-decoration: none; }
.nav ul, .nav { margin: 0; padding: 0; }
/* The menu sits beside the name; Book A Demo is pushed to the right edge. */
.nav { flex: 1; }
.nav > li:last-child { margin-left: auto; }
.drop { position: absolute; top: calc(100% + 8px); left: -12px; min-width: 300px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: 0 18px 40px rgba(14, 42, 51, 0.18); display: none; }
.drop.wide { min-width: 560px; display: none; grid-template-columns: 1fr 1fr; }
li.open > .drop { display: block; }
li.open > .drop.wide { display: grid; }
.drop a { display: flex; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); }
.drop a:hover { background: var(--tint); text-decoration: none; }
.drop .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--tint); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.drop a.aiitem .ic { background: var(--ai-tint); color: var(--ai-text); }
.drop b { display: block; font-size: 0.93rem; font-weight: 600; }
.drop span { font-size: 0.82rem; color: var(--soft); line-height: 1.35; display: block; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
@media (max-width: 980px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--frame); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--frame-line); max-height: calc(100vh - 64px); overflow: auto; }
  .nav.show { display: flex; }
  .drop, .drop.wide { position: static; min-width: 0; box-shadow: none; margin: 4px 0 8px; grid-template-columns: 1fr; }
  .nav .btn { justify-content: center; margin-top: 8px; }
  .nav > li:last-child { margin-left: 0; }
}

/* Hero */
.hero { background: var(--frame); color: var(--frame-ink); padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 100px); position: relative; overflow: hidden; }
.hero .wrap { position: relative; }
/* The drawn coast behind the home hero (heroScene in build.mjs). It sits along the bottom; the sky fades into the frame colour. */
.hero { padding-bottom: clamp(190px, 17vw, 240px); }
.hero-scene { position: absolute; left: 0; bottom: 0; width: 100%; height: min(100%, 700px); pointer-events: none; }
/* On a phone, show the scene smaller so the turbines and panels fit the width. */
@media (max-width: 760px) { .hero-scene { height: 320px; } .hero { padding-bottom: 150px; } }
.hs-s0 { stop-color: var(--frame); } .hs-s1 { stop-color: color-mix(in srgb, var(--primary) 46%, var(--frame)); }
.hs-g0 { stop-color: var(--ai); stop-opacity: 0.5; } .hs-g1 { stop-color: var(--ai); stop-opacity: 0; }
.hs-w0 { stop-color: color-mix(in srgb, var(--primary) 58%, var(--frame)); } .hs-w1 { stop-color: color-mix(in srgb, var(--primary) 22%, var(--frame)); }
.hs-b0 { stop-color: var(--ai); stop-opacity: 0.55; } .hs-b1 { stop-color: var(--ai); stop-opacity: 0; }
.hs-t0 { stop-color: #ff6b5e; stop-opacity: 0; } .hs-t1 { stop-color: #ff6b5e; stop-opacity: 0.85; }
.hs-sun { fill: color-mix(in srgb, var(--ai) 82%, #fff); }
.hs-far { fill: color-mix(in srgb, var(--primary) 20%, var(--frame)); }
.hs-glint { stroke: color-mix(in srgb, var(--ai) 55%, #fff); stroke-width: 2; stroke-linecap: round; opacity: 0.45; fill: none; }
.hs-tower, .hs-blade { fill: color-mix(in srgb, var(--frame-ink) 82%, var(--frame)); }
.hs-hill { fill: color-mix(in srgb, var(--primary) 26%, var(--frame)); }
.hs-field { fill: color-mix(in srgb, var(--primary) 12%, var(--frame)); }
.hs-panel { fill: color-mix(in srgb, var(--primary) 70%, #6fb6d6); stroke: color-mix(in srgb, var(--frame-ink) 70%, transparent); stroke-width: 1; }
.hs-cell { stroke: color-mix(in srgb, var(--frame) 60%, transparent); stroke-width: 1; fill: none; }
.hs-leg { stroke: var(--frame-muted); stroke-width: 1.5; fill: none; }
.hs-road { fill: color-mix(in srgb, #000 30%, var(--frame)); }
.hs-rail { stroke: var(--frame-muted); stroke-width: 2.5; fill: none; }
.hs-post { stroke: var(--frame-muted); stroke-width: 9; stroke-dasharray: 2 46; fill: none; transform: translateY(5px); opacity: 0.7; }
.hs-dash { stroke: var(--frame-ink); stroke-width: 2.5; stroke-dasharray: 34 30; opacity: 0.5; fill: none; }
.hs-body { fill: var(--car, #eef3f4); } .hs-glass { fill: color-mix(in srgb, var(--frame) 80%, #6fb6d6); }
.hs-wheel { fill: #0b1114; } .hs-rim { fill: #9aa8ad; } .hs-lamp { fill: #fff6c9; } .hs-tail { fill: #ff6b5e; }
.hs-wind { fill: var(--frame-ink); opacity: 0.28; }
.hs-spin { animation: hs-spin 9s linear infinite; }
.hs-car-a { transform: translate(560px, 688px); animation: hs-east 7s linear infinite; }
.hs-car-b { transform: translate(1180px, 688px); animation: hs-east 9.5s linear -5s infinite; }
.hs-car-b, .hs-parked-2 { --car: color-mix(in srgb, var(--ai) 70%, #fff); }
.hs-car-c { transform: translate(900px, 646px) scale(-0.78, 0.78); animation: hs-west 8s linear -3s infinite; }
.hs-car-c, .hs-parked { --car: color-mix(in srgb, var(--primary) 45%, #fff); }
.hs-parked-2 { --car: color-mix(in srgb, var(--ai) 70%, #fff); }
.hs-post-c { stroke: color-mix(in srgb, var(--frame-ink) 75%, var(--frame)); stroke-width: 4; fill: none; }
.hs-canopy-edge { fill: color-mix(in srgb, var(--frame-ink) 75%, var(--frame)); }
.hs-charger { fill: #eef3f4; } .hs-cable { stroke: #0b1114; stroke-width: 1.6; fill: none; }
.hs-charge-light { fill: #3ddc84; animation: hs-charge 1.8s ease-in-out infinite; }
@keyframes hs-charge { 50% { opacity: 0.25; } }
@keyframes hs-spin { to { transform: rotate(360deg); } }
@keyframes hs-east { from { transform: translate(-340px, 688px); } to { transform: translate(1900px, 688px); } }
@keyframes hs-west { from { transform: translate(1940px, 646px) scale(-0.78, 0.78); } to { transform: translate(-300px, 646px) scale(-0.78, 0.78); } }
@media (prefers-reduced-motion: reduce) { .hs-spin, .hs-car, .hs-charge-light { animation: none; } }
.hero h1 { color: #fff; }
.hero .lead { color: var(--frame-muted); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 0.9rem; color: var(--frame-ink); }
.ticks li::before { content: "✓"; color: var(--ai); font-weight: 700; margin-right: 7px; }

/* Screenshot frame and tour */
.frame { background: var(--card); border-radius: 14px; overflow: hidden; border: 1px solid var(--frame-line); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35); }
.light .frame, .frame.light { border-color: var(--line); box-shadow: 0 24px 60px rgba(14, 42, 51, 0.14); }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #eef1f0; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfd6d4; }
.tour-tabs { display: flex; gap: 2px; margin-left: 10px; flex-wrap: wrap; }
.tour-tabs button { font: inherit; font-size: 0.78rem; font-weight: 600; color: var(--soft); background: none; border: 0; padding: 4px 10px; border-radius: 7px; cursor: pointer; }
.tour-tabs button[aria-selected="true"] { background: var(--card); color: var(--primary); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.tour-view { position: relative; aspect-ratio: 16 / 10; background: var(--page); }
.tour-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity 0.5s; }
.tour-view img.on { opacity: 1; }
.tour-cap { display: flex; align-items: center; gap: 12px; padding: 10px 14px; font-size: 0.86rem; color: var(--muted); background: var(--card); border-top: 1px solid var(--line); min-height: 44px; }
.tour-prog { flex: 0 0 64px; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.tour-prog b { display: block; height: 100%; width: 0; background: var(--primary); }
.shot { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(14, 42, 51, 0.14); overflow: hidden; background: var(--card); }
.dark .shot { border-color: var(--frame-line); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35); }
.shot img { width: 100%; }
.phone-shot { width: min(300px, 80%); margin-inline: auto; border: 10px solid #13232a; border-radius: 38px; overflow: hidden; box-shadow: 0 30px 70px rgba(14, 42, 51, 0.25); background: #fff; }

/* Proof bar */
.proof { background: var(--card); border-bottom: 1px solid var(--line); padding: 26px 0; }
.proof .grid4 { text-align: center; }
.proof b { display: block; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.proof span { font-size: 0.88rem; color: var(--soft); }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.card p:last-child { margin-bottom: 0; }
.card .ic, .feat .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--tint); color: var(--primary); display: grid; place-items: center; margin-bottom: 14px; }
.card p, .feat p { color: var(--muted); font-size: 0.95rem; }
a.card { color: inherit; display: block; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
a.card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--tint-line); box-shadow: 0 16px 36px rgba(14, 42, 51, 0.1); }
.more { font-weight: 600; font-size: 0.9rem; color: var(--primary); }
/* Photo cards and the photo-plus-screen pair on industry pages (photos: assets/photos/CREDITS.md) */
.card.photo { padding: 0; overflow: hidden; }
.card.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.4s; }
a.card.photo:hover img { transform: scale(1.04); }
.card.photo .body { padding: 18px 20px 20px; }
.duo { position: relative; padding: 0 0 34px; }
.duo .ph { width: 92%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35); }
.duo.left .ph { margin-left: auto; }
.duo.left .inset { right: auto; left: 0; width: 46%; }
.duo .inset { position: absolute; right: 0; bottom: 0; width: 56%; border-radius: 10px; border: 1px solid var(--frame-line); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
.dark .card { background: var(--frame-2); border-color: var(--frame-line); }
.list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.list li { padding-left: 28px; position: relative; color: var(--muted); }
.list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%; background: var(--ok-tint); color: var(--ok); font-size: 0.72rem; font-weight: 700; display: grid; place-items: center; }
.dark .list li, .phero .list li { color: var(--frame-ink); }
.dark .list li::before, .phero .list li::before { background: var(--frame-2); color: var(--ai); }

/* Stage flow */
.flow { display: flex; gap: 0; margin: 34px 0 0; padding: 0; list-style: none; counter-reset: st; }
.flow li { flex: 1; position: relative; text-align: center; }
.flow button { font: inherit; background: none; border: 0; cursor: pointer; width: 100%; padding: 0 6px; color: var(--soft); font-size: 0.88rem; font-weight: 600; }
.flow button::before { counter-increment: st; content: counter(st); display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 10px; border-radius: 50%; background: var(--card); border: 2px solid var(--line); color: var(--soft); font-weight: 700; position: relative; z-index: 1; transition: all 0.2s; }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 20px; left: 50%; width: 100%; height: 2px; background: var(--line); }
.flow li.done button::before { background: var(--primary); border-color: var(--primary); color: #fff; content: "✓"; }
.flow li.done::after { background: var(--primary); }
.flow li.on button { color: var(--ink); }
.flow li.on button::before { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 5px var(--tint); }
.flow-card { margin-top: 26px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .flow button span { display: none; } .flow-card { grid-template-columns: 1fr; } }
.field { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.field:last-child { border: 0; }
.pill { font-size: 0.74rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.pill.ok { background: var(--ok-tint); color: var(--ok); }
.pill.att { background: var(--att-tint); color: var(--att); }
.pill.late { background: var(--late-tint); color: var(--late); }
.pill.grey { background: var(--page); color: var(--soft); border: 1px solid var(--line); }
.pill.ai { background: var(--ai-tint); color: var(--ai-text); }

/* AI demo */
.asks { display: grid; gap: 10px; margin-top: 22px; }
.asks button { font: inherit; text-align: left; background: var(--frame-2); border: 1px solid var(--frame-line); color: var(--frame-ink); border-radius: 12px; padding: 12px 14px; cursor: pointer; display: flex; gap: 10px; align-items: center; font-size: 0.95rem; transition: border-color 0.15s, background 0.15s; }
.asks button:hover, .asks button[aria-pressed="true"] { border-color: var(--ai); background: color-mix(in srgb, var(--ai) 10%, var(--frame-2)); color: #fff; }
.asks button::before { content: "✦"; color: var(--ai); }
.chat { background: var(--card); color: var(--ink); border-radius: 16px; border: 1px solid var(--frame-line); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35); display: flex; flex-direction: column; min-height: 430px; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 0.93rem; }
.chat-head .spark { color: var(--ai); }
.chat-head small { margin-left: auto; font-weight: 500; color: var(--soft); font-size: 0.76rem; }
.chat-body { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 0.92rem; line-height: 1.5; animation: rise 0.3s ease-out; }
.msg.me { align-self: flex-end; background: var(--tint); border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--page); border-bottom-left-radius: 4px; }
.msg.bot ul { margin: 6px 0 0; padding-left: 18px; }
.msg.step { align-self: flex-start; background: none; padding: 0 4px; font-size: 0.8rem; color: var(--soft); display: flex; gap: 6px; align-items: center; }
.msg.step::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--ai); animation: spin 0.8s linear infinite; }
.msg.step.done::before { animation: none; border: 0; content: "✓"; color: var(--ok); width: auto; height: auto; font-weight: 700; }
.proposal { align-self: stretch; border: 1px solid var(--ai); background: var(--ai-tint); border-radius: 14px; padding: 12px 14px; animation: rise 0.3s ease-out; }
.proposal small { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em; color: var(--ai-text); }
.proposal p { margin: 4px 0 10px; font-size: 0.93rem; color: var(--ink); }
.proposal .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.proposal.approved { border-color: var(--ok); background: var(--ok-tint); }
.proposal.approved small { color: var(--ok); }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--soft); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
.guard { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: #fafbfb; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

/* ProCrew phone demo */
.field-demo { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: center; }
@media (max-width: 760px) { .field-demo { grid-template-columns: 1fr; justify-items: center; } }
.phone { width: 270px; border: 9px solid #13232a; border-radius: 36px; background: var(--page); overflow: hidden; box-shadow: 0 30px 70px rgba(14, 42, 51, 0.25); font-size: 0.84rem; }
.phone-top { background: var(--frame); color: #fff; padding: 10px 14px; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.82rem; }
.phone-top .sunmark { width: 22px; height: 22px; border-radius: 6px; }
.phone-top .sig { margin-left: auto; font-weight: 500; font-size: 0.7rem; opacity: 0.85; }
.phone-body { padding: 14px; min-height: 330px; }
.visit { background: var(--tint); border: 1px solid var(--tint-line); border-radius: 14px; padding: 12px; }
.visit .times { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 3px; color: var(--muted); font-size: 0.78rem; }
.visit .times li::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.big { width: 100%; margin-top: 10px; font: inherit; font-weight: 700; font-size: 0.98rem; padding: 12px; border-radius: 12px; border: 0; background: var(--primary); color: #fff; cursor: pointer; }
.big:active { transform: scale(0.98); }
.waiting { margin-top: 8px; font-size: 0.74rem; color: var(--att); background: var(--att-tint); border-radius: 8px; padding: 5px 8px; }
.sheet { margin-top: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 6px; }
.sheet button { font: inherit; font-size: 0.82rem; text-align: left; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.sheet button:hover { border-color: var(--primary); background: var(--tint); }
.phone-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); background: var(--card); font-size: 0.68rem; text-align: center; color: var(--soft); padding: 7px 0 9px; }
.phone-tabs b { color: var(--primary); }
.office { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.office h4 { margin: 0 0 12px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--soft); }
.cal-row { display: flex; align-items: center; gap: 12px; border-left: 4px solid var(--primary); background: var(--tint); border-radius: 8px; padding: 10px 12px; font-size: 0.9rem; transition: all 0.3s; }
.cal-row .pill { margin-left: auto; transition: all 0.3s; }
.log { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 5px; font-size: 0.82rem; color: var(--muted); min-height: 96px; }
.log li { animation: rise 0.3s ease-out; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 600; cursor: pointer; margin-top: 16px; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; transition: background 0.2s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.switch input:checked { background: var(--att); }
.switch input:checked::after { transform: translateX(18px); }

/* Themes */
.swatches { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.swatches button { font: inherit; font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 9px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.swatches button i { width: 26px; height: 26px; border-radius: 50%; display: block; }
.swatches button[aria-pressed="true"] { border-color: var(--primary); box-shadow: 0 0 0 3px var(--tint); }
/* The footer's theme switch: three small dots, quiet until hovered. */
.swatches.mini { gap: 6px; margin-top: 14px; opacity: 0.55; transition: opacity 0.15s; }
.swatches.mini:hover, .swatches.mini:focus-within { opacity: 1; }
.swatches.mini button { padding: 2px; border: 1px solid transparent; background: none; }
.swatches.mini button i { width: 12px; height: 12px; }
.swatches.mini button[aria-pressed="true"] { border-color: var(--frame-muted); box-shadow: none; }

/* FAQ */
.faq { max-width: 820px; margin: 30px auto 0; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 17px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--primary); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Pricing */
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 40px); }
.compare { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 0.95rem; }
.compare th, .compare td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--soft); }
.compare td:nth-child(3) { background: var(--tint); font-weight: 600; }
/* Tour video lightbox */
dialog.video { border: 0; padding: 0; background: transparent; width: min(1100px, 94vw); max-width: none; overflow: visible; }
dialog.video::backdrop { background: rgba(8, 20, 25, 0.82); }
dialog.video video { width: 100%; border-radius: 14px; display: block; background: #0e2a33; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.video-x { position: absolute; top: -44px; right: 0; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.video-x:hover { background: rgba(255, 255, 255, 0.26); }

.calc { display: grid; gap: 14px; margin-top: 18px; }
.calc label { font-weight: 600; font-size: 0.95rem; display: flex; justify-content: space-between; }
.calc input[type="range"] { width: 100%; accent-color: var(--primary); }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-out div { border-radius: 14px; padding: 16px; border: 1px solid var(--line); }
.calc-out div:last-child { background: var(--tint); border-color: var(--tint-line); }
.calc-out b { display: block; font-size: 1.5rem; letter-spacing: -0.02em; }
.calc-out span { font-size: 0.85rem; color: var(--soft); }

/* Forms */
.form { display: grid; gap: 14px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form .two { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-size: 0.9rem; font-weight: 600; }
.form input, .form select, .form textarea { font: inherit; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }
.note { font-size: 0.85rem; color: var(--soft); }
.notice { border-radius: 12px; padding: 12px 14px; font-size: 0.92rem; background: var(--ok-tint); color: var(--ok); display: none; }
.notice.show { display: block; }

/* Page hero for inner pages */
.phero { background: var(--frame); color: var(--frame-ink); padding: clamp(44px, 6vw, 76px) 0; }
.phero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.phero .lead { color: var(--frame-muted); }
.crumbs { font-size: 0.85rem; color: var(--frame-muted); margin-bottom: 14px; }
.crumbs a { color: var(--frame-muted); }

/* CTA band and footer */
.cta { background: var(--frame); color: #fff; text-align: center; padding: clamp(56px, 8vw, 92px) 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 700px; height: 700px; left: 50%; bottom: -560px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--ai) 30%, transparent) 0%, transparent 65%); }
.cta .wrap { position: relative; }
.cta h2 { color: #fff; }
.cta p { color: var(--frame-muted); max-width: 40rem; margin-inline: auto; }
.cta .btns { justify-content: center; }
.foot { background: #0a1f26; color: var(--frame-muted); padding: 52px 0 28px; font-size: 0.9rem; }
:root[data-theme="wind"] .foot { background: #16191d; } :root[data-theme="forest"] .foot { background: #15251d; }
.foot .cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
@media (max-width: 860px) { .foot .cols { grid-template-columns: 1fr 1fr; } }
.foot h5 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.07em; margin: 0 0 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--frame-muted); }
.foot a:hover { color: #fff; }
.foot .base { border-top: 1px solid var(--frame-line); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.84rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
