:root {
  --bg: #00326d;
  --panel: #fff;
  --line: #ccd8f9;
  --text: #00326d;
  --accent: #2e66ff;
  --accent2: #cfe0ff;
  --tile: #eaf1ff;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(16, 44, 101, 0.08);
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 "Ezer Solid", "Heebo", Arial, sans-serif;
}
.checkmark {
  width: 1em; 
  height: 1em;
  vertical-align: middle;
  margin-left: 0.25em;
}
.ami-rtl {
  direction: rtl;
}
.ami-hero {
  background: #0e3b78;
  color: #fff;
}
.logo-box {
  padding: clamp(23px, 2.34vw, 45px) 0 clamp(20px, 1.3vw, 25px) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(33px, 2.08vw, 40px)
}
.logo-box img {
  width: clamp(130px, 8.75vw, 168px);
}
.ami-hero-title {
  max-width: 85%;
  margin: 0;
  font-size: clamp(32px, 3.02vw, 58px);
  text-align: center;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.41px;
}
.ami-hero-inner {
  margin: 0 auto;
}

.box-nav{
  background:#d5e0ff;
  border:1px solid #d5e0ff;
  z-index:1000;
  transition: box-shadow .2s ease;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.box-nav.is-fixed{
  position: fixed;
  left: 0; right: 0;
  top: var(--sticky-offset, 0);
  box-shadow: 0 6px 18px rgba(18,38,67,.08);
  animation: amiStickIn .28s ease-out both;
}
.box-nav.is-leaving{
  position: fixed;
  left: 0; right: 0;
  top: var(--sticky-offset, 0);
  animation: amiStickOut .2s ease-in forwards;
}
@keyframes amiStickIn{ from{transform:translateY(-8px);opacity:0} to{transform:translateY(0);opacity:1} }
@keyframes amiStickOut{ from{transform:translateY(0);opacity:1} to{transform:translateY(-6px);opacity:0} }

.box-nav .nav-ttile{
  overflow:hidden;
  display:flex;
  opacity: 1;
  transition: max-height .25s ease, opacity .2s ease;
}

.box-nav.is-fixed .nav-ttile{ max-height:0; opacity:0; }


.nav-content {
  padding: clamp(15px, 1.04vw, 20px) 0;
  padding-left: clamp(15px, 8.33vw, 160px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-ttile {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  font-size: clamp(29px, 1.72vw, 33px);
  font-weight: 600;
  color: var(--text);
}
.nav-ttile span {
  width: 100%;
  color: var(--accent);
  font-size: clamp(22px, 1.2vw, 23px);
}
.ami-switch {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
}
.ami-switch__tab {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  min-width: 200px;
  border: 1px solid transparent;
   transition:
    color .25s cubic-bezier(0.075,0.82,0.165,1),
    border-color .25s cubic-bezier(0.075,0.82,0.165,1),
    background-color .25s cubic-bezier(0.075,0.82,0.165,1),
    box-shadow .25s cubic-bezier(0.075,0.82,0.165,1);
}
.ami-switch__tab:hover {
  color: var(--accent);
  border: 1px solid var(--accent);
}
.ami-switch__tab:hover span{
  color: var(--accent);
}
.ami-switch__tab.is-active {
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid var(--text);
}
.ami-switch__title-box {
  display: flex;
  flex-direction: column;
}
.ami-switch__title {
  font-size: clamp(14px, 1.04vw, 20px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.47px;
}
.ami-switch__sub {
  font-size: clamp(9px, 0.83vw, 16px);
  color: #4467a9;
  line-height: 1;
    letter-spacing: -0.2px;
}
.ami-switch__icon {
  display: inline-flex;
  width: clamp(20px, 1.56vw, 30px);
  height: clamp(30px, 2.08vw, 40px);
}
.ami-container {
  max-width: clamp(1200px, 70.83vw, 1360px);
  padding: 20px ;
  margin: auto;
  position: relative;
}
.ami-bg-f9fafc {
  background: #f9fafc;
  position: relative;
}
.ami-bg-f9fafc:before {
    content: "";
    display: block;
    width: 100%;
    height: 28vw;
    position: absolute;
    top: 0;
    left: 0;
    background-image: url(../assets/img/BGraphic-hero.svg); 
    background-image: url(../assets/img/BGraphic-hero-cropped2.svg); 
   background-size: cover;
   background-repeat: no-repeat;
    background-position: center -8px;
    z-index: 0;
}

.ami-page-hero {
  padding-top: clamp(20px, 2.86vw, 55px);
  padding-bottom: clamp(40px, 2.6vw, 50px);
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 10px;
}
.ami-page__icon {
  display: block;
  background: var(--accent);
  border-radius: 5px;
  padding: 10px;
  width: 65px;
  height: 65px
}
.ami-page__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ami-page__title-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.ami-page__title {
  width: 100%;
  margin: 0;
  color: var(--text);
  font-size: clamp(32px, 1.72vw, 32px);
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.41px;
}
span.ami-page__sub {
  width: 100%;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.ami-progress {
  color: var(--accent);
  font-size: clamp(15px, 0.83vw, 16px);
  line-height: 1;
  letter-spacing: -0.45px;
}
.ami-grid {
  padding-bottom: 40px;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 18px;
}
.ami-card {
  flex: 0 1 calc(20% - 18px);
  position: relative;
  min-height: clamp(250px, 17.45vw, 270px);
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(204, 216, 249, 0.06);
  padding: 30px 25px;
  z-index: 1;
  overflow: hidden;
}
.ami-card::before {
  content: "";
  width: 100%;
  height: clamp(10px, 0.78vw, 15px);
  background: #ccd8f9;
  display: block;
  position: absolute;
  left: 0;
  top: 0;
}
.ami-card .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.ami-card .logo img {
  width: 100%;
  height: auto;
  /* max-height: 75px; */
  object-fit: contain;
  object-position: center;
}
.ami-card__header .desc {
  text-align: center;
  line-height: 1.2;
  color: #000;
  font-size: clamp(10px, 0.78vw, 15px);
}

.ami-card__header {
  margin-bottom: 8px;
  padding-top: 8px;
  min-height: 100px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.ami-row {
  margin-top: auto;
}

.ami-card .name,
.ami-card h2.name {
  margin: 0;
  font-weight: 600;
  text-align: center;
  font-size: clamp(15px, 0.94vw, 18px);
  text-transform: uppercase;
}
.ami-card .pack {
  width: 100%;
  font-size: 15px;
  color: var(--text);
  text-align: right;
  line-height: 1;
}

.qty-row {
  display: flex;
  justify-content: center;
}
.ami-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
}
.ami-label {
  margin-bottom: 3px;
  font-size: clamp(12px, 0.78vw, 15px);
  color: var(--text);
  width: 100%;
}
.ami-input {
  padding: 8px;
  width: 100%;
  font-family: 'Open Sans', 'Ezer Solid', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: var(--text);
  border: 1px solid var(--accent);
  background: #fff;
  border-radius: 5px;
}

.ami-price-pill {
  display: inline-flex;
  color: var(--text);
  font-weight: 400;
  font-size: 12px;
   align-items: baseline;
  gap: .5rem;
}
.ami-price-pill .price-old.is-struck {
  text-decoration: line-through;
  opacity: .65;
}

.ami-price-pill .price-new {
  font-weight: 700;
}
.ami-step {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  width: 100%;
}
.ami-step button {
  width: 36px;
  height: 36px;
  border-radius: 5px;
  border: 1px solid var(--accent);
  background: #fff;
  cursor: pointer;
  font-size: clamp(24px, 1vw, 27px);
  font-weight: 500;
  color: var(--text);
}
.ami-step input {
  width: 64px;
  border: 0;
  background: transparent;
  text-align: center;
  font-family: 'Ezer Solid', 'Open Sans',  sans-serif;
  font-size: clamp(18px, 1.56vw, 30px);
  font-weight: 600;
  color: var(--text);
}
.ami-footer-action {
  padding: 60px 15px 90px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.ami-btn {
  min-width: 365px;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 16px 22px;
  font-family: "Ezer Solid", "Heebo", Arial, sans-serif;
  font-size: clamp(24px, 3.13vw, 35px);
  font-weight: 400;
  cursor: pointer;
  box-shadow: var(--shadow);
  border: 1px solid var(--accent);
  transition: all 0.5s ease-in-out;
  letter-spacing: 0.41px;
}
.ami-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background-color: #fff;
}
.ami-summary {
  position: relative;
  margin: 38px auto;
  border: 2px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  width: 100%;
  overflow: hidden;
  z-index: 1;
background: #fff;
}
.ami-summary-head {
  padding: 14px;
  text-align: center;
  font-weight: 800;
  color: var(--text);
  background: var(--line);
  font-size: 26px;
  letter-spacing: 0.41px;
}
.ami-summary-body {
  padding: 28px 40px;
  background: #fff;
  border-radius: 0 0 14px 14px;
}

.ami-cols {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.ami-col {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ami-summary-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.ami-tile {
  text-align: center;
  font-weight: 800;
  font-size: 24px;
  color: #2b56a8;
}


.ami-summary .ami-tile .ami-label-small {
    margin-right: 6px 0 10px 0;
    font-family:'Ezer Solid', sans-serif;
    text-align: right;
    font-size: 15px;
    color: var(--text);
    font-weight: 400
    ;
}
.ami-summary .ami-tile  span[data-out="profit"],
.ami-summary .ami-tile  span[data-out="pct-view"] {
    padding: 30px 0;
    width: 100%;
    display: block;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 5px;
    font-size: 30px;
    color: var(--accent);
}
.ami-hint {
  display: none;
  text-align: center;
  color: #a94442;
  padding: 20px 10px;
}


.ami-pct {
  color: #3a63ff;
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 28px);
}


input[name="rev_total"],
input[name="exp_total"] {
  direction: ltr;
}
.ami-rtl [data-out="profit"],
.ami-rtl [data-out="pct-view"] {
  direction: rtl;
  unicode-bidi: plaintext;
  white-space: nowrap;
}

/* [data-out="pct-view"][data-dir="up"]::after, */
[data-out="profit"][data-dir="up"]::after,
[data-out="profit"][data-sign="pos"]::after {
content: "";
  display: inline-block;
    display: inline-block;
    width: 20px;
    height: 27px;
  background: var(--text); 
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10.91 25.97"><g fill="none" stroke="%23000" stroke-width="2"><line x1="5.46" y1="24.5" x2="5.46" y2="0"/><polyline points=".73 19.42 5.46 24.5 10.18 19.42"/></g></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10.91 25.97"><g fill="none" stroke="%23000" stroke-width="2"><line x1="5.46" y1="24.5" x2="5.46" y2="0"/><polyline points=".73 19.42 5.46 24.5 10.18 19.42"/></g></svg>') no-repeat center / contain;
 transform: translate(24px, 3px) rotate(180deg);
}
/* [data-out="pct-view"][data-dir="down"]::after, */
[data-out="profit"][data-dir="down"]::after,
[data-out="profit"][data-sign="neg"]::after {
  content: "";
  display: inline-block;
  width: 20px;          
  height: 27px;
  background: var(--text); 
  transform: translate(28px, 5px);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10.91 25.97"><g fill="none" stroke="%23000" stroke-width="2"><line x1="5.46" y1="24.5" x2="5.46" y2="0"/><polyline points=".73 19.42 5.46 24.5 10.18 19.42"/></g></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10.91 25.97"><g fill="none" stroke="%23000" stroke-width="2"><line x1="5.46" y1="24.5" x2="5.46" y2="0"/><polyline points=".73 19.42 5.46 24.5 10.18 19.42"/></g></svg>') no-repeat center / contain;
}
/* [data-out="pct-view"][data-dir="neutral"]::after, */
[data-out="profit"][data-dir="neutral"]::after,
[data-out="profit"][data-sign="zero"]::after {
  content: "";
}

/* [data-out="pct-view"][data-dir="up"], */
[data-out="profit"][data-dir="up"],
[data-out="profit"][data-sign="pos"] {
  color: var(--accent);
}
/* [data-out="pct-view"][data-dir="down"], */
[data-out="profit"][data-dir="down"],
[data-out="profit"][data-sign="neg"] {
  color: var(--accent);
}

input.ami-input::placeholder {
  opacity: 1;
  color: var(--text);
  transition: opacity 0.2s;
}

.ami-input:focus::placeholder {
  opacity: 0;
}

.ami-input::-webkit-input-placeholder {
  opacity: 0;
  transition: opacity 0.2s;
}
.ami-input:focus::-webkit-input-placeholder {
  opacity: 0;
}
.ami-input::-moz-placeholder {
  opacity: 0;
}
.ami-input:focus::-moz-placeholder {
  opacity: 0;
}
.ami-input:-ms-input-placeholder {
  opacity: 0;
}
.ami-input:focus:-ms-input-placeholder {
  opacity: 0;
}
.ami-cols--stack {
  display: flex;
  flex-wrap: wrap;
  gap: 35px;
}
.ami-cols--stack .ami-cell {
  flex: 1 1 48%;
  min-width: 280px;
}

span.ami-pct {
  font-size: 24px;
}



.ami-price-pill {
    visibility: hidden;
}
@media (max-width: 768px) {
    .ami-hero-title {
        margin-bottom: 10px;
        max-width: 100%;
    }
    .box-nav{
        position: sticky;
        position: -webkit-sticky; 
        top: var(--sticky-offset, 0);
        box-shadow: 0 4px 14px rgba(18,38,67,.08);
        animation: none;
    }
    .box-nav.is-fixed,
    .box-nav.is-leaving{
        position: sticky; 
        animation: none;
    }
    .box-nav .nav-ttile{
        font-size: clamp(33px, 1.72vw, 33px);
        letter-spacing: 1.3px;
        opacity: 1;
        visibility: visible;
        transition: opacity .18s ease, visibility .18s ease;
    }
    .box-nav.is-stuck .nav-ttile{
        opacity: 0;
        visibility: hidden;   
    }

    .ami-container {
        padding: 20px 24px;
        max-width: 100%;
        width: 100%;
    }
   
    .nav-content {
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-ttile {
        margin-bottom: 15px;
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .ami-page__title {
        line-height: 1.5;
    }
    .ami-switch {
        padding: 0 10px;
        justify-content: flex-start;
        width: 100%;
    }
    a.ami-switch__tab:first-child {
        flex: 0 1 calc(46% - 10px);
    }
    .ami-switch__tab {
        min-width: auto;
        flex: 0  1 calc(57% - 10px);
        padding: 8px 10px;
        border-radius: 8px;
        gap: 5px;
    }
    .ami-grid {
        min-height: 150px;
        margin-top: 0;
        padding-bottom: 0;
        gap: 15px;
    }
    .ami-card {
        padding: 18px;
        min-height: 190px;
        flex: 0 1 calc(50% - 7.5px);
        border-radius: 10px;
    }
    .ami-card::before {
        content: "";
        height: 8px;
    }
    .ami-card__header {
     min-height: 60px;
    }
    .ami-switch__title-box {
        gap: 3px;
    }
    .ami-switch__icon {
        display: inline-flex;
        width: clamp(20px, 1.56vw, 30px);
        height: clamp(25px, 2.08vw, 40px);
    }
    .ami-switch__sub {
        line-height: 1;
        letter-spacing: 0.5px;
    }

    /* .ami-card .logo img {
        max-height: 40px;
    } */
    .ami-btn {
        padding: 10px 22px;
        min-width: 250px;
        border-radius: 5px;
    }
    .ami-bg-f9fafc {
        background-color: #fff;
    }
    .ami-bg-f9fafc:before {
        content: "";
        display: block;
        width: 100%;
        height: 200px;
        position: absolute;
        top: 0;
        left: 0;
        background-image: url("../assets/img/BGraphic-cropped-transparent.svg");
        background-repeat: no-repeat;
        background-position: 135px 0;
        background-size: 135%;
        z-index: 0;
    }
    section[data-ami="price"] .ami-bg-f9fafc:after {
        content: "";
        display: block;
        width: 100%;
        height: 10%;
        position: absolute;
        bottom: 0;
        left: 0;
        background-image: url(../assets/img/BGraphic_mobile-cropped.svg);
        background-repeat: no-repeat;
        background-position: bottom;
        background-size: cover;
        z-index: 0;
    }
    .ami-bg-f9fafc .ami-container {
        overflow-x: hidden;
    }
     section[data-ami="profits"] .ami-bg-f9fafc .ami-container:after,
     section[data-ami="price"] .ami-bg-f9fafc .ami-container:after {
        content: "";
        display: block;
        width: 100%;
        height: 10%;
        position: absolute;
        top: 50%;
        left: 0;
        background-image: url(../assets/img/BGraphic_mobile-cropped.svg);
        background-repeat: no-repeat;
        background-position: bottom;
        background-size: cover;
        z-index: 0;
    }
    section[data-ami="profits"] .ami-footer-profits .ami-container:before {
        content: "";
        display: block;
        width: 100%;
        height: 10%;
        position: absolute;
        top: 50%;
        left: 0;
        background-image: url(../assets/img/BGraphic_mobile-cropped.svg);
        background-repeat: no-repeat;
        background-position: bottom;
        background-size: cover;
        z-index: 0;
    }
    .ami-card .pack {
        font-size: 12px;
    }
    .ami-cols--stack .ami-cell {
        flex-basis: 100%;
    }
    .ami-cell--rev {
        order: 1;
    }
    .ami-cell--exp {
        order: 2;
    }
    .ami-cell--profit {
        order: 3;
    }
    .ami-cell--pct {
        order: 4;
    }
    .ami-step input {
        width: 50px;
    }
 
    .ami-summary {
        margin: 0;
    }
    .ami-summary-body {
        padding: 30px 15px;
    }  


    .ami-hint {
        margin-top: 0;
    }
    .ami-card .ami-input {
     padding: 8px;
     font-size: 10px;
    }

.ami-footer-action {
    padding: 20px;
}
    
}

@media (min-width: 769px) {
  .ami-cell--rev {
    order: 1;
  } 
  .ami-cell--exp {
    order: 2;
  } 
  .ami-cell--profit {
    order: 3;
  } 
  .ami-cell--pct {
    order: 4;
  } 
}
@media (min-width: 769px) and (max-width: 1160px) {
    .ami-card {
        flex: 0 1 calc(25% - 20px);
    }
}

@media (min-width: 550px) and (max-width: 880px) {
    .ami-card {
        flex: 0 1 calc(33.33% - 20px);
    }
}

@media (min-width: 950px) and (max-width: 1550px) {
   .ami-hero-title {
        max-width: 73%;
   }
}
@media (prefers-reduced-motion: reduce){
  .box-nav.is-fixed, .box-nav.is-leaving{ animation: none; }
  .box-nav .nav-ttile{ transition: none; }
}

