/* ==========================================================
   Purelio — "Sky & Sun" theme
   Ink navy + electric blue + sky mist, with a sun-yellow accent
   Font: Onest (Google Fonts)
   ========================================================== */

:root {
  --ink: #0b1531;
  --ink-2: #1b2850;
  --muted: #5a6685;
  --blue: #2f5bff;
  --blue-2: #5b86ff;
  --sky: #9fc1ff;
  --mist: #e9f0ff;
  --cream: #fbf8f1;
  --paper: #ffffff;
  --sun: #ffc93c;
  --sun-2: #ffe08a;
  --line: rgba(11, 21, 49, .1);

  --r-sm: 14px;
  --r-md: 24px;
  --r-lg: 36px;
  --r-xl: 52px;

  --shadow-card: 0 1px 0 rgba(255,255,255,.8) inset, 0 20px 50px -24px rgba(21, 44, 120, .35);
  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; letter-spacing: -.03em; font-weight: 700; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 241, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 6px 16px -6px rgba(47, 91, 255, .6); }
.nav__links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block; padding: 9px 16px; border-radius: 999px; text-decoration: none;
  font-size: 15px; font-weight: 500; color: var(--ink-2); transition: background .2s, color .2s;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { background: var(--ink); color: #fff; }
.nav__toggle, .nav__burger { display: none; }

@media (max-width: 760px) {
  .nav__burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; align-items: center; cursor: pointer; border-radius: 12px;
  }
  .nav__burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; gap: 2px;
    padding: 12px var(--pad) 20px; background: var(--cream); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s;
  }
  .nav__links a { padding: 14px 16px; font-size: 18px; }
  .nav__toggle:checked ~ .nav__links { transform: none; opacity: 1; visibility: visible; }
  .nav__toggle:checked + .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle:checked + .nav__burger span:nth-child(2) { opacity: 0; }
  .nav__toggle:checked + .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 0; text-align: center; }
.hero__pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  box-shadow: 0 8px 24px -14px rgba(21,44,120,.4);
}
.hero__pill img { width: 28px; height: 28px; border-radius: 8px; }
.hero h1 {
  margin: 26px auto 0; max-width: 17ch;
  font-size: clamp(3rem, 9.6vw, 7.2rem); font-weight: 800; letter-spacing: -.055em; line-height: .92;
}
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::after {
  content: ""; position: absolute; left: -.06em; right: -.06em; bottom: .04em; height: .34em;
  background: var(--sun); z-index: -1; border-radius: .12em; transform: rotate(-1.2deg);
  transform-origin: left; animation: swipe 1s .4s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes swipe { from { transform: rotate(-1.2deg) scaleX(0); } to { transform: rotate(-1.2deg) scaleX(1); } }
.hero__sub { margin: 28px auto 0; max-width: 46ch; font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); }

.sky {
  position: relative; margin: clamp(40px, 6vw, 72px) auto 0;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(255,255,255,.55), transparent 70%),
    linear-gradient(180deg, #4f86ff 0%, #8db6ff 55%, #cfe0ff 100%);
  height: clamp(400px, 52vw, 600px); overflow: hidden;
}
.sky__cloud { position: absolute; background: #fff; border-radius: 999px; filter: blur(2px); opacity: .85; }
.sky__cloud::before, .sky__cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.c1 { width: 200px; height: 54px; left: 6%; top: 18%; animation: drift 14s ease-in-out infinite alternate; }
.c1::before { width: 90px; height: 90px; left: 30px; top: -44px; }
.c1::after { width: 64px; height: 64px; left: 100px; top: -26px; }
.c2 { width: 150px; height: 42px; right: 8%; top: 30%; animation: drift 11s ease-in-out infinite alternate-reverse; }
.c2::before { width: 70px; height: 70px; left: 24px; top: -34px; }
.c2::after { width: 50px; height: 50px; left: 76px; top: -20px; }
@keyframes drift { to { transform: translateX(34px); } }

.fan { position: absolute; left: 50%; bottom: 0; width: 0; height: 100%; }
.fan img {
  max-width: none; position: absolute; top: 30%; width: clamp(150px, 22vw, 270px);
  filter: drop-shadow(0 30px 40px rgba(10, 30, 110, .38));
  transform-origin: 50% 0;
}
.fan .f-c { left: 0; transform: translateX(-50%); width: clamp(180px, 29vw, 360px); z-index: 3; top: 12%; animation: rise 1s .15s cubic-bezier(.2,.8,.2,1) both; }
.fan .f-l { left: 0; transform: translateX(-150%) rotate(-9deg); z-index: 2; animation: riseL 1s .3s cubic-bezier(.2,.8,.2,1) both; }
.fan .f-r { left: 0; transform: translateX(50%) rotate(9deg); z-index: 2; animation: riseR 1s .3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise  { from { opacity: 0; transform: translate(-50%, 18%); } }
@keyframes riseL { from { opacity: 0; transform: translateX(-150%) translateY(22%) rotate(-9deg); } }
@keyframes riseR { from { opacity: 0; transform: translateX(50%) translateY(22%) rotate(9deg); } }

.chip {
  position: absolute; z-index: 5; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  padding: 10px 16px 10px 10px; border-radius: 18px; font-size: 14px; font-weight: 600; color: var(--ink);
  box-shadow: 0 18px 34px -16px rgba(10, 30, 110, .5);
  animation: bob 5s ease-in-out infinite;
}
.chip i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--blue); color: #fff; font-style: normal; font-size: 15px; }
.chip small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; line-height: 1.2; }
.chip--a { left: 6%; top: 46%; }
.chip--b { right: 5%; top: 22%; animation-delay: -2s; }
.chip--b i { background: var(--sun); color: var(--ink); }
.chip--c { right: 10%; bottom: 14%; animation-delay: -3.4s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

@media (max-width: 760px) {
  .chip--a { left: 3%; top: 12%; }
  .chip--b { display: none; }
  .chip--c { display: none; }
  .fan .f-l { transform: translateX(-138%) rotate(-9deg); }
  .fan .f-r { transform: translateX(38%) rotate(9deg); }
}

/* ---------- Section primitives ---------- */
section { position: relative; }
.sec { padding: clamp(72px, 11vw, 140px) 0; }
.sec__head { max-width: 760px; }
.sec__head h2 { margin-top: 16px; font-size: clamp(2.2rem, 5.5vw, 4.2rem); letter-spacing: -.045em; }
.sec__head p { margin-top: 18px; color: var(--muted); font-size: 1.1rem; max-width: 52ch; }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Screens strip ---------- */
.strip { background: var(--ink); color: #fff; border-radius: var(--r-xl); margin-inline: clamp(0px, 1.5vw, 20px); overflow: hidden; }
.strip .sec__head p { color: #aab6d8; }
.strip .eyebrow { color: var(--sun); }
.strip__rail {
  display: flex; gap: clamp(18px, 3vw, 36px); align-items: flex-start;
  overflow-x: auto; padding: 56px var(--pad) 70px; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--blue) transparent;
  -webkit-overflow-scrolling: touch;
}
.strip__rail::-webkit-scrollbar { height: 6px; }
.strip__rail::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 6px; }
.shot { flex: 0 0 auto; width: clamp(210px, 24vw, 280px); scroll-snap-align: center; margin: 0; }
.shot:nth-child(even) { margin-top: 56px; }
.shot img { width: 100%; filter: drop-shadow(0 28px 34px rgba(0, 0, 0, .55)); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.shot:hover img { transform: translateY(-10px) rotate(-1.5deg); }
.shot figcaption { margin-top: 22px; display: flex; gap: 12px; align-items: baseline; font-size: 15px; color: #cdd6f0; }
.shot figcaption b { color: var(--sun); font-weight: 700; font-size: 13px; letter-spacing: .08em; }
.strip__hint { padding: 0 var(--pad) 36px; color: #7f8cb3; font-size: 14px; }
@media (min-width: 1280px) { .strip__hint { display: none; } }

/* ---------- Bento features ---------- */
.bento { margin-top: 56px; display: grid; gap: 18px; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(210px, auto); }
.tile {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 28px;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.tile:hover { transform: translateY(-6px); }
.tile h3 { font-size: 1.5rem; letter-spacing: -.03em; }
.tile p { color: var(--muted); font-size: 1rem; max-width: 36ch; }
.tile .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--mist); color: var(--blue); margin-bottom: auto; }
.tile .ic svg { width: 26px; height: 26px; }
.t1 { grid-column: span 4; grid-row: span 2; background: linear-gradient(160deg, #3d6bff, #7aa6ff); color: #fff; border: 0; }
.t1 p { color: rgba(255,255,255,.85); }
.t1 .ic { background: rgba(255,255,255,.2); color: #fff; }
.t1 h3 { font-size: clamp(2rem, 4vw, 3rem); }
.t1 .ring { position: absolute; right: -40px; top: -40px; width: 340px; height: 340px; }
.t2 { grid-column: span 2; }
.t3 { grid-column: span 2; }
.t4 { grid-column: span 3; background: var(--sun); border: 0; }
.t4 .ic { background: rgba(11,21,49,.1); color: var(--ink); }
.t4 p { color: rgba(11,21,49,.72); }
.t5 { grid-column: span 3; background: var(--ink); color: #fff; border: 0; }
.t5 p { color: #aab6d8; }
.t5 .ic { background: rgba(255,255,255,.12); color: var(--sun); }
.t6 { grid-column: span 6; flex-direction: row; align-items: flex-end; flex-wrap: wrap; gap: 20px 40px; background: var(--mist); border: 0; }
.t6 .ic { margin: 0; }
.t6 .tx { flex: 1 1 320px; display: grid; gap: 8px; }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .t1, .t6 { grid-column: span 2; }
  .t1 { grid-row: auto; min-height: 340px; }
  .t2, .t3, .t4, .t5 { grid-column: span 1; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .t1, .t2, .t3, .t4, .t5, .t6 { grid-column: auto; }
  .t6 { flex-direction: column; align-items: flex-start; }
}

/* ---------- Sticky showcase ---------- */
.show { padding-top: 0; }
.show__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: start; margin-top: 40px; }
.show__steps { padding-bottom: 18vh; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .5s; }
.step.on { opacity: 1; }
.step__n { font-size: clamp(5rem, 12vw, 9rem); font-weight: 800; letter-spacing: -.07em; line-height: .85; color: transparent; -webkit-text-stroke: 2px var(--blue); }
.step h3 { margin-top: 18px; font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.step p { margin-top: 16px; color: var(--muted); max-width: 40ch; font-size: 1.1rem; }
.step ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.step li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.step li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1531' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }

.show__stage { position: sticky; top: 90px; height: calc(100vh - 120px); max-height: 760px; display: grid; place-items: center; }
.stage__bg {
  position: absolute; inset: 4% 4%; border-radius: var(--r-xl);
  background: linear-gradient(170deg, #cfe0ff, #eaf1ff 60%, #fff3cc); overflow: hidden;
}
.stage__bg::before { content: ""; position: absolute; width: 46%; aspect-ratio: 1; right: -8%; top: -8%; border-radius: 50%; background: var(--sun); opacity: .75; filter: blur(2px); }
.stage__phones { position: relative; height: 92%; aspect-ratio: 1482 / 3034; }
.stage__phones img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 30px 40px rgba(20, 50, 140, .35));
  opacity: 0; transform: translateY(40px) scale(.96) rotate(2deg);
  transition: opacity .6s, transform .8s cubic-bezier(.2,.8,.2,1);
}
.stage__phones img.on { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .show__grid { grid-template-columns: 1fr; gap: 0; }
  .show__stage { display: none; }
  .step { min-height: 0; opacity: 1; padding: 40px 0; border-top: 1px solid var(--line); }
  .step__mobile { display: block !important; }
  .show__steps { padding-bottom: 0; }
}
.step__mobile { display: none; margin: 28px auto 0; width: min(260px, 70%); filter: drop-shadow(0 24px 30px rgba(20, 50, 140, .3)); }

/* ---------- Secret space ---------- */
.secret { background: linear-gradient(180deg, #0b1531 0%, #172a66 100%); color: #fff; border-radius: var(--r-xl); margin-inline: clamp(0px, 1.5vw, 20px); overflow: hidden; }
.secret__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(20px, 5vw, 70px); align-items: center; }
.secret h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -.05em; margin-top: 16px; }
.secret p { margin-top: 22px; color: #b9c5e8; max-width: 44ch; font-size: 1.1rem; }
.secret .eyebrow { color: var(--sun); }
.pin { display: flex; gap: 12px; margin-top: 34px; }
.pin span { width: 18px; height: 18px; border-radius: 50%; background: var(--blue-2); animation: pulse 2.4s ease-in-out infinite; }
.pin span:nth-child(2) { animation-delay: .15s; } .pin span:nth-child(3) { animation-delay: .3s; } .pin span:nth-child(4) { animation-delay: .45s; } .pin span:nth-child(5) { animation-delay: .6s; }
@keyframes pulse { 50% { background: var(--sun); transform: scale(1.25); } }
.secret__img { position: relative; }
.secret__img::before { content: ""; position: absolute; inset: 8% 0 0 8%; border-radius: 50%; background: radial-gradient(circle, rgba(91,134,255,.55), transparent 65%); }
.secret__img img { position: relative; width: 100%; max-width: 520px; margin-inline: auto; filter: drop-shadow(0 30px 50px rgba(0,0,0,.5)); }
@media (max-width: 860px) { .secret__in { grid-template-columns: 1fr; } }

/* ---------- Trust ---------- */
.trust { padding: clamp(60px, 9vw, 110px) 0; }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.num { padding: 30px 24px 10px 0; border-right: 1px solid var(--line); }
.num + .num { padding-left: 24px; }
.num:last-child { border-right: 0; }
.num b { display: block; font-size: clamp(3rem, 7vw, 5.6rem); font-weight: 800; letter-spacing: -.06em; line-height: .95; }
.num b em { font-style: normal; color: var(--blue); }
.num span { display: block; margin-top: 12px; color: var(--muted); font-size: 1rem; max-width: 20ch; }
.trust__note { margin-top: 28px; font-size: 13px; color: var(--muted); }
@media (max-width: 860px) {
  .nums { grid-template-columns: 1fr 1fr; }
  .num { border-right: 0; padding: 26px 16px 18px 0; border-bottom: 1px solid var(--line); }
  .num + .num { padding-left: 0; }
  .num:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
}

/* ---------- Final ---------- */
.final { padding: clamp(60px, 9vw, 120px) 0 0; text-align: center; overflow: hidden; }
.final__icon { width: 96px; height: 96px; margin: 0 auto 30px; border-radius: 26px; box-shadow: 0 24px 40px -16px rgba(47,91,255,.7); animation: bob 5s ease-in-out infinite; }
.final h2 { max-width: 15ch; margin-inline: auto; font-size: clamp(2.8rem, 9vw, 7rem); font-weight: 800; letter-spacing: -.055em; line-height: .95; }
.final h2 .hl::after { animation: none; }
.final p { margin: 26px auto 0; color: var(--muted); max-width: 44ch; font-size: 1.15rem; }
.marq { margin-top: 70px; border-block: 2px solid var(--ink); background: var(--sun); overflow: hidden; white-space: nowrap; }
.marq__t { display: inline-flex; animation: marq 28s linear infinite; }
.marq span { padding: 16px 28px; font-size: clamp(1.1rem, 2.6vw, 1.7rem); font-weight: 700; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 56px; }
.marq span::after { content: "✦"; color: var(--blue); font-size: .8em; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: #c3ccea; padding: 64px 0 36px; font-size: 15px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.foot .brand { color: #fff; }
.foot h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; margin-bottom: 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { text-decoration: none; transition: color .2s; }
.foot a:hover { color: var(--sun); }
.foot__about { margin-top: 18px; max-width: 34ch; color: #8f9bc2; }
.foot address { font-style: normal; display: grid; gap: 8px; }
.foot__bar { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: #7f8cb3; font-size: 14px; }
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Sub pages ---------- */
.page-hero { padding: clamp(56px, 8vw, 110px) 0 clamp(30px, 5vw, 56px); }
.page-hero h1 { font-size: clamp(2.8rem, 8vw, 6rem); font-weight: 800; letter-spacing: -.055em; margin-top: 18px; }
.page-hero p { margin-top: 18px; color: var(--muted); font-size: 1.1rem; }
.doc { display: grid; grid-template-columns: 240px 1fr; gap: clamp(30px, 6vw, 80px); padding-bottom: clamp(70px, 10vw, 130px); align-items: start; }
.toc { position: sticky; top: 92px; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); }
.toc h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: flex; gap: 10px; padding: 6px 8px; text-decoration: none; font-size: 14.5px; border-radius: 8px; color: var(--ink-2); line-height: 1.35; }
.toc a::before { content: counter(t, decimal-leading-zero); color: var(--blue); font-weight: 600; font-size: 12.5px; padding-top: 2px; }
.toc a:hover { background: var(--mist); }
.prose { max-width: 740px; counter-reset: s; }
.prose section { padding: 0 0 38px; scroll-margin-top: 92px; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.03em; margin-bottom: 14px; counter-increment: s; display: flex; gap: 14px; align-items: baseline; }
.prose h2::before { content: counter(s, decimal-leading-zero); font-size: .55em; color: var(--blue); font-weight: 700; letter-spacing: 0; }
.prose p, .prose li { color: #323e60; }
.prose p + p { margin-top: 12px; }
.prose ul { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.prose a { color: var(--blue); text-underline-offset: 3px; }
.callout { margin-top: 14px; padding: 18px 20px; border-radius: var(--r-sm); background: #fff6d6; border: 1px solid #f3dc8c; color: var(--ink); font-size: 15.5px; }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; } .toc { position: static; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px); padding-bottom: clamp(70px, 10vw, 130px); align-items: start; }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-card); display: grid; gap: 20px; }
.form label { display: grid; gap: 8px; font-weight: 600; font-size: 14.5px; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--ink); width: 100%;
  padding: 14px 16px; border-radius: 14px; border: 1.5px solid #d6deef; background: var(--cream);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,91,255,.15); background: #fff; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.btn {
  font: inherit; font-weight: 600; font-size: 17px; cursor: pointer; border: 0; color: #fff;
  background: var(--blue); padding: 16px 28px; border-radius: 999px; display: inline-flex; justify-content: center; gap: 10px; align-items: center;
  box-shadow: 0 16px 30px -14px rgba(47,91,255,.8); transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); background: #1f47e0; }
.form__ok { display: none; padding: 14px 16px; border-radius: 14px; background: #e3f8ea; color: #145a2c; font-size: 15px; }
.form__ok.show { display: block; }
.form small { color: var(--muted); font-weight: 400; }
.cards { display: grid; gap: 16px; }
.cc { padding: 24px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); display: grid; gap: 6px; }
.cc .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--mist); color: var(--blue); margin-bottom: 8px; }
.cc .ic svg { width: 22px; height: 22px; }
.cc h3 { font-size: 1.15rem; letter-spacing: -.02em; }
.cc p, .cc a { color: var(--muted); word-break: break-word; }
.cc a { color: var(--blue); text-underline-offset: 3px; }
.cc--sun { background: var(--sun); border: 0; }
.cc--sun .ic { background: rgba(11,21,49,.1); color: var(--ink); }
.cc--sun p { color: rgba(11,21,49,.75); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
.prose ul + p, .prose p + ul { margin-top: 12px; }
