/* =========================================================================
   saleswift studio showcase  ·  Blue and white theme
   Design system + page styles. OKLCH throughout. Schibsted Grotesk + JetBrains Mono.
   ========================================================================= */

:root {
  /* ---- saleswift shell palette (blue & white) ---- */
  --bg:        oklch(0.992 0.004 255);   /* near-white, faint cool */
  --bg-tint:   oklch(0.965 0.018 255);   /* light blue wash panel  */
  --surface:   #ffffff;
  --ink:       oklch(0.26 0.045 264);    /* deep blue-ink text     */
  --ink-soft:  oklch(0.40 0.045 264);
  --muted:     oklch(0.52 0.035 264);    /* secondary text (AA on white) */
  --line:      oklch(0.26 0.045 264 / 0.13);
  --line-soft: oklch(0.26 0.045 264 / 0.07);

  --blue:      oklch(0.505 0.158 264);   /* saleswift primary ~ #2c52b8 */
  --blue-bright: oklch(0.605 0.175 262); /* brighter accent / glow      */
  --blue-deep: oklch(0.385 0.135 265);   /* navy-blue                   */
  --blue-wash: oklch(0.95 0.03 258);     /* faint blue surface          */
  --on-blue:   #ffffff;
  --live:      oklch(0.70 0.16 150);     /* online-green status dot      */

  /* ---- type ---- */
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* ---- shape / depth ---- */
  --r-sm: 10px;  --r-md: 16px;  --r-lg: 24px;  --r-xl: 30px;  --r-pill: 999px;
  --shadow-sm: 0 2px 10px oklch(0.26 0.045 264 / 0.07);
  --shadow-md: 0 18px 44px oklch(0.26 0.045 264 / 0.12);
  --shadow-lg: 0 40px 90px oklch(0.26 0.07 264 / 0.20);
  --shadow-blue: 0 16px 40px oklch(0.505 0.158 264 / 0.30);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --z-nav: 100;
  --shell: 1200px;
}

/* ============================== reset ============================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; }

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--blue); color: #fff;
  padding: 10px 16px; border-radius: var(--r-sm);
  z-index: 200; transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ============================== layout ============================== */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }
section { position: relative; }

/* ============================== type ============================== */
h1, h2, h3, h4 { line-height: 1.05; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
.accent-text { color: var(--blue); }

/* ============================== chip ============================== */
.chip {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.03em;
  padding: 0.5em 0.95em; border-radius: var(--r-pill);
  border: 1px solid var(--line); color: var(--ink-soft);
  background: var(--surface); white-space: nowrap;
}
.chip__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--live); color: var(--live);
  box-shadow: 0 0 0 0 currentColor; animation: pulse 2.4s var(--ease) infinite;
}
.chip--offline { color: #1c7a45; border-color: rgba(16,150,80,.32); background: rgba(16,150,80,.08); }
.chip--offline .chip__dot { background: #16a34a; color: #16a34a; }
.chip--retaily { color: #1d4ed8; border-color: rgba(37,99,235,.28); background: rgba(37,99,235,.07); }
.chip--retaily .chip__dot { background: #2563EB; color: #2563EB; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 currentColor; }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ============================== buttons ============================== */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em;
  padding: 0.7em 1.25em; border-radius: var(--r-pill);
  border: 1px solid transparent; background: var(--btn-bg); color: var(--btn-fg);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 0.92em 1.6em; font-size: 1.02rem; }

.btn--blue { --btn-bg: var(--blue); --btn-fg: #fff; box-shadow: var(--shadow-blue); }
.btn--blue:hover { background: var(--blue-bright); box-shadow: 0 22px 50px oklch(0.505 0.158 264 / 0.42); }

/* ghost on light backgrounds */
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--blue-wash); border-color: var(--blue); color: var(--blue-deep); }

/* on a blue field */
.btn--on-blue { --btn-bg: #fff; --btn-fg: var(--blue-deep); box-shadow: 0 14px 34px oklch(0.30 0.10 264 / 0.35); }
.btn--on-blue:hover { --btn-bg: #eef2ff; }
.btn--ghost-light { --btn-bg: oklch(1 0 0 / 0.08); --btn-fg: #fff; border-color: oklch(1 0 0 / 0.4); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { background: oklch(1 0 0 / 0.16); }

/* product-branded */
.btn--resty { --btn-bg: #0F2D5C; --btn-fg: #fff; box-shadow: 0 12px 30px rgba(15,45,92,.28); }
.btn--resty:hover { --btn-bg: #1A4080; }
.btn--retaily { --btn-bg: #0F2D5C; --btn-fg: #fff; box-shadow: 0 12px 30px rgba(15,45,92,.28); }
.btn--retaily:hover { --btn-bg: #1A4080; }

.tag {
  display: inline-block; font-family: var(--mono); font-size: 0.76rem;
  padding: 0.4em 0.8em; border-radius: var(--r-pill); border: 1px solid currentColor; opacity: 0.9;
}

/* ============================== reveal ============================== */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ============================== NAV ============================== */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease), box-shadow .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: oklch(0.992 0.004 255 / 0.78);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 0.45em; font-weight: 800; letter-spacing: -0.035em; font-size: 1.2rem; color: var(--ink); }
.brand__mark { display: inline-flex; }
.brand__word { line-height: 1; }

.nav__links { margin-left: auto; display: flex; gap: clamp(14px, 2.4vw, 30px); font-weight: 500; font-size: 0.96rem; }
.nav__links a { color: var(--muted); transition: color .2s var(--ease); }
.nav__links a:hover { color: var(--blue); }
.nav__cta { padding: 0.55em 1.1em; font-size: 0.9rem; }

@media (max-width: 720px) { .nav__links { display: none; } .nav__inner { gap: 12px; } }

/* ============================== HERO (light) ============================== */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-top: clamp(40px, 8vh, 90px);
  padding-bottom: clamp(56px, 9vh, 120px);
  background: var(--bg);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__glow {
  position: absolute; left: 50%; top: -22%;
  width: min(1150px, 130vw); aspect-ratio: 1.5/1; transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 50% 40%, oklch(0.605 0.175 262 / 0.20), transparent 60%),
    radial-gradient(ellipse at 70% 10%, oklch(0.70 0.14 250 / 0.14), transparent 55%);
  filter: blur(4px);
}
.hero__grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 78% 68% at 50% 24%, #000 28%, transparent 74%);
}
.hero__inner { position: relative; max-width: 980px; }
.hero__title {
  font-size: clamp(1.95rem, 8vw, 5.6rem); font-weight: 800;
  letter-spacing: -0.038em; line-height: 0.99; margin-bottom: 26px;
  overflow-wrap: break-word;
}
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.34rem); color: var(--muted); max-width: 58ch; line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
@media (max-width: 600px) { .hero__br { display: none; } }

/* signal motif (light card) */
.signal {
  margin-top: clamp(40px, 7vh, 72px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(16px, 2.4vw, 26px);
  box-shadow: var(--shadow-md);
}
.signal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.signal__legend { display: flex; gap: 18px; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.signal__key { display: inline-flex; align-items: center; gap: 0.5em; }
.signal__key::before { content: ""; width: 14px; height: 2px; border-radius: 2px; }
.signal__key--grid::before { background: var(--muted); opacity: .55; }
.signal__key--app::before { background: var(--blue); }
.signal__svg { display: block; width: 100%; height: clamp(96px, 16vw, 130px); overflow: visible; }
.signal__grid { fill: none; stroke: var(--muted); stroke-width: 2; opacity: .4; stroke-dasharray: 5 5; stroke-linejoin: round; stroke-linecap: round; }
.signal__app {
  fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round;
  filter: drop-shadow(0 3px 8px oklch(0.505 0.158 264 / 0.4));
  stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.2s var(--ease) .3s forwards;
}
.signal__app-area { opacity: 0; animation: fadein 1.4s var(--ease) 1.6s forwards; }
.signal__label { fill: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; opacity: .8; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .signal__app { animation: none; stroke-dashoffset: 0; }
  .signal__app-area { animation: none; opacity: 1; }
  .chip__dot { animation: none; }
}
/* recolor the app-area gradient stops via fill defined inline (uses var) */
.signal__app-area { fill: url(#appfill); }

/* ============================== THROUGHLINE ============================== */
.throughline { padding-block: clamp(72px, 12vh, 140px); }
.throughline__inner { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .throughline__inner { grid-template-columns: 0.85fr 1.15fr; align-items: start; } }
.throughline__lead h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; }
.throughline__lead p { margin-top: 20px; color: var(--muted); font-size: 1.1rem; max-width: 40ch; }

.pillars { display: grid; gap: clamp(22px, 3vw, 34px); grid-template-columns: 1fr; }
@media (min-width: 560px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { padding-top: 24px; border-top: 2px solid var(--blue); }
.pillar__h { display: flex; align-items: center; gap: 10px; font-size: 1.18rem; font-weight: 700; margin-bottom: 12px; }
.pillar__ico { display: inline-flex; color: var(--blue); flex: none; }
.pillar p { color: var(--muted); font-size: 0.98rem; }

/* ============================== PRODUCTS (shared) ============================== */
.product { position: relative; isolation: isolate; overflow: hidden; background: var(--p-bg); color: var(--p-ink); padding-block: clamp(72px, 12vh, 150px); }
/* texture + glow layer, unique per product so the two panels read as separate worlds */
.product::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.product + .product { border-top: 1px solid rgba(13,27,62,.10); }
.product__inner { display: grid; gap: clamp(40px, 6vw, 80px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 940px) {
  .product__inner { grid-template-columns: 1.04fr 0.96fr; }
  .product__inner--rev .product__copy { order: 2; }
  .product__inner--rev .product__art  { order: 1; }
}
.product__brandline { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.product__logo--resty { filter: drop-shadow(0 4px 10px rgba(13,27,62,.18)); }
.product__wordmark { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.product__logo--retaily { width: clamp(92px, 13vw, 116px); height: auto; }
.product__type {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.45em 0.85em; border-radius: var(--r-pill); border: 1px solid var(--p-line); color: var(--p-muted);
}
.product__title { font-size: clamp(2.3rem, 5.2vw, 3.7rem); font-weight: 800; letter-spacing: -0.035em; }
.product__lead { margin-top: 20px; color: var(--p-muted); font-size: 1.12rem; max-width: 50ch; line-height: 1.6; }

.features { margin-top: 32px; display: grid; gap: 0; }
.features li { display: grid; grid-template-columns: minmax(140px, 0.5fr) 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--p-line); align-items: baseline; }
.features li:last-child { border-bottom: 1px solid var(--p-line); }
.features__k { font-weight: 600; font-size: 1rem; color: var(--p-ink); }
.features__v { color: var(--p-muted); font-size: 0.97rem; }
@media (max-width: 480px) { .features li { grid-template-columns: 1fr; gap: 4px; } }

.product__price { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.product__price-fig { font-family: var(--mono); font-size: 1.8rem; font-weight: 600; letter-spacing: -0.02em; }
.product__price-unit { color: var(--p-muted); font-size: 1rem; }
.product__price-note { flex-basis: 100%; color: var(--p-muted); font-size: 0.9rem; font-family: var(--mono); }

.product__chips { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; color: var(--p-accent); }
.product .btn--lg { margin-top: 36px; }
.product__more { margin-top: 18px; }
.product__more a { color: var(--p-accent); font-weight: 600; font-size: 0.98rem; transition: opacity .2s var(--ease); }
.product__more a:hover { opacity: .72; }

/* ---- Resty world (navy on light blue, soft dot-grid) ---- */
.product--resty { --p-bg: #EBF1FB; --p-ink: #0D1B3E; --p-muted: #4d5d79; --p-line: #d3ddf0; --p-accent: #1d4ed8; }
.product--resty::before {
  background-image:
    radial-gradient(60% 55% at 16% 8%, rgba(37,99,235,.13), transparent 60%),
    radial-gradient(rgba(13,27,62,.06) 1.1px, transparent 1.4px);
  background-size: auto, 22px 22px;
  background-position: 0 0, 0 0;
  mask-image: radial-gradient(120% 100% at 30% 0%, #000 55%, transparent 100%);
}

/* ---- Retaily world (deeper navy-blue field, diagonal weave) ---- */
.product--retaily { --p-bg: #DEE8F6; --p-ink: #0D1B3E; --p-muted: #45587a; --p-line: #c8d6ee; --p-accent: #1d4ed8; }
.product--retaily::before {
  background-image:
    radial-gradient(55% 55% at 88% 96%, rgba(37,99,235,.16), transparent 60%),
    repeating-linear-gradient(45deg, rgba(13,27,62,.045) 0 1px, transparent 1px 13px);
  mask-image: radial-gradient(130% 110% at 80% 100%, #000 55%, transparent 100%);
}

/* ============================== DEVICE: Resty tablet ============================== */
.product__art { display: flex; justify-content: center; perspective: 1400px; }
.device { width: 100%; }
.device--tablet.resty-pos {
  max-width: 540px; background: #fff; border: 1px solid #cdd9ef;
  border-radius: 22px; padding: 14px; box-shadow: var(--shadow-lg);
}
.resty-pos__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 6px 14px; }
.resty-pos__brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #0D1B3E; letter-spacing: -0.02em; }
.resty-pos__body { display: grid; grid-template-columns: 1.35fr 0.9fr; gap: 12px; }
@media (max-width: 420px) { .resty-pos__body { grid-template-columns: 1fr; } }
.resty-pos__order { background: #F6F9FE; border: 1px solid #e6edf8; border-radius: 16px; padding: 16px; }
.resty-pos__order-head { display: flex; justify-content: space-between; font-size: 0.86rem; color: #51607a; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid #e6edf8; }
.ticket li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 0.92rem; color: #0D1B3E; }
.ticket li .mono { color: #0D1B3E; }
.ticket__mod { color: #7585a0 !important; font-size: 0.8rem !important; padding-top: 0 !important; }
.ticket__total { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 12px; border-top: 1px solid #e0e7f3; font-weight: 700; color: #0D1B3E; }
.ticket__total .mono { font-size: 1.1rem; }
.resty-pos__send { margin-top: 16px; width: 100%; background: #2563EB; color: #fff; font-weight: 700; border: none; border-radius: var(--r-pill); padding: 0.85em; box-shadow: 0 10px 22px rgba(37,99,235,.30); }
.resty-pos__side { display: flex; flex-direction: column; gap: 10px; }
.resty-pos__stat { background: #F6F9FE; border: 1px solid #e6edf8; border-radius: 14px; padding: 12px 14px; }
.resty-pos__stat-k { display: block; font-size: 0.72rem; color: #7585a0; text-transform: uppercase; letter-spacing: .1em; font-family: var(--mono); }
.resty-pos__stat-v { display: block; font-size: 1.3rem; font-weight: 600; color: #0D1B3E; margin-top: 4px; }
.resty-pos__kds { background: #F6F9FE; border: 1px solid #e6edf8; border-radius: 14px; padding: 12px 14px; margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.resty-pos__kds-title { font-size: 0.72rem; color: #7585a0; text-transform: uppercase; letter-spacing: .1em; font-family: var(--mono); }
.resty-pos__kds-row { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: #314058; }
.resty-pos__kds-row em { margin-left: auto; font-style: normal; color: #0D1B3E; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot--grill { background: #f59e0b; }
.dot--bar { background: #5fcf80; }
.dot--pass { background: #60a5fa; }

/* ============================== DEVICE: Retaily phone ============================== */
.device--phone.retaily-pos {
  max-width: 320px; background: #fff; border: 1px solid #cdd9ef;
  border-radius: 38px; padding: 14px 14px 18px; box-shadow: var(--shadow-lg); position: relative;
}
.retaily-pos__notch { width: 120px; height: 26px; background: #0F2D5C; border-radius: 0 0 16px 16px; margin: -14px auto 14px; }
.retaily-pos__bar { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 14px; }
.retaily-pos__brand { font-weight: 800; font-size: 1.15rem; color: #0D1B3E; letter-spacing: -0.02em; }
.retaily-pos__loyalty { display: flex; align-items: center; gap: 10px; background: linear-gradient(110deg, #0F2D5C, #2563EB); color: #fff; border-radius: 14px; padding: 12px 14px; }
.retaily-pos__tier { font-family: var(--mono); font-weight: 600; font-size: 0.72rem; letter-spacing: .14em; background: rgba(255,255,255,.18); padding: 0.35em 0.7em; border-radius: var(--r-pill); }
.retaily-pos__cust { font-size: 0.85rem; }
.retaily-pos__cust .mono { color: #cfe0ff; }
.retaily-pos__cart { margin: 14px 0; display: flex; flex-direction: column; }
.retaily-pos__cart li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 9px 2px; border-bottom: 1px solid #eef2f9; font-size: 0.9rem; color: #0D1B3E; }
.retaily-pos__q { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; background: #EEF3FC; color: #2563EB; font-size: 0.78rem; font-weight: 600; }
.retaily-pos__totals { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; font-size: 0.88rem; color: #51607a; padding: 4px 2px 0; }
.retaily-pos__totals .mono { text-align: right; color: #0D1B3E; }
.retaily-pos__grand { font-weight: 800; color: #0D1B3E !important; font-size: 1.02rem; padding-top: 8px; border-top: 1px solid #eef2f9; margin-top: 4px; }
.retaily-pos__pay { margin-top: 16px; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #2563EB; color: #fff; font-weight: 700; font-size: 0.98rem; border: none; border-radius: 16px; padding: 1em; box-shadow: 0 12px 24px rgba(37,99,235,.32); }
.retaily-pos__pay-icon { display: inline-flex; }

/* ============================== APPROACH ============================== */
.approach { padding-block: clamp(72px, 12vh, 150px); }
.approach__head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.approach__head h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; }
.approach__head p { margin-top: 18px; color: var(--muted); font-size: 1.1rem; }
.approach__grid { display: grid; gap: clamp(16px, 2vw, 22px); grid-template-columns: 1fr; }
@media (min-width: 760px) { .approach__grid { grid-template-columns: repeat(2, 1fr); } }
.approach__item {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.approach__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue); }
@media (min-width: 760px) { .approach__item--wide { grid-column: span 2; } }
.approach__item h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 10px; }
.approach__item h3::before { content: ""; display: block; width: 34px; height: 3px; border-radius: 3px; background: var(--blue); margin-bottom: 16px; }
.approach__item p { color: var(--muted); font-size: 1.02rem; max-width: 62ch; }

/* ============================== CONTACT (blue field) ============================== */
.contact {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff; padding-block: clamp(80px, 14vh, 170px); overflow: hidden; isolation: isolate; text-align: center;
}
.contact__bg { position: absolute; inset: 0; z-index: -1; }
.contact__grid {
  position: absolute; inset: -2px;
  background-image: linear-gradient(oklch(1 0 0 / .08) 1px, transparent 1px), linear-gradient(90deg, oklch(1 0 0 / .08) 1px, transparent 1px);
  background-size: 58px 58px; mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000 30%, transparent 75%);
}
.contact__inner { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.contact h2 { font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -0.035em; }
.contact__hl { color: #cfe0ff; }
.contact p { color: oklch(0.93 0.03 258); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 48ch; }
.contact__actions { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.contact__links { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 0.92rem; color: oklch(0.9 0.04 258); }
.contact__links a { transition: color .2s var(--ease); }
.contact__links a:hover { color: #fff; }

/* ============================== FOOTER ============================== */
.footer { background: var(--blue-deep); color: oklch(0.86 0.04 258); padding-top: clamp(48px, 7vw, 76px); }
.footer__inner { display: grid; gap: 36px; grid-template-columns: 1fr; padding-bottom: 44px; }
@media (min-width: 720px) { .footer__inner { grid-template-columns: 1.6fr 1fr 1fr; } }
.brand--footer { color: #fff; }
.footer__brand p { margin-top: 14px; max-width: 30ch; font-size: 0.95rem; color: oklch(0.84 0.04 258); }
.footer__col h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .14em; color: #fff; font-family: var(--mono); font-weight: 500; margin-bottom: 16px; }
.footer__col a { display: block; padding: 6px 0; color: oklch(0.84 0.04 258); transition: color .2s var(--ease); font-size: 0.96rem; }
.footer__col a:hover { color: #fff; }
.footer__base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-block: 24px; margin-top: 8px; border-top: 1px solid oklch(1 0 0 / 0.14);
  font-family: var(--mono); font-size: 0.8rem; color: oklch(0.82 0.04 258);
}

/* ============================== PRODUCT SUBPAGES (resty / retaily) ============================== */
.crumbs { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: clamp(20px, 4vw, 34px); }
.crumbs a { color: var(--muted); transition: color .2s var(--ease); }
.crumbs a:hover { color: var(--blue); }
.crumbs span[aria-current] { color: var(--ink); }
.crumbs .sep { opacity: .5; }

.subhero { position: relative; isolation: isolate; overflow: hidden; padding-bottom: clamp(48px, 8vh, 96px); padding-top: clamp(24px, 4vh, 48px); }
.subhero__inner { max-width: 880px; }
.subhero__brandline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.subhero__logo { width: 48px; height: auto; }
.subhero__logo--retaily { width: 132px; }
.subhero h1 { font-size: clamp(2.1rem, 6.2vw, 4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.subhero__lead { margin-top: 22px; font-size: clamp(1.08rem, 2vw, 1.3rem); color: var(--muted); max-width: 60ch; line-height: 1.55; }
.subhero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.subhero__bg { position: absolute; inset: 0; z-index: -1; }
.subhero__bg--resty { background:
  radial-gradient(60% 60% at 18% 6%, rgba(37,99,235,.12), transparent 60%),
  radial-gradient(rgba(13,27,62,.05) 1.1px, transparent 1.4px) 0 0 / 24px 24px; }
.subhero__bg--retaily { background:
  radial-gradient(55% 60% at 86% 4%, rgba(37,99,235,.14), transparent 60%),
  repeating-linear-gradient(45deg, rgba(13,27,62,.04) 0 1px, transparent 1px 14px); }

.section { padding-block: clamp(56px, 9vh, 110px); }
.section--tint { background: var(--bg-tint); }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head h2 { font-size: clamp(1.8rem, 4.4vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em; }
.section__head p { margin-top: 16px; color: var(--muted); font-size: 1.08rem; }

.deep { display: grid; gap: clamp(16px, 2vw, 22px); grid-template-columns: 1fr; }
@media (min-width: 720px) { .deep { grid-template-columns: repeat(2, 1fr); } }
.deep__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-sm); }
.deep__item h3 { font-size: 1.22rem; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.deep__item h3 .pillar__ico { color: var(--blue); }
.deep__item p { color: var(--muted); font-size: 1rem; }

.prose { max-width: 70ch; }
.prose p { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }

/* native, JS-free FAQ accordion (FAQPage-friendly) */
.faq { max-width: 820px; display: grid; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px 20px; box-shadow: var(--shadow-sm); }
.faq__item summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 1.06rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-family: var(--mono); font-size: 1.4rem; color: var(--blue); transition: transform .25s var(--ease); line-height: 1; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--muted); font-size: 1rem; line-height: 1.6; padding: 0 0 20px; max-width: 68ch; }

.related { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .related { grid-template-columns: 1fr 1fr; } }
.related__card { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 30px); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.related__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue); }
.related__card h3 { font-size: 1.2rem; font-weight: 700; }
.related__card p { color: var(--muted); font-size: 0.98rem; }
.related__card .crumbs__go { margin-top: auto; color: var(--blue); font-weight: 600; font-size: 0.96rem; }

/* ============================== reduced motion ============================== */
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .approach__item:hover, .related__card:hover { transform: none; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
