/* Hamropedia Digital: same blue family as hamropedia.com. Tokens first, then layout, components, pages. */

:root {
  --bg: #ffffff;
  --bg-2: #f4f7fc;
  --surface: #ffffff;
  --surface-2: #f3f6fa;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --border: #e3e8f0;
  --border-2: #cfd7e3;
  --link: #1d4ed8;
  --accent: #2453c4;
  --accent-2: #1b3f99;
  --accent-ink: #ffffff;
  --accent-soft: color-mix(in srgb, var(--accent) 9%, transparent);
  --focus: color-mix(in srgb, var(--accent) 55%, white);
  --ok: #0f7a55;
  --warn: #b4122b;
  --shadow: 0 1px 2px rgb(15 23 42 / 5%), 0 8px 24px -12px rgb(15 23 42 / 16%);
  --shadow-lg: 0 2px 4px rgb(15 23 42 / 5%), 0 30px 60px -30px rgb(15 23 42 / 35%);
  --font-body: 'Mukta', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', 'Mukta', Georgia, serif;
  --radius: 16px;
  --radius-sm: 10px;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg: #0b1120; --bg-2: #0f172a; --surface: #111a2e; --surface-2: #16213a;
  --text: #e8edf6; --text-2: #cbd5e1; --muted: #94a3b8; --border: #1f2a44; --border-2: #2c3a58;
  --link: #93b4ff; --accent: #6f95ff; --accent-2: #9db6ff; --accent-ink: #0b1120; --ok: #5fd6a4; --warn: #ff8a99;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px -12px rgb(0 0 0 / 60%);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / 30%), 0 30px 60px -30px rgb(0 0 0 / 75%);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; font-size: 108%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
svg { display: inline-block; vertical-align: middle; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; font-weight: 650; color: var(--text); }
h1 { font-size: clamp(2.1rem, 1.4rem + 2.9vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.05rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 780px; }
.section { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.band { background: var(--bg-2); border-block: 1px solid var(--border); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: .6rem 1rem; background: var(--accent); color: var(--accent-ink); border-radius: 8px; }
.skip:focus { left: 8px; }
.eyebrow { margin: 0 0 .6rem; color: var(--accent); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--text-2); max-width: 44rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1.6rem; }
.section-head h2 { margin: 0; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center .section-lead { margin: .4rem auto 0; }
.section-lead { color: var(--text-2); max-width: 46rem; margin: -.6rem 0 1.6rem; }

/* ---------- buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .6rem 1.15rem; border-radius: 12px; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: 700 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); box-shadow: var(--shadow); }
.btn svg { width: 1.15em; height: 1.15em; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.btn-lg { min-height: 54px; padding: .8rem 1.45rem; font-size: 1.06rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; }
.center-row { justify-content: center; }
.text-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; text-decoration: none; color: var(--accent); }
.text-link svg { width: 1.1em; height: 1.1em; transition: transform .15s; }
.text-link:hover svg { transform: translateX(3px); }
.icon-tile { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.icon-tile svg { width: 24px; height: 24px; }
.ticks { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .55rem; }
.ticks li { display: flex; gap: .55rem; align-items: flex-start; }
.ticks svg { flex: none; width: 20px; height: 20px; margin-top: .2rem; color: var(--ok); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); flex: none; }
.logo-mark { width: 36px; height: 36px; }
.logo-text { font: 650 1.2rem/1 var(--font-display); letter-spacing: -.01em; }
.logo-text b { color: var(--accent); font-weight: 650; }
.main-nav { display: flex; align-items: center; gap: .2rem; margin-left: auto; }
.main-nav a { padding: .5rem .75rem; border-radius: 10px; color: var(--text-2); text-decoration: none; font-weight: 600; }
.main-nav a:hover, .main-nav a[aria-current='page'] { color: var(--accent); background: var(--accent-soft); }
.main-nav .nav-cta { margin-left: .4rem; background: var(--accent); color: var(--accent-ink); padding-inline: 1rem; }
.main-nav .nav-cta:hover, .main-nav .nav-cta[aria-current='page'] { background: var(--accent-2); color: var(--accent-ink); }
.header-tools { display: flex; gap: .3rem; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; border: 1px solid transparent; background: none; color: var(--text-2); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 22px; height: 22px; }
/* Same as hamropedia.com: a sun in light mode, a moon in dark mode. */
.i-moon, .i-close { display: none; }
[data-theme='dark'] .i-moon { display: inline; } [data-theme='dark'] .i-sun { display: none; }
.menu-open .i-close { display: inline; } .menu-open .i-menu { display: none; }
.menu-btn { display: none; }
@media (max-width: 960px) {
  .menu-btn { display: grid; }
  .header-tools { margin-left: auto; }
  .main-nav { position: fixed; inset: 68px 0 auto 0; display: none; flex-direction: column; align-items: stretch; gap: .15rem; padding: .8rem 16px 1.2rem; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); margin: 0; }
  .menu-open .main-nav { display: flex; }
  .main-nav a { padding: .8rem 1rem; font-size: 1.05rem; }
  .main-nav .nav-cta { margin: .4rem 0 0; text-align: center; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 70% at 85% 30%, var(--accent-soft), transparent 70%); pointer-events: none; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: var(--bg-2); opacity: .9;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0 120 L0 80 L150 40 L260 75 L420 10 L560 70 L700 30 L840 85 L980 25 L1100 60 L1200 35 L1200 120 Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0 120 L0 80 L150 40 L260 75 L420 10 L560 70 L700 30 L840 85 L980 25 L1100 60 L1200 35 L1200 120 Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 2.5rem; align-items: center; padding-block: clamp(2.5rem, 2rem + 4vw, 5rem) clamp(5rem, 4rem + 4vw, 7.5rem); }
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .btn-row { margin-top: 1.6rem; }
.hero-points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; color: var(--text-2); font-weight: 600; font-size: .96rem; }
.hero-points li { display: flex; align-items: center; gap: .35rem; }
.hero-points svg { width: 19px; height: 19px; color: var(--ok); }
.hero-visual { position: relative; height: clamp(360px, 30vw + 220px, 520px); }
.phone { position: absolute; width: clamp(170px, 12vw + 110px, 250px); aspect-ratio: 390 / 720; padding: 8px; border-radius: 34px; background: #0f172a; box-shadow: var(--shadow-lg); }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 27px; }
.phone-front { left: 6%; bottom: 0; z-index: 2; transform: rotate(-4deg); }
.phone-back { right: 4%; top: 0; transform: rotate(5deg); opacity: .97; }
.hero-tag { position: absolute; z-index: 3; right: 0; bottom: 8%; display: flex; align-items: center; gap: .45rem; margin: 0; padding: .55rem .9rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); font-weight: 700; font-size: .92rem; color: var(--text); }
.hero-tag svg { width: 18px; height: 18px; color: var(--accent); }
@media (max-width: 919px) { .hero-visual { max-width: 460px; width: 100%; margin-inline: auto; } }

/* ---------- problems & stat ---------- */
.problem-grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .problem-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .problem-grid { grid-template-columns: repeat(4, 1fr); } }
.problem { padding: 1.4rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.problem h3 { margin-top: 1rem; }
.problem p { color: var(--text-2); margin: 0; }
.stat { display: grid; gap: .3rem 1.6rem; align-items: center; margin-top: 0; padding: 1.5rem 1.7rem; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); }
@media (min-width: 700px) { .stat { grid-template-columns: auto 1fr; } }
.stat-big { margin: 0; font: 700 clamp(2.6rem, 2rem + 2.6vw, 3.6rem)/1 var(--font-display); }
.stat-text { margin: 0; font-size: 1.08rem; }
.stat-text a { color: inherit; opacity: .85; font-size: .88rem; }

/* ---------- what you get ---------- */
.get-grid { display: grid; gap: 1rem 1.6rem; }
@media (min-width: 700px) { .get-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .get-grid { grid-template-columns: repeat(3, 1fr); } }
.get { display: flex; gap: 1rem; padding: 1.2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.get h3 { margin: .1rem 0 .25rem; }
.get p { margin: 0; color: var(--text-2); }

/* ---------- examples ---------- */
.ex-grid { display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .ex-grid { grid-template-columns: repeat(3, 1fr); } }
.ex-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.ex-shot { display: block; position: relative; aspect-ratio: 4 / 3.2; overflow: hidden; background: color-mix(in srgb, var(--ex) 14%, var(--bg-2)); }
.ex-shot img { position: absolute; left: 50%; top: 1.4rem; width: 62%; transform: translateX(-50%); border-radius: 22px 22px 0 0; border: 6px solid #0f172a; border-bottom: 0; box-shadow: var(--shadow-lg); transition: transform .3s; }
.ex-card:hover .ex-shot img { transform: translateX(-50%) translateY(-6px); }
.ex-body { display: flex; flex-direction: column; flex: 1; padding: 1.2rem 1.3rem 1.4rem; }
.ex-body h3 { margin-bottom: .3rem; }
.ex-body h3 a { color: var(--text); text-decoration: none; }
.ex-body > p { color: var(--text-2); }
.ex-body .text-link { margin-top: auto; }
.ex-type { margin: 0 0 .3rem !important; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ex) !important; }
[data-theme='dark'] .ex-type { color: color-mix(in srgb, var(--ex) 55%, white) !important; }
.ex-pack { font-size: .95rem; color: var(--muted) !important; }
.ex-list { display: grid; gap: 1.5rem; }
.ex-card-big { display: grid; }
@media (min-width: 820px) { .ex-card-big { grid-template-columns: 1fr 1.1fr; } .ex-card-big .ex-shot { aspect-ratio: auto; min-height: 380px; } }
.case { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .case { grid-template-columns: 1fr 1.1fr; } }
.case-shot img { display: block; border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1rem; counter-reset: s; }
@media (min-width: 700px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1060px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { position: relative; padding: 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: .9rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 1.1rem/1 var(--font-display); }
.steps p { margin: 0; color: var(--text-2); }

/* ---------- prices ---------- */
.price-grid { display: grid; gap: 1.2rem; align-items: stretch; }
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card { position: relative; display: flex; flex-direction: column; padding: 1.6rem 1.5rem; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.price-card.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.badge { position: absolute; top: -.85rem; left: 1.4rem; margin: 0; padding: .2rem .75rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .82rem; }
.price-card h3 { font-size: 1.4rem; margin: 0; }
.price-what { color: var(--muted); margin: .1rem 0 .8rem; }
.price { display: flex; align-items: baseline; gap: .4rem; margin: 0 0 .4rem; font: 700 2.5rem/1 var(--font-display); color: var(--text); }
.price small { font: 600 1rem var(--font-body); color: var(--muted); }
.price span { font: 500 .95rem var(--font-body); color: var(--muted); }
.price-time { display: flex; align-items: center; gap: .4rem; color: var(--text-2); font-weight: 600; font-size: .95rem; }
.price-time svg { width: 18px; height: 18px; color: var(--accent); }
.price-best { padding: .7rem .9rem; border-radius: 12px; background: var(--bg-2); color: var(--text-2); font-size: .97rem; }
.price-card .ticks { flex: 1; font-size: .98rem; }
.price-notes { display: grid; gap: .8rem; margin: 1.6rem 0; }
@media (min-width: 800px) { .price-notes { grid-template-columns: 1fr 1fr; } }
.price-notes p { display: flex; gap: .7rem; align-items: flex-start; margin: 0; padding: 1rem 1.2rem; border-radius: 14px; border: 1px dashed var(--border-2); color: var(--text-2); }
.price-notes svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: .15rem; }
.source-note { color: var(--muted); font-size: .92rem; margin: -1rem 0 2rem; }
.care-box { display: grid; gap: 1.5rem; padding: 1.8rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); margin-top: 1.5rem; }
@media (min-width: 860px) { .care-box { grid-template-columns: 1fr 1fr; align-items: center; } }
.care-box h2 { margin-bottom: .4rem; }
.extra-grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 860px) { .extra-grid { grid-template-columns: repeat(3, 1fr); } }
.extra { padding: 1.3rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.extra h3 { margin-bottom: .2rem; }
.extra-price { font-weight: 700; color: var(--accent); }
.extra p:last-child { margin: 0; color: var(--text-2); }
.table-wrap { overflow-x: auto; margin: 1rem 0 2rem; border: 1px solid var(--border); border-radius: 14px; }
.cost-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.cost-table th, .cost-table td { padding: .85rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.cost-table thead th { background: var(--bg-2); font-size: .9rem; color: var(--muted); }
.cost-table tbody tr:last-child > * { border-bottom: 0; }
.cost-table tbody th { width: 26%; }

/* ---------- finder ---------- */
.finder { max-width: 860px; margin-inline: auto; display: grid; gap: 1.2rem; }
.finder-q { margin: 0; padding: 1.2rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); display: grid; gap: .55rem; }
@media (min-width: 760px) { .finder-q { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } .finder-q legend { grid-column: 1 / -1; } }
.finder-q legend { display: flex; align-items: center; gap: .6rem; padding: 0; margin-bottom: .6rem; font: 650 1.12rem/1.3 var(--font-display); float: left; width: 100%; }
.finder-q legend span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 .95rem/1 var(--font-body); }
.choice { position: relative; display: flex; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { flex: 1; display: flex; align-items: center; min-height: 56px; padding: .7rem .95rem; border-radius: 12px; border: 2px solid var(--border); background: var(--bg); font-weight: 600; color: var(--text-2); transition: border-color .15s, background .15s; }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.finder > .btn { justify-self: center; }
.finder-result { padding: 1.5rem; border-radius: 20px; border: 2px solid var(--accent); background: var(--surface); box-shadow: var(--shadow-lg); }
.finder-result h3 { font-size: 1.5rem; }
.finder-result h3 span { color: var(--accent); }
.finder-extra { padding: .8rem 1rem; border-radius: 12px; background: var(--bg-2); color: var(--text-2); }

/* ---------- promise / about ---------- */
.promise { display: grid; gap: 2rem; align-items: center; padding: clamp(1.4rem, 1rem + 2vw, 2.5rem); border-radius: 24px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
@media (min-width: 820px) { .promise { grid-template-columns: 240px 1fr; } }
.promise-me img { display: block; width: 220px; height: auto; margin-inline: auto; border-radius: 22px; background: none; }
.about .about-photo { float: left; width: 210px; margin: .3rem 1.6rem 1rem 0; }
.about .about-photo img { display: block; width: 100%; height: auto; border-radius: 22px; background: none; }
.about ul { display: flow-root; }
.about .about-photo figcaption { margin-top: .6rem; text-align: center; font-weight: 700; color: var(--text); line-height: 1.35; }
.about .about-photo figcaption span { display: block; font-weight: 400; font-size: .9rem; color: var(--muted); }
@media (max-width: 560px) { .about .about-photo { float: none; width: 180px; margin: 0 auto 1.2rem; } }
.about-links { clear: both; display: flex; flex-wrap: wrap; gap: .6rem; padding-top: .5rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .7rem; margin-bottom: 1.6rem; }
.faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.faq summary { position: relative; padding: 1rem 3rem 1rem 1.2rem; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0; padding: 0 1.2rem 1.1rem; color: var(--text-2); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: var(--accent-ink); }
[data-theme='dark'] .cta-band { background: #16213a; color: var(--text); }
.cta-inner { display: grid; gap: 1.4rem; align-items: center; padding-block: clamp(2.5rem, 2rem + 3vw, 4rem); }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; } }
.cta-band h2 { color: inherit; margin-bottom: .3rem; }
.cta-band p { margin: 0; opacity: .92; max-width: 40rem; }
.cta-band .btn { background: #fff; color: #1b3f99; border-color: #fff; }
.cta-band .btn:hover { background: #e8eefc; border-color: #e8eefc; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / 70%); }
.cta-band .btn-ghost:hover { background: rgb(255 255 255 / 12%); color: #fff; }
[data-theme='dark'] .cta-band .btn { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
[data-theme='dark'] .cta-band .btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }

/* ---------- inner pages ---------- */
.page-head { position: relative; padding-block: clamp(2.2rem, 1.8rem + 2.5vw, 3.8rem) clamp(2rem, 1.6rem + 2vw, 3rem); background: var(--bg-2); border-bottom: 1px solid var(--border); }
.page-head .lead { margin: 0; }
.crumbs { margin-bottom: 1rem; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.jump a { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; color: var(--text-2); font-weight: 600; font-size: .94rem; }
.jump a:hover { border-color: var(--accent); color: var(--accent); }
.jump svg { width: 17px; height: 17px; color: var(--accent); }
.service-list { display: grid; gap: 1.4rem; }
.service { padding: clamp(1.3rem, 1rem + 1.5vw, 2rem); border-radius: 20px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); scroll-margin-top: 90px; }
.service-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.service-top h2 { margin: 0; font-size: clamp(1.3rem, 1.15rem + .7vw, 1.65rem); }
.service-cols { display: grid; gap: 0 2rem; }
@media (min-width: 820px) { .service-cols { grid-template-columns: 1fr 1fr; } }
.service h3 { font: 700 .82rem/1.3 var(--font-body); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 .35rem; }
.service-cols p { color: var(--text-2); }
.service-price { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: .4rem 0 0; padding-top: 1rem; border-top: 1px solid var(--border); }
.service-price > svg { width: 20px; height: 20px; color: var(--accent); }
.service-price .text-link { margin-left: auto; }
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 820px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; background: var(--border-2); }
.timeline > li { position: relative; display: flex; gap: 1.2rem; padding-bottom: 2rem; }
.tl-n { position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 1.1rem/1 var(--font-display); box-shadow: 0 0 0 6px var(--bg); }
.tl-body { flex: 1; padding: 1.2rem 1.3rem; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.tl-body h2 { font-size: 1.35rem; margin-bottom: .35rem; }
.tl-body > p { color: var(--text-2); }
.tl-when { margin: 0 0 .25rem; font-weight: 700; font-size: .86rem; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.pills { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 0; }
.pills li { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .7rem; border-radius: 999px; background: var(--bg-2); font-size: .9rem; font-weight: 600; color: var(--text-2); }
.pills svg { width: 16px; height: 16px; color: var(--ok); }
.checklist { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: grid; gap: .55rem; }
.checklist li { display: flex; gap: .8rem; align-items: flex-start; padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.checklist .box { flex: none; width: 20px; height: 20px; margin-top: .25rem; border: 2px solid var(--border-2); border-radius: 5px; }
.mini-steps { padding-left: 1.3rem; margin: 0; display: grid; gap: .5rem; color: var(--text-2); }
.ex-links { padding-left: 1.2rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 920px) { .contact-grid { grid-template-columns: 1.3fr .9fr; } }
.contact-form { display: grid; gap: 1.1rem; padding: clamp(1.3rem, 1rem + 1.5vw, 2rem); border-radius: 20px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: .7rem .9rem; border-radius: 12px; border: 1.5px solid var(--border-2); background: var(--bg); color: var(--text); font: inherit; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form-error { margin: 0; padding: .7rem 1rem; border-radius: 10px; background: color-mix(in srgb, var(--warn) 10%, transparent); color: var(--warn); font-weight: 700; }
.contact-form .btn { justify-self: start; }
.contact-side { display: grid; gap: 1rem; }
.side-card { padding: 1.4rem; border-radius: 18px; border: 1px solid var(--border); background: var(--bg-2); }
.side-card h2 { font-size: 1.25rem; }
.side-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; overflow-wrap: anywhere; }
.side-link svg { width: 20px; height: 20px; flex: none; }

/* ---------- legal ---------- */
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose p { color: var(--text-2); }
.notfound { min-height: 50vh; display: flex; flex-direction: column; justify-content: center; align-items: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-top: 3rem; font-size: .97rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-about p { color: var(--text-2); max-width: 26rem; margin-top: .8rem; }
.footer-h { font: 700 .82rem/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer ul a { color: var(--text-2); text-decoration: none; }
.site-footer ul a:hover { color: var(--accent); text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 2.5rem; padding-block: 1.2rem 1.6rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
.footer-base p { margin: 0; }
.footer-base a { color: var(--muted); }

/* Running-costs table becomes simple stacked cards on phones. */
@media (max-width: 640px) {
  .table-wrap { overflow: visible; border: 0; }
  .cost-table { min-width: 0; }
  .cost-table thead { display: none; }
  .cost-table, .cost-table tbody, .cost-table tr, .cost-table th, .cost-table td { display: block; width: auto; }
  .cost-table tr { margin-bottom: .8rem; padding: .9rem 1rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
  .cost-table th, .cost-table td { padding: 0; border: 0; }
  .cost-table tbody th { width: auto; font-size: 1.08rem; margin-bottom: .3rem; }
  .cost-table td { color: var(--text-2); }
  .cost-table td + td { margin-top: .45rem; font-weight: 700; color: var(--text); }
}
.section.narrow > h2:not(:first-child) { margin-top: 2.4rem; }
.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; }
.cf-fallback { padding: 1.2rem; border-radius: 14px; border: 2px dashed var(--accent); background: var(--accent-soft); }
.cf-fallback h2 { font-size: 1.2rem; margin-bottom: .3rem; }
.cf-fallback p { color: var(--text-2); }
.cf-fallback textarea { width: 100%; margin-bottom: .8rem; padding: .7rem .9rem; border-radius: 12px; border: 1.5px solid var(--border-2); background: var(--bg); color: var(--text); font: .95rem/1.5 var(--font-body); resize: vertical; }
.cf-copied { margin: .6rem 0 0; font-weight: 700; color: var(--ok); }
.cf-copied:empty { display: none; }

/* ---------- stats row ---------- */
.stat-row { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 900px) { .stat-row { grid-template-columns: 1fr 1fr; } .stat-row .stat { grid-template-columns: 1fr; align-content: start; } }
.stat-row .stat-text { font-size: 1.02rem; }
.stat + .stat { background: var(--accent-2); }
[data-theme='dark'] .stat + .stat { background: #9db6ff; }

/* ---------- AI cards ---------- */
.ai-grid { display: grid; gap: 1rem; }
@media (min-width: 760px) { .ai-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .ai-grid { grid-template-columns: repeat(4, 1fr); } }
.ai-card { display: flex; flex-direction: column; padding: 1.3rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.ai-card h3 { margin: 1rem 0 .35rem; }
.ai-card > p { color: var(--text-2); font-size: .98rem; }
.ai-example { padding: .65rem .8rem; border-radius: 12px; background: var(--bg-2); font-size: .93rem; color: var(--text-2); }
.ai-card .ai-price { margin: auto 0 0; }
.ai-price { font-weight: 700; color: var(--accent); }
.ai-demo-cta { display: grid; gap: 1rem 2rem; align-items: center; margin-top: 1.6rem; padding: 1.4rem 1.6rem; border-radius: 20px; border: 2px solid var(--accent); background: var(--surface); box-shadow: var(--shadow); }
@media (min-width: 800px) { .ai-demo-cta { grid-template-columns: 1fr auto; } }
.ai-demo-cta h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.ai-demo-cta p { margin: 0; color: var(--text-2); }
.ai-demo-cta.big { margin-top: 0; }
.ai-demo-cta.big h2 { margin-bottom: .4rem; }
.ai-list { display: grid; gap: 1.2rem; }
.ai-row { display: grid; gap: 1rem 2rem; padding: clamp(1.3rem, 1rem + 1.5vw, 2rem); border-radius: 20px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); scroll-margin-top: 90px; }
@media (min-width: 860px) { .ai-row { grid-template-columns: 300px 1fr; } }
.ai-row-head { display: flex; gap: 1rem; align-items: flex-start; }
.ai-row-head h3 { font-size: 1.35rem; margin-bottom: .25rem; }
.ai-row-head .ai-price { margin: 0; }
.ai-row-body > p:first-child { color: var(--text-2); }

/* ---------- real projects ---------- */
.proj-grid { display: grid; gap: 1.2rem; }
@media (min-width: 820px) { .proj-grid { grid-template-columns: 1fr 1fr; } }
.proj { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.proj-shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #0f172a; }
.proj-shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.proj:hover .proj-shot img { transform: scale(1.03); }
.proj-body { display: flex; flex-direction: column; flex: 1; padding: 1.2rem 1.3rem 1.4rem; }
.proj-body h3 { font-size: 1.35rem; margin-bottom: .35rem; }
.proj-body > p { color: var(--text-2); }
.proj-proof { display: flex; gap: .5rem; align-items: flex-start; font-weight: 600; color: var(--text) !important; }
.proj-proof svg { flex: none; width: 20px; height: 20px; margin-top: .2rem; color: var(--ok); }
.proj-you { padding: .7rem .9rem; border-radius: 12px; background: var(--accent-soft); color: var(--text) !important; }
.proj-links { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: auto 0 0 !important; }
.muted-link { color: var(--muted); }

/* ---------- time calculator ---------- */
.calc { max-width: 860px; margin-inline: auto; display: grid; gap: 1rem; padding: clamp(1.3rem, 1rem + 1.5vw, 2rem); border-radius: 20px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
@media (min-width: 760px) { .calc { grid-template-columns: repeat(3, 1fr); } .calc-out { grid-column: 1 / -1; } }
.calc .field label { font-size: .95rem; line-height: 1.35; }
.calc .field { align-content: end; }
.calc-out { padding: 1.1rem 1.2rem; border-radius: 14px; background: var(--accent-soft); font-size: 1.08rem; }
.calc-out p { margin: 0; }
.calc-out p + p { margin-top: .5rem; }
.calc-out strong { color: var(--accent); font-size: 1.15em; }

.get-grid.four { gap: 1rem; }
@media (min-width: 1100px) { .get-grid.four { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 800px) { .price-notes { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
