/* =========================================================
   OTECH DESIGN SYSTEM (default values)
   Default brand colors sampled from the original StuCover demo logo —
   fully overridable per-project via Appearance > Customize > OTech Design.
   ========================================================= */
:root {
  --ot-indigo: #180172;
  --ot-indigo-light: #3D1FC4;
  --ot-indigo-deep: #0E014D;
  --ot-gold: #FFB800;
  --ot-gold-dark: #E6A400;
  --ot-lavender-bg: #F4F2FC;
  --ot-white: #FFFFFF;
  --ot-ink: #120A33;
  --ot-muted: #6E7191;
  --ot-border: #E7E4F5;
  --ot-radius: 16px;
  --ot-shadow-soft: 0 20px 45px -10px rgba(24,1,114,0.18);
  --ot-shadow-gold: 0 20px 45px -8px rgba(255,184,0,0.35);
  --ot-font-heading: 'Sora', sans-serif;
  --ot-font-body: 'Inter', sans-serif;
}

/* =========================================================
   NARROW CENTERED CONTENT BLOCKS
   Elementor's classic column model does NOT auto-center a
   single column set below 100% width — it left-anchors it,
   leaving dead space on the right. These classes force correct
   centering via max-width + margin:auto at the CSS level instead
   of relying on Elementor's column percentage math.
   ========================================================= */
.ot-narrow-sm  { max-width: 640px;  margin-left: auto; margin-right: auto; }
.ot-narrow-md  { max-width: 720px;  margin-left: auto; margin-right: auto; }
.ot-narrow-lg  { max-width: 820px;  margin-left: auto; margin-right: auto; }
.ot-narrow-xl  { max-width: 920px;  margin-left: auto; margin-right: auto; }
.ot-narrow-xxl { max-width: 1040px; margin-left: auto; margin-right: auto; }
@media (max-width: 900px) {
  .ot-narrow-sm, .ot-narrow-md, .ot-narrow-lg, .ot-narrow-xl, .ot-narrow-xxl { max-width: 100%; }
}

body {
  font-family: var(--ot-font-body);
  color: var(--ot-ink);
  background: var(--ot-white);
}

/* Default page title styling (hidden per-page via Elementor's
   free "Hide Title" Page Settings toggle, which targets .entry-title) */
.entry-title {
  font-family: var(--ot-font-heading);
  font-size: 34px;
  font-weight: 800;
  color: var(--ot-ink);
  text-align: center;
  max-width: 900px;
  margin: 50px auto 10px;
  padding: 0 20px;
}

h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
  font-family: var(--ot-font-heading) !important;
}

/* =========================================================
   HEADER
   ========================================================= */
.ot-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--ot-header-bg, var(--ot-white));
  box-shadow: 0 4px 24px rgba(24,1,114,0.08);
}
.ot-header--static { position: static; }
.ot-header__inner {
  max-width: var(--ot-content-width, 1280px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  gap: 24px;
}
.ot-header__logo img { display: block; height: var(--ot-header-logo-height, 42px); width: auto; }
.ot-header__logo { flex-shrink: 0; }

.ot-nav { display: flex; align-items: center; gap: 32px; flex: 1; justify-content: center; }
.ot-nav ul { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
.ot-nav a {
  color: var(--ot-header-text, var(--ot-ink));
  font-weight: 600;
  font-size: var(--ot-header-font-size, 15px);
  transition: color .2s ease;
  position: relative;
}
.ot-nav a:hover { color: var(--ot-indigo); }
.ot-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--ot-gold);
  transition: width .25s ease;
}
.ot-nav a:hover::after { width: 100%; }

.ot-header__cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.ot-btn {
  display: inline-block;
  font-family: var(--ot-font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--ot-btn-radius, 10px);
  transition: all .2s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}
.ot-btn--gold { background: var(--ot-gold); color: var(--ot-indigo); box-shadow: 0 10px 25px -6px rgba(24,1,114,.35); }
.ot-btn--gold:hover { background: var(--ot-indigo); color: var(--ot-white); transform: translateY(-2px); }
.ot-btn--ghost { background: transparent; color: var(--ot-indigo); border-color: var(--ot-indigo); }
.ot-btn--ghost:hover { background: var(--ot-indigo); color: var(--ot-white); }
.ot-btn--white-outline { background: transparent; color: var(--ot-white); border-color: rgba(255,255,255,.5); }
.ot-btn--white-outline:hover { background: var(--ot-white); color: var(--ot-indigo); }

.ot-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.ot-nav-toggle svg { width: 26px; height: 26px; color: var(--ot-indigo); }

@media (max-width: 900px) {
  .ot-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ot-white); flex-direction: column; padding: 20px 30px; box-shadow: 0 10px 20px rgba(24,1,114,.08); }
  .ot-nav.is-open { display: flex; }
  .ot-nav ul { flex-direction: column; gap: 16px; width: 100%; }
  .ot-header__cta { display: none; }
  .ot-header__cta.is-open { display: flex; flex-direction: column; gap: 10px; position: absolute; top: calc(100% + 200px); left: 0; right: 0; background: var(--ot-white); padding: 0 30px 20px; }
  .ot-nav-toggle { display: block; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.ot-footer {
  background: linear-gradient(160deg, var(--ot-footer-bg-start, var(--ot-indigo)) 0%, var(--ot-footer-bg-end, var(--ot-indigo-deep)) 100%);
  padding: 80px 60px 40px;
  color: var(--ot-white);
}
.ot-footer__grid {
  max-width: var(--ot-content-width, 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.ot-footer__brand img { height: var(--ot-footer-logo-height, 40px); width: auto; margin-bottom: 16px; }
.ot-footer__brand p { color: var(--ot-footer-text, #C9C2F0); font-size: 15px; line-height: 1.7; margin: 0 0 12px; }
.ot-footer__tagline { color: var(--ot-gold); font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.ot-footer h4 {
  font-size: 14px; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--ot-white); margin: 0 0 18px; font-family: var(--ot-font-heading);
}
.ot-footer ul { list-style: none; margin: 0; padding: 0; }
.ot-footer li { margin-bottom: 12px; }
.ot-footer a { color: var(--ot-footer-text, #C9C2F0); font-size: 14px; transition: color .2s ease; }
.ot-footer a:hover { color: var(--ot-gold); }
.ot-footer__social { display: flex; gap: 12px; margin-top: 10px; }
.ot-footer__social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.ot-footer__social a:hover { background: var(--ot-gold); transform: translateY(-3px); }
.ot-footer__social svg { width: 16px; height: 16px; fill: var(--ot-white); }
.ot-footer__social a:hover svg { fill: var(--ot-indigo); }

.ot-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 50px;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #8B84C9;
}

@media (max-width: 900px) {
  .ot-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .ot-footer__grid { grid-template-columns: 1fr; }
  .ot-footer { padding: 60px 24px 30px; }
}

/* =========================================================
   GLOBAL POLISH — hover states & motion for Elementor free widgets
   These target Elementor's own default markup, so no per-element
   Custom CSS (Pro) is required anywhere.
   ========================================================= */

/* Buttons */
.elementor-button {
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease !important;
}
.elementor-button:hover { transform: translateY(-3px); }

/* Icon boxes: lift + icon pop on hover */
.elementor-widget-icon-box .elementor-icon-box-wrapper { transition: transform .25s ease; }
.elementor-widget-icon-box:hover .elementor-icon-box-wrapper { transform: translateY(-4px); }
.elementor-widget-icon-box .elementor-icon { transition: transform .3s ease, box-shadow .3s ease; }
.elementor-widget-icon-box:hover .elementor-icon { transform: scale(1.08) rotate(-4deg); }

/* Card-style columns (pricing, feature cards) - lift on hover */
.ot-card, .ot-pricing-card {
  transition: transform .3s ease, box-shadow .3s ease;
}
.ot-card:hover, .ot-pricing-card:hover {
  transform: translateY(-8px);
}
.ot-pricing-card--featured:hover { transform: scale(1.02) translateY(-8px); }

/* Accordion (FAQ) polish */
.elementor-accordion .elementor-accordion-item {
  border-radius: 10px !important;
  overflow: hidden;
  margin-bottom: 12px !important;
  border: 1px solid var(--ot-border) !important;
}
.elementor-accordion .elementor-tab-title {
  font-weight: 700 !important;
  padding: 18px 22px !important;
}
.elementor-accordion .elementor-tab-title.elementor-active {
  color: var(--ot-indigo) !important;
  background: var(--ot-lavender-bg);
}

/* Counters */
.elementor-counter-number-wrapper { font-family: var(--ot-font-heading); }

/* Native forms (waitlist / contact) built as plain HTML for free-Elementor compatibility */
.ot-form { max-width: 100%; }
.ot-form__row { margin-bottom: 18px; }
.ot-form label {
  display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ot-ink);
}
.ot-form input[type=text],
.ot-form input[type=email],
.ot-form input[type=tel],
.ot-form select,
.ot-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--ot-border);
  border-radius: 10px;
  font-family: var(--ot-font-body);
  font-size: 15px;
  color: var(--ot-ink);
  background: var(--ot-white);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ot-form input:focus, .ot-form select:focus, .ot-form textarea:focus {
  outline: none;
  border-color: var(--ot-indigo);
  box-shadow: 0 0 0 3px rgba(24,1,114,0.12);
}
.ot-form textarea { min-height: 140px; resize: vertical; }
.ot-form__checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ot-muted); }
.ot-form__checkbox input { margin-top: 4px; }
.ot-form__submit {
  background: var(--ot-gold);
  color: var(--ot-indigo);
  font-weight: 700;
  font-size: 15px;
  padding: 15px 30px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 10px 25px -6px rgba(24,1,114,.35);
}
.ot-form__submit:hover { background: var(--ot-indigo); color: var(--ot-white); transform: translateY(-2px); }
.ot-form__notice {
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 22px;
  font-size: 15px;
  font-weight: 600;
}
.ot-form__notice--success { background: #E9F9EE; color: #1E7A3E; border: 1px solid #B9EBC7; }
.ot-form__notice--error { background: #FDECEC; color: #B3261E; border: 1px solid #F6C6C4; }

/* Countdown (built as plain HTML/JS instead of Elementor Pro's Countdown widget) */
.ot-countdown { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.ot-countdown__unit {
  background: var(--ot-white);
  border: 1px solid var(--ot-border);
  border-radius: 14px;
  padding: 20px 26px;
  min-width: 90px;
  text-align: center;
  box-shadow: var(--ot-shadow-soft);
}
.ot-countdown__num { font-family: var(--ot-font-heading); font-size: 32px; font-weight: 800; color: var(--ot-indigo); display: block; }
.ot-countdown__label { font-size: 12px; color: var(--ot-muted); text-transform: uppercase; letter-spacing: 1px; }

/* =========================================================
   DECORATIVE BACKGROUNDS & LAYOUT VARIETY (redesign pass)
   ========================================================= */

/* Mesh-gradient hero background — richer than a flat linear gradient */
.ot-mesh-hero {
  position: relative;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,184,0,0.25) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(61,31,196,0.55) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(255,184,0,0.12) 0%, transparent 60%),
    linear-gradient(135deg, var(--ot-indigo) 0%, var(--ot-indigo-light) 60%, var(--ot-indigo-deep) 100%);
  overflow: hidden;
}
.ot-mesh-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

/* Soft blurred blob accents for depth on light sections */
.ot-blob-wrap { position: relative; overflow: hidden; }
.ot-blob-wrap::before, .ot-blob-wrap::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}
.ot-blob-wrap::before {
  width: 320px; height: 320px;
  background: rgba(255,184,0,0.15);
  top: -80px; left: -80px;
}
.ot-blob-wrap::after {
  width: 380px; height: 380px;
  background: rgba(24,1,114,0.08);
  bottom: -120px; right: -100px;
}
.ot-blob-wrap > * { position: relative; z-index: 1; }

/* Diagonal section edge — alternative to wave dividers, for visual rhythm */
.ot-diagonal-top { clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 100%); }
.ot-diagonal-bottom { clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%); }

/* Numbered step cards (How It Works / process flows) */
.ot-numbered-step { position: relative; }
.ot-numbered-step .ot-step-num {
  position: absolute;
  top: -14px; right: 4px;
  font-family: var(--ot-font-heading);
  font-size: 64px;
  font-weight: 800;
  color: var(--ot-indigo);
  opacity: 0.06;
  line-height: 1;
  z-index: 0;
  pointer-events: none;
}
.ot-numbered-step > .elementor-widget-wrap,
.ot-numbered-step .elementor-widget-icon-box { position: relative; z-index: 1; }

/* Section eyebrow divider accent */
.ot-eyebrow-rule {
  width: 46px; height: 4px; background: var(--ot-gold); border-radius: 4px;
  margin: 0 auto 18px;
}
.ot-eyebrow-rule--left { margin: 0 0 18px; }

/* FAQ two-column grid layout */
.ot-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) {
  .ot-faq-grid { grid-template-columns: 1fr; }
}
.ot-faq-grid .elementor-accordion-item { background: var(--ot-white); }

/* Legal page numbered section cards */
.ot-legal-card {
  background: var(--ot-white);
  border: 1px solid var(--ot-border);
  border-radius: 14px;
  padding: 28px 30px;
  margin-bottom: 18px;
  position: relative;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.ot-legal-card:hover { box-shadow: var(--ot-shadow-soft); border-color: transparent; }
.ot-legal-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: var(--ot-lavender-bg);
  color: var(--ot-indigo);
  font-family: var(--ot-font-heading);
  font-weight: 800;
  font-size: 14px;
  border-radius: 8px;
  margin-bottom: 14px;
}
.ot-legal-card h3 { margin: 0 0 10px; font-family: var(--ot-font-heading); color: var(--ot-ink); font-size: 19px; }
.ot-legal-card p { margin: 0; color: var(--ot-muted); line-height: 1.75; font-size: 15.5px; }

/* Confetti accent for celebratory pages (Thank You) */
.ot-confetti { position: relative; overflow: hidden; }
.ot-confetti::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,184,0,0.5) 3px, transparent 3px),
    radial-gradient(rgba(255,255,255,0.35) 3px, transparent 3px);
  background-size: 60px 60px, 90px 90px;
  background-position: 0 0, 30px 40px;
  opacity: 0.5;
  pointer-events: none;
}

/* Stat / counter strip with divider lines between items */
.ot-stat-strip { position: relative; }
.ot-stat-item { position: relative; }
.ot-stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--ot-border);
}

/* Alternating image/text feature rows */
.ot-feature-media {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--ot-shadow-soft);
}

/* Tag / pill list (used on About values, How It Works badges) */
.ot-pill-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ot-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ot-lavender-bg); color: var(--ot-indigo);
  font-size: 13px; font-weight: 700; padding: 8px 16px; border-radius: 999px;
}


/* Simple scroll fade-in (progressive enhancement, degrades gracefully without JS) */
.ot-fade-in { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.ot-fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   PRELOADER, BACK-TO-TOP, DARK MODE TOGGLE
   (controlled via Appearance > Theme Options)
   ========================================================= */
#ot-preloader {
    position: fixed; inset: 0; z-index: 99999;
    background: var(--ot-white);
    display: flex; align-items: center; justify-content: center;
    transition: opacity .4s ease, visibility .4s ease;
}
#ot-preloader.ot-preloader--hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.ot-preloader__spinner {
    width: 46px; height: 46px;
    border: 4px solid var(--ot-border);
    border-top-color: var(--ot-indigo);
    border-radius: 50%;
    animation: ot-spin .8s linear infinite;
}
@keyframes ot-spin { to { transform: rotate(360deg); } }

#ot-back-to-top {
    position: fixed; right: 24px; bottom: 24px; z-index: 998;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--ot-indigo); color: var(--ot-white);
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 25px -6px rgba(24,1,114,.4);
    transition: transform .2s ease, opacity .3s ease;
    opacity: 0; transform: translateY(10px); pointer-events: none;
}
#ot-back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#ot-back-to-top:hover { background: var(--ot-gold); color: var(--ot-indigo); }
#ot-back-to-top svg { width: 20px; height: 20px; }

#ot-dark-toggle {
    background: none; border: 1px solid var(--ot-border);
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--ot-header-text, var(--ot-ink));
    transition: background .2s ease;
}
#ot-dark-toggle:hover { background: var(--ot-lavender-bg); }
#ot-dark-toggle svg { width: 18px; height: 18px; }

/* Dark mode: swap the theme's chrome colors when [data-ot-theme="dark"]
   is set on <html> (see main.js). Actual variable overrides for this
   attribute are injected in <head> by OTech_Theme_Options only when
   the feature is enabled, keeping this rule inert otherwise. */
[data-ot-theme="dark"] body { background: var(--ot-white); color: var(--ot-ink); }
[data-ot-theme="dark"] .ot-header { background: var(--ot-header-bg); }
[data-ot-theme="dark"] .ot-nav a { color: var(--ot-header-text); }
