/* ==========================================================================
   Edworld Solutions — site styles
   Everything Tailwind cannot express cleanly: the icon system, the hero
   texture, the tilted image frames and the small product mock-ups.
   ========================================================================== */

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* --- icons ---------------------------------------------------------------
   One sprite per page, referenced with <svg class="ic"><use href="#i-x"/></svg>.
   Stroke settings live here so the symbols stay bare geometry. */
.ic {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.ic-fill { fill: currentColor; stroke: none; }
.ic-sm { width: 1em; height: 1em; }
.ic-lg { width: 1.5em; height: 1.5em; }

/* --- surfaces ------------------------------------------------------------ */
.hero-pattern {
  background-color: #f8f9ff;
  background-image: radial-gradient(rgba(0, 43, 91, .11) 1px, transparent 1px);
  background-size: 24px 24px;
}
.hero-pattern::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 60% at 50% 0%, transparent 40%, #f8f9ff 100%);
}
.dark-pattern {
  background-color: #001736;
  background-image: radial-gradient(rgba(149, 207, 238, .14) 1px, transparent 1px);
  background-size: 24px 24px;
}
.glass-card {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .6);
}

/* --- the tilted photo frame from the Stitch comps ------------------------ */
.frame-tilt { position: relative; }
.frame-tilt > img {
  position: relative; z-index: 1; display: block; width: 100%;
  border-radius: 1.5rem; transform: rotate(-1.4deg);
  box-shadow: 0 24px 60px rgba(0, 43, 91, .18);
}
.frame-tilt::before {
  content: ""; position: absolute; inset: -14px -14px 18px 18px;
  border-radius: 1.75rem; background: #dce9ff; transform: rotate(1.6deg);
}
@media (max-width: 767px) {
  .frame-tilt > img { transform: none; }
  .frame-tilt::before { inset: -8px; transform: none; }
}

/* --- link / button feel -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: .5rem; font-size: 14px; font-weight: 600; letter-spacing: .05em;
  padding: 14px 26px; transition: all 200ms cubic-bezier(.4, 0, .2, 1);
  white-space: nowrap;
}
.btn-primary { background: #001736; color: #fff; box-shadow: 0 4px 20px rgba(0, 43, 91, .18); }
.btn-primary:hover { background: #002b5b; transform: translateY(-2px); box-shadow: 0 10px 32px rgba(0, 43, 91, .22); }
.btn-ghost { background: #fff; color: #001736; border: 1px solid #c4c6d0; }
.btn-ghost:hover { background: #eff4ff; border-color: #006875; transform: translateY(-2px); }
.btn-cyan { background: #00e3fd; color: #00343b; }
.btn-cyan:hover { background: #9cf0ff; transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: #006875; }
.link-arrow .ic { transition: transform 200ms cubic-bezier(.4, 0, .2, 1); }
.link-arrow:hover .ic { transform: translateX(4px); }

/* --- cards --------------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid #dce9ff; border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 43, 91, .05);
  transition: transform 200ms cubic-bezier(.4, 0, .2, 1), box-shadow 200ms cubic-bezier(.4, 0, .2, 1), border-color 200ms;
}
.card-lift:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0, 43, 91, .12); border-color: #a9c7ff; }

.tile {
  width: 48px; height: 48px; border-radius: .75rem;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}

/* --- the eyebrow that opens every section -------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #006875;
}
.eyebrow::before {
  content: ""; width: 24px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #17A375, #00daf3);
}

/* --- product mock-ups ---------------------------------------------------- */
.mock {
  background: #fff; border: 1px solid #dce9ff; border-radius: 1rem; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 43, 91, .14);
}
.mock-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: #eff4ff; border-bottom: 1px solid #dce9ff;
  font-size: 12px; color: #43474f;
}
.mock-dot { width: 9px; height: 9px; border-radius: 999px; background: #c4c6d0; flex: none; }
.mock table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mock th {
  text-align: left; font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: #747780; font-weight: 700; padding: 10px 14px; border-bottom: 1px solid #e5eeff;
}
.mock td { padding: 11px 14px; border-bottom: 1px solid #f1f5ff; color: #0b1c30; }
.mock tr:last-child td { border-bottom: 0; }
.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
.pill-ok { background: #d7f7e6; color: #0B5B42; }
.pill-warn { background: #fdeacd; color: #8a5200; }
.pill-bad { background: #ffdad6; color: #93000a; }
.pill-info { background: #d3e4fe; color: #002b5b; }

/* the ShopLens paper receipt */
.receipt {
  background: #fff; border-radius: .75rem; padding: 20px 18px 26px;
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; color: #0b1c30;
  box-shadow: 0 24px 60px rgba(0, 43, 91, .2);
  --notch: radial-gradient(circle at 6px 0, transparent 6px, #fff 6.5px);
}
.receipt::after {
  content: ""; display: block; height: 10px; margin: 14px -18px -26px;
  background: repeating-linear-gradient(-45deg, #fff 0 8px, transparent 8px 16px);
}
.receipt-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }

/* --- accordion (plain <details>) ----------------------------------------- */
details.faq { border-bottom: 1px solid #dce9ff; }
details.faq > summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-size: 18px; font-weight: 600; color: #001736; line-height: 1.45;
}
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary::after {
  content: ""; position: absolute; right: 6px; top: 30px;
  width: 11px; height: 11px; border-right: 2px solid #006875; border-bottom: 2px solid #006875;
  transform: rotate(45deg); transition: transform 200ms cubic-bezier(.4, 0, .2, 1);
}
details.faq[open] > summary::after { transform: rotate(-135deg); top: 34px; }
details.faq > div { padding: 0 40px 24px 0; color: #43474f; line-height: 1.7; }

/* --- tabs ---------------------------------------------------------------- */
.tab {
  padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: #43474f; border: 1px solid transparent; transition: all 200ms cubic-bezier(.4, 0, .2, 1);
}
.tab:hover { background: #eff4ff; }
.tab[aria-selected="true"] { background: #001736; color: #fff; }

/* --- nav ----------------------------------------------------------------- */
.navlink {
  font-size: 14px; font-weight: 600; color: #43474f; padding: 6px 2px;
  border-bottom: 2px solid transparent; transition: all 200ms cubic-bezier(.4, 0, .2, 1);
}
.navlink:hover { color: #001736; }
.navlink[aria-current="page"] { color: #006875; border-bottom-color: #00daf3; }

#drawer { transition: transform 300ms cubic-bezier(.4, 0, .2, 1); }
#drawer[data-open="false"] { transform: translateX(-100%); }
#drawer[data-open="true"] { transform: translateX(0); }
#scrim { transition: opacity 300ms cubic-bezier(.4, 0, .2, 1); }

/* --- reveal on scroll ---------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.4, 0, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* --- footer -------------------------------------------------------------- */
.footlink { font-size: 14px; color: #a9c7ff; transition: color 200ms; }
.footlink:hover { color: #9cf0ff; }

/* --- print --------------------------------------------------------------- */
@media print {
  header, #drawer, #scrim, .no-print { display: none !important; }
  body { background: #fff; }
}

/* ==========================================================================
   VISUAL LAYER — depth, colour and motion.
   The base above is structure; everything below is what stops the page
   reading as one card repeated forty times.
   ========================================================================== */

/* --- aurora: soft colour bloom behind a section -------------------------- */
.aurora { position: relative; isolation: isolate; }
.aurora::before {
  content: ""; position: absolute; inset: -25% -15% auto -15%; height: 85%;
  z-index: -1; pointer-events: none; filter: blur(50px);
  background:
    radial-gradient(42% 55% at 16% 18%, rgba(0, 218, 243, .20), transparent 70%),
    radial-gradient(38% 48% at 80% 10%, rgba(23, 163, 117, .15), transparent 70%),
    radial-gradient(34% 44% at 52% 62%, rgba(240, 166, 58, .11), transparent 70%);
}
.aurora-dark::before {
  background:
    radial-gradient(44% 58% at 12% 14%, rgba(0, 218, 243, .24), transparent 70%),
    radial-gradient(40% 50% at 84% 8%, rgba(95, 232, 180, .15), transparent 70%),
    radial-gradient(38% 46% at 60% 70%, rgba(224, 123, 34, .13), transparent 70%);
}

/* --- grain: keeps large flat fields from looking like plastic ------------ */
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: .12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- gradient type ------------------------------------------------------- */
.grad-text {
  background: linear-gradient(104deg, #006875 0%, #17A375 52%, #E07B22 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-text-dark {
  background: linear-gradient(104deg, #9cf0ff 0%, #5FE8B4 55%, #FBD070 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* --- oversized numerals -------------------------------------------------- */
.numeral {
  font-family: "Bricolage Grotesque", Inter, system-ui, sans-serif;
  font-weight: 800; line-height: .82; letter-spacing: -.045em;
}

/* --- card variants ------------------------------------------------------- */
.card-dark {
  background: linear-gradient(158deg, #013567 0%, #001736 62%);
  border: 1px solid rgba(149, 207, 238, .18);
  color: #eaf1ff;
  box-shadow: 0 18px 48px rgba(0, 23, 54, .28);
}
.card-dark:hover { border-color: rgba(0, 218, 243, .45); }
.card-dark h3, .card-dark .numeral { color: #fff; }

.card-tint {
  background: linear-gradient(158deg, #eaf3ff 0%, #dceaff 100%);
  border: 1px solid #c7dcfb;
}

/* a 1px gradient hairline, drawn with a mask so the fill stays free */
.card-glow { position: relative; }
.card-glow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, #00daf3, #17A375 45%, transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude; pointer-events: none;
}

/* --- spotlight: cursor-tracked bloom, wired up in site.js ---------------- */
.spot { position: relative; overflow: hidden; }
.spot > * { position: relative; z-index: 1; }
.spot::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0;
  transition: opacity .35s cubic-bezier(.4, 0, .2, 1);
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 218, 243, .10), transparent 62%);
}
.spot:hover::after { opacity: 1; }
.card-dark.spot::after { background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 218, 243, .15), transparent 62%); }

/* --- image cards: photo, scrim, copy sitting on the photo ---------------- */
.img-card { position: relative; overflow: hidden; border-radius: 1rem; isolation: isolate; }
.img-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.4, 0, .2, 1);
}
.img-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0, 20, 46, .94) 4%, rgba(0, 20, 46, .55) 42%, rgba(0, 20, 46, .12) 78%);
}
.img-card:hover img { transform: scale(1.07); }
.img-card > .on-img { position: relative; z-index: 2; color: #fff; }

/* --- marquee ------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 3.5rem; width: max-content;
  animation: marq 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }

/* --- stepped rail for the process section -------------------------------- */
.rail { position: relative; }
.rail::before {
  content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 2px;
  background: linear-gradient(90deg, transparent, #00daf3 12%, #17A375 55%, #F0A63A 88%, transparent);
  opacity: .45;
}
@media (max-width: 1023px) { .rail::before { display: none; } }

/* --- section rule with a jewel ------------------------------------------- */
.rule {
  height: 1px; border: 0;
  background: linear-gradient(90deg, transparent, #c4c6d0 20%, #c4c6d0 80%, transparent);
}

/* --- a slightly livelier reveal ------------------------------------------ */
.reveal { transform: translateY(24px) scale(.995); }
.reveal.in { transform: none; }

/* --- pill on dark -------------------------------------------------------- */
.pill-dark { background: rgba(0, 218, 243, .16); color: #9cf0ff; }
.pill-amber { background: rgba(240, 166, 58, .18); color: #8a5200; }

/* --- ticker dot ---------------------------------------------------------- */
.tick-dot { width: 5px; height: 5px; border-radius: 999px; background: #00daf3; flex: none; }

/* --- quote cards: the questions a shop cannot answer --------------------- */
.quote-card { position: relative; overflow: hidden; }
.quote-card::before {
  content: "\201C"; position: absolute; right: 10px; top: -34px;
  font-family: "Bricolage Grotesque", Georgia, serif; font-size: 150px; line-height: 1;
  color: #dbe8ff; pointer-events: none; user-select: none;
}
.quote-card.on-dark::before { color: rgba(255, 255, 255, .10); }

/* --- numbered strip: the ten screens ------------------------------------- */
.strip-item {
  display: flex; align-items: baseline; gap: .75rem;
  padding: 16px 18px; border-radius: .75rem;
  background: #fff; border: 1px solid #dce9ff;
  transition: all 200ms cubic-bezier(.4, 0, .2, 1);
}
.strip-item:hover {
  border-color: #00daf3; transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 43, 91, .10);
}
.strip-item .n {
  font-family: "Bricolage Grotesque", Inter, sans-serif; font-weight: 800;
  font-size: 22px; line-height: 1; letter-spacing: -.03em; color: #a9c7ff;
  transition: color 200ms;
}
.strip-item:hover .n { color: #006875; }


/* ==========================================================================
   FIGURES — the money layer.
   Currency belongs in the column heading, not repeated in every cell, so the
   decimal points line up down the column and the eye can compare rows.
   ========================================================================== */

.num, .money {
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.money { text-align: right; white-space: nowrap; }

/* a bare currency tag for the odd figure that sits outside a table */
.cur {
  font-size: .78em; font-weight: 700; letter-spacing: .04em;
  color: #5b6068; margin-right: .3em;
}
.on-dark .cur, .card-dark .cur, .on-img .cur { color: #8fb0dd; }

/* --- mock tables, light -------------------------------------------------- */
.mock th.num, .mock td.num { text-align: right; font-variant-numeric: tabular-nums lining-nums; }
.mock th.mid, .mock td.mid { text-align: center; }
.mock td.num { font-weight: 600; }
.mock tbody tr { transition: background 160ms ease; }
.mock tbody tr:hover { background: #f6f9ff; }

/* --- mock tables, dark --------------------------------------------------- */
.mock-dark {
  border: 1px solid rgba(149, 207, 238, .14); border-radius: .75rem;
  overflow: hidden; background: rgba(255, 255, 255, .04);
}
.mock-dark .mock-bar {
  background: rgba(255, 255, 255, .05); border-bottom: 1px solid rgba(255, 255, 255, .09);
  color: #a9c7ff; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px;
}
.mock-dark table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mock-dark th {
  text-align: left; font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: #7f9fd0; font-weight: 700; padding: 9px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.mock-dark td { padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .06); color: #eaf1ff; }
.mock-dark tr:last-child td { border-bottom: 0; }
.mock-dark th.num, .mock-dark td.num { text-align: right; font-variant-numeric: tabular-nums lining-nums; }
.mock-dark td.num { font-weight: 600; }
.mock-dark tbody tr:hover { background: rgba(255, 255, 255, .03); }

/* --- a totals row, for anything that adds up ----------------------------- */
.mock tfoot td, .mock-dark tfoot td {
  font-weight: 700; border-top: 1px solid #c4c6d0; border-bottom: 0;
  background: #f3f7ff;
}
.mock-dark tfoot td { border-top: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); color: #fff; }

/* --- the receipt: two columns, amounts right ----------------------------- */
.receipt-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.receipt-row > span:last-child { font-variant-numeric: tabular-nums lining-nums; text-align: right; }

/* --- stat block: label over figure, used in the floating cards ----------- */
.stat-label {
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #5b6068;
}
.stat-figure {
  font-family: "Bricolage Grotesque", Inter, sans-serif; font-weight: 700;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums; color: #001736;
}
.stat-note { font-size: 11px; color: #5b6068; }
