  :root{
    --bg:#F5F9FB;
    --bg-alt:#E9F3F7;
    --panel-dark:#063B52;
    --panel-dark-2:#0A84B5;
    --ink:#12232C;
    --ink-soft:#4C6472;
    --line:#D6E6ED;
    --primary:#0A84B5;
    --primary-light:#3AA8D8;
    --accent:#20BBB4;
    --accent-soft:#E3F6F4;
    --warm:#28A745;
    --warm-soft:#E7F6EA;
    --white:#FFFFFF;
    --radius-lg:20px;
    --radius-md:14px;
    --radius-sm:8px;
    --shadow:0 20px 50px -20px rgba(6,45,64,0.16);
    --shadow-sm:0 8px 24px -12px rgba(6,45,64,0.14);
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  body{
    font-family:'Inter',sans-serif;
    color:var(--ink);
    background:var(--bg);
    line-height:1.55;
    -webkit-font-smoothing:antialiased;
  }
  h1,h2,h3,h4{ font-family:'Sora',sans-serif; color:var(--ink); letter-spacing:-0.01em; }
  .eyebrow{
    font-family:'IBM Plex Mono',monospace;
    font-size:18px;
    font-weight:700;
    letter-spacing:0.1em;
    text-transform:uppercase;
    color:var(--accent);
  }
  .wrap{ max-width:1180px; margin:0 auto; padding:0 32px; }
  a{ text-decoration:none; color:inherit; }
  ul{ list-style:none; }
  img{max-width:100%;display:block;}

  /* ---------- NAV ---------- */
  header.nav{
    position:sticky; top:0; z-index:50;
    background:linear-gradient(90deg,var(--primary),#0C93C7);
    box-shadow:0 12px 30px -14px rgba(6,59,82,0.55);
  }
  .nav-row{ display:flex; align-items:center; justify-content:space-between; height:80px; }
  .logo{ display:flex; align-items:center; gap:12px; font-family:'Sora'; font-weight:700; font-size:19.5px; color:var(--white); }
  .logo-mark{ width:38px; height:38px; border-radius:11px; background:var(--white); position:relative; flex:none; box-shadow:0 4px 12px -4px rgba(0,0,0,0.25); }
  .logo-mark svg{ position:absolute; inset:0; width:100%; height:100%; }
  .nav-links{ display:flex; gap:32px; font-size:14.5px; font-weight:600; color:rgba(255,255,255,0.88); }
  .nav-links a.current{ color:var(--white); }
  .nav-links a:hover{ color:var(--white); }
  .nav-cta{ display:flex; align-items:center; gap:20px; }
  .btn{
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
    padding:12px 22px; border-radius:999px; font-weight:600; font-size:14.5px;
    cursor:pointer; border:1px solid transparent; white-space:nowrap;
  }
  .btn-primary{ background:var(--warm); color:var(--white); box-shadow:0 10px 24px -8px rgba(40,167,69,0.45); }
  .btn-ghost-nav{ color:var(--white); font-weight:600; font-size:14.5px; opacity:0.92; }
  .btn-ghost-nav:hover{ opacity:1; }
  .nav-portal-link{ color:rgba(255,255,255,0.88); font-weight:600; font-size:14.5px; white-space:nowrap; }
  .nav-portal-link:hover{ color:var(--white); }
  .btn-outline{ background:transparent; border:1.5px solid var(--line); color:var(--ink); }
  .btn-outline-light{ background:transparent; border:1.5px solid rgba(255,255,255,0.3); color:var(--white); }

  /* ---------- HOMEPAGE AI ---------- */
  .home-ai{ background:var(--bg-alt); border-top:1px solid var(--line); border-bottom:1px solid var(--line); scroll-margin-top:100px; }
  .home-ai .section-head{ max-width:760px; margin-bottom:12px; }
  .home-ai-showcase .home-ai-row{ padding:40px 0; gap:48px; align-items:start; }
  .home-ai-row .col-text{ max-width:460px; }
  .home-ai-row .eyebrow{ font-size:14px; }
  @media(max-width:960px){
    .home-ai-showcase .home-ai-row{ grid-template-columns:1fr; gap:28px; }
    .home-ai-row.reverse .col-text{ order:0; }
    .home-ai-row.reverse .col-art{ order:1; }
    .home-ai-row .col-text{ max-width:none; }
  }
  .home-ai-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
  .home-ai-card{ display:flex; flex-direction:column; padding:32px; background:var(--white); border:1px solid var(--line); border-radius:var(--radius-lg); box-shadow:var(--shadow-sm); }
  .home-ai-icon{ display:grid; place-items:center; width:52px; height:52px; background:var(--accent-soft); color:var(--panel-dark); border-radius:var(--radius-md); margin-bottom:24px; }
  .home-ai-icon svg{ width:28px; height:28px; }
  .home-ai-card h3{ font-size:23px; margin-bottom:10px; }
  .home-ai-card p{ font-size:15px; color:var(--ink-soft); margin-bottom:24px; }
  .home-ai-card .home-ai-benefit{ color:var(--ink); font-weight:600; margin-bottom:10px; }
  .home-ai-card .text-link{ margin-top:auto; }
  .home-ai-footer{ text-align:center; margin-top:32px; }
  .home-ai-footer p{ color:var(--ink-soft); font-size:14px; }
  .home-ai-links{ display:flex; flex-wrap:wrap; justify-content:center; gap:16px 28px; margin-top:16px; }
  .home-ai a:focus-visible{ outline:3px solid var(--primary); outline-offset:5px; border-radius:4px; }
  .home-ai-workflow{ background:var(--white); }
  .home-ai-steps{ list-style:none; padding:0; }
  .home-ai-steps h3{ font-size:20px; margin-bottom:10px; }
  .home-ai-workflow-note{ text-align:center; color:var(--ink-soft); margin-top:36px; }
  @media (max-width:960px){ .home-ai-grid{ grid-template-columns:1fr; } }
  @media (max-width:680px){ .home-ai-card{ padding:26px; } .hero-ctas{ flex-wrap:wrap; } }

  /* ---------- HERO ---------- */
  .hero.home-hero h1{ font-size:clamp(34px,4vw,45px); }
  .home-ai-flow{ margin-top:28px; padding:24px; border-radius:var(--radius-md); background:var(--white); text-align:center; }
  .home-ai-flow > p{ font-weight:600; margin-bottom:14px; }
  .home-ai-flow ol{ display:flex; flex-wrap:wrap; justify-content:center; gap:16px 32px; list-style:none; padding:0; color:var(--ink-soft); }
  .home-ai-flow strong{ color:var(--panel-dark); }
  .home-feature-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
  .home-feature-tile{ display:flex; flex-direction:column; padding:26px; border:1px solid var(--line); border-radius:var(--radius-md); background:var(--white); transition:border-color .2s,box-shadow .2s; }
  .home-feature-tile:hover{ border-color:var(--primary); box-shadow:var(--shadow-sm); }
  .home-feature-icon{ display:grid; place-items:center; width:48px; height:48px; margin-bottom:18px; border-radius:14px; background:var(--accent-soft); color:var(--panel-dark); }
  .home-feature-icon svg{ width:26px; height:26px; }
  .home-feature-tile:focus-visible{ outline:3px solid var(--primary); outline-offset:4px; }
  .home-feature-tile h3{ font-size:19px; margin-bottom:10px; }
  .home-feature-tile p{ font-size:15px; color:var(--ink-soft); margin-bottom:18px; }
  .home-feature-tile .text-link{ margin-top:auto; }
  .home-disciplines{ text-align:center; margin-top:28px; color:var(--ink-soft); }
  .home-switching{ background:var(--white); border-bottom:1px solid var(--line); }
  .home-switching-inner{ display:flex; align-items:center; gap:36px; justify-content:space-between; }
  .home-switching-inner h2{ font-size:28px; margin:12px 0; }
  .home-switching-inner p{ color:var(--ink-soft); max-width:680px; }
  .home-switching-cta{ background:var(--primary); color:var(--white); box-shadow:0 8px 20px -8px rgba(6,59,82,.4); transition:background .2s,box-shadow .2s; }
  .home-switching-cta:hover{ background:var(--panel-dark); box-shadow:0 10px 24px -8px rgba(6,59,82,.5); }
  .home-switching-cta:focus-visible{ outline:3px solid var(--panel-dark); outline-offset:4px; }
  .rate-grid.home-rate-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .home-price-note{ text-align:center; font-size:13px; color:var(--ink-soft); margin-top:28px; }
  .hero-downloads{ color:var(--ink-soft); font-size:14px; }
  .hero-downloads > p{ margin-bottom:18px; max-width:480px; }
  @media(max-width:960px){ .home-feature-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } .home-switching-inner{ flex-direction:column; align-items:flex-start; } }
  @media(max-width:680px){ .home-feature-grid, .rate-grid.home-rate-grid{ grid-template-columns:1fr; } .home-ai-flow ol{ flex-direction:column; gap:12px; } }
  .hero{ padding:88px 0 60px; overflow:hidden; }
  .hero-grid{ display:grid; grid-template-columns:1.05fr 1fr; gap:56px; align-items:center; }
  .hero-tag{
    display:inline-flex; align-items:center; gap:8px;
    background:var(--accent-soft); color:var(--accent);
    padding:7px 14px; border-radius:999px; font-size:12.5px; font-weight:600;
    margin-bottom:22px; font-family:'IBM Plex Mono',monospace; letter-spacing:0.02em;
  }
  .hero h1{ font-size:52px; line-height:1.06; font-weight:700; margin-bottom:22px; }
  .hero h1 span{ color:var(--accent); }
  .hero p.lead{ font-size:17.5px; color:var(--ink-soft); max-width:480px; margin-bottom:32px; }
  .hero-ctas{ display:flex; align-items:center; gap:18px; margin-bottom:38px; }
  .play-link{ display:flex; align-items:center; gap:10px; font-weight:600; font-size:14.5px; color:var(--ink); }
  .play-circle{ width:38px; height:38px; border-radius:50%; background:var(--white); border:1.5px solid var(--line); display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-sm); }
  .platform-row{ display:flex; flex-direction:column; align-items:flex-start; gap:14px; padding-top:26px; border-top:1px solid var(--line); }
  .platform-row .label{ font-size:12.5px; color:var(--ink-soft); font-weight:500; }

  /* ---------- STORE BADGES (Views/Shared/_StoreBadges.cshtml) ---------- */
  .store-badges{ display:flex; flex-wrap:wrap; gap:12px 16px; }
  .store-badge-group{ display:flex; flex-direction:column; gap:8px; }
  .store-badge-group-label{
    font-family:'IBM Plex Mono',monospace; font-size:11px; font-weight:600;
    letter-spacing:0.08em; text-transform:uppercase; color:var(--accent);
  }
  .store-badge-list{ display:flex; flex-wrap:wrap; gap:6px; }
  .store-badge{
    display:inline-flex; align-items:center; gap:6px;
    height:36px; padding:0 10px 0 8px; border-radius:7px;
    background:#000; color:#fff; border:1px solid #A6A6A6;
    transition:transform .15s ease, box-shadow .15s ease;
  }
  .store-badge:hover{ transform:translateY(-1px); box-shadow:var(--shadow-sm); }
  .store-badge:focus-visible{ outline:2px solid var(--primary); outline-offset:2px; }
  .store-badge-logo{ width:17px; height:17px; flex:none; }
  .store-badge-text{ display:flex; flex-direction:column; line-height:1.1; white-space:nowrap; }
  .store-badge-small{ font-size:8px; letter-spacing:0.02em; }
  .store-badge-name{ font-size:12px; font-weight:600; letter-spacing:-0.01em; }

  /* ---------- HERO DEVICE MOCK ---------- */
  .device-stage{ position:relative; height:460px; }
  .thread-svg{ position:absolute; inset:0; width:100%; height:100%; z-index:1; }
  .laptop{
    position:absolute; left:0; top:30px; width:400px;
    border-radius:16px 16px 6px 6px; background:var(--panel-dark);
    padding:10px 10px 26px; box-shadow:var(--shadow); z-index:3;
  }
  .laptop .screen{ background:var(--white); border-radius:8px; overflow:hidden; height:250px; }
  .laptop-base{ height:8px; background:#052C3E; border-radius:0 0 8px 8px; margin:0 -2px; }
  .phone{
    position:absolute; right:10px; bottom:0; width:150px; height:300px;
    background:var(--panel-dark); border-radius:26px; padding:8px; box-shadow:var(--shadow); z-index:4;
  }
  .phone .screen{ background:var(--white); border-radius:19px; overflow:hidden; height:100%; }

  /* fake UI inside screens */
  .ui-topbar{ height:34px; background:var(--bg-alt); display:flex; align-items:center; gap:6px; padding:0 12px; border-bottom:1px solid var(--line);}
  .ui-dot{ width:7px; height:7px; border-radius:50%; background:var(--line); }
  .ui-body{ display:flex; height:calc(100% - 34px); }
  .ui-sidebar{ width:30%; background:var(--bg-alt); border-right:1px solid var(--line); padding:10px 8px; }
  .ui-sidebar .item{ height:8px; border-radius:4px; background:var(--line); margin-bottom:8px; }
  .ui-sidebar .item.active{ background:var(--accent); width:70%; }
  .ui-main{ flex:1; padding:12px; }
  .ui-card{ background:var(--bg); border:1px solid var(--line); border-radius:6px; padding:8px; margin-bottom:8px; }
  .ui-line{ height:6px; border-radius:3px; background:var(--line); margin-bottom:6px; }
  .ui-line.w60{ width:60%; }
  .ui-line.w40{ width:40%; }
  .ui-line.accent{ background:var(--accent); width:35%; }
  .phone .ui-sidebar{ display:none; }
  .phone .ui-main{ padding:10px; }

  /* ---------- SOCIAL PROOF STRIP ---------- */
  .proof{ padding:34px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:var(--white); }
  .proof-inner{ display:flex; align-items:center; gap:40px; justify-content:space-between; flex-wrap:wrap; }
  .proof-label{ font-size:13px; color:var(--ink-soft); font-weight:500; white-space:nowrap; }
  .proof-logos{ display:flex; gap:38px; flex-wrap:wrap; }
  .proof-logos span{ font-family:'Sora'; font-weight:700; font-size:16px; color:#B7BECF; letter-spacing:0.01em; }

  /* ---------- SECTION SHARED ---------- */
  section{ padding:104px 0; }
  .section-head{ max-width:600px; margin-bottom:56px; }
  .section-head h2{ font-size:34px; font-weight:700; margin-top:14px; line-height:1.15; }
  .section-head p{ color:var(--ink-soft); font-size:16px; margin-top:14px; }
  .center{ text-align:center; margin-left:auto; margin-right:auto; }

  /* ---------- CROSS-PLATFORM 3-UP ---------- */
  .trio{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
  .trio-card{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius-lg); padding:32px 28px; }
  .trio-icon{ width:44px; height:44px; border-radius:12px; background:var(--accent-soft); color:var(--accent); display:flex; align-items:center; justify-content:center; font-weight:700; font-family:'Sora'; margin-bottom:20px; }
  /* An empty tile (.trio-icon / .fcard .ico) shows a generic tick icon; give it text (e.g. an arrow) to override */
  .trio-icon:empty::before, .fcard .ico:empty::before{
    content:""; width:24px; height:24px; background:currentColor;
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat;
            mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat;
  }
  .trio-card h3{ font-size:19px; margin-bottom:10px; }
  .trio-card p{ color:var(--ink-soft); font-size:14.5px; }
  /* Ticked cards: tick sits beside the title, everything else spans the full width */
  .trio-card:has(> .trio-icon:empty), .fcard:has(> .ico:empty){ display:grid; grid-template-columns:auto 1fr; column-gap:14px; align-content:start; }
  .trio-card:has(> .trio-icon:empty) > *, .fcard:has(> .ico:empty) > *{ grid-column:1 / -1; }
  .trio-card > .trio-icon:empty, .fcard > .ico:empty{ grid-column:1; align-self:start; width:34px; height:34px; border-radius:10px; margin:-3px 0 0; }
  .trio-card > .trio-icon:empty::before, .fcard > .ico:empty::before{ width:20px; height:20px; }
  .trio-card:has(> .trio-icon:empty) > h3, .fcard:has(> .ico:empty) > h3{ grid-column:2; margin-bottom:12px; }

  /* ---------- ALTERNATING FEATURE ROWS ---------- */
  .feature-row{ display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; padding:64px 0; }
  .feature-row + .feature-row{ border-top:1px solid var(--line); }
  .feature-row.reverse .col-text{ order:2; }
  .feature-row.reverse .col-art{ order:1; }
  .col-text h3{ font-size:28px; margin:14px 0 16px; }
  .col-text p.desc{ color:var(--ink-soft); font-size:15.5px; margin-bottom:22px; }
  .check-list li{ display:flex; align-items:flex-start; gap:10px; font-size:14.5px; color:var(--ink); margin-bottom:12px; }
  .check-list .tick{ width:20px; height:20px; border-radius:6px; background:var(--accent-soft); color:var(--accent); flex:none; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; margin-top:1px; }
  .text-link{ display:inline-flex; align-items:center; gap:6px; margin-top:26px; font-weight:600; color:var(--primary); font-size:14.5px; }

  .art-panel{ background:var(--bg-alt); border-radius:var(--radius-lg); padding:22px; border:1px solid var(--line); }
  .art-window{ background:var(--white); border-radius:12px; overflow:hidden; box-shadow:var(--shadow-sm); }
  .art-window .ui-topbar{ background:var(--bg-alt); }
  .art-window .ui-body{ height:280px; }

  /* ---------- WORKFLOW ---------- */
  .workflow-wrap{ position:relative; }
  .workflow{ display:grid; grid-template-columns:repeat(3,1fr); gap:36px; position:relative; z-index:2; }
  .workflow-line{ position:absolute; top:26px; left:8%; right:8%; height:2px; background:repeating-linear-gradient(90deg,var(--line) 0 8px, transparent 8px 14px); z-index:1;}
  .wf-step{ background:var(--white); }
  .wf-num{ width:52px; height:52px; border-radius:50%; background:var(--primary); color:var(--white); font-family:'Sora'; font-weight:700; font-size:18px; display:flex; align-items:center; justify-content:center; margin-bottom:22px; box-shadow:0 10px 22px -8px rgba(6,59,82,0.5); position:relative; z-index:2; }
  .wf-step h4{ font-size:18px; margin-bottom:8px; }
  .wf-step p{ color:var(--ink-soft); font-size:14.5px; }

  /* ---------- PRICING ---------- */
  .pricing-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; align-items:stretch; }
  .price-card{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius-lg); padding:34px 30px; display:flex; flex-direction:column; }
  .price-card.featured{ border:2px solid var(--accent); box-shadow:var(--shadow); position:relative; transform:translateY(-10px); }
  .badge-pop{ position:absolute; top:-13px; left:30px; background:var(--accent); color:var(--white); font-size:11.5px; font-weight:700; padding:5px 12px; border-radius:999px; font-family:'IBM Plex Mono'; letter-spacing:0.04em; }
  .price-card h4{ font-size:15px; color:var(--ink-soft); font-weight:600; margin-bottom:14px; }
  .price-card .amount{ font-family:'Sora'; font-size:38px; font-weight:700; margin-bottom:4px; }
  .price-card .amount span{ font-size:14px; color:var(--ink-soft); font-weight:500; font-family:'Inter'; }
  .price-card .sub{ font-size:13px; color:var(--ink-soft); margin-bottom:26px; }
  .price-card ul{ margin-bottom:28px; flex:1; }
  .price-card li{ font-size:14px; padding:8px 0; border-top:1px solid var(--bg-alt); color:var(--ink-soft); display:flex; gap:8px; }
  .price-card li:first-child{ border-top:none; }
  .price-card .btn{ width:100%; }

  /* ---------- TESTIMONIALS ---------- */
  .testi-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
  .testi-card{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius-lg); padding:28px; }
  .testi-card p.quote{ font-size:15px; color:var(--ink); margin-bottom:22px; line-height:1.6; }
  .testi-person{ display:flex; align-items:center; gap:12px; }
  .avatar{ width:38px; height:38px; border-radius:50%; background:var(--primary); color:var(--white); display:flex; align-items:center; justify-content:center; font-family:'Sora'; font-weight:700; font-size:14px; }
  .testi-person .name{ font-weight:600; font-size:14px; }
  .testi-person .role{ font-size:12.5px; color:var(--ink-soft); }

  /* ---------- CTA BAND ---------- */
  .cta-band{ background:linear-gradient(135deg,var(--panel-dark),var(--primary-light)); border-radius:28px; padding:72px 60px; text-align:center; position:relative; overflow:hidden; }
  .cta-band::before{ content:""; position:absolute; width:500px; height:500px; background:radial-gradient(circle,rgba(32,187,180,0.35),transparent 70%); top:-200px; right:-150px; }
  .cta-band h2{ color:var(--white); font-size:34px; margin-bottom:16px; position:relative; }
  .cta-band p{ color:#C7CCE0; font-size:16px; margin-bottom:34px; position:relative; }
  .cta-actions{ display:flex; gap:16px; justify-content:center; position:relative; }

  /* ---------- FOOTER ---------- */
  footer{ background:var(--panel-dark); color:#AAB1CC; padding:64px 0 32px; }
  .footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; padding-bottom:44px; border-bottom:1px solid rgba(255,255,255,0.08); }
  footer .logo{ color:var(--white); margin-bottom:14px; }
  footer p.tag{ font-size:13.5px; color:#8890AC; max-width:260px; }
  footer h5{ color:var(--white); font-size:13px; margin-bottom:16px; font-family:'IBM Plex Mono'; letter-spacing:0.06em; text-transform:uppercase; font-weight:500; }
  footer li{ margin-bottom:11px; font-size:14px; }
  footer li a:hover{ color:var(--white); }
  .footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:26px; font-size:13px; color:#7B8399; flex-wrap:wrap; gap:12px; }
  .footer-platforms{ display:flex; gap:10px; }
  .footer-platforms span{ border:1px solid rgba(255,255,255,0.14); border-radius:6px; padding:4px 9px; font-size:12px; }

  @media (max-width:960px){
    .hero-grid, .feature-row, .footer-grid, .trio, .pricing-grid, .testi-grid, .workflow{ grid-template-columns:1fr; }
    .device-stage{ height:340px; margin-top:40px;}
    .laptop{ width:300px; }
    .phone{ display:none; }
  }

  /* ---------- MEGA MENU + MOBILE NAV ---------- */
  .nav-item-dropdown{ position:relative; }
  .nav-drop-trigger{ background:none; border:none; font:inherit; font-weight:600; color:rgba(255,255,255,0.88); display:flex; align-items:center; gap:6px; cursor:pointer; padding:0; }
  .nav-drop-trigger:hover{ color:var(--white); }
  .nav-drop-trigger svg{ width:9px; height:9px; transition:transform .2s ease; }
  .nav-drop-trigger[aria-expanded="true"] svg{ transform:rotate(180deg); }
  .mega-panel{ position:absolute; top:calc(100% + 22px); left:50%; width:min(1000px,94vw); background:var(--white); border-radius:18px; box-shadow:0 30px 60px -18px rgba(6,45,64,0.4); padding:30px; z-index:80; opacity:0; visibility:hidden; transform:translateX(-50%) translateY(-8px); transition:opacity .18s ease, transform .18s ease, visibility .18s; }
  .mega-panel.open{ opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
  .mega-grid{ display:grid; grid-template-columns:repeat(var(--mega-cols,3),1fr); gap:28px; }
  .mega-footer-link{ display:inline-block; margin-top:10px; font-size:12.5px; font-weight:600; color:var(--primary); }
  .mega-footer-link:hover, .nav-links .mega-footer-link:hover{ color:var(--primary); text-decoration:underline; }
  .mega-col h5{ font-family:'IBM Plex Mono',monospace; font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--accent); margin:0 0 14px; font-weight:600; }
  .mega-link{ display:flex; gap:12px; padding:7px 0; align-items:center; }
  .mega-ico{ width:38px; height:38px; border-radius:11px; background:var(--accent-soft); color:var(--accent); display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; flex:none; font-family:'Sora',sans-serif; transition:background .18s ease, color .18s ease; }
  .mega-ico svg{ width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
  .mega-link:hover .mega-ico{ background:var(--accent); color:var(--white); }
  .mega-title{ display:block; font-size:13.5px; font-weight:600; color:var(--ink); line-height:1.3; }
  .mega-link:hover .mega-title{ color:var(--primary); }
  .mega-desc{ display:block; font-size:11.5px; color:var(--ink-soft); margin-top:2px; }

  .hamburger-btn{ display:none; flex-direction:column; justify-content:center; align-items:center; gap:5px; width:36px; height:36px; background:none; border:none; cursor:pointer; padding:0; }
  .hamburger-btn span{ display:block; height:2px; width:22px; background:var(--white); border-radius:2px; transition:transform .25s ease, opacity .25s ease; }
  .hamburger-btn.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
  .hamburger-btn.open span:nth-child(2){ opacity:0; }
  .hamburger-btn.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

  .mobile-overlay{ position:fixed; inset:0; background:rgba(6,45,64,0.38); backdrop-filter:blur(3px); z-index:150; opacity:0; visibility:hidden; transition:opacity .35s ease, visibility .35s ease; }
  .mobile-overlay.open{ opacity:1; visibility:visible; }
  .mobile-panel{ position:fixed; top:0; right:0; bottom:0; width:min(340px,86vw); background:var(--bg); z-index:200; border-radius:22px 0 0 22px; transform:translateX(100%); transition:transform .45s cubic-bezier(0.22,1,0.36,1); box-shadow:-30px 0 60px -24px rgba(6,45,64,0.3); display:flex; flex-direction:column; overflow:hidden; }
  .mobile-panel.open{ transform:translateX(0); }
  .mobile-panel-head{ display:flex; align-items:center; justify-content:space-between; padding:22px 24px; border-bottom:1px solid var(--line); flex:none; }
  .mobile-panel-head .logo{ color:var(--ink); font-size:16px; }
  .mobile-close-btn{ background:none; border:none; font-size:28px; line-height:1; color:var(--ink-soft); cursor:pointer; padding:0; }
  .mobile-panel-body{ padding:14px 12px 30px; overflow-y:auto; flex:1; }
  .mobile-link{ display:block; padding:14px 12px; font-size:16px; font-weight:600; color:var(--ink); border-radius:10px; }
  .mobile-link:hover{ background:var(--bg-alt); }
  .mobile-accordion-trigger{ width:100%; display:flex; align-items:center; justify-content:space-between; padding:14px 12px; font-size:16px; font-weight:600; color:var(--ink); background:none; border:none; cursor:pointer; border-radius:10px; font-family:'Inter',sans-serif; }
  .mobile-accordion-trigger svg{ width:10px; height:10px; color:var(--ink-soft); transition:transform .2s ease; }
  .mobile-accordion-trigger[aria-expanded="true"] svg{ transform:rotate(180deg); }
  .mobile-accordion-panel{ max-height:0; overflow:hidden; transition:max-height .35s cubic-bezier(0.22,1,0.36,1); padding-left:10px; }
  .mobile-accordion-panel.open{ max-height:800px; }
  .mobile-sublink{ display:block; padding:11px 14px; font-size:14.5px; color:var(--ink-soft); border-radius:8px; }
  .mobile-sublink:hover{ background:var(--bg-alt); color:var(--primary); }
  .mobile-cta{ margin-top:14px; background:var(--warm); color:var(--white); text-align:center; }

  @media (max-width:780px){
    .nav-link-edge{ display:none; }
  }

  @media (max-width:680px){
    .nav-links{ display:none; }
    .hamburger-btn{ display:flex; }
    .nav-portal-link{ display:none; }
  }


  /* ---------- SEO LANDING PAGE (Practice Management / Patient Notes) ---------- */
  .crumb{ padding-top:20px; font-size:13px; color:var(--ink-soft); }
  .crumb a{ color:var(--ink-soft); }
  .crumb a:hover{ color:var(--primary); }
  .crumb .sep{ margin:0 8px; }
  .crumb .cur{ color:var(--ink); font-weight:500; }

  .hero-single{ padding:52px 0 70px; }
  .hero-single-grid{ display:grid; grid-template-columns:1fr 0.9fr; gap:56px; align-items:center; }
  .hero-single h1{ font-size:44px; line-height:1.12; font-weight:700; margin:16px 0 20px; }
  .hero-single p.lead{ font-size:17px; color:var(--ink-soft); max-width:480px; margin-bottom:30px; }

  .stat-row{ display:flex; flex-wrap:wrap; gap:26px 34px; margin-top:38px; }
  .stat .num{ font-family:'Sora'; font-weight:700; font-size:24px; color:var(--primary); }
  .stat .lbl{ font-size:12.5px; color:var(--ink-soft); }

  .cal-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:6px; }
  .cal-cell{ background:var(--bg); border:1px solid var(--line); border-radius:4px; height:34px; }
  .cal-cell.busy{ background:var(--accent-soft); border-color:var(--accent); }
  .cal-cell.busy2{ background:var(--warm-soft, #E7F6EA); border-color:var(--warm); }

  .fgrid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
  .fcard{ background:var(--white); border:1px solid var(--line); border-radius:16px; padding:28px; }
  .fcard .ico{ width:42px; height:42px; border-radius:11px; background:var(--accent-soft); color:var(--accent); display:flex; align-items:center; justify-content:center; font-weight:700; font-family:'Sora'; margin-bottom:18px; font-size:15px; }
  .fcard h3{ font-size:17px; margin-bottom:8px; }
  .fcard p{ font-size:14px; color:var(--ink-soft); }
  .payment-gateway-logos{ display:flex; flex-wrap:wrap; align-items:center; gap:40px; padding:40px 12px; }
  .payment-gateway-logos img{ display:block; max-width:100%; object-fit:contain; }

  @media (max-width:960px){
    .hero-single-grid, .fgrid{ grid-template-columns:1fr; }
  }

  /* ---------- MODALITY CARDS (Disciplines & Modalities) ---------- */
  .modality-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
  .modality-card{
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; text-align:center;
    background:var(--white); border:1px solid var(--line); border-radius:16px; padding:32px 18px 26px;
    transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  }
  .modality-card h3{ font-size:16px; line-height:1.3; }
  .modality-card-links{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px 16px; }
  .modality-card-links a{ color:var(--primary); font-size:14px; font-weight:600; text-decoration:underline; text-underline-offset:3px; }
  .modality-card-links a:hover{ color:var(--accent); }
  .modality-card-links a:focus-visible{ outline:3px solid var(--primary); outline-offset:4px; border-radius:2px; }
  .modality-icon{
    width:108px; height:108px; border-radius:26px; flex:none;
    background:var(--accent-soft); color:var(--accent);
    display:flex; align-items:center; justify-content:center;
    transition:background .18s ease, color .18s ease;
  }
  .modality-icon svg{ width:58px; height:58px; fill:none; stroke:currentColor; stroke-width:1.3; stroke-linecap:round; stroke-linejoin:round; }
  a.modality-card:hover{ transform:translateY(-3px); box-shadow:var(--shadow-sm); border-color:var(--accent); }
  a.modality-card:hover .modality-icon{ background:var(--accent); color:var(--white); }
  a.modality-card:hover h3{ color:var(--primary); }
  @media (max-width:960px){ .modality-grid{ grid-template-columns:repeat(3,1fr); } }
  @media (max-width:680px){ .modality-grid{ grid-template-columns:repeat(2,1fr); gap:12px; } .modality-card{ padding:22px 12px 18px; gap:14px; } .modality-icon{ width:84px; height:84px; border-radius:20px; } .modality-icon svg{ width:46px; height:46px; } }




/* ============================================================
   SCREENSHOT - NORMAL PAGE
   ============================================================ */

.screenshot
{
    width: 100%;
    margin: 28px 0 36px;
}

.screenshot-lightbox-trigger
{
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: zoom-in;
}

.screenshot-page-composition
{
    position: relative;
    /*
       Phone extends to the right and below, so leave it
       some room inside the overall composition.
    */
    width: 94%;
    margin: 0 auto;
    padding-right: 9%;
    padding-bottom: 8%;
    box-sizing: border-box;
}

/*
    Desktop-only screenshot: there is no phone hanging off the corner, so
    give the reserved space back to the desktop image instead of leaving
    it as dead margin.
*/
.screenshot-page-composition.is-desktop-only,
.screenshot-popup-composition.is-desktop-only
{
    padding-right: 0;
    padding-bottom: 0;
}

.screenshot-popup-composition.is-desktop-only .screenshot-popup-desktop
{
    max-height: 82vh;
}

.screenshot-page-mobile,
.screenshot-popup-mobile
{
    background: transparent !important;
}

.screenshot-page-desktop
{
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #d7e1e7;
    border-radius: 10px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.screenshot-page-mobile-wrapper
{
    position: absolute;
    width: 18%;
    right: 0;
    bottom: 0;
    z-index: 2;
}


/*
    Sits behind the phone.

    This prevents the desktop screenshot showing through the
    transparent pixels immediately around the phone.
*/
.screenshot-page-mobile-mask
{
    position: absolute;
    /*
        These values deliberately don't cover the entire PNG.
        They cover the area immediately behind the visible phone.
    */
    left: 8%;
    right: 8%;
    top: 3%;
    bottom: 3%;
    background: #111;
    border-radius: 18%;
}


.screenshot-page-mobile
{
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    z-index: 1;
    background: transparent;
    filter: drop-shadow( 0 10px 14px rgba(0, 0, 0, 0.25) );
}

.screenshot-caption
{
    margin-top: 12px;
    text-align: center;
    font-size: 0.9rem;
    color: #6c757d;
}








/* ============================================================
   SCREENSHOT - LIGHTBOX
   ============================================================ */

.screenshot-popup-wrapper
{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}


/*
    The desktop screenshot determines the basic size.

    Importantly, both width AND height are constrained by the
    viewport.
*/
.screenshot-popup-composition
{
    position: relative;
    width: min( 78vw, 1200px, 115vh );
    padding-right: 8%;
    padding-bottom: 7%;
    box-sizing: border-box;
}


.screenshot-popup-desktop
{
    display: block;
    width: 100%;
    height: auto;
    /*
       This prevents the screenshot getting too tall.
    */
    max-height: 72vh;
    object-fit: contain;
    border: 1px solid #d7e1e7;
    background: white;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35);
}


.screenshot-popup-mobile-wrapper
{
    position: absolute;
    width: 18%;
    right: 0;
    bottom: 0;
    z-index: 2;
}


.screenshot-popup-mobile-mask
{
    position: absolute;
    left: 8%;
    right: 8%;
    top: 3%;
    bottom: 3%;
    background: #111;
    border-radius: 18%;
}


.screenshot-popup-mobile
{
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    z-index: 1;
    background: transparent;
    filter: drop-shadow( 0 14px 18px rgba(0, 0, 0, 0.35) );
}









/* ============================================================
   GLIGHTBOX OVERRIDES FOR SCREENSHOT POPUP
   ============================================================ */

/* ============================================================
   GLIGHTBOX OVERRIDES FOR SCREENSHOT POPUP
   ============================================================ */

.glightbox-container .gslide-inline,
.glightbox-container .ginlined-content,
.glightbox-container .gslide-media,
.glightbox-container .gslide-inner-content
{
    background: transparent !important;
    box-shadow: none !important;
}

.glightbox-container .gslide-inline
{
    width: auto !important;
    height: auto !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
    overflow: visible !important;
}

.glightbox-container .ginlined-content
{
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
    overflow: visible !important;
}

.glightbox-container .gslide-media
{
    overflow: visible !important;
}


/* Our screenshot composition must also remain transparent */

.screenshot-popup-wrapper,
.screenshot-popup-composition,
.screenshot-popup-mobile
{
    background: transparent !important;
}

/* ============================================================
   PRICING BLOCK  (shared _Pricing partial)
   ============================================================ */

.pricing-block > * + *
{
    margin-top: 34px;
}

.pricing-block .section-head
{
    margin-bottom: 52px;
}

/* ---------- core per-user rates ---------- */

.rate-grid
{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.rate-card
{
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 36px 32px 34px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease;
}

/* Coloured rail across the top of each card */
.rate-card::before
{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.rate-card:hover
{
    transform: translateY(-4px);
    box-shadow: 0 28px 60px -22px rgba(6,45,64,0.24);
}

.rate-card.is-free
{
    background: linear-gradient(160deg, var(--warm-soft), var(--white) 70%);
    border-color: #BFE4C8;
}

.rate-card.is-free::before
{
    background: linear-gradient(90deg, var(--warm), #4FC46B);
}

.rate-tag
{
    align-self: flex-start;
    background: var(--bg-alt);
    color: var(--ink-soft);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.rate-card.is-free .rate-tag
{
    background: rgba(40,167,69,0.12);
    color: #1E7E34;
}

.rate-amount
{
    font-family: 'Sora', sans-serif;
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
    color: var(--primary);
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.rate-card.is-free .rate-amount
{
    color: var(--warm);
}

.rate-amount .unit
{
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
}

.rate-card h4
{
    font-size: 17px;
    margin: 20px 0 8px;
}

.rate-card p
{
    font-size: 14px;
    color: var(--ink-soft);
    margin: 0;
}

/* ---------- inclusions ---------- */

.incl-panel
{
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 44px 46px;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 48px;
    align-items: start;
}

.incl-head h3
{
    font-size: 24px;
    margin: 14px 0 14px;
    line-height: 1.2;
}

.incl-head p
{
    font-size: 14.5px;
    color: var(--ink-soft);
}

.incl-head p + p
{
    margin-top: 14px;
}

.incl-grid
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
}

.incl-grid .check-list li
{
    margin-bottom: 14px;
}

/* ---------- AI package ---------- */

/* Same card language as the practitioner rate cards above it (white card,
   shadow, coloured top rail, pill tag, big price) so it reads as another
   licence price, with an accent rail to mark it as the optional add-on. */
.ai-panel
{
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 44px 40px 40px;
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 50px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.ai-panel::before
{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.ai-panel-intro
{
    position: relative;
    z-index: 2;
}

.ai-badge
{
    display: inline-flex;
    align-items: center;
    background: var(--bg-alt);
    color: var(--ink-soft);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
}

.ai-panel-intro h3
{
    color: var(--ink);
    font-size: 24px;
    margin: 20px 0 14px;
    line-height: 1.2;
}

.ai-amount
{
    font-family: 'Sora', sans-serif;
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
    color: var(--primary);
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.ai-amount .unit
{
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
}

.ai-panel-intro p
{
    font-size: 15px;
    color: var(--ink-soft);
    max-width: 330px;
}

.ai-link
{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 22px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 1px solid rgba(10,132,181,0.3);
    padding-bottom: 2px;
}

.ai-feature-grid
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    position: relative;
    z-index: 2;
}

/* Feature tiles sit inside the white card, so they flip to a soft tinted
   fill with no shadow; the border picks up the accent on hover. */
.ai-feature
{
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 22px 22px 24px;
    transition: border-color .2s ease, background-color .2s ease;
}

.ai-feature:hover
{
    background: var(--white);
    border-color: rgba(32,187,180,0.45);
}

.ai-ico
{
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--white);
    border: 1px solid rgba(32,187,180,0.28);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.ai-ico svg
{
    width: 20px;
    height: 20px;
}

.ai-feature h5
{
    font-family: 'Sora', sans-serif;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.3;
}

.ai-feature p
{
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.55;
}

/* ---------- pay-as-you-go extras ---------- */

.addon-grid
{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* A lone add-on runs the full width as a low banner, so the usage pricing
   reads as a footnote to the rate cards rather than a fourth card. */
.addon-grid.is-single
{
    grid-template-columns: 1fr;
}

.addon-grid.is-single .addon-card
{
    align-items: center;
    padding: 22px 30px;
}

.addon-grid.is-single .addon-body
{
    display: grid;
    grid-template-columns: minmax(0, 210px) 1fr;
    column-gap: 36px;
    align-items: center;
    flex: 1;
}

.addon-grid.is-single .addon-body h4
{
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    margin-bottom: 2px;
}

.addon-grid.is-single .addon-body .addon-amount
{
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    margin-bottom: 0;
}

.addon-grid.is-single .addon-body p
{
    grid-column: 2;
    grid-row: 1 / span 2;
}

.addon-card
{
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.addon-card.is-muted
{
    background: transparent;
    border-style: dashed;
}

.addon-ico
{
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.addon-card.is-muted .addon-ico
{
    background: var(--bg-alt);
    color: var(--ink-soft);
}

.addon-ico svg
{
    width: 22px;
    height: 22px;
}

.addon-card h4
{
    font-size: 17px;
    margin-bottom: 6px;
}

.addon-amount
{
    font-family: 'Sora', sans-serif;
    font-size: 21px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.addon-amount .unit
{
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-soft);
    margin-left: 6px;
}

.addon-card.is-muted .addon-amount
{
    color: var(--ink-soft);
}

.addon-card p
{
    font-size: 14px;
    color: var(--ink-soft);
    margin: 0;
}

/* ---------- monthly cost estimator ---------- */

.estimator
{
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 44px 46px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 52px;
    align-items: start;
}

.est-inputs h3
{
    font-size: 24px;
    margin: 14px 0 28px;
    line-height: 1.2;
}

.est-field
{
    margin-bottom: 26px;
}

.est-field > label
{
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
}

.est-hint
{
    display: block;
    font-size: 12.5px;
    color: var(--ink-soft);
    margin-top: 9px;
}

.est-stepper
{
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: var(--bg);
}

.est-step
{
    width: 42px;
    border: none;
    background: transparent;
    color: var(--primary);
    font-size: 19px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.est-step:hover
{
    background: var(--bg-alt);
}

.est-number
{
    width: 66px;
    border: none;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    background: var(--white);
    text-align: center;
    font-family: 'Sora', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    padding: 11px 0;
    -moz-appearance: textfield;
    appearance: textfield;
}

.est-number::-webkit-outer-spin-button,
.est-number::-webkit-inner-spin-button
{
    -webkit-appearance: none;
    margin: 0;
}

.est-number:focus
{
    outline: 2px solid var(--primary-light);
    outline-offset: 1px;
}

.est-total
{
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    padding: 32px 34px;
}

.est-line
{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    font-size: 14.5px;
    color: var(--ink-soft);
    padding: 11px 0;
    border-bottom: 1px dashed var(--line);
}

.est-line span:last-child
{
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
}

.est-line .is-free-text
{
    color: var(--warm);
}

.est-grand
{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    padding-top: 22px;
    margin-bottom: 4px;
}

.est-grand > span
{
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink);
}

.est-grand strong
{
    font-family: 'Sora', sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    white-space: nowrap;
}

.est-note
{
    font-size: 12.5px;
    color: var(--ink-soft);
    margin: 14px 0 22px;
}

.est-total .btn
{
    width: 100%;
}

/* ---------- actions + footnote ---------- */

.pricing-actions
{
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
}

.price-note
{
    text-align: center;
    font-size: 14px;
    color: var(--ink-soft);
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
}

.price-note a
{
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.ai-policy-link
{
    color: var(--primary);
    border-bottom: 1px solid rgba(10,132,181,0.3);
}

.ai-policy-link:hover
{
    border-bottom-color: var(--primary);
}

/* ---------- policy / long-form text pages ---------- */

.policy
{
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 48px 52px;
}

.policy h2
{
    font-size: 28px;
    margin-bottom: 18px;
    line-height: 1.2;
}

.policy h3
{
    font-size: 19px;
    margin: 36px 0 12px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    line-height: 1.3;
}

.policy p
{
    font-size: 15.5px;
    color: var(--ink-soft);
    line-height: 1.7;
}

.policy p + p
{
    margin-top: 12px;
}

/* ---------- responsive ---------- */

@media (max-width: 1080px)
{
    .ai-panel,
    .incl-panel,
    .estimator
    {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .ai-panel-intro p
    {
        max-width: none;
    }
}

@media (max-width: 960px)
{
    .rate-grid,
    .addon-grid
    {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px)
{
    .ai-panel
    {
        padding: 38px 26px;
    }

    .ai-amount
    {
        font-size: 38px;
    }

    .incl-panel,
    .estimator,
    .policy
    {
        padding: 32px 26px;
    }

    .ai-feature-grid,
    .incl-grid
    {
        grid-template-columns: 1fr;
    }

    /* The wide add-on banner stacks back into a normal card */
    .addon-grid.is-single .addon-card
    {
        align-items: flex-start;
        padding: 26px 26px;
    }

    .addon-grid.is-single .addon-body
    {
        grid-template-columns: 1fr;
        row-gap: 0;
    }

    .addon-grid.is-single .addon-body h4,
    .addon-grid.is-single .addon-body .addon-amount,
    .addon-grid.is-single .addon-body p
    {
        grid-column: 1;
        grid-row: auto;
        align-self: auto;
    }

    .addon-grid.is-single .addon-body .addon-amount
    {
        margin-bottom: 10px;
    }

    .est-total
    {
        padding: 26px 24px;
    }

    .pricing-actions
    {
        flex-direction: column;
    }

    .rate-amount
    {
        font-size: 38px;
    }
}

/* ---------- contact form ---------- */
.contact-panel{ margin-top:56px; background:var(--white); border:1px solid var(--line); border-radius:var(--radius-lg); box-shadow:var(--shadow-sm); padding:44px 46px; display:grid; grid-template-columns:0.8fr 1.2fr; gap:52px; align-items:start; scroll-margin-top:110px; }
.contact-intro h3{ font-size:24px; margin:14px 0 14px; line-height:1.2; }
.contact-intro > p{ color:var(--ink-soft); font-size:15px; }
.contact-details{ margin:26px 0; display:grid; gap:16px; padding:22px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.contact-details li{ display:flex; flex-direction:column; gap:2px; font-size:14.5px; }
.contact-details strong{ font-size:12.5px; font-weight:600; color:var(--ink-soft); text-transform:uppercase; letter-spacing:0.06em; }
.contact-details a{ color:var(--primary); font-weight:600; }
.contact-intro .contact-note{ font-size:13px; }
.contact-form{ display:grid; grid-template-columns:1fr 1fr; gap:20px 20px; }
.contact-form .full{ grid-column:1 / -1; }
.contact-field label{ display:block; font-size:14px; font-weight:600; color:var(--ink); margin-bottom:8px; }
.contact-field input, .contact-field select, .contact-field textarea{
  width:100%; font:inherit; font-size:15px; color:var(--ink); background:var(--bg); border:1px solid var(--line); border-radius:var(--radius-sm);
  padding:12px 14px; transition:border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.contact-field textarea{ resize:vertical; min-height:150px; }
.contact-field select{ appearance:none; padding-right:40px; cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234C6472' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 15px center; }
.contact-field input:focus, .contact-field select:focus, .contact-field textarea:focus{ outline:none; background-color:var(--white); border-color:var(--primary); box-shadow:0 0 0 3px rgba(10,132,181,0.15); }
.contact-field .input-validation-error{ border-color:#C0392B; }
.contact-error{ display:block; font-size:13px; color:#C0392B; margin-top:6px; }
.contact-error:empty{ display:none; }
.contact-alert{ grid-column:1 / -1; background:#FDECEA; border:1px solid #F5C6C0; color:#8A2A1E; border-radius:var(--radius-sm); padding:14px 16px; font-size:14px; }
.contact-alert a{ font-weight:600; text-decoration:underline; }
.contact-actions{ display:flex; justify-content:flex-start; padding-top:4px; }
.contact-actions .btn{ border:none; cursor:pointer; font-family:inherit; padding:14px 32px; }
.contact-trap{ position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
.contact-success{ text-align:center; padding:40px 20px; align-self:center; }
.contact-success-icon{ width:56px; height:56px; margin:0 auto 18px; border-radius:50%; background:var(--warm-soft); color:var(--warm); display:flex; align-items:center; justify-content:center; font-size:26px; font-weight:700; }
.contact-success h3{ font-size:22px; margin-bottom:10px; }
.contact-success p{ color:var(--ink-soft); max-width:420px; margin:0 auto; }

@media (max-width:960px){
  .contact-panel{ grid-template-columns:1fr; gap:32px; padding:32px 28px; }
}
@media (max-width:680px){
  .contact-panel{ padding:26px 20px; }
  .contact-form{ grid-template-columns:1fr; }
  .contact-actions .btn{ width:100%; }
}
