/* it-mike studio — one stylesheet, no framework.
   Palette: ink + marigold accent + warm cream. Display: Bricolage Grotesque. Body: Inter. */

:root {
  --ink: #14161f;
  --ink-2: #1f2230;
  --ink-3: #2c3042;
  --cream: #fbf3e6;
  --paper: #fffaf2;
  --white: #ffffff;
  --gold: #ffb81c;
  --gold-soft: #ffe3a3;
  --gold-deep: #7a4f00;       /* accent as text on light backgrounds (AA) */
  --muted: #5b5547;           /* body text secondary on cream */
  --muted-dark: #c9c2b3;      /* secondary text on ink */
  --line: #e7dcc8;
  --line-dark: #343849;
  --wa: #128c4b;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(20, 22, 31, .35);
  --wrap: 1200px;
  --header-h: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }
.gold :focus-visible { outline-color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 2px solid transparent;
  font: 700 16px/1.1 var(--body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 4px 0 var(--ink); border-color: var(--ink); }
.btn-gold:hover { box-shadow: 0 6px 0 var(--ink); }
.dark .btn-gold { border-color: var(--gold); box-shadow: 0 4px 0 #000; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { box-shadow: 0 8px 18px -8px rgba(0,0,0,.5); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--white); }
.btn-ghost-light { background: transparent; border-color: var(--muted-dark); color: #fff; }
.btn-ghost-light:hover { border-color: var(--gold); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 17px; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 243, 230, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(20,22,31,.5); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-mark { width: 38px; height: 38px; }
.logo-word { font: 700 20px/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.logo-word b { font-weight: 800; background: linear-gradient(transparent 58%, var(--gold) 58%); padding: 0 2px; }
.logo-light { color: #fff; }
.logo-light .logo-word b { color: var(--ink); background: var(--gold); border-radius: 4px; padding: 0 5px; }

.nav { display: none; }
.header-cta { display: none; margin-left: auto; }
.burger {
  margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--ink);
  background: var(--paper); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
}
.burger span { width: 20px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile / tablet menu panel */
.nav.open {
  display: flex; flex-direction: column; gap: 4px;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 2px solid var(--ink);
  padding: 12px 16px 20px; box-shadow: 0 20px 30px -20px rgba(20,22,31,.5);
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.nav.open a:not(.btn) { padding: 12px 8px; font: 700 20px/1.2 var(--display); text-decoration: none; border-bottom: 1px solid var(--line); }
.nav.open .nav-cta-mobile { margin-top: 12px; }

@media (min-width: 560px) {
  .header-cta { display: inline-flex; }
  .burger { margin-left: 4px; }
}
@media (min-width: 1120px) {
  .burger { display: none; }
  .nav, .nav.open {
    display: flex; flex-direction: row; align-items: center; gap: 2px;
    position: static; background: none; border: 0; padding: 0; box-shadow: none; max-height: none; overflow: visible;
    margin-left: auto;
  }
  .nav a:not(.btn), .nav.open a:not(.btn) {
    padding: 8px 12px; border-radius: 999px; font: 600 15.5px/1 var(--body); text-decoration: none; border: 0; white-space: nowrap;
  }
  .nav a:not(.btn):hover { background: var(--gold-soft); }
  .nav a.active { background: var(--ink); color: #fff; }
  .nav-cta-mobile, .nav.open .nav-cta-mobile { display: none; }
  .header-cta { margin-left: 10px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 36px 0 64px; overflow: hidden; }
.hero-blob { position: absolute; width: 560px; right: -250px; bottom: -40px; z-index: 0; animation: blob 18s ease-in-out infinite alternate; }
@media (max-width: 559px) {
  .eyebrow { font-size: 14px; letter-spacing: 0; text-transform: none; padding: 6px 12px; gap: 8px; }
  .desk .old-top { font-size: 13px; padding: 6px 4px; border-bottom-width: 2px; }
  .desk .old-nav { font-size: 8px; padding: 2px 4px; }
  .desk .old-body { font-size: 8px; padding: 6px; gap: 6px; }
  .desk .old-h { font-size: 10px; }
  .desk .old-foot { font-size: 7px; padding: 1px; }
  .desk-bar { height: 24px; font-size: 10px; }
  .hero-note { position: static; max-width: none; margin-top: 14px; }
  .hero-visual { padding-bottom: 0; }
  .phone { bottom: 30px; }
}
@keyframes blob { to { transform: rotate(14deg) scale(1.06); } }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; background: var(--paper); border: 2px solid var(--ink); padding: 6px 14px; border-radius: 999px; }
.eyebrow .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--ink); }
.hero h1 { font-size: clamp(42px, 10.5vw, 84px); font-weight: 800; margin: 20px 0 18px; line-height: .98; letter-spacing: -.035em; }
.scribble { position: relative; white-space: nowrap; display: inline-block; }
.scribble svg { position: absolute; left: 0; right: 0; bottom: -.12em; width: 100%; height: .3em; z-index: -1; }
.scribble svg path { stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 1.1s .4s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lede { font-size: clamp(18px, 2.2vw, 21px); max-width: 36em; color: #2f2c25; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { font-size: 14.5px; font-weight: 600; padding: 6px 12px 6px 30px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); position: relative; }
.chips li::before { content: ""; position: absolute; left: 11px; top: 50%; width: 11px; height: 6px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: translateY(-70%) rotate(-45deg); }

/* Devices */
.hero-visual { position: relative; padding: 10px 0 34px; max-width: 640px; margin: 0 auto; width: 100%; }
.device { background: var(--ink); box-shadow: var(--shadow); }
.desk { border-radius: 16px; padding: 0 10px 10px; width: 88%; }
.desk-bar { display: flex; align-items: center; gap: 6px; height: 30px; color: #8f8a7e; font-size: 11.5px; }
.desk-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3e50; }
.desk-bar i:first-child { background: var(--gold); }
.desk-bar span { margin-left: 10px; background: #262a38; padding: 2px 12px; border-radius: 999px; color: #c9c2b3; }
.desk .screen { aspect-ratio: 16 / 10; border-radius: 6px; }
.phone { position: absolute; right: 0; bottom: 0; width: 30%; border-radius: 26px; padding: 8px; transform: rotate(4deg); }
.phone .notch { position: absolute; top: 12px; left: 50%; width: 30%; height: 8px; margin-left: -15%; background: var(--ink); border-radius: 999px; z-index: 3; }
.phone .screen { aspect-ratio: 585 / 1266; border-radius: 19px; }
.screen { position: relative; overflow: hidden; background: #fff; }
.screen .after { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Before/after loop, driven by one animated custom property */
@property --wipe { syntax: "<percentage>"; inherits: true; initial-value: 100%; }
.ba-anim { --wipe: 100%; animation: wipeLoop 9s ease-in-out infinite; }
.phone .ba-anim { animation-delay: .25s; }
@keyframes wipeLoop {
  0%, 22% { --wipe: 100%; }
  45%, 78% { --wipe: 0%; }
  100% { --wipe: 100%; }
}
.ba-anim .before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--wipe)) 0 0); }
.ba-anim .wipe { position: absolute; top: 0; bottom: 0; left: var(--wipe); width: 4px; margin-left: -2px; background: var(--gold); box-shadow: 0 0 0 2px var(--ink); z-index: 2; }
.tag { position: absolute; top: 44px; left: -6px; font: 800 14px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; padding: 8px 12px; border-radius: 10px; border: 2px solid var(--ink); z-index: 4; transform: rotate(-6deg); }
.tag-before { background: var(--paper); animation: tagB 9s ease-in-out infinite; }
.tag-after { background: var(--gold); opacity: 0; animation: tagA 9s ease-in-out infinite; }
@keyframes tagB { 0%, 30% { opacity: 1; } 40%, 88% { opacity: 0; } 100% { opacity: 1; } }
@keyframes tagA { 0%, 34% { opacity: 0; } 44%, 80% { opacity: 1; } 90%, 100% { opacity: 0; } }
.spark { position: absolute; width: 34px; z-index: 4; }
.spark.s1 { left: 46%; top: -12px; animation: spin 10s linear infinite; }
.spark.s2 { right: 34%; bottom: 0; width: 26px; animation: bob 3s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-8px) scale(1.1); } }
.hero-note { position: absolute; left: 0; bottom: 0; margin: 0; font-size: 12.5px; color: var(--muted); max-width: 60%; }

/* The "dated page" illustration */
.old { background: #c9d6e8; font-family: "Times New Roman", Times, serif; color: #000; overflow: hidden; }
.old-top { background: repeating-linear-gradient(45deg, #2d4e8a 0 6px, #34589a 6px 12px); color: #ffef5a; font: bold 26px/1.3 "Times New Roman", serif; text-align: center; padding: 12px 6px; text-shadow: 2px 2px 0 #000; border-bottom: 4px ridge #888; letter-spacing: .04em; }
.old-nav { background: #e8e8e8; font-size: 13px; padding: 4px 8px; text-align: center; color: #00e; border-bottom: 2px groove #aaa; }
.old-nav u { color: #00e; }
.old-body { display: flex; gap: 12px; padding: 14px; font-size: 13px; line-height: 1.3; }
.old-body p { margin: 0 0 8px; }
.old-img { flex: 0 0 34%; aspect-ratio: 4 / 3; background: repeating-linear-gradient(0deg, #9aa 0 2px, #bcc 2px 4px); border: 3px outset #ccc; }
.old-h { font: bold italic 18px/1.2 "Comic Sans MS", "Times New Roman", serif; color: #900; }
.old-blink { color: red; font-weight: bold; }
.old-foot { position: absolute; bottom: 0; left: 0; right: 0; font-size: 11px; text-align: center; background: #e8e8e8; padding: 3px; border-top: 2px groove #aaa; }
.old-phone { font-size: 8px; }
.old-phone .old-top { font-size: 11px; padding: 22px 4px 6px; border-bottom-width: 2px; }
.old-phone .old-nav { font-size: 6.5px; padding: 2px; }
.old-phone .old-body { flex-direction: column; padding: 6px; gap: 6px; font-size: 7px; }
.old-phone .old-img { flex-basis: auto; width: 100%; }
.old-phone .old-h { font-size: 9px; }

@media (min-width: 960px) {
  .hero { padding: 56px 0 90px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; }
  .hero-blob { width: 760px; right: -160px; top: 0; bottom: auto; }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: var(--gold); overflow: hidden; border-block: 3px solid var(--ink); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font: 800 22px/1 var(--display); padding: 18px 22px; white-space: nowrap; display: inline-flex; align-items: center; gap: 22px; }
.marquee span::after { content: ""; width: 10px; height: 10px; background: var(--cream); border-radius: 50%; margin-left: 22px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 76px 0; position: relative; }
@media (min-width: 960px) { .section { padding: 110px 0; } }
.dark { background: var(--ink); color: #f6f1e7; }
.cream { background: var(--cream); }
.paper { background: var(--paper); }
.gold { background: var(--gold); }
.kicker { display: inline-block; font: 700 13.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; padding-bottom: 6px; border-bottom: 3px solid var(--gold); color: var(--gold-deep); }
.dark .kicker, .kicker-gold { color: var(--gold); }
.kicker-ink { color: var(--ink); border-color: var(--ink); }
.h2 { font-size: clamp(34px, 6vw, 60px); font-weight: 800; max-width: 18ch; margin-bottom: 18px; }
.h3 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; margin-bottom: 10px; }
.section-lede { max-width: 46em; color: var(--muted); font-size: 18px; }
.section-lede.light, .dark .section-lede { color: var(--muted-dark); }
.fine { font-size: 14.5px; color: var(--muted); max-width: 70em; }
.small { font-size: 14px; }
.big { font-size: clamp(18px, 2.2vw, 21px); }

/* Reveal on scroll (only when JS is on and motion is OK) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 18px; counter-reset: s; }
.step { position: relative; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 26px 24px 22px; }
.step-n { position: absolute; top: -16px; right: 18px; width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: var(--ink); font: 800 22px/46px var(--display); text-align: center; transform: rotate(-8deg); }
.step-ico { width: 46px; height: 46px; color: #f6f1e7; margin-bottom: 14px; }
.step h3 { font-size: 26px; margin-bottom: 8px; }
.step p { color: var(--muted-dark); margin-bottom: 12px; }
.step .when { margin: 0; color: var(--gold); font-weight: 600; font-size: 14.5px; }
@media (min-width: 700px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step:nth-child(even) { transform: translateY(26px); }
  .js .step.reveal:nth-child(even) { transform: translateY(52px); }
  .js .step.reveal.in:nth-child(even) { transform: translateY(26px); }
}

/* ---------- Work: before/after slider ---------- */
.ba-wrap { margin: 36px 0 44px; }
.ba-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: thin; }
.ba-tabs button { flex: 0 0 auto; border: 2px solid var(--ink); background: var(--paper); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.ba-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.ba { position: relative; border-radius: var(--radius); overflow: hidden; border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); aspect-ratio: 16 / 10; background: #fff; user-select: none; touch-action: pan-y; }
.ba-after { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--gold); box-shadow: 0 0 0 2px var(--ink); pointer-events: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: var(--gold); border: 3px solid var(--ink); display: grid; place-items: center; font: 800 18px/1 var(--display); letter-spacing: -.05em; }
.ba.glide .ba-before { transition: clip-path .6s cubic-bezier(.2,.7,.2,1); }
.ba.glide .ba-handle { transition: left .6s cubic-bezier(.2,.7,.2,1); }
.ba-label { position: absolute; bottom: 12px; font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: rgba(20,22,31,.86); color: #fff; pointer-events: none; }
.ba-label.l { left: 12px; }
.ba-label.r { right: 12px; background: var(--gold); color: var(--ink); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; -webkit-appearance: none; appearance: none; }
.ba:has(.ba-range:focus-visible) { outline: 3px solid var(--gold); outline-offset: 4px; }
@media (max-width: 560px) {
  .ba { aspect-ratio: 4 / 3.4; box-shadow: 6px 6px 0 var(--ink); }
  .ba .old-body { font-size: 11px; }
  .ba .old-top { font-size: 18px; }
  .ba-label { font-size: 11px; bottom: 8px; }
}

.work-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
.work-card { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 18px; display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: start; transform-style: preserve-3d; transition: transform .25s ease, box-shadow .25s ease; will-change: transform; }
.work-card:hover { box-shadow: 8px 8px 0 var(--gold); }
.phone-mini { background: var(--ink); border-radius: 18px; padding: 5px; transform: translateZ(30px); }
.phone-mini img { border-radius: 13px; aspect-ratio: 585 / 1000; object-fit: cover; object-position: top; width: 100%; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--gold-soft); padding: 3px 8px; border-radius: 6px; margin-bottom: 8px; }
.work-meta h3 { font-size: 22px; margin-bottom: 6px; }
.work-meta p { font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.work-meta a { font-weight: 700; font-size: 15px; }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 18px; margin: 36px 0 16px; }
@media (min-width: 640px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 24px 22px; position: relative; }
.plan-hot { background: var(--ink); color: #f6f1e7; box-shadow: 8px 8px 0 var(--gold); }
.plan-tag { display: inline-block; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: var(--gold-soft); color: var(--ink); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.plan-hot .plan-tag { background: var(--gold); }
.plan h3 { font-size: 22px; margin-bottom: 10px; }
.price { font: 800 40px/1 var(--display); letter-spacing: -.03em; margin-bottom: 16px; }
.price span { font-size: 24px; opacity: .75; }
.plan ul { list-style: none; padding: 0; margin: 0; font-size: 15.5px; }
.plan li { padding: 7px 0 7px 26px; position: relative; border-top: 1px dashed var(--line); }
.plan-hot li { border-top-color: var(--line-dark); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 7px; border-left: 3px solid var(--gold-deep); border-bottom: 3px solid var(--gold-deep); transform: rotate(-45deg); }
.plan-hot li::before { border-color: var(--gold); }

#ways { margin-top: 60px; }
.ways { display: grid; gap: 18px; margin: 20px 0 14px; }
@media (min-width: 900px) { .ways { grid-template-columns: repeat(3, 1fr); } }
.way { background: var(--cream); border-radius: var(--radius); padding: 24px; border: 2px solid var(--line); }
.way-hot { border-color: var(--ink); background: var(--gold-soft); }
.way-ico { width: 44px; height: 44px; margin-bottom: 10px; }
.way h4 { font-size: 26px; margin-bottom: 4px; }
.way-price { font: 800 19px/1.3 var(--display); margin-bottom: 10px; }
.way p { font-size: 15.5px; }
.way-own { font-weight: 600; margin: 0; }
.compare-line { background: var(--cream); border-left: 5px solid var(--gold); padding: 12px 16px; border-radius: 0 12px 12px 0; color: var(--ink); }

.hosting { margin-top: 60px; display: grid; gap: 18px; }
@media (min-width: 1000px) { .hosting { grid-template-columns: 1fr 2fr; align-items: start; } .hosting .fine { grid-column: 2; } }
.hosting-head p { color: var(--muted); font-size: 16px; }
.table-scroll { overflow-x: auto; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--white); }
.htable { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.htable th, .htable td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.htable thead th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; background: var(--ink); color: #fff; }
.htable tbody tr:last-child > * { border-bottom: 0; }
.htable tbody th { font-family: var(--display); font-size: 18px; white-space: nowrap; }
.htable .num { text-align: right; white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .htable thead { display: none; }
  .htable tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 14px; border-bottom: 1px solid var(--line); gap: 2px 12px; }
  .htable tbody tr:last-child { border-bottom: 0; }
  .htable th, .htable td { padding: 0; border: 0; }
  .htable td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--muted); font-size: 14.5px; }
  .htable td.num:nth-child(3) { grid-row: 1; grid-column: 2; }
  .htable td.num:nth-child(4) { grid-column: 1 / -1; text-align: left; font-weight: 500; font-size: 14px; }
  .htable td.num:nth-child(4)::before { content: "Paid yearly: "; }
}

/* ---------- Calculator ---------- */
.calc { margin-top: 70px; background: var(--ink); color: #f6f1e7; border-radius: 26px; padding: 28px 18px; position: relative; overflow: hidden; }
@media (min-width: 640px) { .calc { padding: 44px 40px; } }
.calc::before { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; border: 36px solid var(--gold); right: -120px; top: -140px; opacity: .9; }
.calc-head { position: relative; max-width: 40em; }
@media (max-width: 759px) { .calc::before { width: 120px; height: 120px; border-width: 18px; right: -60px; top: -70px; } }
.calc-title { font-size: clamp(30px, 5vw, 46px); font-weight: 800; margin-bottom: 12px; }
.calc-head p { color: var(--muted-dark); }
.calc-grid { display: grid; gap: 26px; margin-top: 26px; position: relative; }
@media (min-width: 960px) { .calc-grid { grid-template-columns: 1fr 1.1fr; gap: 44px; } }
.field { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } }
.hint { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }
.calc .hint { color: var(--muted-dark); }
.money { display: flex; align-items: center; background: var(--ink-2); border: 2px solid var(--ink-3); border-radius: 12px; padding: 0 12px; }
.money:focus-within { border-color: var(--gold); }
.money span { color: var(--gold); font-weight: 700; }
.money input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 12px 8px; font-size: 20px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.money input:focus { outline: none; }
.money input[readonly] { color: var(--muted-dark); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; margin: 0; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 2px solid var(--ink-3); background: var(--ink-2); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.seg input:checked + span { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.seg input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }
.calc-out { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 20px; padding: 22px 18px; }
@media (min-width: 640px) { .calc-out { padding: 26px; } }
.calc-over { font: 800 22px/1 var(--display); margin-bottom: 18px; }
.bars { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 16px; }
.bar-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }
.bar-top b { font: 800 24px/1 var(--display); font-variant-numeric: tabular-nums; }
.bar { height: 14px; background: var(--ink-3); border-radius: 999px; margin: 8px 0 6px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .6s cubic-bezier(.2,.7,.2,1); }
.b-rent { background: #8b8679; }
.b-buy { background: var(--gold); }
.b-rto { background: repeating-linear-gradient(45deg, var(--gold) 0 8px, #ffcf63 8px 16px); }
.bars p { font-size: 13.5px; color: var(--muted-dark); margin: 0; }
.verdict { background: var(--gold); color: var(--ink); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.verdict.neutral { background: var(--cream); }
.v-main { font: 800 20px/1.25 var(--display); margin: 0 0 4px; }
.v-sub { margin: 0; font-size: 15px; }
.calc .fine { color: var(--muted-dark); }

/* ---------- Photos ---------- */
.photos { margin-top: 60px; display: grid; gap: 20px; align-items: center; background: var(--gold-soft); border: 2px dashed var(--ink); border-radius: 26px; padding: 26px 20px; }
@media (min-width: 760px) { .photos { grid-template-columns: 160px 1fr; padding: 32px 36px; gap: 32px; } }
.photos-ill { width: 140px; }
.photos p { max-width: 50em; }
.photos-price { margin: 0; }

/* ---------- Tools ---------- */
.tools { display: grid; gap: 22px; margin-top: 36px; }
@media (min-width: 1000px) { .tools { grid-template-columns: repeat(3, 1fr); } }
.tool { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 22px; padding: 24px 20px; display: flex; flex-direction: column; }
.tool header { margin-bottom: 10px; }
.tool h3 { font-size: 27px; margin-bottom: 6px; }
.tool-price { display: inline-block; margin: 0; font-weight: 700; color: var(--ink); background: var(--gold); padding: 3px 10px; border-radius: 8px; font-size: 14.5px; }
.tool > p { color: var(--muted-dark); font-size: 15.5px; }
.tool-rule { font-size: 13.5px; margin: 16px 0 0; padding-top: 12px; border-top: 1px dashed var(--line-dark); color: var(--muted-dark); }
.demo { background: var(--cream); color: var(--ink); border-radius: 16px; padding: 16px; margin-top: auto; }
.demo-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-deep); margin-bottom: 10px; }
.demo label, .demo legend { display: block; font-size: 13.5px; font-weight: 600; margin: 8px 0 4px; padding: 0; }
.demo fieldset { border: 0; padding: 0; margin: 0; }
.demo input[type="text"], .demo select { width: 100%; padding: 9px 11px; border: 2px solid var(--line); border-radius: 10px; background: #fff; font-size: 15px; }
.demo input[type="text"]:focus, .demo select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--gold); }
.demo .btn { margin-top: 10px; }
.bubble { background: #fff; border-radius: 14px 14px 14px 4px; padding: 10px 12px; font-size: 14px; margin: 12px 0 0; border: 1px solid var(--line); }
.mini-phone { margin-top: 14px; border: 3px solid var(--ink); border-radius: 18px; padding: 14px 12px; background: #fff; text-align: center; }
.mp-title { font: 800 18px/1.1 var(--display); margin-bottom: 10px; }
.mp-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mp-btns button { border: 2px solid var(--ink); background: var(--paper); border-radius: 10px; padding: 8px 6px; font-size: 13px; font-weight: 700; cursor: pointer; line-height: 1.2; }
.mp-btns button:hover { background: var(--gold-soft); }
.mp-out { font-size: 13px; margin: 8px 0 0; min-height: 1.4em; color: var(--muted); }
.seg-dark span { background: #fff; border-color: var(--line); color: var(--ink); padding: 7px 12px; font-size: 14px; }
.seg-dark input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg-dark input:focus-visible + span { outline-color: var(--gold-deep); }
.check { display: flex !important; align-items: center; gap: 8px; margin-top: 10px !important; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.missing { margin-top: 12px; background: #fff; border-radius: 12px; padding: 10px 12px; border: 1px solid var(--line); }
.missing p { margin: 0 0 4px; font-weight: 700; font-size: 13.5px; }
.missing ul { margin: 0; padding-left: 18px; font-size: 14px; }
.missing li.done { list-style: none; margin-left: -18px; color: #1d6b3a; font-weight: 700; }
.report { display: grid; gap: 10px; background: #fff; border-radius: 12px; padding: 12px; border: 1px solid var(--line); }
.rep-row { display: grid; grid-template-columns: 9.5em 1fr 3em; align-items: center; gap: 8px; font-size: 13.5px; }
.rep-row i { height: 10px; background: var(--cream); border-radius: 999px; overflow: hidden; }
.rep-row b { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 999px; transition: width .7s cubic-bezier(.2,.7,.2,1); }
.rep-row em { font-style: normal; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 380px) { .rep-row { grid-template-columns: 8em 1fr 2.6em; font-size: 12.5px; } }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1fr 1.15fr; gap: 64px; } }
.about-art svg { width: 100%; max-width: 420px; }
.plane { animation: fly 7s ease-in-out infinite; transform-origin: 185px 98px; }
@keyframes fly { 0%, 100% { transform: translate(-90px, 40px) rotate(-30deg); } 50% { transform: translate(80px, 30px) rotate(28deg); } }
.clocks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 420px; margin-top: 10px; }
.clock { background: var(--gold); border: 2px solid var(--ink); border-radius: 16px; padding: 12px 14px; }
.clock span { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.clock b { font: 800 30px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.clock b { white-space: nowrap; }
@media (max-width: 559px) { .clock b { font-size: 24px; } .clock { padding: 10px 12px; } }
@media (max-width: 959px) { .about-art { order: 2; } }
.clock-dark { background: var(--ink); color: #fff; }
.clock-dark span { color: var(--gold); }
.clock-note { font-size: 14px; color: var(--muted); margin-top: 10px; }
.about-copy p { max-width: 38em; }
.also { font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 30px; }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: 1fr 1.7fr; gap: 60px; } }
.faq details { border-bottom: 2px solid var(--ink); }
.faq details:first-child { border-top: 2px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font: 700 20px/1.25 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; font: 800 22px/1 var(--body); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: #3b382f; padding-right: 10px; }

/* ---------- Contact ---------- */
.gold { color: var(--ink); overflow: hidden; }
.contact-doodle { position: absolute; width: 220px; right: 2%; top: 30px; opacity: .9; }
.contact-grid { display: grid; gap: 36px; position: relative; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; } }
.direct { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; }
.direct li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; background: rgba(255,255,255,.55); border: 2px solid var(--ink); border-radius: 14px; padding: 10px 14px; }
.d-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; min-width: 6.5em; }
.d-val { font: 800 20px/1.2 var(--display); user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; }
.contact-form { background: var(--paper); border: 3px solid var(--ink); border-radius: 24px; padding: 24px 18px; box-shadow: 10px 10px 0 var(--ink); }
@media (min-width: 640px) { .contact-form { padding: 30px; } }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border: 2px solid #d9ccb3; border-radius: 12px; background: #fff; font-size: 16px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--gold); }
.contact-form input[aria-invalid="true"] { border-color: #b3261e; }
.contact-form .hint { margin: -8px 0 16px; }
.req { color: #b3261e; }
.opt { font-weight: 400; color: var(--muted); }
.form-error { background: #fde8e6; color: #8c1d18; border-radius: 10px; padding: 10px 12px; font-weight: 600; font-size: 15px; }
.form-done { margin-top: 18px; background: var(--gold-soft); border: 2px solid var(--ink); border-radius: 16px; padding: 16px; }
.form-done:focus { outline: 3px solid var(--ink); }
.fd-title { font: 800 21px/1.2 var(--display); margin-bottom: 6px; }
.form-done .cta-row { margin: 12px 0; }
.sel { user-select: all; -webkit-user-select: all; font-weight: 700; }
.contact-form > .small { margin: 14px 0 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #e9e3d6; padding: 56px 0 24px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.f-head { font-weight: 700; color: var(--gold); text-transform: uppercase; font-size: 12.5px; letter-spacing: .12em; margin-bottom: 8px; }
.f-small { font-size: 15px; color: var(--muted-dark); font-style: normal; line-height: 1.7; margin-top: 12px; }
.f-head + .f-small { margin-top: 0; }
.site-footer a { color: #fff; }
.f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line-dark); font-size: 14px; color: var(--muted-dark); }
.f-bottom p { margin: 0; }

/* ---------- Sub-pages ---------- */
.page-hero { padding: 54px 0 30px; }
.page-hero h1 { font-size: clamp(40px, 8vw, 72px); font-weight: 800; letter-spacing: -.035em; margin-bottom: 14px; }
.doc { padding: 10px 0 90px; }
.doc .wrap { max-width: 900px; }
.doc h2 { font-size: clamp(26px, 4vw, 34px); margin: 46px 0 12px; }
.doc p, .doc li { max-width: 46em; }
.doc .table-scroll { margin: 14px 0 8px; }
.doc .htable td:first-child { font-weight: 600; }
@media (max-width: 560px) {
  .doc .htable tr { grid-template-columns: 1fr auto; }
  .doc .htable td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .doc .htable td.num { grid-row: 1; grid-column: 2; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ba-anim { animation: none; --wipe: 50%; }
  .tag-before { animation: none; opacity: 1; left: -6px; }
  .tag-after { animation: none; opacity: 1; left: auto; right: 22%; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-track span:nth-child(n+14) { display: none; }
  .scribble svg path { stroke-dashoffset: 0; animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .step.reveal:nth-child(even) { transform: none; }
  .plane { animation: none; transform: none; }
  .hero-blob { animation: none; }
  .work-card { transform: none !important; }
}
