/* ==========================================================================
   Joshua Dearden App Development — stylesheet
   Palette: midnight base, signal blue for actions, violet for highlights.
   Type: Schibsted Grotesk (display) + IBM Plex Sans (text) + IBM Plex Mono (code only).
   ========================================================================== */

:root {
  --night: #0B1226;
  --deep: #101934;
  --panel: #16213F;
  --panel-2: #1C2849;
  --line: #27335A;
  --line-soft: #1E2A4C;
  --wire: #3B4874;
  --text: #E9ECF8;
  --muted: #9BA5C6;
  --faint: #6F7AA0;
  --blue: #5B95FF;
  --blue-strong: #2E68EE;
  --blue-hover: #3F78F7;
  --violet: #A285FF;
  --violet-deep: #6A4BEB;
  --ok: #57D3A0;
  --danger: #FF8A8A;

  --font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-text: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --font-code: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 8vw, 7rem);
  --header-h: 72px;

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #8DB4FF; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--violet-deep); color: #fff; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--blue-strong); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; color: #fff; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section--raised { background: var(--deep); border-block: 1px solid var(--line-soft); }

.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(1.9rem, 2.2vw + 1.1rem, 2.75rem); }
.section-head p { color: var(--muted); font-size: 1.125rem; margin: 0; }
.section-head--split {
  max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.section-head--split > div { max-width: 640px; }
.section-head--split > div > :last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.35rem;
  border-radius: 10px; border: 1px solid transparent;
  font-family: var(--font-text); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--blue-strong); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); color: #fff; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: #fff; }
.btn--violet { background: var(--violet-deep); color: #fff; }
.btn--violet:hover { background: #7A5DF2; color: #fff; }
.btn--sm { min-height: 40px; padding: .5rem 1rem; font-size: .9375rem; border-radius: 9px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .65; cursor: progress; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 38, .88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand__sub { font-size: .8rem; color: var(--muted); }

.nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.nav__link {
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: .975rem;
  padding: .5rem .8rem; border-radius: 8px;
}
.nav__link:hover { color: var(--text); background: var(--panel); }
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after {
  content: ""; display: block; height: 2px; margin-top: 4px; background: var(--blue); border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-phone { color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; display: inline-flex; align-items: center; gap: .45rem; }
.header-phone svg { width: 16px; height: 16px; color: var(--blue); }
.header-phone:hover { color: #fff; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--line); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 960px) {
  .header-phone { display: none; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--deep); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.25rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: .9rem .25rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; font-size: 1.05rem; }
  .nav__link:hover { background: transparent; }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--blue); }
  .header-actions { display: none; }
  .nav .nav__cta { display: flex; margin-top: 1rem; }
}
.nav__cta { display: none; }

/* ---------- Mobile contact bar ---------- */
.contact-bar { display: none; }
@media (max-width: 820px) {
  .contact-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom, 0px));
    background: rgba(16, 25, 52, .96); border-top: 1px solid var(--line);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .contact-bar .btn { min-height: 46px; }
  body { padding-bottom: 76px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__title {
  font-size: clamp(2.6rem, 4.6vw + 1rem, 4.75rem);
  font-weight: 800; line-height: 1.0; letter-spacing: -0.035em;
  margin-bottom: .45em; max-width: 12ch;
}
.hero__slogan { font-family: var(--font-display); font-size: clamp(1.2rem, .8vw + 1rem, 1.5rem); font-weight: 600; color: var(--violet); margin-bottom: .9rem; letter-spacing: -0.01em; }
.hero__lead { color: var(--muted); font-size: 1.15rem; max-width: 34em; margin-bottom: 2rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2rem; color: var(--muted); font-size: .95rem; list-style: none; }
.hero__meta li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__meta svg { width: 18px; height: 18px; color: var(--ok); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stage-wrap { max-width: 560px; }
}

/* Device composition */
.hero__stage-wrap { position: relative; width: 100%; }
.hero__stage-wrap::before {
  content: ""; position: absolute; inset: 8% -6% 0 4%; z-index: 0;
  background: radial-gradient(55% 55% at 62% 42%, rgba(91, 149, 255, .26), transparent 70%),
              radial-gradient(45% 50% at 28% 72%, rgba(162, 133, 255, .24), transparent 70%);
  filter: blur(8px);
}
.stage { position: relative; z-index: 1; aspect-ratio: 10 / 8.4; }

.laptop { position: absolute; top: 2%; right: 0; width: 86%; }
.laptop__screen {
  aspect-ratio: 16 / 10.2;
  background: #0C1430;
  border: 10px solid #1B2547; border-bottom-width: 14px;
  border-radius: 16px 16px 6px 6px;
  box-shadow: 0 0 0 1px #2C3A66;
  padding: 7% 7%;
  overflow: hidden;
  font-family: var(--font-code); font-size: clamp(.6rem, .55vw + .32rem, .82rem); line-height: 1.75;
  color: #8E99C0;
}
.laptop__base {
  height: 14px; margin-inline: -7%;
  background: linear-gradient(#2B3760, #18223F);
  border-radius: 2px 2px 14px 14px;
  box-shadow: 0 18px 30px -12px rgba(0,0,0,.6);
}
.code-line { white-space: pre; }
.code-line .k { color: var(--violet); }
.code-line .t { color: #7FB0FF; }
.code-line .s { color: #C7B8FF; }
.code-line .c { color: #56618A; }
.code-tabs { display: flex; gap: .4rem; margin-bottom: 1.1em; }
.code-tabs span { width: 9px; height: 9px; border-radius: 50%; background: #2A3762; }

.phone {
  position: absolute; left: 0; bottom: 0; width: 39%;
  aspect-ratio: 9 / 18.6;
  background: #0E1735;
  border: 7px solid #1E2950;
  border-radius: 34px;
  box-shadow: 0 0 0 1px #33427A, 0 40px 60px -24px rgba(0,0,0,.75);
  overflow: hidden;
  padding: 11% 8% 8%;
  display: flex; flex-direction: column; gap: 6%;
  font-size: clamp(.5rem, .45vw + .28rem, .72rem);
}
.phone::before {
  content: ""; position: absolute; top: 3.2%; left: 50%; transform: translateX(-50%);
  width: 32%; height: 3.4%; border-radius: 99px; background: #070C1E;
}
.ui { border-radius: 8px; }
.ui-title { font-family: var(--font-display); font-weight: 700; font-size: 1.45em; color: var(--text); line-height: 1.15; }
.ui-sub { color: var(--muted); font-size: .95em; margin-top: .2em; }
.ui-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5%; }
.ui-day { background: var(--panel-2); color: var(--muted); text-align: center; padding: 22% 0 18%; border-radius: 9px; line-height: 1.3; font-size: .9em; }
.ui-day b { display: block; color: var(--text); font-size: 1.2em; }
.ui-day.is-on { background: var(--blue-strong); color: #DCE6FF; }
.ui-day.is-on b { color: #fff; }
.ui-label { color: var(--faint); font-size: .9em; }
.ui-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 6%; }
.ui-slot { background: var(--panel-2); color: var(--text); text-align: center; padding: 11% 0; border-radius: 9px; }
.ui-slot.is-on { background: rgba(162,133,255,.18); color: #E4DBFF; box-shadow: inset 0 0 0 1.5px var(--violet); }
.ui-cta { margin-top: auto; background: var(--violet-deep); color: #fff; text-align: center; padding: 9% 0; border-radius: 11px; font-weight: 600; }

.stage-status {
  position: absolute; z-index: 2; left: 30%; bottom: -2%;
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--text); font-size: .875rem; font-weight: 500;
  padding: .55rem .9rem; border-radius: 999px;
  box-shadow: 0 14px 30px -14px rgba(0,0,0,.7);
}
.stage-status svg { width: 18px; height: 18px; color: var(--ok); }

/* The one orchestrated moment: the app screen goes from wireframe to finished UI. */
@keyframes sketch-to-ship {
  0%, 35% { background-color: transparent; color: transparent; box-shadow: inset 0 0 0 1.5px var(--wire); }
  100% { }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes text-in {
  0%, 35% { color: transparent; }
  100% { }
}
@media (prefers-reduced-motion: no-preference) {
  .phone .ui { animation: sketch-to-ship 1.1s ease-out both; animation-delay: var(--d, 0s); }
  .phone .ui b { animation: text-in 1.1s ease-out both; animation-delay: var(--d, 0s); }
  .stage-status { animation: rise-in .5s ease-out 2.6s both; }
}

/* ---------- Intro ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.intro h2 { font-size: clamp(1.9rem, 2.2vw + 1.1rem, 2.75rem); max-width: 14ch; }
.intro__text p { color: var(--muted); font-size: 1.125rem; }
.intro__text p:first-child { color: var(--text); }
.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-top: 2rem; list-style: none; }
.platforms li {
  display: flex; flex-direction: column; gap: .6rem;
  padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--deep);
  font-weight: 500; font-size: .95rem;
}
.platforms svg { width: 26px; height: 26px; color: var(--blue); }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .platforms { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Advantages (divided list, not a card kit) ---------- */
.advantages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); list-style: none; }
.advantage { padding: 2rem 2rem 2rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; gap: 1.1rem; }
.advantage:nth-child(even) { padding-left: 2rem; padding-right: 0; border-left: 1px solid var(--line); }
.advantage__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(91,149,255,.12); color: var(--blue); }
.advantage:nth-child(2) .advantage__icon, .advantage:nth-child(3) .advantage__icon { background: rgba(162,133,255,.14); color: var(--violet); }
.advantage__icon svg { width: 22px; height: 22px; }
.advantage h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.advantage p { color: var(--muted); margin: 0; }
@media (max-width: 760px) {
  .advantages { grid-template-columns: 1fr; }
  .advantage, .advantage:nth-child(even) { padding: 1.6rem 0; border-left: 0; }
}

/* ---------- Service cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1.25rem; }
.svc-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .svc-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .svc-grid--four { grid-template-columns: 1fr; } }

.svc-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--deep); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; color: var(--text); text-decoration: none;
  transition: border-color .15s ease;
}
.svc-card:hover { border-color: #3D5196; color: var(--text); }
.svc-card:hover .svc-card__cta { color: #8DB4FF; }
.svc-card__visual { aspect-ratio: 16 / 9; position: relative; background: var(--panel); border-bottom: 1px solid var(--line); }
.svc-card__visual img { width: 100%; height: 100%; object-fit: cover; }
.svc-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.25rem 1.35rem; }
.svc-card__cat { color: var(--violet); font-size: .875rem; font-weight: 500; margin-bottom: .4rem; }
.svc-card__name { font-size: 1.2rem; line-height: 1.2; margin-bottom: .5rem; }
.svc-card__desc { color: var(--muted); font-size: .95rem; margin-bottom: 1.25rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.svc-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); }
.svc-card__price { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
.svc-card__price small { font-family: var(--font-text); font-size: .8rem; color: var(--muted); font-weight: 400; margin-left: .2rem; }
.svc-card__cta { color: var(--blue); font-weight: 600; font-size: .95rem; }

/* Fallback tile when a Stripe product has no image */
.tile {
  position: absolute; inset: 0; display: grid; place-items: center;
  background-color: var(--panel);
  background-image: radial-gradient(rgba(155,165,198,.16) 1px, transparent 1px);
  background-size: 18px 18px;
}
.tile__icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--night); border: 1px solid var(--line); color: var(--blue); }
.tile__icon svg { width: 30px; height: 30px; }
.tile--violet .tile__icon { color: var(--violet); }
.tile--lg .tile__icon { width: 104px; height: 104px; border-radius: 28px; }
.tile--lg .tile__icon svg { width: 48px; height: 48px; }

/* Skeletons */
.skeleton { pointer-events: none; }
.skeleton .svc-card__visual, .sk-line { background: var(--panel); }
.sk-line { height: 12px; border-radius: 6px; margin-bottom: .7rem; }
.sk-line--sm { width: 35%; }
.sk-line--lg { height: 20px; width: 80%; margin-bottom: 1rem; }
.sk-line--md { width: 92%; }
.sk-line--price { width: 30%; height: 22px; margin: 0; }
@keyframes sk-pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: no-preference) {
  .skeleton .svc-card__visual, .skeleton .sk-line, .sk-block { animation: sk-pulse 1.4s ease-in-out infinite; }
}
.sk-block { background: var(--panel); border-radius: 14px; }

/* Status / empty / error states */
.state {
  grid-column: 1 / -1; border: 1px dashed var(--line); border-radius: 14px;
  padding: 2.5rem; text-align: left; background: var(--deep);
}
.state h3 { font-size: 1.3rem; }
.state p { color: var(--muted); max-width: 52ch; }
.state--error { border-color: rgba(255,138,138,.45); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; list-style: none; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 22px; left: 22px; right: calc(25% - 1.125rem - 22px); height: 1px; background: var(--line); }
.step { position: relative; counter-increment: step; }
.step__num {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--night); border: 1px solid var(--blue); color: var(--text);
  font-family: var(--font-display); font-weight: 700; margin-bottom: 1.25rem; position: relative;
}
.section--raised .step__num { background: var(--deep); }
.step:last-child .step__num { border-color: var(--violet); }
.step h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.step p { color: var(--muted); margin: 0; font-size: .98rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2.25rem; }
  .steps::before { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); list-style: none; }
.quote { margin: 0; height: 100%; border-top: 2px solid var(--violet-deep); padding-top: 1.5rem; display: flex; flex-direction: column; }
.quotes li:nth-child(2) .quote { border-top-color: var(--blue-strong); }
.quote blockquote { margin: 0 0 1.5rem; font-size: 1.08rem; line-height: 1.6; color: var(--text); }
.quote figcaption { margin-top: auto; font-size: .95rem; color: var(--muted); }
.quote figcaption strong { display: block; color: var(--text); font-weight: 600; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; max-width: 640px; } }

/* ---------- CTA banner ---------- */
.cta {
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 2rem; align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: 20px; border: 1px solid #34407A;
  background-color: var(--panel);
  background-image: linear-gradient(rgba(91,149,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(91,149,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.cta h2 { font-size: clamp(1.8rem, 2vw + 1rem, 2.5rem); margin-bottom: .4em; }
.cta p { color: var(--muted); font-size: 1.1rem; margin: 0; max-width: 46ch; }
.cta .btn-row { justify-content: flex-end; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } .cta .btn-row { justify-content: flex-start; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line-soft); }
.page-head h1 { font-size: clamp(2.3rem, 3.4vw + 1rem, 3.75rem); font-weight: 800; letter-spacing: -0.03em; max-width: 18ch; }
.page-head p { color: var(--muted); font-size: 1.15rem; max-width: 46em; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .9rem; color: var(--faint); margin-bottom: 1.25rem; list-style: none; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }

/* ---------- Services page toolbar ---------- */
.toolbar { display: grid; gap: 1.25rem; margin-bottom: 2rem; }
.toolbar__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.25rem; border-top: 1px solid var(--line-soft); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  padding: .5rem 1rem; border-radius: 999px; cursor: pointer; font-size: .95rem; font-weight: 500;
  min-height: 40px;
}
.chip:hover { color: var(--text); border-color: #3D5196; }
.chip[aria-pressed="true"] { background: var(--blue-strong); border-color: var(--blue-strong); color: #fff; }
.chip__count { opacity: .7; margin-left: .3rem; font-weight: 400; }
.sort { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .95rem; }
.select, .input, .textarea {
  background: var(--deep); border: 1px solid var(--line); border-radius: 10px;
  padding: .7rem .9rem; min-height: 46px; width: 100%; color: var(--text);
}
.select { width: auto; padding-right: 2.2rem; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239BA5C6' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; }
.select:focus, .input:focus, .textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.results-count { color: var(--faint); font-size: .95rem; margin: 0; }

/* ---------- Product page ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.product__media { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.product__visual { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.product__visual img { width: 100%; height: 100%; object-fit: cover; }
.product__thumbs { display: flex; gap: .6rem; margin-top: .75rem; }
.product__thumb { width: 72px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); padding: 0; cursor: pointer; }
.product__thumb[aria-pressed="true"] { border-color: var(--blue); }
.product__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product__cat { color: var(--violet); font-weight: 500; margin-bottom: .6rem; }
.product__cat a { color: inherit; text-decoration: none; }
.product__cat a:hover { color: #C4B2FF; text-decoration: underline; }
.page-head--crumbs { border-bottom: 0; padding-bottom: 0; }
.section--after-crumbs { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.product__title { font-size: clamp(2rem, 2.4vw + 1rem, 3rem); font-weight: 800; letter-spacing: -0.03em; }
.product__desc { color: var(--muted); font-size: 1.1rem; }
.product__desc p:first-child { color: var(--text); }
.buy-box { margin: 2rem 0; padding: 1.5rem; border: 1px solid var(--line); border-radius: 16px; background: var(--deep); }
.buy-box__price { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin-bottom: .35rem; }
.buy-box__amount { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; letter-spacing: -0.02em; line-height: 1; }
.buy-box__unit { color: var(--muted); }
.buy-box__note { color: var(--muted); font-size: .95rem; margin-bottom: 1.25rem; }
.buy-box .btn-row .btn { flex: 1 1 200px; }
.buy-box__secure { display: flex; align-items: center; gap: .5rem; color: var(--faint); font-size: .875rem; margin: 1rem 0 0; }
.buy-box__secure svg { width: 16px; height: 16px; }
.form-error { color: var(--danger); font-size: .95rem; margin: .75rem 0 0; }

.feature-list { list-style: none; display: grid; gap: .7rem; margin: 0 0 2rem; }
.feature-list li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; align-items: start; }
.feature-list svg { width: 20px; height: 20px; color: var(--ok); margin-top: 3px; }
.sub-h { font-size: 1.15rem; margin: 2rem 0 1rem; }
.after-pay { list-style: none; counter-reset: ap; display: grid; gap: 1rem; }
.after-pay li { counter-increment: ap; display: grid; grid-template-columns: 32px 1fr; gap: .8rem; color: var(--muted); }
.after-pay li::before {
  content: counter(ap); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: .9rem;
}
.after-pay strong { color: var(--text); display: block; font-weight: 600; }
.product-skel .sk-block { width: 100%; }
@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; }
  .product__media { position: static; }
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.about-grid .prose p { color: var(--muted); }
.about-grid .prose p:first-child { color: var(--text); font-size: 1.2rem; }
.fact-panel { border: 1px solid var(--line); border-radius: 16px; background: var(--deep); padding: 1.75rem; }
.fact-panel h2 { font-size: 1.3rem; }
.fact-list { list-style: none; display: grid; gap: 0; }
.fact-list li { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--line-soft); }
.fact-list li:first-child { border-top: 0; }
.fact-list dt, .fact-list .k { color: var(--faint); font-size: .95rem; }
.cap-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; list-style: none; }
.cap-list li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; padding: .9rem 0; border-top: 1px solid var(--line-soft); }
.cap-list svg { width: 20px; height: 20px; color: var(--blue); margin-top: 3px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .cap-list { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-cards { display: grid; gap: .9rem; }
.contact-card {
  display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: center;
  padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: var(--deep);
  color: var(--text); text-decoration: none;
}
a.contact-card:hover { border-color: var(--blue); color: var(--text); }
.contact-card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(91,149,255,.12); color: var(--blue); }
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card small { display: block; color: var(--faint); font-size: .85rem; }
.contact-card span { font-weight: 600; word-break: break-word; }
.contact-note { color: var(--muted); font-size: .95rem; margin-top: 1.5rem; }

.form { border: 1px solid var(--line); border-radius: 18px; background: var(--deep); padding: clamp(1.5rem, 3vw, 2.25rem); }
.form h2 { font-size: 1.5rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 500; font-size: .95rem; margin-bottom: .4rem; }
.field label .opt { color: var(--faint); font-weight: 400; }
.textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.form .select { width: 100%; }
.form__legal { color: var(--faint); font-size: .875rem; margin: 1rem 0 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { border: 1px solid rgba(87,211,160,.45); border-radius: 14px; padding: 1.5rem; background: rgba(87,211,160,.06); }
.form-success h3 { font-size: 1.25rem; }
.form-success p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; background: var(--deep); }
.faq-aside h2 { font-size: 1.25rem; }
.faq-aside p { color: var(--muted); font-size: .98rem; }
.faq-group + .faq-group { margin-top: 3rem; }
.faq-group h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 0; font-weight: 600; font-size: 1.075rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: #fff; }
.faq-item__icon { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; flex: none; transition: transform .2s ease, border-color .2s ease; }
.faq-item__icon svg { width: 14px; height: 14px; }
.faq-item[open] .faq-item__icon { transform: rotate(45deg); border-color: var(--blue); color: var(--blue); }
.faq-item__body { color: var(--muted); padding: 0 2.5rem 1.4rem 0; }
.faq-item__body p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } .faq-aside { position: static; order: 2; } }

/* ---------- Legal / prose ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.45rem; margin-top: 2.5rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.75rem; }
.prose p, .prose li { color: #C6CCE3; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1em; }
.prose li { margin-bottom: .45rem; }
.prose strong { color: var(--text); }
.legal-meta { color: var(--faint); font-size: .95rem; margin-bottom: 2rem; }
.legal-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.legal-nav a { font-size: .9rem; text-decoration: none; padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.legal-nav a:hover, .legal-nav a[aria-current="page"] { color: var(--text); border-color: var(--blue); }

/* ---------- Result pages (success / cancel / 404) ---------- */
.result { max-width: 640px; padding-block: clamp(4rem, 9vw, 7rem); }
.result__icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 1.75rem; }
.result__icon svg { width: 32px; height: 32px; }
.result__icon--ok { background: rgba(87,211,160,.12); color: var(--ok); }
.result__icon--neutral { background: rgba(162,133,255,.14); color: var(--violet); }
.result h1 { font-size: clamp(2.2rem, 3vw + 1rem, 3.25rem); font-weight: 800; letter-spacing: -0.03em; }
.result p { color: var(--muted); font-size: 1.1rem; }
.result .btn-row { margin-top: 2rem; }
.ref { display: inline-block; font-family: var(--font-code); font-size: .85rem; color: var(--muted); background: var(--deep); border: 1px solid var(--line); border-radius: 8px; padding: .3rem .6rem; word-break: break-all; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); background: #091024; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer-brand p { color: var(--muted); font-size: .95rem; max-width: 34ch; margin-top: 1rem; }
.footer-col h2 { font-family: var(--font-text); font-size: .95rem; font-weight: 600; color: var(--text); letter-spacing: 0; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: .55rem; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.footer-col a:hover { color: var(--text); }
.footer-col address { font-style: normal; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: .875rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- Small-screen refinements ---------- */
@media (max-width: 640px) {
  .chips {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: .25rem;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .phone { width: 46%; }
  .laptop { width: 84%; }
  .stage-status { left: 22%; font-size: .8rem; }
  .hero .btn-row .btn { flex: 1 1 100%; }
}
.form .input, .form .select, .form .textarea { background-color: var(--night); }
