/* TSM Business Solutions — tsmbusiness.com
   Brushed-steel greys and the logo's orange (#FF6600). Orange is used as a
   fill or on dark grounds; on white, text in orange uses --orange-text
   (4.8:1), since #FF6600 itself is only 2.9:1 on white. */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-700.woff2") format("woff2"); }

:root {
  --orange: #ff6600;
  --orange-hi: #ff8a3d;
  --orange-text: #c24e00;
  --orange-wash: #fff1e8;
  --ink: #16181b;
  --text: #22262b;
  --muted: #4c525a;
  --line: #dfe2e6;
  --steel-50: #f6f7f9;
  --steel-100: #eceef1;
  --steel-200: #dcdfe3;
  --steel-400: #9aa0a8;
  --steel-700: #2d3136;
  --steel-800: #1d2024;
  --steel-900: #111316;
  --on-dark: #eef0f3;
  --on-dark-muted: #b4b9c0;
  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -20px rgba(17, 19, 22, .28), 0 2px 6px rgba(17, 19, 22, .06);
  --shadow-sm: 0 8px 24px -12px rgba(17, 19, 22, .25);
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #9e3f00; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--orange);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px; line-height: 1; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  color: var(--ink);
  background: linear-gradient(180deg, var(--orange-hi), var(--orange));
  border-color: #e05a00;
  box-shadow: 0 10px 24px -10px rgba(255, 102, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-primary:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(255, 102, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-ghost { color: var(--ink); background: rgba(255, 255, 255, .7); border-color: var(--steel-200); backdrop-filter: blur(6px); }
.btn-ghost:hover { color: var(--ink); background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-light { color: var(--on-dark); background: transparent; border-color: rgba(238, 240, 243, .35); }
.btn-light:hover { color: #fff; border-color: rgba(238, 240, 243, .7); transform: translateY(-2px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(17, 19, 22, .35); }
.bar { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { height: 34px; width: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; font-weight: 700; font-size: 13px; letter-spacing: .22em; color: var(--steel-700); }
.brand-name span:last-child { font-weight: 600; font-size: 10.5px; letter-spacing: .3em; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 12px; border-radius: 10px; }
.nav a:not(.btn):hover { background: var(--steel-100); color: var(--ink); }
.nav .btn { padding: 11px 18px; font-size: 15px; margin-left: 8px; }

.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 14px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--steel-200); background: #fff;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 16px; height: 16px; }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-width: 170px; }
.lang li a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 9px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.lang li a:hover { background: var(--steel-100); }
.lang li a[aria-current="true"] { color: var(--orange-text); }
.lang li small { color: var(--muted); font-weight: 600; }

.menu-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(255, 102, 0, .16), transparent 60%),
    linear-gradient(180deg, #fbfbfc 0%, #f1f3f5 55%, #e8ebee 100%);
  padding: 84px 0 96px;
}
.hero::before { /* brushed steel grain */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0 2px, rgba(255, 255, 255, .55) 2px 3px, rgba(0, 0, 0, .018) 3px 5px);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.hero::after { /* moving sheen */
  content: ""; position: absolute; inset: -40% -60%; z-index: -1;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .75) 50%, transparent 58%);
  animation: sheen 9s var(--ease) infinite;
}
@keyframes sheen { 0% { transform: translateX(-35%); } 60%, 100% { transform: translateX(35%); } }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-700);
  padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--steel-200);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 102, 0, .18); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(255, 102, 0, 0); } }
.hero h1 { font-size: clamp(42px, 6vw, 74px); font-weight: 700; margin: 22px 0 22px; letter-spacing: -.035em; }
.accent { position: relative; z-index: 0; white-space: nowrap; color: var(--ink); }
.accent::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .2em; z-index: -1;
  background: linear-gradient(90deg, var(--orange), var(--orange-hi)); border-radius: 4px;
  transform-origin: left; animation: underline 1.1s .35s var(--ease) both;
}
@keyframes underline { from { transform: scaleX(0); } }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 36ch; }
.hero .lead { max-width: 33em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 38px; color: var(--muted); font-size: 14px; font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--steel-200); color: var(--steel-700); font-size: 14px; font-weight: 600; }
.chip svg { width: 16px; height: 16px; }

/* devices */
.devices { position: relative; height: 520px; }
.device {
  position: absolute; border-radius: 34px; padding: 12px;
  background: linear-gradient(145deg, #4a4e55, #1b1d21 45%, #3a3d43);
  box-shadow: 0 40px 80px -30px rgba(17, 19, 22, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.device .screen { position: relative; height: 100%; border-radius: 24px; overflow: hidden; background: #fff; }
.tablet { width: 470px; height: 340px; right: 0; top: 26px; border-radius: 28px; animation: float 8s ease-in-out infinite; }
.tablet .screen { border-radius: 18px; background: var(--steel-50); padding: 18px; display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.phone { width: 228px; height: 456px; left: 6px; bottom: 0; animation: float 7s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translateY(-14px); } }
.ui-side { background: var(--steel-800); border-radius: 12px; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.ui-side i { display: block; height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .16); }
.ui-side i:first-child { width: 60%; height: 12px; background: var(--orange); margin-bottom: 8px; }
.ui-main { display: grid; gap: 12px; grid-template-rows: auto 1fr; }
.ui-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ui-cards b { display: block; height: 58px; border-radius: 12px; background: #fff; border: 1px solid var(--line); position: relative; }
.ui-cards b::after { content: ""; position: absolute; left: 10px; top: 12px; width: 44%; height: 8px; border-radius: 4px; background: var(--steel-200); box-shadow: 0 16px 0 -1px var(--steel-700); }
.ui-chart { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; align-items: flex-end; gap: 9px; }
.ui-chart span:nth-child(1) { height: 34%; }
.ui-chart span:nth-child(2) { height: 52%; }
.ui-chart span:nth-child(3) { height: 44%; }
.ui-chart span:nth-child(4) { height: 66%; }
.ui-chart span:nth-child(5) { height: 58%; }
.ui-chart span:nth-child(6) { height: 80%; }
.ui-chart span:nth-child(7) { height: 70%; }
.ui-chart span:nth-child(8) { height: 92%; }
.ui-chart span:nth-child(9) { height: 84%; }
.ui-chart span { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--steel-400), var(--steel-700)); transform-origin: bottom; animation: grow 1.4s var(--ease) both; }
.ui-chart span:nth-child(3n) { background: linear-gradient(180deg, var(--orange-hi), var(--orange)); }
@keyframes grow { from { transform: scaleY(.1); } }
.phone .screen { padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; background: linear-gradient(180deg, #fff, var(--steel-50)); }
.ui-top { display: flex; justify-content: space-between; align-items: center; }
.ui-top i { width: 64px; height: 10px; border-radius: 5px; background: var(--steel-700); }
.ui-top em { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--orange-hi), var(--orange)); }
.ui-hero { height: 112px; border-radius: 16px; background: linear-gradient(135deg, var(--steel-800), var(--steel-700)); position: relative; overflow: hidden; }
.ui-hero svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ui-hero path { stroke: var(--orange); stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 320; animation: draw 2.4s .4s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 320; } }
.ui-row { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.ui-row b { width: 30px; height: 30px; border-radius: 9px; background: var(--orange-wash); border: 1px solid #ffd3b6; flex: none; }
.ui-row i { flex: 1; height: 8px; border-radius: 4px; background: var(--steel-200); box-shadow: 0 13px 0 -1px var(--steel-100); }
.badge-float {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .9); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 700; font-size: 14px; color: var(--ink);
  animation: float 6s ease-in-out infinite;
}
.badge-float svg { width: 22px; height: 22px; color: var(--orange); }
.badge-a { left: 250px; top: -30px; animation-delay: -2s; }
.badge-b { right: 18px; bottom: 34px; animation-delay: -4s; }

/* ---------- sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding: 112px 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-text); margin-bottom: 16px; }
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--orange); border-radius: 2px; }
.section h2 { font-size: clamp(32px, 4vw, 50px); margin-bottom: 18px; }
.section-head .lead { max-width: 640px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  position: relative; padding: 30px 26px 30px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(17, 19, 22, .04); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.feature::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--orange), var(--orange-hi)); transform: scaleX(.18); transform-origin: left; transition: transform .45s var(--ease); }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature:hover::before { transform: scaleX(1); }
.icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px; background: linear-gradient(145deg, var(--steel-700), var(--steel-900)); color: var(--orange); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15); }
.icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 21px; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 16px; }

.alt { background: linear-gradient(180deg, var(--steel-50), #fff); border-block: 1px solid var(--steel-100); }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project { border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.shot { position: relative; height: 230px; overflow: hidden; display: grid; place-items: end center; padding-top: 28px; background: linear-gradient(145deg, var(--steel-800), var(--steel-900)); }
.shot::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; top: -120px; right: -90px; background: radial-gradient(circle, var(--tint), transparent 65%); opacity: .55; }
.tint-teal { --tint: #00a99d; }
.tint-orange { --tint: #ff6600; }
.tint-blue { --tint: #2997ff; }
.mini { position: relative; width: 170px; height: 220px; border-radius: 26px 26px 0 0; padding: 10px 10px 0; background: linear-gradient(145deg, #50545b, #24272b); box-shadow: 0 -10px 40px -12px rgba(0, 0, 0, .6); transition: transform .45s var(--ease); }
.project:hover .mini { transform: translateY(-8px); }
.mini .screen { height: 100%; border-radius: 18px 18px 0 0; background: #fff; padding: 14px 12px; display: flex; flex-direction: column; gap: 9px; }
.mini .logo-chip { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; color: var(--ink); }
.mini .logo-chip b { width: 24px; height: 24px; border-radius: 8px; background: var(--tint); display: grid; place-items: center; color: #fff; font-size: 11px; }
.mini .tile { height: 46px; border-radius: 11px; background: color-mix(in srgb, var(--tint) 14%, #fff); border: 1px solid color-mix(in srgb, var(--tint) 35%, #fff); }
.mini .line { height: 7px; border-radius: 4px; background: var(--steel-200); }
.mini .line.short { width: 60%; }
.project-body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project h3 { font-size: 23px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--steel-100); color: var(--steel-700); }
.project p { color: var(--muted); font-size: 16px; }

.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 31px; height: 2px; background: var(--steel-200); }
.steps::after { content: ""; position: absolute; left: 6%; right: 6%; top: 31px; height: 2px; background: linear-gradient(90deg, var(--orange), var(--orange-hi)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); }
.steps.in::after, .no-js .steps::after { transform: scaleX(1); }
.step { position: relative; text-align: left; }
.step-num {
  position: relative; z-index: 1; width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 22px;
  font-weight: 700; font-size: 22px; color: var(--ink);
  background: linear-gradient(180deg, #fff, var(--steel-100)); border: 1px solid var(--steel-200); box-shadow: var(--shadow-sm);
}
.step:hover .step-num { background: linear-gradient(180deg, var(--orange-hi), var(--orange)); border-color: #e05a00; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }

.contact {
  position: relative; overflow: hidden; isolation: isolate; color: var(--on-dark);
  background:
    radial-gradient(800px 420px at 90% 10%, rgba(255, 102, 0, .28), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(255, 255, 255, .06), transparent 60%),
    linear-gradient(160deg, #24272c, var(--steel-900) 60%);
}
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; background: repeating-linear-gradient(90deg, transparent 0 3px, rgba(255, 255, 255, .025) 3px 4px); }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.contact .kicker { color: var(--orange-hi); }
.contact h2 { color: #fff; font-size: clamp(36px, 5vw, 60px); margin-bottom: 18px; }
.contact .lead { color: var(--on-dark-muted); max-width: 30em; }
.contact .actions { margin-top: 34px; }
.contact-card { border-radius: var(--radius-lg); padding: 30px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(8px); }
.contact-card img { height: 54px; width: auto; margin-bottom: 22px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; color: var(--orange-hi); flex: none; margin-top: 2px; }
.contact-list a { color: #fff; text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--orange-hi); }
.contact-list span { color: var(--on-dark-muted); font-size: 15.5px; }

/* ---------- footer ---------- */
.site-footer { background: #0d0f11; color: var(--on-dark-muted); font-size: 15px; padding: 64px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1.2fr .8fr .8fr; gap: 40px; }
.site-footer h2 { color: #fff; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer p { margin-bottom: 6px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--orange-hi); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer h2.foot-gap { margin-top: 28px; }
.foot-brand img { height: 44px; width: auto; margin-bottom: 18px; }
.foot-company strong { color: #fff; font-weight: 600; }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 14px; }

/* ---------- legal pages ---------- */
.legal-hero { background: linear-gradient(180deg, #fbfbfc, var(--steel-100)); border-bottom: 1px solid var(--steel-100); padding: 64px 0 44px; }
.legal-hero h1 { font-size: clamp(32px, 4.4vw, 50px); margin: 16px 0 12px; }
.legal-hero p { color: var(--muted); }
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 56px; padding: 56px 0 96px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 14.5px; }
.toc h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--orange-text); text-decoration: underline; }
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin: 44px 0 14px; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 26px 0 10px; }
.prose p, .prose li { color: var(--text); }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 22px; margin: 12px 0; display: grid; gap: 8px; }
.prose strong { color: var(--ink); }
.callout { margin: 22px 0; padding: 18px 20px; border-radius: var(--radius); background: var(--orange-wash); border: 1px solid #ffd3b6; }
.callout p { color: #4a2a12; }
.steps-list { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-list li { counter-increment: s; position: relative; padding-left: 52px; min-height: 36px; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; background: linear-gradient(180deg, var(--orange-hi), var(--orange)); color: var(--ink); }
.ui-label { font-weight: 700; color: var(--ink); background: var(--steel-100); border: 1px solid var(--steel-200); padding: 1px 7px; border-radius: 7px; white-space: nowrap; }
.back { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.back svg { width: 18px; height: 18px; flex: none; }

/* ---------- reveal on scroll (only with JavaScript) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .08s; }
.js .reveal-d2 { transition-delay: .16s; }
.js .reveal-d3 { transition-delay: .24s; }
.js .reveal-d4 { transition-delay: .32s; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .devices { height: 470px; max-width: 560px; margin: 8px auto 0; width: 100%; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps::before, .steps::after { left: 30px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
  .steps::after { transform: scaleY(0); transform-origin: top; }
  .steps.in::after, .no-js .steps::after { transform: scaleY(1); }
  .step { display: grid; grid-template-columns: 62px 1fr; gap: 0 20px; }
  .step-num { margin-bottom: 0; grid-row: span 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .legal-layout { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--steel-50); }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .menu-toggle summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--steel-200); background: #fff; }
  .menu-toggle summary::-webkit-details-marker { display: none; }
  .menu-toggle summary svg { width: 22px; height: 22px; }
  .nav { display: none; position: absolute; left: 16px; right: 16px; top: 76px; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
  .menu-toggle[open] + .nav, .nav:focus-within { display: flex; }
  .nav a:not(.btn) { padding: 13px 14px; font-size: 16px; }
  .nav .btn { margin: 6px 0 0; justify-content: center; }
  .brand-name { display: none; }
  .bar { gap: 10px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 52px 0 64px; }
  .hero h1 { font-size: 40px; }
  .devices { height: 400px; }
  .tablet { width: 300px; height: 230px; right: -8px; top: 0; padding: 9px; }
  .tablet .screen { grid-template-columns: 70px 1fr; padding: 10px; gap: 10px; }
  .ui-cards b { height: 40px; }
  .phone { width: 176px; height: 352px; left: 0; padding: 9px; }
  .phone .screen { padding: 12px 10px; }
  .ui-hero { height: 80px; }
  .badge-a { left: 150px; top: 250px; }
  .badge-b { display: none; }
  .section { padding: 76px 0; }
  .section-head { margin-bottom: 36px; }
  .features, .projects { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
