/* What every page of the website shares, in the website's own look (styles.css
   variables: plum, coral, paper, ink). Linked after each page's own styles.
   With site-parts.js: the header's current page, the sliding switch, the
   dropdown, small cards that lift, the Contact us form and a logo's fallback
   letter. */

/* The page you are on, in the header and footer menus (site-nav.mjs marks it). */
.desktop-nav a[aria-current=page],.mobile-menu a[aria-current=page]{color:var(--plum);font-weight:600}

/* Sliding switch: a switch marked data-slide shows its chosen option on one
   highlight (its ::before) that slides to the option picked. The look of each
   highlight is set by the switch's own styles (--thumb-bg, --thumb-shadow). */
[data-slide]{position:relative;isolation:isolate}
[data-slide].is-sliding::before{content:'';position:absolute;z-index:-1;left:0;top:0;width:var(--thumb-w);height:var(--thumb-h);border-radius:var(--thumb-r,50px);background:var(--thumb-bg,var(--plum));box-shadow:var(--thumb-shadow,none);transform:translate(var(--thumb-x),var(--thumb-y));transition:transform .34s cubic-bezier(.3,.8,.25,1),width .34s cubic-bezier(.3,.8,.25,1),height .34s ease;pointer-events:none}
[data-slide].is-placing::before{transition:none}
[data-slide].is-sliding>:is([aria-pressed=true],[aria-selected=true]){background:transparent;border-color:transparent;box-shadow:none}
[data-slide]>*{transition:color .25s ease,background-color .2s ease,border-color .2s ease}
@media(prefers-reduced-motion:reduce){[data-slide].is-sliding::before{transition:none}}

/* A small card with a light shadow that lifts a little on hover and focus.
   Not for the big plan cards. Without motion it keeps the shadow change only. */
.lift-card{box-shadow:0 1px 2px #4a27670a,0 10px 26px -16px #4a276733;transition:transform .25s ease,box-shadow .25s ease,border-color .3s ease}
.lift-card:hover,.lift-card:focus-within{transform:translateY(-3px);box-shadow:0 2px 4px #4a27670d,0 20px 38px -18px #4a276747}
@media(prefers-reduced-motion:reduce){.lift-card{transition:box-shadow .25s ease,border-color .3s ease}.lift-card:hover,.lift-card:focus-within{transform:none}}

/* Dropdown (site-parts.js draws every <select> this way): the button shows the
   choice and a chevron that turns when open; the list is a paper card with a
   soft shadow, its options tinted plum on hover and when chosen, with a check
   on the chosen one. The real <select> stays hidden underneath and keeps the
   value. A field's own styles set the button's size and shape (Contact us
   below, the home page's competitor picker in feature-story.css). */
.site-select{position:relative;min-width:0}
.site-select-native{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;opacity:0;pointer-events:none}
.site-select-button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin:0;padding:12px 14px;border:1px solid #ddd0e3;border-radius:12px;background:#fff;color:var(--plum);font-family:inherit;font-size:inherit;font-weight:500;line-height:1.4;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:border-color .2s,box-shadow .2s,background-color .2s}
.site-select-button:hover{border-color:#c9b6d4}
.site-select-button:focus{outline:none}
.site-select-button:focus-visible,.site-select.is-open .site-select-button{border-color:var(--plum);box-shadow:0 0 0 3px #4a27671f}
.site-select-button[aria-invalid=true]{border-color:var(--coral)}
.site-select-button:disabled{cursor:default;opacity:.55}
.site-select-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.site-select.is-empty .site-select-value{color:#86768f;font-weight:400}
.site-select-chevron{flex:none;width:7px;height:7px;margin:-3px 2px 0 0;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;color:#86768f;transform:rotate(45deg);transition:transform .22s ease,color .2s,margin .22s ease}
.site-select-button:hover .site-select-chevron,.site-select.is-open .site-select-chevron{color:var(--plum)}
.site-select.is-open .site-select-chevron{margin-top:3px;transform:rotate(225deg)}
.site-select-list{position:absolute;z-index:40;top:calc(100% + 6px);left:0;min-width:100%;max-height:min(360px,60vh);margin:0;padding:6px;overflow-y:auto;overscroll-behavior:contain;list-style:none;border:1px solid #ece3f0;border-radius:14px;background:var(--paper);box-shadow:0 2px 6px #4a27670f,0 22px 44px -20px #4a27675c;font-size:14px;line-height:1.4;transform-origin:top center;animation:site-select-open .16s ease-out}
.site-select.is-up .site-select-list{top:auto;bottom:calc(100% + 6px);transform-origin:bottom center}
.site-select-list[hidden]{display:none}
.site-select-option{position:relative;display:flex;align-items:center;min-height:40px;padding:9px 38px 9px 12px;border-radius:9px;color:#4f3d5b;cursor:pointer;white-space:nowrap;-webkit-tap-highlight-color:transparent;transition:background-color .12s,color .12s}
.site-select-option+.site-select-option{margin-top:2px}
.site-select-option.is-active{background:#f3ebf7;color:var(--plum)}
.site-select-option[aria-selected=true]{background:#efe6f3;color:var(--plum);font-weight:600}
.site-select-option[aria-selected=true].is-active{background:#e8dcef}
.site-select-option.is-placeholder{color:#86768f}
.site-select-option.is-placeholder[aria-selected=true]{background:transparent;color:#86768f;font-weight:400}
.site-select-option.is-placeholder.is-active{background:#f3ebf7}
.site-select-option[aria-selected=true]:not(.is-placeholder)::after{content:'';position:absolute;right:15px;top:50%;width:5px;height:10px;margin-top:-7px;border-right:2px solid var(--plum);border-bottom:2px solid var(--plum);transform:rotate(45deg)}
@keyframes site-select-open{from{opacity:0;transform:translateY(-4px) scale(.98)}to{opacity:1;transform:none}}
.site-select.is-up .site-select-list{animation-name:site-select-open-up}
@keyframes site-select-open-up{from{opacity:0;transform:translateY(4px) scale(.98)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.site-select-list,.site-select.is-up .site-select-list{animation:none}.site-select-chevron,.site-select-button,.site-select-option{transition:none}}
@media(max-width:760px){.site-select-option{min-height:44px}}

/* A review site's logo that did not load: its first letter instead. */
.site-logo-fallback{display:grid;place-items:center;width:100%;height:100%;border-radius:50%;background:#efe6f3;color:var(--plum);font-size:11px;font-weight:700;line-height:1}

/* Contact us (contact.html, and pricing.html before the FAQ). */
.ct-section{display:grid;grid-template-columns:.75fr 1.25fr;gap:100px;align-items:start;padding-top:104px;scroll-margin-top:120px}
.ct-intro p{max-width:360px;line-height:1.7}
.ct-intro .ct-direct{margin-top:22px;font-size:14px;color:#75647e}
.ct-direct a,.ct-note a{color:var(--plum);font-weight:600;text-decoration:none;text-underline-offset:3px}
.ct-direct a:hover,.ct-note a:hover{text-decoration:underline}
.ct-card{position:relative;padding:30px;border:1px solid #fff;border-radius:18px;background:var(--paper)}
.ct-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 18px}
.ct-field{display:flex;flex-direction:column;gap:7px;min-width:0}
.ct-field.is-wide{grid-column:1/-1}
.ct-field label{font-size:13px;font-weight:600;color:#4f3d5b}
.ct-field label small{font-size:12px;font-weight:400;color:#86768f}
.ct-field label b{font-weight:600;color:var(--coral)}
.ct-field :is(input,select,textarea,.site-select-button){width:100%;min-height:48px;padding:12px 14px;border:1px solid #ddd0e3;border-radius:12px;background:#fff;color:var(--ink);font-family:inherit;font-size:15px;line-height:1.4;transition:border-color .2s,box-shadow .2s}
.ct-field textarea{min-height:140px;resize:vertical}
.ct-field select{appearance:none;padding-right:40px;background-image:linear-gradient(45deg,transparent 50%,#86768f 50%),linear-gradient(135deg,#86768f 50%,transparent 50%);background-position:calc(100% - 20px) 21px,calc(100% - 15px) 21px;background-size:5px 5px;background-repeat:no-repeat}
.ct-field :is(input,select,textarea)::placeholder{color:#a798ad}
.ct-field :is(input,select,textarea,.site-select-button):hover{border-color:#c9b6d4}
.ct-field :is(input,select,textarea):focus{outline:none;border-color:var(--plum);box-shadow:0 0 0 3px #4a27671f}
.ct-field [aria-invalid=true]{border-color:var(--coral)}
.ct-field .site-select-button{color:var(--plum)}
.ct-field .site-select-list{right:0;font-size:15px}
/* The home page's competitor picker (its pill is drawn in feature-story.css). */
.fs-competitor-label .site-select-list{left:auto;right:0;font-size:13px}
.ct-error{font-size:13px;line-height:1.45;color:#b0412a}
.ct-error:empty{display:none}
.ct-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.ct-foot{display:flex;align-items:center;flex-wrap:wrap;gap:14px 22px;margin-top:24px}
.ct-note{font-size:13px;line-height:1.55;color:#75647e}
.ct-status{margin-top:18px;padding:13px 16px;border-radius:12px;background:#efe6f3;font-size:14px;line-height:1.55;color:#4f3d5b}
.ct-status[data-kind=error]{background:#f8ddd4;color:#8a2f1b}
.ct-status[hidden]{display:none}

@media(max-width:1150px){.ct-section{gap:60px}}
@media(max-width:860px){.ct-section{grid-template-columns:1fr;gap:28px;padding-top:72px}.ct-intro p{max-width:none}}
@media(max-width:760px){.ct-card{padding:20px 18px}.ct-grid{grid-template-columns:1fr;gap:16px}.ct-foot .button{width:100%}}
/* contact.html: the form comes straight after the page title. */
.ct-page .ct-hero{padding-bottom:0}
.ct-page .ct-section{padding-top:56px;padding-bottom:104px}

/* Solutions in the header: a panel of the six product pages. It opens on
   hover or keyboard focus, and on click or tap (site-parts.js). On narrow
   screens the same pages are listed in the mobile menu under "Solutions". */
.nav-group{position:relative;display:flex;align-items:center}
.nav-trigger{display:inline-flex;align-items:center;gap:6px;padding:12px 0;border:0;background:none;font:inherit;font-size:15px;color:#675d6b;cursor:pointer;transition:color .2s}
.nav-trigger span{width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .2s}
.nav-trigger:hover,.nav-group.is-open .nav-trigger{color:var(--coral)}
.nav-trigger[data-current]{color:var(--plum);font-weight:600}
.nav-group.is-open .nav-trigger span{transform:translateY(1px) rotate(225deg)}
.nav-panel{display:none;position:absolute;top:calc(100% + 14px);left:-24px;width:520px;grid-template-columns:1fr 1fr;gap:4px;padding:10px;background:var(--paper);border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 40px #24112d1f;z-index:30}
.nav-panel::before{content:'';position:absolute;left:0;right:0;top:-16px;height:16px}
.nav-group:hover .nav-panel,.nav-group:focus-within .nav-panel,.nav-group.is-open .nav-panel{display:grid}
.nav-group.is-closed .nav-panel{display:none}
.desktop-nav .nav-panel a{display:grid;align-content:start;gap:2px;padding:12px 14px;border-radius:12px;color:var(--ink);transition:background-color .15s}
.desktop-nav .nav-panel a:hover,.desktop-nav .nav-panel a:focus-visible{background:#f3eef6;color:var(--ink)}
.nav-panel strong{font-size:14px;font-weight:600}
.nav-panel small{font-size:12px;line-height:1.4;color:#75647e}
.desktop-nav .nav-panel a[aria-current=page] strong{color:var(--plum)}
.mobile-menu{max-height:calc(100vh - 110px);overflow-y:auto}
.mobile-menu-label{margin:14px 0 2px;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#75647e}
.mobile-menu-label:first-child{margin-top:4px}

/* A title word that changes every 2 seconds (Pricing, and the hero of the Solution pages):
   every word sits in the same grid cell, on its own line, so the title keeps the height
   of the longest and nothing below moves. site-parts.js moves it on; with reduced motion
   only the first word shows. */
.pr-rotate{display:grid}
/* Each word in its own colour from the site's palette (styles.css), the
   same colour never twice in a row: coral, green, coral, violet on Pricing (four words);
   coral, green, violet on the Solution pages (three words). */
.pr-word:nth-child(1),.pr-word:nth-child(3){color:var(--coral)}
.pr-word:nth-child(2){color:#6f8a1f;color:color-mix(in srgb,var(--lime) 62%,var(--ink))}
.pr-word:nth-child(4),.pr-word:nth-child(3):last-child{color:#8b5cf6}
.pr-word{grid-area:1/1;justify-self:center;align-self:start;opacity:0;transform:translateY(.35em);transition:opacity .5s ease,transform .5s ease}
.pr-word.is-on{opacity:1;transform:none}
.pr-word.is-out{opacity:0;transform:translateY(-.35em)}
@media(prefers-reduced-motion:reduce){
  .pr-word{transition:none}
  .pr-word:not(:first-child){display:none}
  .pr-word:first-child{opacity:1;transform:none}
}

/* Text for screen readers only (such as the full title behind a changing word). */
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* The header stays at the top of every page as you scroll (the floating glass bar), and
   links to a part of a page stop below it. */
:root{--fs-nav-clearance:121px}
html{scroll-padding-top:var(--fs-nav-clearance)}
.site-header{position:fixed;z-index:100;background:#fcfbf8f2;box-shadow:0 8px 28px -12px #4a276729,0 1px 0 #fff inset}
:where(main,section)[id]{scroll-margin-top:12px}
.mobile-menu{max-height:calc(100vh - var(--fs-nav-clearance) - 24px);max-height:calc(100dvh - var(--fs-nav-clearance) - 24px);overflow-y:auto;overscroll-behavior:contain}
.skip-link{z-index:110}
@media(max-width:1000px){:root{--fs-nav-clearance:115px}}
@media(max-width:760px){:root{--fs-nav-clearance:94px}}

/* The shared footer (site-nav.mjs): the wordmark line, the page links, the
   "Built by the Heads On Pillows team" line, then the INGENTIQ logo drawn big
   in a soft lilac (the logo file as a mask, so it keeps its own E). */
.sf{margin-top:40px;border-top:1px solid #d9cddd;overflow:hidden}
.sf-top{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:48px;align-items:start;padding-top:72px}
.sf-tagline{font-size:clamp(28px,3vw,42px);line-height:1.18;font-weight:500;letter-spacing:-.03em;color:var(--plum);max-width:560px}
.sf-tagline span{display:block;color:#8b7a93}
.sf-menu{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.sf-menu div{display:grid;gap:14px;align-content:start}
.sf-head{font-size:12px;color:#8b7a93}
.sf-menu a{font-size:14px;color:var(--ink);justify-self:start}
.sf-menu a:hover,.sf-hop:hover,.sf-signin:hover{color:var(--plum);text-decoration:underline;text-underline-offset:3px}
.sf-menu a[aria-current=page]{color:var(--plum);font-weight:600}
.sf-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:64px;padding-top:16px;border-top:1px solid #e4dbe6;font-size:12px;color:#75647e}
.sf-bar p{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.sf-sep{color:#c3b5c9;margin:0 4px}
.sf-hop{display:inline-flex;align-items:center;gap:6px;font-weight:600;color:var(--ink)}
.sf-hop img{width:20px;height:20px;border-radius:5px}
.sf-signin{font-size:13px;color:#795489;white-space:nowrap}
.sf-stage{margin-top:44px;padding-bottom:36px}
.sf-logo{display:block;width:100%;aspect-ratio:120/22;background:#ded4e3;-webkit-mask:url(assets/ingentiq-wordmark.svg) center/contain no-repeat;mask:url(assets/ingentiq-wordmark.svg) center/contain no-repeat;user-select:none}
@media(max-width:1000px){.sf-top{grid-template-columns:1fr;gap:40px;padding-top:56px}.sf-bar{margin-top:48px}}
@media(max-width:760px){.sf{margin-top:24px}.sf-top{padding-top:40px}.sf-menu{grid-template-columns:1fr 1fr;gap:28px 20px}.sf-bar{flex-direction:column;align-items:flex-start}.sf-stage{margin-top:28px;padding-bottom:24px}}
