/* Zorya's visual language: calibrated circles, data paths, and source connections.
   These are presentation layers around real captures, never simulated app UI. */
:root { --showcase-shadow: 0 28px 70px #08132138, 0 2px 10px #08132118; --frame-line: #c5ced5; }
.marketing-icon { flex: none; display: inline-block; vertical-align: middle; }
.btn .marketing-icon { width: 18px; height: 18px; }
.product-window { border: 1px solid var(--frame-line); border-radius: 13px; background: #e9edf0; box-shadow: var(--showcase-shadow); overflow: hidden; }
.window-chrome { height: 36px; padding: 0 14px; display: grid; grid-template-columns: 52px minmax(0,1fr) 52px; align-items: center; text-align: center; font-size: 11px; line-height: 1.3; font-weight: 500; color: #4d5d6c; border-bottom: 1px solid var(--frame-line); background: #f1f4f5; }
.window-controls { display: flex; gap: 6px; }
.window-controls i { width: 7px; height: 7px; border: 1px solid #9cabb3; border-radius: 50%; }
.window-controls i:first-child { background: #b9c6cc; }
.window-indicator { width: 15px; height: 9px; justify-self: end; border: 1px solid #aab9c1; border-radius: 2px; }
.product-window .product-preview { margin: 0; padding: 0; border-radius: 0; box-shadow: none; background: white; }
.product-window .product-preview button { border: 0; border-radius: 0; }
.product-window .product-preview img { border-radius: 0; }
.product-window figcaption { margin-top: 0; padding: 10px 14px; border-top: 1px solid #e4e9ed; background: #f7f9fa; text-align: left; }
.coordinate-motif { position: absolute; pointer-events: none; color: var(--gold); opacity: .13; width: 100%; height: 100%; }
.hero { overflow: clip; position: relative; background: #101c2d; }
.hero-layout { grid-template-columns: minmax(0,.85fr) minmax(0,1.25fr); gap: 60px; }
.hero h1 { font-size: clamp(50px,4.4vw,68px); font-weight: 500; line-height: 1.04; }
.hero .lead { color: #bbc9d8; font-size: 17px; }
.hero-showcase { position: relative; padding: 25px 0 83px; isolation: isolate; }
.hero-coordinates { width: 120%; height: 135%; left: -9%; top: -15%; z-index: -1; }
.hero-window { position: relative; z-index: 1; border-color: #d3dce3; }
.hero .hero-window .product-preview { box-shadow: none; padding: 0; }
.hero .hero-window figcaption { color: #526176; font-size: 11px; }
.hero-feature { width: 270px; position: absolute; right: -18px; bottom: 12px; z-index: 2; box-shadow: 0 12px 40px #04101e38; }
.feature-detail { margin: 0; border-radius: 9px; background: white; border: 1px solid var(--frame-line); overflow: hidden; color: var(--ink); }
.feature-detail figcaption { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; background: #f3f7f7; font-size: 11px; line-height: 1.4; text-align: left; color: var(--muted); }
.feature-detail figcaption strong { color: var(--ink); font-size: 13px; font-weight: 600; }
.feature-detail button { display: block; border: 0; background: white; width: 100%; padding: 0; cursor: zoom-in; }
.feature-detail img { width: 100%; height: auto; }
.feature-detail button:hover img { filter: contrast(1.025); }
.hero .app-language { margin-top: 0; }
.benefit-grid article { border-top: 1px solid var(--line); padding-top: 24px; }
.benefit-grid .marketing-icon { color: var(--accent); width: 28px; height: 28px; margin-bottom: 18px; }
.benefit-grid h3 { font-size: 21px; }
.chart-detail { position: relative; max-width: 1000px; margin-inline: auto; }
.table-window { box-shadow: 0 20px 60px #152d4017; }
.forecast-story { display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); gap: 64px; align-items: center; }
.forecast-story .section-head { margin-bottom: 18px; }
.forecast-reading { font-size: 13px; line-height: 1.7; color: var(--muted); padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line); max-width: 35ch; }
.forecast-visual { min-width: 0; }
.axis-labels { display: flex; justify-content: space-between; gap: 16px; font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.ephemeris-detail { border-color: #cfdbdf; border-radius: 6px; box-shadow: 0 16px 42px #122b3c12; }
.ephemeris-detail figcaption { order: 1; padding: 12px 16px; }
.ephemeris-detail { display: flex; flex-direction: column; }
.ephemeris-detail figcaption strong { display: none; }
.ephemeris-detail img { width: 100%; }
#ai.section { background: #122236; position: relative; }
#ai.section .section-head { max-width: 800px; }
.assistant-layout { grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); gap: 48px; align-items: center; }
.analysis-map { position: relative; padding: 30px; border: 1px solid #53718066; background: #172c42; border-radius: 14px; min-width: 0; isolation: isolate; }
.analysis-map>h3 { color: #d6e4eb; font-size: 16px; line-height: 1.5; max-width: 40ch; margin-bottom: 24px; font-weight: 500; }
.analysis-connectors { position: absolute; top: 70px; left: 0; width: 100%; height: calc(100% - 90px); z-index: -1; color: #719794; stroke: currentColor; stroke-width: 1; }
.analysis-nodes { list-style: none; display: grid; grid-template-columns: .85fr 1.15fr; grid-template-areas: 'chart data' 'review model'; gap: 32px 28px; margin: 0; padding: 0; align-items: center; counter-reset: analysis; }
.analysis-nodes>li { min-width: 0; counter-increment: analysis; }
.analysis-input { grid-area: chart; }
.analysis-data { grid-area: data; }
.analysis-interpretation { grid-area: model; }
.analysis-judgment { grid-area: review; }
.analysis-wheel { background: transparent; border: 0; color: #d9e4eb; overflow: visible; }
.analysis-wheel figcaption { padding: 0 0 16px; color: #b8cbd5; background: transparent; }
.analysis-wheel figcaption strong { color: #e1ebef; font-size: 14px; }
.analysis-wheel button { border-radius: 50%; overflow: hidden; background: white; border: 6px solid #263f55; }
.analysis-wheel img { border-radius: 50%; }
.analysis-positions { border: 0; border-radius: 6px; box-shadow: 0 8px 22px #00132638; }
.analysis-positions figcaption { padding: 10px 12px; font-size: 10px; }
.analysis-positions figcaption strong { font-size: 12px; }
.data-mark { color: #8fbcb6; margin-bottom: 10px; }
.analysis-interpretation { padding: 20px; border: 1px solid #b6a37966; border-radius: 8px; background: #24374a; }
.analysis-interpretation .marketing-icon { color: var(--gold); width: 28px; height: 28px; margin-bottom: 12px; }
.analysis-nodes h4 { color: #e8edf1; font-size: 15px; font-weight: 600; line-height: 1.45; margin: 0 0 10px; }
.analysis-nodes p { color: #bdcdd7; font-size: 12px; line-height: 1.7; }
.analysis-judgment { padding-top: 12px; }
.review-line { display: block; width: 32px; height: 2px; background: var(--gold); margin-bottom: 16px; }
.assistant-preview { margin-top: 28px; color: var(--gold); font-size: 14px; }
.assistant-preview>summary { min-height: 44px; padding-block: 10px; }
.assistant-preview .product-window { margin-top: 20px; max-width: 1000px; margin-inline: auto; }
.ai-notes { margin-top: 24px; }
.trust-grid .marketing-icon { color: var(--accent); margin-bottom: 16px; }
#audience { background: white; }
.role-grid article { border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 0 24px; background: transparent; }
.role-grid article:first-child { border-left: 0; padding-left: 0; }
.footer { background: #101c2d; border-top: 1px solid #d5b77c38; }
.compatibility { position: relative; isolation: isolate; overflow: clip; }
.compatibility-coordinates { width: 470px; height: 470px; top: 20px; right: -100px; z-index: -1; opacity: .09; color: var(--accent); }
.compatibility h1 { max-width: 19ch; }
@media(min-width:1440px) { .hero { padding-block: 46px 50px; } }
@media(max-width:1200px) { .hero-layout { gap: 38px; } .hero-feature { right: -8px; width: 230px; } .analysis-map { padding: 24px; } }
@media(max-width:1023px) {
  .hero-layout { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: 54px; max-width: 16ch; }
  .hero-showcase { padding-top: 10px; padding-bottom: 45px; }
  .hero-feature { bottom: 0; right: 22px; width: 250px; }
  .hero .app-language { margin-top: 18px; }
  .forecast-story { gap: 35px; }
}
@media(max-width:767px) {
  .hero h1 { font-size: 37px; max-width: 19ch; }
  .hero-layout { gap: 18px; }
  .hero-feature { display: none; }
  .hero-showcase { padding: 8px 0 0; }
  .hero-coordinates { width: 110%; height: 110%; left: -5%; top: -6%; opacity: .09; }
  .hero .app-language { margin-top: 14px; }
  .window-chrome { height: 30px; padding-inline: 10px; font-size: 9px; grid-template-columns: 38px minmax(0,1fr) 38px; }
  .window-controls { gap: 4px; }
  .window-controls i { width: 6px; height: 6px; }
  .product-window { border-radius: 9px; }
  .forecast-story { grid-template-columns: 1fr; gap: 26px; }
  .axis-labels { font-size: 10px; }
  .forecast-reading { max-width: 60ch; margin-top: 12px; padding-top: 12px; }
  .assistant-layout { grid-template-columns: 1fr; gap: 12px; }
  .analysis-map { padding: 22px 18px; }
  .analysis-nodes { gap: 24px 18px; }
  .analysis-map>h3 { font-size: 15px; }
  .analysis-interpretation { padding: 16px; }
  .analysis-nodes h4 { font-size: 13px; }
  .analysis-nodes p { font-size: 11px; }
  .analysis-wheel figcaption strong { font-size: 12px; }
  .analysis-positions figcaption { padding: 8px 10px; font-size: 9px; }
  .analysis-positions figcaption strong { font-size: 11px; }
  .data-mark { margin-bottom: 8px; }
  .role-grid article,.role-grid article:first-child { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; }
}
@media(max-width:380px) { .analysis-nodes { grid-template-columns: 1fr 1fr; gap: 20px 12px; } .analysis-map { padding: 20px 14px; } .analysis-interpretation { padding: 14px 12px; } }
@media(prefers-reduced-motion:no-preference) {
  .product-window { transition: box-shadow .2s ease; }
  .product-window:hover { box-shadow: 0 32px 78px #08132145, 0 2px 10px #08132118; }
  .feature-detail button img { transition: filter .16s ease; }
}
/* Keep the two propositions intact at desktop reading widths. */
@media(min-width:1024px) {
  .hero-layout { grid-template-columns: minmax(0,.95fr) minmax(0,1.25fr); gap: 50px; }
  .hero h1 { font-size: clamp(48px,4.15vw,62px); }
}
.hero-window figcaption { padding-right: 278px; min-height: 55px; }
@media(max-width:1200px) and (min-width:768px) { .hero-window figcaption { padding-right: 238px; } }
@media(max-width:767px) {
  .hero-window figcaption { padding-right: 14px; min-height: 0; }
  .analysis-map { order: -1; }
}
/* Window captions keep a readable dark foreground even inside the AI section. */
.product-window figcaption { color: var(--muted); }
/* Match real dark-theme captures with dark chrome, captions and detail panels. */
.dark-window { border-color: #435062; background: #20242c; }
.dark-window .window-chrome { background: #272c35; border-color: #414a58; color: #c6cfda; }
.dark-window .window-controls i { border-color: #8693a3; }
.dark-window .window-controls i:first-child { background: #8693a3; }
.dark-window .window-indicator { border-color: #8693a3; }
.dark-window .product-preview,.dark-window .product-preview button { background: #1c1c1e; }
.dark-window figcaption,.hero .dark-window figcaption { background: #222b38; border-color: #414a58; color: #c4cfdd; }
.dark-detail { background: #242a34; border-color: #475363; color: #edf1f6; }
.dark-detail figcaption { background: #293342; color: #c4cfdd; }
.dark-detail figcaption strong { color: #edf1f6; }
.dark-detail button { background: #1c1c1e; }
.analysis-wheel.dark-detail { background: transparent; }
.analysis-wheel.dark-detail figcaption { background: transparent; }
.analysis-wheel.dark-detail button { background: #1c1c1e; border-color: #3d536a; }

/* Screens at an angle, like the device on a desk in /start/ and /pro/: the hero and the dark windows lean in, the wide
   light screenshots tilt gently so their tables stay readable; hovering straightens them a little. Clicks still zoom. */
@media (min-width: 768px) {
  .hero-showcase, .chart-detail, .forecast-visual { perspective: 2400px; }
  .hero-window { transform: rotateY(-14deg) rotateX(6deg) rotate(1.5deg); transform-origin: 40% 50%; box-shadow: -36px 54px 100px #0008, 0 0 0 1px #d5b77c14; }
  .hero-feature { transform: rotate(-1.5deg); box-shadow: 0 28px 60px #04101e66; }
  .chart-detail .table-window { transform: rotateX(9deg) rotateY(-6deg); transform-origin: 50% 100%; box-shadow: -24px 44px 80px #152d402e; }
  .geo-detail .table-window { transform: rotateX(9deg) rotateY(6deg); box-shadow: 24px 44px 80px #152d402e; }
  .forecast-visual .ephemeris-detail { transform: rotateY(-12deg) rotateX(5deg); transform-origin: 100% 50%; box-shadow: -28px 40px 80px #122b3c2e; }
}
@media (min-width: 768px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero-window, .chart-detail .table-window, .forecast-visual .ephemeris-detail { transition: transform .5s ease, box-shadow .5s ease; }
  .hero-window:hover { transform: rotateY(-7deg) rotateX(3deg) rotate(.75deg); }
  .chart-detail .table-window:hover { transform: rotateX(4deg) rotateY(-3deg); }
  .geo-detail .table-window:hover { transform: rotateX(4deg) rotateY(3deg); }
  .forecast-visual .ephemeris-detail:hover { transform: rotateY(-6deg) rotateX(2deg); }
}
@media (max-width: 767px) {
  .hero-showcase, .chart-detail { perspective: 1200px; }
  .hero-window { transform: rotateY(-12deg) rotateX(6deg) rotate(2deg); transform-origin: 30% 50%; margin-right: -28px; box-shadow: -20px 32px 60px #0008; }
  .chart-detail .table-window { transform: rotateX(8deg); transform-origin: 50% 100%; box-shadow: 0 30px 50px #152d402e; }
}

/* Floating call to action on phones (marketing.js): below the hero buttons, hidden at the signup form. */
.float-cta { display: none; }
@media (max-width: 767px) {
  .float-cta { display: flex; position: fixed; left: 12px; right: 12px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 30; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; background: #101827d9; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid #d5b77c47; border-radius: 18px; box-shadow: 0 18px 40px #0000008c; color: #f5f2eb; transform: translateY(calc(100% + 32px)); opacity: 0; visibility: hidden; transition: transform .25s ease, opacity .25s ease, visibility 0s linear .25s; }
  .float-cta[data-visible] { transform: none; opacity: 1; visibility: visible; transition: transform .25s ease, opacity .25s ease; }
  .float-cta span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .float-cta strong { font-family: Wix, sans-serif; font-size: 15px; }
  .float-cta small { font-size: 12px; color: #a3adbb; }
  .float-cta .btn { flex: none; min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
  .float-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .footer { padding-bottom: 104px; }
}
@media (prefers-reduced-motion: reduce) { .float-cta { transition: none; } }
