:root { --shell-navy: #102b4e; --shell-blue: #2d67b5; --shell-line: #dbe6f1; --shell-bg: #f5f8fc; }
body { background: var(--shell-bg); color: var(--shell-navy); min-width: 320px; }
body.lite-home { background: #ffffff; }

/* ===== Global width rule (desktop 1220px max, tablet/mobile fluid) ===== */
.site-header .container, .site-footer .container, .site-page {
  width: min(calc(100% - 40px), 1220px);
  margin-inline: auto;
}
@media (max-width: 1024px) {
  .site-header .container, .site-footer .container, .site-page {
    width: min(calc(100% - 32px), 1220px);
  }
}
@media (max-width: 767px) {
  .site-header .container, .site-footer .container, .site-page {
    width: min(calc(100% - 24px), 1220px);
  }
}

/* ===== Header (desktop default: centred nav, no hamburger) ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--shell-line); }
.site-header .nav { min-height: 82px; display: grid; grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr); align-items: center; gap: 24px; }
.site-header .brand { color: var(--shell-navy); text-decoration: none; display: inline-flex; align-items: center; gap: 9px; font-weight: 800; flex: 0 0 auto; }
.site-header .header-logo { display: block; width: 56px; height: 56px; object-fit: contain; }
.site-header .brand-name { color: var(--shell-navy); font-size: 1.15rem; font-weight: 900; white-space: nowrap; }

.site-nav-links { display: flex; align-items: center; gap: 24px; margin: 0; }
.site-nav-links a { color: #40536d; text-decoration: none; font-size: 14px; font-weight: 700; }
.site-nav-links a:hover { color: var(--shell-blue); }

.site-header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.site-header .btn { display: inline-flex; align-items: center; justify-content: center; width: auto; min-height: 44px; margin: 0; padding: 0 20px; border: 1px solid var(--shell-blue); border-radius: 9px; background: var(--shell-blue); color: #fff; font-size: 13px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; }
.site-header .btn.primary { background: var(--shell-blue); border-color: var(--shell-blue); color: #fff; }
.site-header .btn.soft { background: #fff; border-color: #c9d9ea; color: var(--shell-navy); }
.site-header .btn.soft:hover { background: #edf4fb; }
.site-header .header-download { border-color: #c9d9ea; }
.site-header .profile-btn { width: 44px; min-width: 44px; padding: 0; border-radius: 50%; }
.site-header .profile-icon { width: 20px; height: 20px; fill: none; }

/* Single unified header actions — only one Buy Plan button exists */
.tablet-header-actions { display: none !important; }
.site-header .header-buy { display: inline-flex; }
.site-header .header-login { display: inline-flex; }

/* Hamburger: hidden on desktop, shown on tablet + mobile only */
.menu { display: none; appearance: none; border: 1px solid #c9d9ea; background: #fff; width: 44px; height: 44px; align-items: center; justify-content: center; margin-left: auto; padding: 0; cursor: pointer; color: var(--shell-navy); border-radius: 10px; }
.menu:hover { border-color: var(--shell-blue); background: #eef3fb; }
.menu:focus-visible { outline: 3px solid rgba(45, 103, 181, 0.28); outline-offset: 2px; }
.menu-icon { display: inline-grid; gap: 5px; width: 22px; }
.menu-icon span { display: block; height: 2px; width: 22px; background: currentColor; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
body.menu-open .menu-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .menu-icon span:nth-child(2) { opacity: 0; }
body.menu-open .menu-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Right-side slide-in drawer (shared by tablet + mobile) ===== */
.menu-backdrop { position: fixed; inset: 0; z-index: 60; border: 0; margin: 0; background: rgba(16, 43, 78, 0.32); opacity: 0; pointer-events: none; transition: opacity 0.26s ease; }
body.menu-open .menu-backdrop { opacity: 1; pointer-events: auto; }

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  width: min(88vw, 360px);
  height: 100vh;
  height: 100svh;
  background: #fff;
  box-shadow: -16px 0 40px rgba(16, 43, 78, 0.16);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 0.28s ease, visibility 0s linear 0.28s;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 24px;
  overflow-y: auto;
}
/* The drawer is only visible when both its state class and the body state
   agree. This prevents a restored mobile page from showing an open drawer. */
body.menu-open .nav-drawer.open { transform: translateX(0); visibility: visible; transition: transform 0.28s ease, visibility 0s linear 0s; }

/* ===== Android app download dialog ===== */
body.app-download-open { overflow: hidden; }
.app-download-dialog { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: rgba(12, 27, 49, .58); }
.app-download-dialog[hidden] { display: none; }
.app-download-card { position: relative; width: min(100%, 460px); padding: 30px; border: 1px solid #cbdced; border-radius: 16px; background: #fff; box-shadow: 0 24px 56px rgba(16, 43, 78, .24); }
.app-download-close { position: absolute; top: 12px; right: 12px; display: grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 1px solid #d7e3ef; border-radius: 8px; background: #fff; color: #29486b; cursor: pointer; }
.app-download-close:hover { border-color: #89acd0; background: #f4f8fc; }
.app-download-close:focus-visible, .app-download-actions :focus-visible { outline: 3px solid rgba(45, 103, 181, .28); outline-offset: 2px; }
.app-download-eyebrow { margin: 0 44px 10px 0; color: var(--shell-blue); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.app-download-card h2 { margin: 0; color: var(--shell-navy); font-size: clamp(26px, 5vw, 32px); line-height: 1.14; }
.app-download-card > p:not(.app-download-eyebrow) { margin: 12px 0 0; color: #586a83; font-size: 14px; line-height: 1.65; }
.app-download-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.app-download-actions .btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding-inline: 14px; border-radius: 8px; font-size: 13px; text-align: center; }
.app-download-actions .btn.primary { background: var(--shell-blue); color: #fff; }
.app-download-actions .btn.primary:hover { background: #3979d3; }
.app-download-actions button:disabled { border: 1px solid #d5e0eb; background: #f1f4f8; color: #78879b; cursor: not-allowed; }
@media (max-width: 480px) { .app-download-card { padding: 26px 20px 20px; } .app-download-actions { grid-template-columns: 1fr; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid #e9edf7; }
.drawer-head .brand { font-size: 1.05rem; font-weight: 900; color: var(--shell-navy); }
.drawer-close { appearance: none; border: 0; background: #f2f4ff; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--shell-navy); cursor: pointer; padding: 0; }
.drawer-close .ico { width: 16px; height: 16px; }
.drawer-links { display: grid; gap: 0; margin: 14px 0 18px; }
.drawer-links a { display: flex; align-items: center; min-height: 48px; padding: 0 2px; border-bottom: 1px solid #eef1f7; color: #1e2947; font-size: 1rem; font-weight: 700; text-decoration: none; }
.drawer-links a:last-child { border-bottom: 0; }
.drawer-sep { border-top: 1px solid #e9edf7; margin-bottom: 16px; }
.drawer-actions { display: grid; gap: 10px; margin-top: auto; }
.drawer-actions .btn { width: 100%; min-height: 48px; }

body.menu-open { overflow: hidden; }

/* Never let the drawer/hamburger mount above the desktop breakpoint */
@media (min-width: 1025px) {
  .nav-drawer, .menu-backdrop { display: none; }
}

/* ===== Tablet: 768-1024px — logo left, Buy Plan + Profile (if signed in) + hamburger right ===== */
@media (min-width: 768px) and (max-width: 1024px) {
  .site-header .nav { display: flex; gap: 16px; }
  .site-nav-links { display: none; }
  .site-header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
  .site-header .header-buy { display: inline-flex; min-height: 40px; padding: 0 14px; }
  .site-header .header-login { display: none; }
  .site-header .profile-btn { display: inline-flex; }
  .menu { display: inline-flex; margin-left: 0; }
}

/* ===== Mobile: below 768px — larger logo left, Buy Plan + hamburger right ===== */
@media (max-width: 767px) {
  .site-header .nav { min-height: 76px; display: flex; gap: 8px; }
  .site-nav-links { display: none; }
  .site-header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
  .site-header .header-buy { display: inline-flex; min-height: 40px; padding: 0 12px; font-size: 12px; }
  .site-header .header-login { display: none; }
  .site-header .profile-btn { display: none; }
  .menu { display: inline-flex; margin-left: 0; }
  .site-header .header-logo { width: 52px; height: 52px; }
  .site-header .brand-name { font-size: 1.05rem; }
}
@media (max-width: 390px) {
  .site-header .brand-name { display: none; }
  .site-header .nav { gap: 8px; }
}

/* ===== Page shell / auth layout ===== */
.site-page { padding: 68px 0 76px; }
.site-auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, 500px); gap: 72px; align-items: center; min-height: 570px; }
.site-auth-copy h1, .site-page h1 { color: var(--shell-navy); }
.site-auth-copy h1 { font-size: clamp(34px, 4vw, 46px); line-height: 1.12; }
.site-auth-copy .eyebrow, .site-page .eyebrow { color: var(--shell-blue); }
.site-auth-copy .lead { margin-left: 0; }
.site-auth-card { margin: 0; box-shadow: 0 18px 45px rgba(16, 43, 78, .08); border-color: var(--shell-line); }
.site-auth-card h2 { margin: 0 0 8px; color: var(--shell-navy); font-size: 26px; }
.site-auth-card input { min-height: 52px; border-color: #dce3ef; border-radius: 10px; }
.selected-plan-summary { margin: 20px 0 4px; padding: 16px; border: 1px solid #cbdcf0; background: #f0f6fd; border-radius: 10px; }
.selected-plan-summary[hidden] { display: none; }
.selected-plan-summary strong { display: block; font-size: 16px; color: var(--shell-navy); }
.selected-plan-summary span { color: #52647d; display: block; font-size: 13px; margin-top: 4px; }
.site-page .primary { background: var(--shell-navy); border-color: var(--shell-navy); color: #fff; }
.site-page .primary:hover { background: #1b4678; }

@media (max-width: 1024px) {
  .site-page { padding: 44px 0 56px; }
  .site-auth-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; min-height: auto; }
  .site-auth-copy { text-align: center; }
  .site-auth-copy .lead { margin: 0 auto; }
  .site-auth-card { max-width: 560px; width: 100%; margin-inline: auto; }
}

/* Buying a plan commonly lands on signup from a phone. Keep the account
   fields immediately visible instead of using vertical space on marketing
   copy above the form. Desktop and tablet retain the fuller two-part layout. */
@media (max-width: 767px) {
  .signup-page .site-page.site-auth-layout {
    display: block;
    padding: 16px 0 28px;
  }
  .signup-page .site-auth-copy { display: none; }
  .signup-page .site-auth-card {
    max-width: none;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(16, 43, 78, .06);
  }
  .signup-page .site-auth-card h2 {
    margin-bottom: 2px;
    font-size: 24px;
    line-height: 1.2;
  }
  .signup-page .site-auth-card > .hint { margin: 0; font-size: 12px; }
  .signup-page .selected-plan-summary {
    margin: 12px 0 0;
    padding: 10px 12px;
  }
  .signup-page .selected-plan-summary strong { font-size: 14px; }
  .signup-page .selected-plan-summary span { font-size: 12px; }
  .signup-page .site-auth-card label {
    margin-top: 10px;
    font-size: 12px;
  }
  .signup-page .site-auth-card input {
    min-height: 44px;
    margin-top: 4px;
    padding: 8px 10px;
    border-radius: 8px;
  }
  .signup-page .field-note { margin: 4px 0 0; }
  .signup-page .error { min-height: 0; margin: 7px 0 0; }
  .signup-page .site-auth-card .primary {
    min-height: 46px;
    margin-top: 12px;
    font-size: 15px;
  }
  .signup-page .auth-switch { margin: 12px 0 0; }
}

/* ===== Footer ===== */
.site-footer { margin-top: 0; text-align: left; }
.site-footer .footbrand { text-decoration: none; }
.site-footer { background: #102b4e; color: #d7e3f0; padding: 28px 0 12px; }
.site-footer .footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 34px; }
.site-footer .footer-logo { width: 42px; height: 42px; object-fit: contain; }
.site-footer .brand-name { color: #fff; }
.site-footer p { color: #bfcee0; line-height: 1.65; max-width: 350px; }
.site-footer h4,
.site-footer .footer-col-title { color: #fff; font-size: 14px; font-weight: 700; margin: 6px 0 14px; }
.site-footer a { display: block; color: #c7d6e8; text-decoration: none; font-size: 13px; margin: 9px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.14); margin-top: 18px; padding-top: 12px; color: #aebfd4; font-size: 12px; }
.site-footer .footbrand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; }

@media (max-width: 1024px) {
  .site-footer { padding-top: 38px; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 767px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .site-footer .footer-bottom { display: block; margin-top: 24px; }
  .site-footer .footer-bottom span { display: block; margin: 6px 0; }
}

.floating-wa { position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #1fa855; color: #fff; z-index: 30; box-shadow: 0 8px 20px rgba(16,43,78,.2); }
.floating-wa .ico { width: 27px; height: 27px; fill: currentColor; }
@media (max-width: 767px) {
  .floating-wa { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

.site-auth-benefits { display: grid; gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; }
.site-auth-benefits li { display: flex; align-items: center; gap: 12px; color: #40536d; font-size: 14px; font-weight: 600; }
.site-auth-benefits svg { width: 18px; height: 18px; color: var(--shell-blue); fill: currentColor; }
.password-field { position: relative; }
.password-field input { padding-right: 66px; }
.password-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--shell-blue); padding: 8px; cursor: pointer; font-size: 12px; font-weight: 800; }
/* ===== Main-site layout, adapted to the EasyEDetailing-Lite light palette ===== */
.site-header{
  position:sticky;
  top:18px;
  z-index:50;
  height:72px;
  margin:18px clamp(14px,3vw,50px) 0;
  background:rgba(255,255,255,.96);
  border:1px solid #dce7f2;
  border-radius:999px;
  box-shadow:0 14px 36px rgba(16,43,78,.12),inset 0 1px rgba(255,255,255,.88);
  backdrop-filter:blur(16px) saturate(145%);
  -webkit-backdrop-filter:blur(16px) saturate(145%);
}
.site-header .nav{
  position:relative;
  width:calc(100% - 36px);
  max-width:none;
  min-height:70px;
  height:70px;
  display:flex;
  align-items:center;
  gap:0;
}
.site-header .brand{
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
  z-index:2;
  color:var(--shell-navy);
  text-decoration:none;
}
.site-header .header-logo-new{
  display:block;
  width:auto!important;
  height:42px!important;
  max-width:176px;
  object-fit:contain;
}
.site-nav-links{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:6px;
  margin:0;
}
.site-nav-links a{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:42px;
  padding:0 9px;
  border-radius:9px;
  color:#40536d;
  text-decoration:none;
  font-size:12.5px;
  font-weight:700;
  white-space:nowrap;
  transition:background .2s ease,color .2s ease;
}
.site-nav-links a::after{
  position:absolute;
  right:50%;
  bottom:3px;
  left:50%;
  height:2px;
  border-radius:2px;
  background:var(--shell-blue);
  content:"";
  transition:left .2s ease,right .2s ease;
}
.site-nav-links a:hover{
  color:var(--shell-navy);
  background:#eef4fa;
}
.site-nav-links a:hover::after,.site-nav-links a:focus-visible::after{
  right:9px;
  left:9px;
}
.site-nav-links .main-site-home{
  color:#245f9d;
  background:transparent;
}
.site-nav-links .main-site-home:hover{
  color:#174c84;
  background:#e7f0f9;
}
.home-arrow{
  width:16px;
  height:16px;
  color:#2d67b5;
  flex:0 0 auto;
  transform:rotate(180deg);
}
.site-header-actions{
  margin-left:auto;
  justify-self:auto;
  display:flex;
  align-items:center;
  gap:8px;
  z-index:2;
}
.site-header .btn{
  min-height:46px;
  padding:0 22px;
  border-radius:999px;
  font-size:12.5px;
  font-weight:800;
}
.site-header .btn.primary{
  box-shadow:0 7px 16px rgba(45,103,181,.16);
}
.drawer-brand{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
}
.drawer-brand img{
  display:block;
  width:auto;
  height:44px;
  max-width:166px;
  object-fit:contain;
}
.drawer-links .main-site-home{
  gap:8px;
  color:#245f9d;
  background:#f5f9fd;
  padding-inline:10px;
  border-radius:9px;
  border-bottom:0;
  margin-bottom:5px;
}
.drawer-links .main-site-home + a{
  border-top:1px solid #eef1f7;
}
@media (min-width:768px) and (max-width:1024px){
  .site-header{top:12px;margin-top:12px}
  .site-header .nav{min-height:70px}
  .site-header .header-logo-new{height:40px!important;max-width:166px}
  .site-nav-links{display:none}
  .site-header-actions{margin-left:auto}
}
@media (max-width:767px){
  .site-header{top:8px;height:60px;margin:8px 8px 0}
  .site-header .nav{width:calc(100% - 22px);min-height:58px;height:58px;gap:8px}
  .site-header .header-logo-new{height:42px!important;max-width:158px}
  .site-nav-links{display:none}
  .site-header .header-buy{min-height:38px;padding:0 13px;font-size:11.5px}
  .menu{width:44px;height:44px}
}
@media (max-width:390px){
  .site-header .header-logo-new{height:38px!important;max-width:135px}
}
/* ===== Public motion + interaction system (admin excluded) ===== */
html{scroll-behavior:smooth}
html.ed-public-motion body:not(.admin-shell-v2){
  transition:opacity .22s ease,filter .22s ease;
}
html.ed-public-motion body:not(.admin-shell-v2).ed-page-enter{
  opacity:.001;
}
html.ed-public-motion body:not(.admin-shell-v2).ed-page-enter.ed-page-entered{
  opacity:1;
}
html.ed-public-motion body:not(.admin-shell-v2).ed-page-leaving{
  opacity:.55;
  filter:blur(1.5px);
  pointer-events:none;
}

html.ed-public-motion body:not(.admin-shell-v2) .ed-motion-section{
  opacity:0;
  transform:translate3d(0,28px,0) scale(.992);
  transition:
    opacity .65s cubic-bezier(.22,.75,.22,1),
    transform .65s cubic-bezier(.22,.75,.22,1);
  will-change:opacity,transform;
}
html.ed-public-motion body:not(.admin-shell-v2) .ed-motion-section:nth-of-type(4n+2){
  transform:translate3d(-24px,18px,0) scale(.992);
}
html.ed-public-motion body:not(.admin-shell-v2) .ed-motion-section:nth-of-type(4n+3){
  transform:translate3d(24px,18px,0) scale(.992);
}
html.ed-public-motion body:not(.admin-shell-v2) .ed-motion-section.ed-motion-visible{
  opacity:1;
  transform:none;
}
html.ed-public-motion body:not(.admin-shell-v2) .ed-motion-item{
  opacity:0;
  transform:translate3d(0,18px,0) scale(.985);
  transition:
    opacity .5s cubic-bezier(.22,.75,.22,1) var(--ed-delay,0ms),
    transform .5s cubic-bezier(.22,.75,.22,1) var(--ed-delay,0ms),
    box-shadow .24s ease,
    border-color .24s ease,
    background-color .24s ease,
    color .24s ease;
}
html.ed-public-motion body:not(.admin-shell-v2) .ed-motion-item.ed-motion-visible{
  opacity:1;
  transform:none;
}

/* Smooth, consistent interaction feedback across the public EasyEDetailing-Lite site. */
body:not(.admin-shell-v2) :is(a.btn,button,.button-link,.plan-card){
  transition:
    transform .18s cubic-bezier(.22,.75,.22,1),
    box-shadow .22s ease,
    background-color .22s ease,
    border-color .22s ease,
    color .22s ease,
    filter .22s ease;
}
body:not(.admin-shell-v2) :is(a.btn,button,.button-link,.plan-card):hover:not(:disabled){
  transform:translateY(-2px);
  filter:saturate(1.07);
}
body:not(.admin-shell-v2) :is(a.btn,button,.button-link,.plan-card):active:not(:disabled),
body:not(.admin-shell-v2) :is(a.btn,button,.button-link,.plan-card).ed-tap{
  transform:translateY(0) scale(.965);
}
body:not(.admin-shell-v2) :is(a,button,input,select,textarea):focus-visible{
  outline:3px solid rgba(45,103,181,.24);
  outline-offset:3px;
}

/* Navigation hover movement remains subtle and does not shift layout. */
body:not(.admin-shell-v2) .site-nav-links a,
body:not(.admin-shell-v2) .drawer-links a,
body:not(.admin-shell-v2) .site-footer a{
  transition:color .2s ease,background-color .2s ease,transform .2s ease;
}
body:not(.admin-shell-v2) .drawer-links a:hover{
  color:#174f91;
  background:#eef5fc;
  transform:translateX(4px);
}
body:not(.admin-shell-v2) .site-footer a:hover{
  color:#fff;
  transform:translateX(3px);
}

/* FAQ opens/closes instead of appearing abruptly. */
body:not(.admin-shell-v2) .faq-item>div{
  display:grid!important;
  grid-template-rows:0fr;
  opacity:0;
  overflow:hidden;
  padding-bottom:0!important;
  transition:grid-template-rows .3s ease,opacity .26s ease,padding .3s ease;
}
body:not(.admin-shell-v2) .faq-item>div>*{
  min-height:0;
  overflow:hidden;
}
body:not(.admin-shell-v2) .faq-item.open>div{
  grid-template-rows:1fr;
  opacity:1;
  padding-bottom:18px!important;
}
body:not(.admin-shell-v2) .faq-item button span{
  transition:transform .25s ease,color .25s ease;
}
body:not(.admin-shell-v2) .faq-item.open button span{
  transform:rotate(180deg);
  color:#174f91;
}

/* Modal entrance/exit feels like a native sheet. */
body:not(.admin-shell-v2) .modal{
  opacity:0;
  visibility:hidden;
  display:flex;
  pointer-events:none;
  transition:opacity .22s ease,visibility .22s ease;
}
body:not(.admin-shell-v2) .modal .modal-box{
  opacity:0;
  transform:translateY(18px) scale(.97);
  transition:opacity .26s ease,transform .26s cubic-bezier(.22,.75,.22,1);
}
body:not(.admin-shell-v2) .modal.show{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
body:not(.admin-shell-v2) .modal.show .modal-box{
  opacity:1;
  transform:none;
}

/* Small floating actions get a polished hover without layout jump. */
body:not(.admin-shell-v2) .floating-wa{
  transition:transform .22s ease,box-shadow .22s ease,background-color .22s ease;
}
body:not(.admin-shell-v2) .floating-wa:hover{
  transform:translateY(-4px) scale(1.04);
  background:#16974b;
  box-shadow:0 14px 28px rgba(16,43,78,.25);
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  html.ed-public-motion body:not(.admin-shell-v2),
  html.ed-public-motion body:not(.admin-shell-v2) .ed-motion-section,
  html.ed-public-motion body:not(.admin-shell-v2) .ed-motion-item,
  body:not(.admin-shell-v2) :is(a.btn,button,.button-link,.plan-card),
  body:not(.admin-shell-v2) .faq-item>div,
  body:not(.admin-shell-v2) .modal,
  body:not(.admin-shell-v2) .modal .modal-box,
  body:not(.admin-shell-v2) .floating-wa{
    opacity:1!important;
    transform:none!important;
    transition:none!important;
    animation:none!important;
    filter:none!important;
  }
}
/* ===== Public polish v2: hover colour + card motion ===== */
body:not(.admin-shell-v2) :is(.btn.primary,.site-page .primary,.header-buy):hover:not(:disabled){
  background:#1e56a0;
  border-color:#1e56a0;
  color:#fff;
  box-shadow:0 10px 22px rgba(30,86,160,.20);
}
body:not(.admin-shell-v2) :is(.btn.soft,.secondary,.button-link):hover:not(:disabled){
  background:#eaf3fd;
  border-color:#a9c6e5;
  color:#174f91;
}
body:not(.admin-shell-v2) .btn.white:hover{
  background:#eaf2ff;
  color:#174f91;
}
body:not(.admin-shell-v2) .btn.ghost:hover{
  background:rgba(255,255,255,.18);
  border-color:rgba(255,255,255,.32);
  color:#fff;
}
body:not(.admin-shell-v2) :is(.ed-price-buy,.plan-buy-btn):hover{
  background:#dceaff;
  color:#0f3767;
  transform:translateY(-2px);
}
body:not(.admin-shell-v2) :is(.ed-price-download,.plan-features-btn):hover{
  border-color:#6daeff;
  background:rgba(109,174,255,.12);
  color:#fff;
  transform:translateY(-2px);
}
body:not(.admin-shell-v2) :is(
  .card,
  .creative-feature-card,
  .workflow-step,
  .ed-price-card,
  .feature-card,
  .guide-card
){
  transition:
    transform .24s cubic-bezier(.22,.75,.22,1),
    box-shadow .24s ease,
    border-color .24s ease,
    background-color .24s ease;
}
@media (hover:hover) and (pointer:fine){
  body:not(.admin-shell-v2) :is(
    .card,
    .creative-feature-card,
    .workflow-step,
    .ed-price-card,
    .feature-card,
    .guide-card
  ):hover{
    transform:translateY(-5px);
    box-shadow:0 20px 42px rgba(20,47,82,.11);
  }
}
body:not(.admin-shell-v2) .site-nav-links a::after{
  content:"";
  position:absolute;
  left:10px;
  right:10px;
  bottom:5px;
  height:2px;
  border-radius:999px;
  background:var(--shell-blue);
  transform:scaleX(0);
  transform-origin:center;
  transition:transform .22s ease;
}
body:not(.admin-shell-v2) .site-nav-links a:hover::after{
  transform:scaleX(1);
}
body:not(.admin-shell-v2) .site-nav-links a{
  position:relative;
}
body:not(.admin-shell-v2) .faq-item button:hover{
  color:#174f91;
}
body:not(.admin-shell-v2) input,
body:not(.admin-shell-v2) select,
body:not(.admin-shell-v2) textarea{
  transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease;
}
body:not(.admin-shell-v2) input:hover,
body:not(.admin-shell-v2) select:hover,
body:not(.admin-shell-v2) textarea:hover{
  border-color:#a9bfd8;
}
body:not(.admin-shell-v2) input:focus,
body:not(.admin-shell-v2) select:focus,
body:not(.admin-shell-v2) textarea:focus{
  border-color:#6e9ed2;
  box-shadow:0 0 0 3px rgba(45,103,181,.10);
}


/* Analytics consent banner (shared behaviour with the main site, whose
   styles live in /assets/css/main.css; Lite pages do not load that file). */
.analytics-consent{position:fixed;z-index:10000;left:50%;bottom:18px;transform:translateX(-50%);width:min(calc(100% - 28px),860px);display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 20px;border:1px solid rgba(255,255,255,.14);border-radius:18px;background:rgba(8,13,22,.97);box-shadow:0 24px 70px rgba(0,0,0,.5);backdrop-filter:blur(18px);color:#AAB3C2}
.analytics-consent strong{display:block;margin-bottom:5px;font:800 15px Manrope,sans-serif;color:#fff}
.analytics-consent p{max-width:590px;margin:0;font-size:12.5px;line-height:1.55}
.analytics-consent-actions{display:flex;flex:0 0 auto;gap:9px}
.analytics-consent button{min-height:42px;padding:0 15px;border:1px solid rgba(255,255,255,.16);border-radius:10px;background:#131b28;color:#d8deea;font:700 12.5px Manrope,sans-serif;cursor:pointer}
.analytics-consent .analytics-consent-accept{border-color:transparent;background:linear-gradient(100deg,#3D7BFF,#2BD4CC);color:#04101c}
.analytics-consent button:focus-visible{outline:3px solid rgba(43,212,204,.35);outline-offset:2px}
@media(max-width:680px){.analytics-consent{bottom:calc(86px + env(safe-area-inset-bottom));align-items:stretch;flex-direction:column;gap:14px;padding:17px}.analytics-consent-actions{display:grid;grid-template-columns:1fr 1fr}.analytics-consent button{width:100%}}

/* Automatic offers + Custom Plan card (homepage pricing) */
.offer-banner{margin:0 auto 18px;max-width:900px;background:#eef8f1;border:1px solid #bfe3cb;color:#0f5f33;border-radius:14px;padding:12px 16px;font-weight:700;text-align:center}
.price-offer-badge{display:inline-block;align-self:flex-start;margin:0 0 8px;background:#0f7a3e;color:#fff;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:800;letter-spacing:.02em}
.custom-plan-card{border:2px dashed #9fb3d6}
.custom-plan-card .price-from{font-size:13px;color:#65718d;margin-right:6px;align-self:center}
@media (min-width:1025px){.ed-price-grid .custom-plan-card{grid-column:1/-1;justify-self:center;width:100%;max-width:560px}}
@media (min-width:769px) and (max-width:1024px){.ed-price-grid .custom-plan-card{grid-column:1/-1;justify-self:center;width:100%;max-width:520px}}

/* Homepage pricing introduction and custom plan share one desktop row. */
.main-price-clone .pricing-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 40px;
  align-items: stretch;
  margin-bottom: 48px;
}
.main-price-clone .pricing-intro-copy {
  min-width: 0;
}
.main-price-clone .pricing-intro-layout .ed-price-head {
  margin: 0 0 24px;
  text-align: left;
}
.main-price-clone .pricing-intro-layout .lite-price-index-summary {
  margin: 0 0 24px;
  padding: 20px 0;
  border: 0;
  border-block: 1px solid rgba(255, 255, 255, .12);
  border-radius: 0;
  background: none;
}
.main-price-clone .pricing-intro-layout .custom-plan-card {
  min-height: 0;
  padding: 24px;
  border: 1px solid rgba(126, 179, 255, .3);
  border-radius: 14px;
  background: #142238;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.main-price-clone .pricing-intro-layout .price-from {
  color: #cbd8eb;
}
.main-price-clone .pricing-intro-layout .custom-plan-card .ed-price-actions {
  grid-template-columns: 1fr;
}
.main-price-clone .pricing-intro-layout .custom-plan-card .ed-price-buy {
  border-radius: 8px;
}
.main-price-clone .price-offer-badge[hidden] {
  display: none;
}
.main-price-clone .pricing-intro-layout .ed-price-trial {
  max-width: none;
  margin: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  padding: 16px;
  border-radius: 12px;
  background: #142238;
}
.main-price-clone .pricing-intro-layout .ed-price-trial span {
  grid-column: 1;
}
.main-price-clone .pricing-intro-layout .ed-price-trial a {
  grid-column: 2;
  grid-row: 1 / 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #2d67b5;
  color: #fff;
  transition: background 160ms ease;
}
.main-price-clone .pricing-intro-layout .ed-price-trial a:hover {
  background: #3979d3;
}
@media (max-width: 1020px) {
  .main-price-clone .pricing-intro-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
  }
}
@media (max-width: 480px) {
  .main-price-clone .pricing-intro-layout .ed-price-trial {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .main-price-clone .pricing-intro-layout .ed-price-trial a {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
    margin-top: 8px;
  }
}

/* ===== Desktop Nav Dropdowns (Features & Support) ===== */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 8px 0;
  margin: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #40536d;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
  transition: color .18s ease;
}
.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle {
  color: var(--shell-blue);
}
.nav-caret {
  width: 9px;
  height: 6px;
  transition: transform .2s ease;
  pointer-events: none;
  display: inline-block;
}
.nav-dropdown.open .nav-caret,
.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  background: #ffffff;
  border: 1px solid #d8e5f3;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(16, 43, 78, .14), 0 2px 6px rgba(16, 43, 78, .04);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(2px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear 0s;
}
.nav-dropdown-menu a {
  display: flex !important;
  align-items: center;
  padding: 9px 12px !important;
  color: #27384f !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border-radius: 8px;
  transition: background-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.nav-dropdown-menu a::after {
  display: none !important;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: #f0f6ff;
  color: var(--shell-blue) !important;
  outline: none;
}
.nav-dropdown-menu .nav-dropdown-all {
  border-top: 1px solid #e7eff8;
  margin-top: 4px;
  padding-top: 10px !important;
  font-weight: 700 !important;
  color: var(--shell-blue) !important;
}

/* Mobile drawer submenus */
.drawer-group {
  border-bottom: 1px solid #eef1f7;
}
.drawer-group-toggle {
  width: 100%;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0 2px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #1e2947;
  cursor: pointer;
  text-align: left;
}
.drawer-group-toggle .nav-caret {
  width: 10px;
  height: 7px;
  transition: transform .2s ease;
}
.drawer-group.open .drawer-group-toggle .nav-caret {
  transform: rotate(180deg);
}
.drawer-sublinks {
  display: none;
  flex-direction: column;
  padding: 2px 0 10px 12px;
  gap: 2px;
}
.drawer-group.open .drawer-sublinks {
  display: flex;
}
.drawer-sublinks a {
  min-height: 42px !important;
  font-size: .92rem !important;
  color: #435570 !important;
  font-weight: 600 !important;
  border-bottom: 0 !important;
}
.drawer-sublinks a:hover {
  color: var(--shell-blue) !important;
}

/* Header CTAs */
.site-nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  gap: 20px;
}
.site-nav-links > a,
.site-nav-links .nav-dropdown-toggle {
  position: relative;
  min-height: 44px;
  padding-inline: 8px;
}
.site-nav-links > a.is-active::after,
.site-nav-links .nav-dropdown-toggle.is-active::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--shell-blue);
}
.site-nav-links .is-active,
.drawer-links .is-active {
  color: var(--shell-blue);
}
.drawer-links a.is-active {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.site-header .header-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid #102b4e;
  border-radius: 50%;
  color: #fff;
  background: #102b4e;
  transition: background 160ms ease, border-color 160ms ease;
}
.header-account .ico { width: 20px; height: 20px; }
.site-header .header-account:hover { background: #1c416e; border-color: #1c416e; }
.site-header .header-account:focus-visible { outline: 3px solid var(--shell-blue); outline-offset: 3px; }
@media (min-width: 1025px) and (max-width: 1280px) {
  .site-nav-links { gap: 12px; }
  .site-header .header-cta-download { display: none; }
  .site-header .header-cta-download,
  .site-header .header-cta-plans { padding-inline: 12px; }
}
@media (max-width: 480px) {
  .site-header .header-cta-download { display: none; }
}
.header-plans-mobile { display: none; }
.drawer-cta-account .ico { width: 20px; height: 20px; }
.drawer-cta-account { gap: 8px; }
@media (max-width: 767px) {
  .site-header .site-header-actions .header-cta-download,
  .site-header .site-header-actions .header-account { display: none; }
  .site-header .brand { display: inline-flex; }
  .site-header .menu {
    order: 0;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-left: 0;
    border-color: var(--shell-blue);
    border-radius: 50%;
    background: var(--shell-blue);
    color: #fff;
  }
  .site-header .menu:hover { background: #235497; border-color: #235497; }
  .site-header .site-header-actions .header-cta-plans {
    min-height: 44px;
    padding-inline: 20px;
    border-color: #c9d9ea;
    background: #fff;
    color: #102b4e;
    box-shadow: none;
  }
  .site-header .site-header-actions .header-cta-plans:hover {
    background: #edf4fb;
    border-color: #a8c4e4;
  }
  .site-header .header-plans-desktop { display: none; }
  .site-header .header-plans-mobile { display: inline; }
  .site-header .site-header-actions { margin-left: auto; }
}
.site-header .header-download-btn,
.site-header .header-cta-download {
  background: #ffffff;
  border-color: #c9d9ea;
  color: var(--shell-navy);
}
.site-header .header-download-btn:hover,
.site-header .header-cta-download:hover {
  background: #edf4fb;
  border-color: #a8c4e4;
}
.site-header .header-plans-btn,
.site-header .header-cta-plans {
  background: var(--shell-blue);
  border-color: var(--shell-blue);
  color: #ffffff;
}
.site-header .header-plans-btn:hover,
.site-header .header-cta-plans:hover {
  background: #235497;
}

@media (max-width: 1024px) {
  .site-header-actions .header-cta-download {
    display: inline-flex;
    min-height: 44px;
    padding: 0 12px;
    font-size: 12px;
  }
  .site-header-actions .header-cta-plans {
    display: inline-flex;
    min-height: 44px;
    padding: 0 12px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .site-header-actions {
    gap: 4px;
  }
  .site-header-actions .header-cta-download {
    min-height: 44px;
    padding: 0 8px;
    font-size: 11px;
  }
  .site-header-actions .header-cta-plans {
    min-height: 44px;
    padding: 0 8px;
    font-size: 11px;
  }
  .site-header .nav {
    gap: 6px;
  }
}

/* ===== Free Trial Strip (Hero / Section 2 Bridge) ===== */
.free-trial-strip-section {
  position: relative;
  z-index: 20;
  height: 0;
  margin: 0;
  padding: 0;
}
.free-trial-strip-section > .container {
  transform: translateY(-50%);
}
/* Keep adjacent content clear while centering the card on their boundary. */
main:has(> .free-trial-strip-section) > .hero {
  padding-bottom: 112px;
}
.free-trial-strip-section + .creative-features-v3 {
  padding-top: 128px;
}
.free-trial-strip-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 22px 30px;
  background: linear-gradient(135deg, #0e223d 0%, #16365f 100%);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(14, 34, 61, .22), 0 4px 12px rgba(14, 34, 61, .1);
  color: #ffffff;
}
.trial-strip-badge-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trial-strip-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 10px;
  background: rgba(45, 103, 181, .45);
  border: 1px solid rgba(110, 158, 210, .45);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #a7ccff;
}
.trial-strip-title {
  margin: 3px 0 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}
.trial-strip-features {
  margin: 0;
  font-size: 13.5px;
  color: #c0d3ec;
  font-weight: 500;
}
.trial-strip-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.trial-strip-actions .btn {
  min-height: 46px;
  padding: 0 22px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 10px;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.trial-strip-claim-btn {
  background: #2d67b5;
  color: #ffffff !important;
  border: 1px solid #4a84d4;
  box-shadow: 0 4px 14px rgba(45, 103, 181, .4);
}
.trial-strip-claim-btn:hover {
  background: #3979d3;
}
.trial-strip-plans-btn {
  background: rgba(255, 255, 255, .08);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, .22);
}
.trial-strip-plans-btn:hover {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .35);
}

@media (max-width: 900px) {
  main:has(> .free-trial-strip-section) > .hero {
    padding-bottom: 144px;
  }
  .free-trial-strip-section + .creative-features-v3 {
    padding-top: 160px;
  }
  .free-trial-strip-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }
  .trial-strip-actions {
    flex-wrap: wrap;
    width: 100%;
  }
  .trial-strip-actions .btn {
    flex: 1 1 calc(50% - 6px);
    min-height: 44px;
    padding-inline: 14px;
  }
}

@media (max-width: 480px) {
  main:has(> .free-trial-strip-section) > .hero {
    padding-bottom: 176px;
  }
  .free-trial-strip-section + .creative-features-v3 {
    padding-top: 192px;
  }
  .trial-strip-actions {
    flex-direction: column;
  }
  .trial-strip-actions .btn {
    width: 100%;
  }
}

/* Feature anchor scroll margin for fixed header */
#visual-aid-import,
#projects-categories,
#doctor-detailing,
#presentation-viewer,
#offline,
#page-display,
#device-license {
  scroll-margin-top: 100px;
}

/* Trial Auto-Download Notification on Signup */
.trial-autodownload-notice {
  margin: 0 0 20px;
  padding: 16px 18px;
  background: #edf5fd;
  border: 1px solid #b9d5f3;
  border-radius: 12px;
  color: var(--shell-navy);
}
.trial-autodownload-notice .trial-notice-badge {
  display: inline-block;
  padding: 2px 8px;
  background: #2d67b5;
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  margin-bottom: 6px;
}
.trial-autodownload-notice strong {
  display: block;
  font-size: 15px;
  margin-bottom: 3px;
}
.trial-autodownload-notice p {
  margin: 0 0 6px;
  font-size: 13px;
  color: #3b506c;
}
.trial-autodownload-notice .trial-fallback-text {
  margin: 6px 0 0;
  font-size: 12.5px;
  font-weight: 600;
}
.trial-autodownload-notice .trial-fallback-text a {
  color: var(--shell-blue);
  text-decoration: underline;
}

/* Entrance animations translate content sideways for a moment; never let that
   widen the page on phones. clip (unlike hidden) keeps position: sticky working. */
html, body { overflow-x: clip; }
