/*
 * OptiDraft marketing site - shared layer loaded by header.php on every page.
 * Self-hosted fonts, inline-icon sizing, and the glass navigation.
 */

/* ---------- Self-hosted fonts (Fontsource, OFL-1.1) ---------- */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/plus-jakarta-sans-latin-wght.woff2) format('woff2-variations'), url(../fonts/plus-jakarta-sans-latin-wght.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/plus-jakarta-sans-latin-ext-wght.woff2) format('woff2-variations'), url(../fonts/plus-jakarta-sans-latin-ext-wght.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-display: swap;
  font-weight: 400 800;
  src: url(../fonts/syne-latin-wght.woff2) format('woff2-variations'), url(../fonts/syne-latin-wght.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-display: swap;
  font-weight: 400 800;
  src: url(../fonts/syne-latin-ext-wght.woff2) format('woff2-variations'), url(../fonts/syne-latin-ext-wght.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(../fonts/dm-sans-latin-wght.woff2) format('woff2-variations'), url(../fonts/dm-sans-latin-wght.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(../fonts/dm-sans-latin-ext-wght.woff2) format('woff2-variations'), url(../fonts/dm-sans-latin-ext-wght.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Inline SVG icons (partials/icons.php) ---------- */
.od-i {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  vertical-align: -0.125em;
}

[x-cloak] { display: none !important; }

/* ---------- Buttons ---------- */
.od-btn-shimmer { position: relative; overflow: hidden; isolation: isolate; }
.od-btn-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  animation: od-sweep 3.6s ease-in-out infinite;
}
@keyframes od-sweep { 55%, 100% { transform: translateX(120%); } }

/* ---------- Glass navigation ---------- */
.od-nav {
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
          backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 8px 30px -18px rgba(76, 29, 149, .25);
  transition: background-color .3s, box-shadow .3s, padding .3s;
}
.od-nav.is-scrolled {
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 18px 50px -20px rgba(76, 29, 149, .35);
}
.od-nav-link {
  position: relative;
  border-radius: 9999px;
  padding: .5rem .9rem;
  font-size: .9rem;
  font-weight: 600;
  color: #475569;
  transition: color .2s, background-color .2s;
}
.od-nav-link:hover, .od-nav-link:focus-visible { color: #6d28d9; background: rgba(124, 58, 237, .08); }
.od-nav-link[aria-current="page"] { color: #6d28d9; background: rgba(124, 58, 237, .1); }
.od-nav-link:focus { outline: none; }
.od-nav-link:focus-visible { box-shadow: 0 0 0 2px rgba(124, 58, 237, .45); }

.od-menu-panel {
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
          backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 24px 60px -24px rgba(30, 20, 70, .35);
}

/* Sticky "Start free" bar on phones */
.od-sticky-cta { padding-bottom: env(safe-area-inset-bottom, 0); }

/* ---------- Range slider (plan finder) ---------- */
.od-range {
  -webkit-appearance: none;
          appearance: none;
  height: 8px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #7c3aed var(--fill, 0%), #e2e8f0 var(--fill, 0%));
  outline: none;
  cursor: pointer;
}
.od-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  background: #fff;
  border: 3px solid #7c3aed;
  box-shadow: 0 6px 18px -4px rgba(124, 58, 237, .6);
  transition: transform .15s;
}
.od-range::-webkit-slider-thumb:hover { transform: scale(1.12); }
.od-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background: #fff;
  border: 3px solid #7c3aed;
  box-shadow: 0 6px 18px -4px rgba(124, 58, 237, .6);
}
.od-range:focus-visible { box-shadow: 0 0 0 4px rgba(124, 58, 237, .25); }

@media (prefers-reduced-motion: reduce) {
  .od-btn-shimmer::after { animation: none !important; }
  .od-nav, .od-nav-link { transition: none !important; }
}
