/* Hover and focus states (converted from the design file) */
.grx-hover1:hover{transform:translateY(-2px) !important}
.grx-hover2:hover{background:#121311 !important;color:#cdf23a !important}
.grx-hover3:hover{color:#cdf23a !important;border-color:#cdf23a !important}
.grx-hover4:hover{border-color:#cdf23a !important}
.grx-hover5:hover{padding-left:14px !important}
.grx-hover6:hover{transform:translateY(-2px) !important;box-shadow:0 10px 24px -10px rgba(0,0,0,.4) !important}
.grx-focus7:focus{border-bottom-color:#cdf23a !important}
.grx-hover8:hover{color:#cdf23a !important}

/* Accessibility */
[data-action]{cursor:pointer}
a:focus-visible,[data-action]:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #cdf23a;outline-offset:3px}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  body.gr-armed [data-reveal]{opacity:1 !important;transform:none !important}
  *{animation-duration:0s !important;animation-iteration-count:1 !important;transition:none !important}
}

/* Balanced heading lines (no single-word orphans) */
h1,h2{text-wrap:balance}

/* Navigation: nine items need the menu button below 1240px */
.gr-navlinks a{white-space:nowrap}
@media (max-width:1240px){
  .gr-navlinks{display:none !important}
  .gr-burger{display:flex !important}
  .gr-menu.gr-menu-open{display:flex !important}
}

/* Form fields */
.gr-fld:focus{border-bottom-color:#cdf23a !important;box-shadow:0 1px 0 #cdf23a}
[data-form="callback"] .gr-fld:focus{border-bottom-color:#121311 !important;box-shadow:0 1px 0 #121311}
.gr-fld[aria-invalid="true"]{border-bottom-color:#ff8a7a !important}
.gr-fld::placeholder{color:#76766e}

/* Footer */
.gr-ft-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:40px}
@media (max-width:900px){.gr-ft-grid{grid-template-columns:1fr 1fr}}
@media (max-width:520px){.gr-ft-grid{grid-template-columns:1fr}.gr-footer{padding:52px 22px 30px !important}}

/* ---- Mobile alignment pass ---- */
/* Italic serif glyphs overhang their start point: nudge block-level italic lines onto the text edge */
.gr-h1-b,[style*="Valentino"][style*="display:block"],[style*="Valentino"][style*="display: block"],p[style*="Valentino"],blockquote[style*="Valentino"]{padding-left:.08em}
@media (max-width:768px){
  /* two-column rows stack full width instead of keeping desktop bottom/centre alignment */
  .gr-2col{align-items:stretch !important}
  /* desktop grids with dividing lines become a simple stacked list */
  .gr-cellgrid>*{padding:28px 0 !important;border-left:0 !important;border-right:0 !important;border-bottom:0 !important}
  .gr-cellgrid>*+*{border-top:1px solid #d6d4cb !important}
  /* tick and star lists: spacing instead of a rule under every line */
  .gr-lp-feat,.gr-lp-row,div[style*="display:flex"][style*="gap:12px"][style*="border-top:1px solid"],div[style*="display:flex"][style*="gap:12px"][style*="border-bottom:1px solid"]{border-top-color:transparent !important;border-bottom-color:transparent !important;padding-top:7px !important;padding-bottom:7px !important}
  .gr-pr li{border-bottom-color:transparent !important;padding:6px 0 !important}
  li[style*="border-top:1px solid"]{border-top-color:transparent !important}
  /* stats grids fit two to a row */
  .gr-stats{gap:24px 20px !important}
  .gr-stats>div>div:first-child{font-size:44px !important}
}
@media (max-width:768px){
  /* numbered steps (contact page): fixed-width number column so every title starts on the same line */
  .gr-contact-l span[style*="Valentino"][style*="flex:none"]{width:30px;text-align:left}
  /* comparison tables become stacked cards on phones */
  .gr-cmp thead{display:none}
  .gr-cmp,.gr-cmp tbody,.gr-cmp tr,.gr-cmp td{display:block;width:100%}
  .gr-cmp tr{padding:18px 0;border-bottom:1px solid #d6d4cb}
  .gr-cmp td{border:0 !important;padding:2px 0 !important}
  .gr-cmp td:first-child{font-size:18px;margin-bottom:6px;white-space:normal}
  .gr-cmp td:nth-child(2)::before{content:"Best for: ";font-weight:800;color:#5d6b10}
  .gr-cmp td:nth-child(3)::before{content:"Watch out for: ";font-weight:800;color:#5d6b10}
}

/* Marquee: one size on every page and every screen */
html body .gr-marq{padding:10px 0 !important;border-top:0 !important;border-bottom:0 !important;line-height:16px !important;height:36px;box-sizing:border-box;}
html body .gr-marq > div{display:flex !important;align-items:center;}
html body .gr-marq span{display:block !important;white-space:nowrap !important;font-size:12px !important;letter-spacing:.16em !important;line-height:16px !important;font-weight:700 !important;}

/* Guide cards stack on phones */
@media (max-width:768px){html body .gr-guides{grid-template-columns:1fr !important;}}

/* Line the nav and footer up with the page content at every width */
@media (max-width:768px){html body .gr-nav{padding-left:22px !important;padding-right:22px !important;}}
@media (min-width:769px) and (max-width:1024px){
  html body .gr-nav{padding-left:36px !important;padding-right:36px !important;}
  html body .gr-footer{padding-left:36px !important;padding-right:36px !important;}
}
@media (max-width:400px){html body .gr-h2-sf{font-size:26px !important;}html body .gr-nn{font-size:2.4em !important;}}
