/* Site only: a header that stays, one section per screen, and scrolling that moves section by section */

/* Fixed header: transparent over the hero, compact and blurred once the page scrolls */
.au-hdr{position:fixed !important;top:0;left:0;right:0;z-index:60 !important;border-bottom:1px solid transparent;transition:background-color .3s ease,padding .3s ease,box-shadow .3s ease,border-color .3s ease}
.au-hdr.scrolled,.au-hdr.menu-open{padding-top:14px !important;padding-bottom:14px !important;background:rgba(3,6,14,.8);backdrop-filter:blur(16px) saturate(1.2);-webkit-backdrop-filter:blur(16px) saturate(1.2);border-bottom-color:rgba(142,193,235,.12);box-shadow:0 10px 30px rgba(0,0,0,.35)}
.au-hdr-space{height:calc(var(--u)*1.9 + max(44px,var(--u)*2.95))}

/* Snap points: the hero, every section, and the footer at the very end.
   The sections' wrapper must clip rather than hide its overflow, or the browser ignores them as snap points;
   browsers without overflow: clip simply scroll normally. */
.au-root,.lp-sec,.lp-cta{scroll-snap-align:start}
#sections footer{scroll-snap-align:end}

/* Laptops and desktops: each section fills the screen, content centred below the header */
@media (min-width:761px) and (min-height:540px){
  .lp-sec{min-height:100vh;min-height:100svh;display:flex;flex-direction:column;justify-content:center;padding-top:110px !important;padding-bottom:50px !important}
  .lp-cta{padding-top:230px !important;padding-bottom:96px !important}
  /* Ask Revatica demo: fills the screen; the chart (or the SQL) takes whatever room is left */
  .aq{flex:1 1 auto;display:flex;flex-direction:column;max-height:920px}
  .aq-body,.aq-panels,.aq-viz{flex:1 1 0}
  .aq-panel,.aq-chart{display:flex;flex-direction:column}
  .aq-plot{flex:1 1 0;height:auto;min-height:110px}
  #aq-panel-sql .aq-sql{flex:1 1 0;min-height:120px;max-height:none}
  .aq-trace-wrap{display:flex;flex-direction:column}
  .aq-trace{flex:1 1 auto;justify-content:space-between}
}

/* Phones: sections can be taller than the screen, so snapping is gentle */
@media (max-width:760px){
  .au-hdr.scrolled,.au-hdr.menu-open{padding-top:10px !important;padding-bottom:10px !important}
  .au-hdr-space{height:66px}
  .au-sheet{position:fixed !important;top:74px !important}
  .lp-sec{padding-top:96px !important}
}

/* Portrait tablets: over the hero the menu has its own row; once the header is fixed, it moves back onto one row */
@media (min-width:761px) and (max-aspect-ratio:1/1){
  .au-hdr.scrolled .au-nav{order:0 !important;width:auto !important;flex:1 1 auto;justify-content:center !important;overflow:visible !important}
}

@media (prefers-reduced-motion:reduce){.au-hdr{transition:none}}

/* Laptop screens up to 960px tall (1440 x 900 and smaller): the Act table tightens a little */
@media (min-width:761px) and (min-height:540px) and (max-height:960px){
  .lp-act{margin-top:20px}
  .lp-at th{padding-top:9px;padding-bottom:9px}
  .lp-at td{padding-top:8px;padding-bottom:8px}
  .lp-act-notes{margin-top:14px}
  .lp-note{padding:12px 16px}
  .lp-note p{line-height:1.5}
  /* Ask Revatica demo */
  .aq{--aq-lines:2}
  .aq-top{padding-top:12px;padding-bottom:12px}
  .aq-picks{padding-top:10px;padding-bottom:10px}
  .aq-trace{gap:8px}
  .aq-step div > span{font-size:11.5px;line-height:1.35}
  .aq-panel{padding:14px 20px 16px}
  .aq-kpis,.aq-viz{margin-top:10px}
}

/* Short laptop screens (e.g. 1366 x 768): tighter spacing so each section still fits */
@media (min-width:761px) and (min-height:540px) and (max-height:860px){
  .lp-sec{padding-top:92px !important;padding-bottom:28px !important}
  .lp-sec h2{font-size:clamp(30px,3vw,48px) !important}
  .lp-lede{font-size:16px}
  /* How it works */
  .lp-steps4 > li > div{margin-top:14px !important}
  /* Why Revatica */
  .lp-why{margin-top:30px}
  .lp-why li{padding-top:11px;padding-bottom:11px}
  /* Reveal */
  .lp-caps{margin-top:20px;gap:10px}
  /* Act */
  .lp-at{font-size:14.5px}
  .lp-at td{padding-top:8px;padding-bottom:8px}
  /* Optimize */
  .lp-opt-canvas{height:330px !important}
  .lp-opt-list > li{padding:9px 14px !important}
  /* ROI and products */
  .lp-roi{margin-top:30px}
  .lp-roi > li{padding:22px}
  .lp-prods{margin-top:28px}
}

/* Shorter laptop screens (1536 x 730 = a 1920 x 1080 laptop at Windows' 125% scaling; 1280 x 720): tighter again */
@media (min-width:761px) and (min-height:540px) and (max-height:780px){
  .au-hdr.scrolled,.au-hdr.menu-open{padding-top:10px !important;padding-bottom:10px !important}
  .lp-sec{padding-top:80px !important;padding-bottom:14px !important}
  .lp-sec h2{margin-top:14px !important;font-size:clamp(28px,2.7vw,42px) !important}
  .lp-sec h2 + p,.lp-opt-lede{margin-top:12px !important;font-size:16px !important;line-height:1.55 !important}
  .lp-lede{font-size:15.5px;line-height:1.55}
  .lp-split{gap:16px 48px}
  /* Ask Revatica demo */
  .aq{--aq-lines:2}
  .aq-plan-k,.aq-plan{display:none}
  .aq-next{justify-content:center}
  .aq-next .aq-link{margin-top:2px}
  .aq-top{padding:10px 16px}
  .aq-ask{min-height:44px}
  .aq-picks{padding:8px 16px}
  .aq-pick{min-height:32px}
  .aq-trace-wrap{padding:12px 16px}
  .aq-trace{gap:7px;margin-top:10px}
  .aq-tab{height:36px}
  .aq-panel{padding:12px 18px 14px}
  .aq-head{font-size:17px}
  .aq-kpis,.aq-viz{margin-top:10px}
  .aq-kpi{padding:9px 12px}
  .aq-find li{padding:8px 12px;font-size:14px}
  .aq-acts td{padding:8px 12px}
  /* Why Revatica */
  .lp-why{margin-top:22px}
  .lp-why-head{padding-top:10px;padding-bottom:10px}
  .lp-why li{padding-top:8px;padding-bottom:8px}
  .lp-why-old{font-size:15px}
  .lp-why-new p{font-size:13.5px}
  /* How it works */
  .lp-sec div:has(> .lp-steps4){margin-top:30px !important}
  .lp-steps4 > li > span:first-child{width:50px !important;height:50px !important;border-radius:14px !important}
  .lp-hline{top:25px !important;left:25px !important;right:calc((100% - 84px) / 4 - 25px) !important}
  .lp-steps4 > li > div{margin-top:10px !important}
  .lp-steps4 > li > h3{font-size:20px !important}
  .lp-steps4 > li > p{font-size:14.5px !important;line-height:1.5 !important}
  .lp-sec div:has(> .lp-steps4) + .lp-a{margin-top:26px !important;padding-top:20px !important}
  /* Reveal */
  .lp-caps{margin-top:16px;gap:8px}
  .lp-caps p{font-size:13.5px}
  .lp-fl-group{margin-top:10px}
  .lp-fl{gap:6px}
  .lp-fl li{padding:9px 12px;font-size:14px}
  /* Act */
  .lp-act{margin-top:20px}
  .lp-at{font-size:14px}
  .lp-at th{padding:8px 16px}
  .lp-at td{padding:6px 16px;line-height:1.4}
  .lp-act-notes{gap:12px;margin-top:12px}
  .lp-note{padding:10px 14px}
  .lp-note p{font-size:13.5px;line-height:1.5}
  /* Optimize */
  .lp-opt-list{margin-top:16px !important;gap:8px !important}
  .lp-opt-list > li{padding:6px 14px !important}
  .lp-opt-canvas{height:290px !important}
  /* ROI */
  .lp-roi{margin-top:22px;gap:14px}
  .lp-roi > li{padding:18px}
  .lp-roi-ic{width:38px;height:38px}
  .lp-roi h3{margin-top:10px;font-size:18px}
  .lp-roi ul{margin-top:10px;gap:6px}
  .lp-roi ul li{font-size:14px}
  /* Use cases */
  .lp-uses{margin-top:28px !important}
  .lp-uses > li{padding:22px !important}
  .lp-uses dl{margin-top:16px !important;gap:12px !important}
  /* Products */
  .lp-prods{margin-top:22px}
  .lp-prod{gap:16px;padding:14px}
}

/* Short laptop screens (1280 x 720 at 150% scaling, browser bars included, leaves about 580-660px): tighter again */
@media (min-width:761px) and (min-height:540px) and (max-height:700px){
  .lp-sec{padding-top:72px !important;padding-bottom:10px !important}
  .lp-sec h2{margin-top:10px !important;font-size:clamp(26px,2.4vw,36px) !important}
  .lp-sec h2 + p,.lp-opt-lede{margin-top:10px !important;font-size:15px !important}
  .lp-lede{font-size:14.5px}
  [data-lp-eyebrow]{font-size:11.5px !important}
  /* Ask Revatica demo */
  .aq{--aq-lines:2}
  .aq-top{gap:8px;padding:7px 14px}
  .aq-ask{min-height:40px;padding:3px 3px 3px 12px}
  .aq-q{font-size:14px}
  .aq-run{height:32px}
  .aq-picks{gap:6px;padding:6px 14px}
  .aq-pick{min-height:30px;font-size:13px}
  .aq-trace-wrap{padding:10px 14px}
  .aq-trace{gap:6px;margin-top:8px}
  .aq-step b{font-size:13px}
  .aq-step div > span{font-size:11.5px;line-height:1.3}
  .aq-tabs{padding-top:0}
  .aq-tab{height:34px;font-size:13.5px}
  .aq-panel{padding:10px 16px 12px}
  .aq-head{font-size:15.5px}
  .aq-kpis{gap:8px;margin-top:8px}
  .aq-kpi{padding:7px 10px}
  .aq-kpi b{font-size:20px}
  .aq-kpi span{font-size:11.5px}
  .aq-viz{margin-top:8px}
  .aq-chart{padding:8px 10px}
  .aq-next{gap:6px;padding:10px 12px}
  .aq-next p{font-size:13.5px}
  .aq-find{gap:6px;margin-top:8px}
  .aq-find li{padding:6px 10px;font-size:13px}
  .aq-acts{font-size:13px}
  .aq-acts td{padding:6px 10px}
  .aq-note,.aq-loop{margin-top:8px}
  /* Why Revatica */
  .lp-why{margin-top:16px}
  .lp-why-head{padding-top:8px;padding-bottom:8px}
  .lp-why li{padding-top:6px;padding-bottom:6px}
  .lp-why-ic{width:30px;height:30px}
  .lp-why-old{font-size:14px}
  .lp-why-new b{font-size:15.5px}
  .lp-why-new p{margin-top:1px;font-size:13px}
  /* How it works */
  .lp-sec div:has(> .lp-steps4){margin-top:22px !important}
  .lp-steps4 > li > span:first-child{width:44px !important;height:44px !important;border-radius:13px !important}
  .lp-steps4 > li > span:first-child svg{width:22px;height:22px}
  .lp-hline{top:22px !important;left:22px !important;right:calc((100% - 84px) / 4 - 22px) !important}
  .lp-steps4 > li > div{margin-top:8px !important}
  .lp-steps4 > li > h3{margin-top:4px !important;font-size:18px !important}
  .lp-steps4 > li > p{margin-top:6px !important;font-size:14px !important}
  .lp-sec div:has(> .lp-steps4) + .lp-a{margin-top:18px !important;padding-top:14px !important}
  /* Reveal */
  .lp-caps{margin-top:12px;gap:6px}
  .lp-cap-ic{width:30px;height:30px}
  .lp-caps b{font-size:14.5px}
  .lp-caps p{font-size:13px}
  .lp-panel-head{padding:10px 16px}
  .lp-found-body{padding:4px 16px 14px}
  .lp-fl-group{margin-top:8px}
  .lp-fl li{padding:7px 12px}
  /* Act */
  .lp-act{margin-top:10px}
  .lp-at{font-size:13px}
  .lp-at th{padding:5px 14px}
  .lp-at td{padding:4px 14px;line-height:1.35}
  .lp-at td:first-child .lp-tag{margin-bottom:2px}
  .lp-tag{padding:2px 8px;font-size:11px}
  .lp-act .lp-panel-head{padding-top:7px;padding-bottom:7px}
  .lp-act-notes{gap:10px;margin-top:8px}
  .lp-note{gap:10px;padding:7px 12px}
  .lp-note-ic{width:28px;height:28px}
  .lp-note b{font-size:14.5px}
  .lp-note p{margin-top:2px;font-size:12.5px;line-height:1.45}
  /* Optimize */
  .lp-opt-canvas{height:240px !important}
  .lp-opt-list{margin-top:12px !important;gap:6px !important}
  .lp-opt-list > li{padding:5px 12px !important}
  .lp-opt-list > li > h3{font-size:14.5px !important}
  .lp-opt-list > li > p{margin-top:1px !important;font-size:12.5px !important;line-height:1.4 !important}
  .lp-opt-vis > div > div:first-child,.lp-opt-vis > div > div:last-child{padding-top:10px !important;padding-bottom:10px !important}
  .lp-opt-vis .lp-tab{min-height:34px !important}
  /* ROI */
  .lp-roi{margin-top:16px}
  .lp-roi > li{padding:14px 16px}
  .lp-roi-ic{width:32px;height:32px}
  .lp-roi h3{margin-top:8px;font-size:17px}
  .lp-roi ul li{font-size:13.5px}
  /* Use cases */
  .lp-uses{margin-top:20px !important;gap:14px !important}
  .lp-uses > li{padding:18px !important;border-radius:20px !important}
  .lp-uses h3{font-size:19px !important}
  .lp-uses li > div:first-child > span{width:38px !important;height:38px !important}
  .lp-uses dl{margin-top:12px !important;gap:8px !important}
  .lp-uses dl > div{padding-left:12px !important}
  .lp-uses dd{margin-top:3px !important;font-size:13.5px !important}
  /* Products */
  .lp-prods{margin-top:16px}
  .lp-prod h3{font-size:19px}
  .lp-prod p{font-size:14px}
  /* Last screen: call to action and footer */
  .lp-cta{padding-top:170px !important;padding-bottom:70px !important}
}

/* The shortest laptop screens (under 620px tall): tighter again */
@media (min-width:761px) and (min-height:540px) and (max-height:620px){
  .lp-sec{padding-top:68px !important}
  .lp-opt-canvas{height:215px !important}
  .lp-opt-list{margin-top:8px !important;gap:5px !important}
  .lp-opt-list > li{padding:4px 12px !important}
  .lp-caps{margin-top:8px}
  .lp-at{font-size:12.5px}
  .lp-act .lp-split{gap:8px 40px}
  .lp-sec h2{font-size:clamp(24px,2.1vw,32px) !important}
  .lp-act{margin-top:8px}
  .lp-at td{padding-top:3px;padding-bottom:3px}
  .lp-act-notes{margin-top:6px}
  .lp-note p{font-size:12px}
  .aq-trace{gap:4px}
}

/* Laptops and desktops: the four steps of How it works stay on one row */
@media (min-width:1001px){
  .lp-steps4{grid-template-columns:repeat(4,minmax(0,1fr)) !important}
}

@supports (overflow: clip){
  .lp{overflow:clip !important}
  @media (min-width:761px) and (min-height:540px){html{scroll-snap-type:y mandatory}}
  @media (max-width:760px){html{scroll-snap-type:y proximity}}
}
@media (prefers-reduced-motion:reduce){html{scroll-snap-type:none !important}}
