/* =========================================================
   Lightwork — off-white, glass, motion
   Brand name lives in index.html (search "Lightwork").
   ========================================================= */

:root {
  --bg: #F3F1EC;
  --bg-2: #ECE9E2;
  --ink: #121210;
  --ink-2: #4A4843;
  --ink-3: #8A877F;
  --line: rgba(18, 18, 16, .10);
  --accent: #FF5A1F;
  --accent-soft: #FFE3D6;
  --ok: #1F9D6B;
  --warn: #D98A00;

  --glass-bg: rgba(255, 255, 255, .42);
  --glass-bg-strong: rgba(255, 255, 255, .62);
  --glass-border: rgba(255, 255, 255, .75);
  --glass-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 30px 80px -30px rgba(40, 32, 20, .22), 0 2px 6px rgba(40, 32, 20, .04);

  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --radius: 28px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--bg); }

em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Background ---------- */
.bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Glass ---------- */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: flex; flex-direction: column; justify-content: flex-end; padding: var(--gutter);
}
.loader__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.loader__brand { font-size: clamp(48px, 12vw, 180px); font-weight: 500; letter-spacing: -.05em; line-height: .85; }
.loader__count { font-family: var(--mono); font-size: 14px; color: var(--ink-2); }
.loader__bar { height: 1px; background: var(--line); margin-top: 24px; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--ink); }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--ink); display: grid; place-items: center; opacity: 0;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, opacity .3s;
}
.cursor.is-on { opacity: 1; }
.cursor__label { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--bg); opacity: 0; transition: opacity .2s; }
.cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(18,18,16,.12); }
.cursor.is-view { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--ink); }
.cursor.is-view .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; }
.progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter) 28px;
  background: linear-gradient(to bottom, rgba(243,241,236,.9) 30%, rgba(243,241,236,0));
  transition: transform .5s var(--ease);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -.03em; }
.nav__studio { font-weight: 400; color: var(--ink-3); margin-left: 5px; }
.nav__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 0 22px var(--accent); }
.nav__links { display: flex; gap: 4px; padding: 6px; border-radius: 999px; }
.nav__links a { padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--ink-2); transition: background .3s, color .3s; }
.nav__links a:hover { background: rgba(255,255,255,.8); color: var(--ink); }
@media (max-width: 860px) { .nav__links { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 18px 28px; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 15px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; overflow: hidden;
  transition: box-shadow .4s var(--ease);
}
.btn span, .btn i { position: relative; z-index: 1; font-style: normal; }
.btn--dark { background: var(--ink); color: var(--bg); box-shadow: 0 14px 30px -12px rgba(18,18,16,.5); }
.btn--dark::before {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  transform: translateY(101%); transition: transform .5s var(--ease); border-radius: inherit;
}
.btn--dark:hover::before { transform: translateY(0); }
.btn--glass { background: var(--glass-bg-strong); border: 1px solid var(--glass-border); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.btn--glass:hover { background: #fff; }
.btn--sm { padding: 12px 20px; font-size: 14px; }
.btn--block { width: 100%; }
.arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:focus-visible, .tab:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Shared type ---------- */
.section { padding: clamp(96px, 14vw, 180px) var(--gutter); max-width: 1440px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 16px; margin: 0 0 28px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}
.h2 { font-size: clamp(40px, 6.6vw, 104px); line-height: .98; letter-spacing: -.045em; font-weight: 500; margin: 0 0 28px; max-width: 14ch; }
.h2 em { font-size: 1.05em; }
.h3 { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; letter-spacing: -.03em; font-weight: 500; margin: 0 0 28px; }
.lede { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; color: var(--ink-2); max-width: 46ch; margin: 0; }
.fineprint { font-size: 13px; color: var(--ink-3); margin: 20px 0 0; }

.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; flex: none; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--ok); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

/* split text */
.split .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.split .line > span { display: inline-block; will-change: transform; }
[data-words] .w { opacity: .14; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px;
  padding: 130px var(--gutter) 90px; max-width: 1440px; margin: 0 auto;
}
.hero__title { font-size: clamp(44px, 7vw, 118px); line-height: .95; letter-spacing: -.055em; font-weight: 500; margin: 0 0 32px; }
.hero__title em { font-size: 1.04em; letter-spacing: -.03em; }
.hero__sub { font-size: clamp(18px, 1.45vw, 21px); color: var(--ink-2); max-width: 44ch; margin: 0 0 40px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__stage { position: relative; height: 600px; }
.feed {
  position: absolute; top: 50%; left: 50%; width: min(400px, 100%); transform: translate(-50%, -50%);
  border-radius: var(--radius); padding: 22px; overflow: hidden;
}
.feed__head, .feed__foot { display: flex; justify-content: space-between; align-items: center; }
.feed__live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.feed__list { list-style: none; margin: 18px 0; padding: 0; height: 300px; position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent); }
.feed__item {
  position: absolute; left: 0; right: 0; top: 0; display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center;
  padding: 12px; border-radius: 16px; background: var(--glass-bg-strong); border: 1px solid var(--glass-border);
}
.feed__ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 15px; background: #fff; }
.feed__item strong { display: block; font-size: 14px; font-weight: 500; line-height: 1.25; }
.feed__item small { display: block; font-size: 12px; color: var(--ink-3); }
.feed__state { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 99px; background: #fff; color: var(--ink-3); white-space: nowrap; }
.feed__state.is-done { background: #E2F5EC; color: var(--ok); }
.feed__foot { padding-top: 14px; border-top: 1px solid var(--line); }
.feed__total { font-size: 22px; letter-spacing: -.03em; font-weight: 500; font-variant-numeric: tabular-nums; }

.chip { position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.tick { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-size: 12px; }
.chip--a { top: 0; left: -2%; }
.chip--b { bottom: 0; right: -2%; }
.chip--c { top: 0; right: -2%; }
@media (max-width: 1280px) { .chip--c { display: none; } }
.chip--c .tick { background: var(--accent); }

.hero__scroll { position: absolute; bottom: 28px; left: var(--gutter); display: flex; align-items: center; gap: 12px; }
.hero__scroll span { width: 40px; height: 1px; background: var(--ink-3); position: relative; overflow: hidden; }
.hero__scroll span::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: scrollline 2.4s var(--ease) infinite; }
@keyframes scrollline { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 120px; gap: 16px; }
  .hero__stage { height: 500px; }
  .chip--a { left: 0; } .chip--b { right: 0; }
  .hero__scroll { display: none; }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 28px 0; border-block: 1px solid var(--line); background: rgba(255,255,255,.25); }
.marquee__track { display: flex; gap: 36px; width: max-content; animation: marquee 48s linear infinite; align-items: center; }
.marquee__track span { font-size: clamp(26px, 3.2vw, 44px); letter-spacing: -.035em; font-weight: 400; white-space: nowrap; }
.marquee__track span:nth-of-type(odd) { font-family: var(--serif); font-style: italic; }
.marquee__track b { color: var(--accent); font-size: 18px; font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Tax ---------- */
.tax__statement { font-size: clamp(30px, 4.4vw, 68px); line-height: 1.08; letter-spacing: -.04em; font-weight: 500; max-width: 22ch; margin: 0 0 80px; }
.tax__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { border-radius: var(--radius); padding: 32px; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.stat__num { font-size: clamp(64px, 7vw, 112px); letter-spacing: -.06em; line-height: .9; font-weight: 400; }
.stat__num small { font-size: .45em; letter-spacing: -.02em; color: var(--ink-3); }
.stat__label { color: var(--ink-2); max-width: 28ch; }
@media (max-width: 860px) { .tax__grid { grid-template-columns: 1fr; } .stat { min-height: 0; } }

/* ---------- Work (horizontal) ---------- */
.work__intro { padding-bottom: 60px; }
.work__pin { overflow: hidden; min-height: 100svh; display: flex; align-items: center; padding-top: 70px; }
.work__track { display: flex; gap: 20px; padding: 10px var(--gutter) 60px; width: max-content; }
.case {
  width: min(460px, 82vw); flex: none; border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 20px; height: min(620px, calc(100svh - 120px)); min-height: 520px;
}
.case__no { display: block; margin-bottom: 18px; }
.case__head h3 { font-size: 32px; letter-spacing: -.035em; font-weight: 500; margin: 0 0 10px; line-height: 1.05; }
.case__head p { color: var(--ink-2); margin: 0; font-size: 16px; }
.case__foot { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.case__foot .mono { display: block; margin-bottom: 4px; }
.case--end { justify-content: center; align-items: flex-start; padding: 40px; width: min(420px, 82vw); display: flex; flex-direction: column; }

.demo { flex: 1; min-height: 240px; border-radius: 20px; background: rgba(255,255,255,.5); border: 1px solid var(--glass-border); padding: 18px; display: flex; flex-direction: column; gap: 10px; justify-content: center; position: relative; overflow: hidden; }
.bubble { max-width: 88%; padding: 12px 14px; border-radius: 16px; font-size: 14px; line-height: 1.4; }
.bubble .mono { display: block; margin-bottom: 4px; font-size: 10px; }
.bubble--in { background: #fff; border-bottom-left-radius: 4px; }
.bubble--draft { align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 4px; }
.bubble--draft .mono { color: rgba(243,241,236,.55); }
.demo__actions { align-self: flex-end; display: flex; gap: 8px; position: relative; height: 34px; }
.pill { border: 0; border-radius: 99px; padding: 8px 14px; font-size: 13px; font-weight: 500; }
.pill--approve { background: var(--accent); color: #fff; }
.pill--sent { position: absolute; right: 0; top: 0; background: #E2F5EC; color: var(--ok); opacity: 0; white-space: nowrap; }

.cal { display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: stretch; margin-top: 8px; }
.cal__day { display: grid; place-items: center; background: #fff; border-radius: 14px; font-size: 12px; color: var(--ink); }
.cal__slot { background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.cal__slot strong { font-weight: 600; font-size: 15px; }
.cal__slot em { font-size: 15px; color: var(--ink-2); }

.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; height: 100%; }
.kanban__col { background: rgba(255,255,255,.6); border-radius: 12px; padding: 10px 8px; display: flex; flex-direction: column; gap: 8px; }
.kanban__col .mono { font-size: 9px; }
.kanban__col i { display: block; height: 40px; border-radius: 8px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.04); }
.kanban__col i.hot { background: var(--accent-soft); outline: 1px solid var(--accent); }
.kanban__col i.done { background: #E2F5EC; }

.demo--chart svg { width: 100%; height: 130px; }
.chart__line { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart__area { fill: rgba(255, 90, 31, .12); }
.chart__note { background: #fff; border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.chart__note .mono { display: block; margin-bottom: 4px; color: var(--accent); }

.lead { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; background: #fff; border-radius: 14px; padding: 10px 12px; }
.lead__av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); font-weight: 600; }
.lead strong { display: block; font-size: 14px; font-weight: 500; }
.lead .mono { font-size: 10px; }
.lead__tag { font-size: 11px; padding: 5px 9px; border-radius: 99px; background: var(--bg-2); white-space: nowrap; }
.lead:first-child .lead__tag { background: #E2F5EC; color: var(--ok); }

.report { display: flex; flex-direction: column; gap: 8px; }
.report__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.report__row .ok, .report__row .warn { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 99px; white-space: nowrap; }
.ok { background: #E2F5EC; color: var(--ok); }
.warn { background: #FFF1D6; color: var(--warn); }

@media (max-width: 860px) {
  .work__track { flex-direction: column; width: auto; }
  .work__pin { min-height: 0; display: block; padding-top: 0; }
  .case, .case--end { width: auto; min-height: 0; height: auto; }
  .case__foot { grid-template-columns: 1fr; }
}

/* ---------- Apps & systems ---------- */
.hub { margin-top: 64px; border-radius: calc(var(--radius) + 4px); overflow: hidden; }
.hub__bar { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 13px; }
.hub__bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(18,18,16,.12); }
.hub__bar strong { margin-left: 10px; font-weight: 500; color: var(--ink-2); }
.hub__body { display: grid; grid-template-columns: 210px 1fr 280px; min-height: 440px; }
.hub__side, .hub__crm { padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.hub__side { border-right: 1px solid var(--line); }
.hub__crm { border-left: 1px solid var(--line); gap: 14px; }
.hub__side .mono { margin: 14px 0 6px; } .hub__side .mono:first-child { margin-top: 0; }
.hub__side a { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 10px; font-size: 14px; color: var(--ink-2); }
.hub__side a.is-on { background: #fff; color: var(--ink); font-weight: 500; }
.hub__side b { font-weight: 500; font-size: 12px; color: var(--ink-3); }
.hub__side a.is-on b { color: var(--accent); }
.hub__stream { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.msg { display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.55); border: 1px solid var(--glass-border); transition: background .4s, box-shadow .4s; }
.msg.is-new { background: #fff; box-shadow: 0 10px 30px -14px rgba(40,32,20,.25); }
.msg strong { display: block; font-size: 14px; font-weight: 600; }
.msg p { margin: 0; font-size: 14px; color: var(--ink-2); }
.src { font-family: var(--mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; padding: 5px 8px; border-radius: 99px; text-align: center; }
.src--wa { background: #DDF5E6; color: #1A7F4B; } .src--em { background: #E3E8FF; color: #3A4BB8; }
.src--bk { background: var(--accent-soft); color: #C2410C; } .src--ig { background: #FBE1EF; color: #B0326F; }
.src--rv { background: #FFF1D6; color: #9A6200; }
.msg__ai, .msg__tag { font-family: var(--mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; padding: 5px 9px; border-radius: 99px; white-space: nowrap; }
.msg__ai { background: var(--ink); color: var(--bg); }
.msg__tag { background: #E2F5EC; color: var(--ok); }
.crm__head { display: flex; gap: 12px; align-items: center; }
.crm__av { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: #C2410C; display: grid; place-items: center; font-weight: 600; }
.crm__head strong { display: block; font-size: 16px; }
.crm__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.crm__stats div { background: #fff; border-radius: 12px; padding: 10px 12px; }
.crm__stats strong { display: block; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.crm__tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 13px; color: var(--ink-2); }
.crm__tl li { display: flex; gap: 10px; align-items: center; }
.crm__tl i { width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--accent); flex: none; }
.built { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.built__card { border-radius: var(--radius); padding: 28px; }
.built__ic { width: 48px; height: 48px; border-radius: 14px; background: #fff; display: grid; place-items: center; color: var(--accent); }
.built__card h3 { font-size: 24px; letter-spacing: -.03em; font-weight: 500; margin: 24px 0 8px; }
.built__card p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 1100px) { .hub__body { grid-template-columns: 1fr 260px; } .hub__side { display: none; } }
@media (max-width: 860px) {
  .hub__body { grid-template-columns: 1fr; } .hub__crm { display: none; }
  .msg { grid-template-columns: 1fr auto; gap: 8px 12px; } .msg .src { grid-column: 1 / -1; justify-self: start; }
  .built { grid-template-columns: 1fr; }
}
@media (min-width: 861px) and (max-width: 1100px) { .built { grid-template-columns: 1fr 1fr; } }

/* ---------- Any business ---------- */
.any__ui { margin-top: 64px; display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.tabs { display: flex; flex-direction: column; gap: 6px; }
.tab {
  text-align: left; padding: 16px 20px; border-radius: 16px; border: 1px solid transparent; background: transparent; cursor: pointer;
  font-size: 18px; letter-spacing: -.02em; color: var(--ink-3); display: flex; justify-content: space-between; align-items: center;
  transition: color .3s, background .3s, border-color .3s;
}
.tab::after { content: "\2192"; opacity: 0; transform: translateX(-6px); transition: .3s var(--ease); }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); background: var(--glass-bg-strong); border-color: var(--glass-border); box-shadow: var(--glass-shadow); }
.tab[aria-selected="true"]::after { opacity: 1; transform: none; }
.any__panel { border-radius: var(--radius); padding: clamp(24px, 3.5vw, 48px); min-height: 520px; }
.panel__title { font-size: clamp(30px, 3.4vw, 52px); letter-spacing: -.04em; font-weight: 500; line-height: 1; margin: 0 0 8px; }
.panel__sub { color: var(--ink-2); margin: 0 0 32px; }
.panel__list { display: grid; gap: 12px; }
.auto { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 20px; border-radius: 20px; background: rgba(255,255,255,.55); border: 1px solid var(--glass-border); }
.auto__ic { width: 52px; height: 52px; border-radius: 14px; background: #fff; display: grid; place-items: center; font-size: 22px; }
.auto h4 { margin: 0 0 4px; font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.auto p { margin: 0; color: var(--ink-2); font-size: 15px; }
.auto__save { display: inline-block; margin-top: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 860px) {
  .any__ui { grid-template-columns: 1fr; }
  .tabs { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; font-size: 15px; padding: 12px 16px; }
  .tab::after { display: none; }
  .any__panel { min-height: 0; }
  .auto { grid-template-columns: 44px 1fr; gap: 14px; padding: 16px; }
  .auto__ic { width: 44px; height: 44px; }
}

/* ---------- Savings ---------- */
.savings { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.calc { border-radius: calc(var(--radius) + 8px); padding: clamp(24px, 3.5vw, 48px); display: grid; gap: 40px; }
.calc__inputs { display: grid; gap: 28px; }
.range { display: grid; gap: 14px; }
.range__top { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; color: var(--ink-2); }
.range output { font-family: var(--mono); font-size: 15px; color: var(--ink); font-weight: 500; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; --p: 30%; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--ink) var(--p), rgba(18,18,16,.12) var(--p)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(18,18,16,.12); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0,0,0,.18); transition: transform .2s; }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0,0,0,.18); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.calc__out { border-top: 1px solid var(--line); padding-top: 32px; }
.calc__big strong { display: block; font-size: clamp(72px, 10vw, 148px); letter-spacing: -.06em; line-height: .9; font-weight: 400; margin-top: 8px; font-variant-numeric: tabular-nums; }
.calc__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.calc__row strong { display: block; font-size: clamp(28px, 3vw, 44px); letter-spacing: -.04em; font-weight: 500; margin-top: 6px; font-variant-numeric: tabular-nums; }
.calc__row > div:first-child strong { color: var(--accent); }
@media (max-width: 980px) { .savings { grid-template-columns: 1fr; } }

/* ---------- How ---------- */
.how__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; }
.step { border-radius: var(--radius); padding: 32px; min-height: 340px; display: flex; flex-direction: column; }
.step__no { font-family: var(--serif); font-style: italic; font-size: 72px; line-height: 1; color: var(--accent); margin-bottom: auto; }
.step h3 { font-size: 32px; letter-spacing: -.035em; font-weight: 500; margin: 40px 0 12px; display: flex; align-items: center; gap: 12px; }
.step h3 small { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 99px; background: var(--ink); color: var(--bg); }
.step p { margin: 0; color: var(--ink-2); }
.how__price { margin: 32px 0 0; font-size: 18px; color: var(--ink-2); max-width: 60ch; }
.trust { margin-top: 96px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; border-top: 1px solid var(--line); padding-top: 40px; }
.trust__ic { font-size: 22px; color: var(--accent); }
.trust h4 { margin: 14px 0 6px; font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.trust p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 980px) { .how__grid { grid-template-columns: 1fr; } .step { min-height: 0; } .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trust { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq__list { display: grid; gap: 10px; margin-top: 56px; max-width: 980px; }
.faq details { border-radius: 22px; padding: 0 28px; transition: background .3s; }
.faq details[open] { background: var(--glass-bg-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 0; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.02em; font-weight: 500; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 28px; height: 28px; flex: none; border-radius: 50%; background: #fff; position: relative; transition: transform .4s var(--ease), background .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i { transform: rotate(45deg); background: var(--accent-soft); }
.faq details p { margin: 0; padding: 0 0 24px; color: var(--ink-2); max-width: 70ch; }
@media (max-width: 560px) { .faq details { padding: 0 20px; } }

/* ---------- Contact ---------- */
.start__wrap { border-radius: calc(var(--radius) + 12px); padding: clamp(24px, 5vw, 80px); display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.form { display: grid; gap: 16px; align-content: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 13px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(18,18,16,.08);
  background: rgba(255,255,255,.7); outline: none; font-size: 16px; resize: vertical;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.field select { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(255,90,31,.15); }
.hp { position: absolute; left: -9999px; }
@media (max-width: 980px) { .start__wrap { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { padding: 40px var(--gutter) 28px; overflow: hidden; }
.footer__big { font-size: clamp(72px, 21vw, 340px); font-weight: 500; letter-spacing: -.07em; line-height: .85; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(18,18,16,.2); margin-bottom: 32px; user-select: none; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 24px; }

/* ---------- Success page ---------- */
.thanks { min-height: 100svh; display: grid; place-items: center; padding: var(--gutter); }
.thanks__card { border-radius: calc(var(--radius) + 12px); padding: clamp(32px, 6vw, 80px); max-width: 720px; text-align: center; }
.thanks__card .h2 { margin-inline: auto; }
.thanks__card .lede { margin: 0 auto 36px; }

@media (prefers-reduced-motion: reduce) {
  .marquee__track, .pulse::after, .hero__scroll span::after { animation: none; }
}

/* ---------- Sub pages (services / industries) ---------- */
body.sub {
  background:
    radial-gradient(55% 45% at 85% 5%, #FFE2D3 0%, transparent 60%),
    radial-gradient(45% 40% at 5% 35%, #E2DEFF 0%, transparent 60%),
    radial-gradient(50% 40% at 75% 85%, #D8F1E6 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
.page-hero { padding-top: clamp(140px, 16vw, 200px); padding-bottom: 40px; }
.page-hero__title { max-width: 18ch; }
.page-hero .lede { margin-bottom: 36px; max-width: 58ch; }
.crumbs { margin: 0 0 28px; }
.crumbs a { color: var(--ink-2); } .crumbs a:hover { color: var(--accent); }
.sub .section { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.pains { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.pains li { padding: 20px 22px 20px 52px; border-radius: 18px; background: var(--glass-bg); border: 1px solid var(--glass-border); position: relative; color: var(--ink-2); }
.pains li::before { content: ""; position: absolute; left: 22px; top: 27px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--accent); }
.page-cards .built { margin-top: 0; }
.page-cards .step__no { font-size: 40px; }
.page-cards .built__card h3 { margin-top: 16px; }
.note, .cta-band { border-radius: calc(var(--radius) + 8px); padding: clamp(28px, 5vw, 64px); }
.note .lede { max-width: 62ch; }
.cta-band { text-align: center; display: grid; justify-items: center; gap: 4px; }
.cta-band .lede { margin-bottom: 28px; }
.page-faq .faq__list { margin-top: 0; }
.page-how .how__grid { margin-top: 0; }
.footer__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 40px 0; border-top: 1px solid var(--line); }
.footer__links div { display: flex; flex-direction: column; gap: 8px; }
.footer__links .mono { margin-bottom: 6px; }
.footer__links a { color: var(--ink-2); font-size: 15px; } .footer__links a:hover { color: var(--accent); }
.panel__more { display: inline-flex; margin-top: 20px; font-weight: 500; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.panel__more:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 760px) { .footer__links { grid-template-columns: 1fr; } }

/* websites block */
.webs { margin-top: 16px; border-radius: var(--radius); padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.webs__copy .mono { display: block; margin-bottom: 16px; color: var(--accent); }
.webs__copy .h3 { margin-bottom: 14px; }
.webs__copy p { color: var(--ink-2); margin: 0 0 28px; max-width: 52ch; }
.webs__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.webs__chips li { padding: 12px 18px; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid var(--glass-border); font-size: 15px; }
.webs__chips li:nth-child(3n+1) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (max-width: 860px) { .webs { grid-template-columns: 1fr; } }

/* website packages */
.pkgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.pkg { border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; }
.pkg h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 56px; letter-spacing: -.02em; line-height: 1; margin: 14px 0 10px; }
.pkg p { color: var(--ink-2); margin: 0 0 24px; }
.pkg ul { list-style: none; margin: auto 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 15px; }
.pkg li { padding-left: 26px; position: relative; }
.pkg li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
.pkg li:first-child:not(:only-child) { font-weight: 500; }
.pkg--hot { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pkg--hot p { color: rgba(243,241,236,.7); }
.pkg--hot .mono { color: var(--accent); }
.pkg--hot ul { border-color: rgba(243,241,236,.15); }
.pkg-care { margin-top: 16px; border-radius: var(--radius); padding: 28px 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.pkg-care h3 { margin: 8px 0 6px; font-size: 26px; font-weight: 500; letter-spacing: -.03em; }
.pkg-care p { margin: 0; color: var(--ink-2); max-width: 60ch; }
@media (max-width: 900px) { .pkgs { grid-template-columns: 1fr; } .pkg-care { flex-direction: column; align-items: flex-start; } }
