/* Applaide site styles
   Layout idea: dark ink masthead and hero, cool paper body, left-aligned editorial
   columns, one violet accent taken from the logo, teal reserved for "fixed/automated". */
:root {
  --ink: #0e1524;
  --ink-2: #1a2336;
  --paper: #f3f4f7;
  --surface: #ffffff;
  --text: #18202f;
  --muted: #586275;
  --line: #dcdfe6;
  --accent: #663091;
  --brand-blue: #2c3691;
  --accent-soft: #f0e9f6;
  --accent-on-ink: #c7abea;
  --fixed: #0f8f6c;
  --fixed-soft: #dff3ec;
  --flag: #b4541a;
  --flag-soft: #fbeadd;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1120px;
  --radius: 10px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent-on-ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); font-weight: 650; }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.005em; }
p { margin: 0; }
ul { margin: 0; padding-left: 1.15em; }
li + li { margin-top: 0.35em; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 50; }

/* Header */
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #ffffff14; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.03em; color: #fff; text-decoration: none; display: inline-flex; align-items: baseline; }
.brand i { color: var(--accent-on-ink); font-style: normal; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: #d5d9e3; text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"] { box-shadow: 0 2px 0 var(--accent-on-ink); }
.nav .btn { color: #fff; box-shadow: none; }
.nav-toggle { display: none; background: none; border: 1px solid #ffffff40; color: #fff; border-radius: 8px; padding: 8px 12px; font: 600 0.9rem var(--body); cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: #fff; font: 600 1rem var(--body); padding: 13px 22px; border-radius: 8px; border: 2px solid var(--accent); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: #532678; border-color: #532678; }
.btn.small { padding: 9px 16px; font-size: 0.92rem; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); }
.on-ink .btn.ghost { color: #fff; border-color: #ffffff55; }
.on-ink .btn.ghost:hover { background: #ffffff14; border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.tight { padding: clamp(40px, 6vw, 64px) 0; }
.section.white { background: var(--surface); }
.on-ink { background: var(--ink); color: #e8ebf2; }
.on-ink h1, .on-ink h2, .on-ink h3 { color: #fff; }
.on-ink a:not(.btn) { color: var(--accent-on-ink); }
.eyebrow { font: 600 0.78rem var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.on-ink .eyebrow { color: var(--accent-on-ink); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.on-ink .lede { color: #c3c9d6; }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 760px; }
.prose { display: grid; gap: 16px; max-width: 68ch; }
.prose h2 { margin-top: 18px; }
.prose h3 { margin-top: 10px; }
.note { font-size: 0.9rem; color: var(--muted); }

/* Hero */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero h1 em { font-style: normal; color: var(--accent-on-ink); }
.hero .focus { font-size: 0.98rem; color: #aab2c2; border-left: 3px solid var(--accent-on-ink); padding-left: 12px; }
.page-hero { padding: clamp(44px, 6vw, 72px) 0; }
.page-hero .wrap { display: grid; gap: 18px; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 20ch; }

/* Workflow illustration */
.flow { background: var(--ink-2); border: 1px solid #ffffff1c; border-radius: 14px; padding: 20px; display: grid; gap: 16px; }
.flow-cap { font-size: 0.8rem; color: #98a1b3; letter-spacing: 0.04em; }
.flow-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.flow-col { display: grid; gap: 8px; align-content: start; }
.flow-col h3 { font: 600 0.78rem var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: #98a1b3; margin-bottom: 4px; }
.step { background: #ffffff0d; border-radius: 8px; padding: 9px 11px; font-size: 0.88rem; color: #dfe3ec; display: grid; gap: 5px; }
.tag { justify-self: start; font: 600 0.68rem var(--body); letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 7px; border-radius: 99px; }
.tag.manual { background: #b4541a33; color: #f3b98f; }
.tag.auto { background: #0f8f6c33; color: #7fe0c1; }
.tag.human { background: #c7abea2e; color: #dcc8f3; }

/* Grids and cards */
.grid { display: grid; gap: 20px; }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 12px; align-content: start; }
.section.white .card { background: var(--paper); border-color: transparent; }
.card p, .card li { color: var(--muted); font-size: 0.98rem; }
.card .more { font-weight: 600; font-size: 0.95rem; }

.leaks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.leak { padding: 24px 24px 8px 0; display: grid; gap: 10px; align-content: start; }
.leak + .leak { padding-left: 24px; border-left: 1px solid var(--line); }
.leak p { color: var(--muted); }

.method { counter-reset: m; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.method > div { counter-increment: m; display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 1px solid #ffffff30; }
.method > div::before { content: "0" counter(m); font: 600 0.85rem var(--display); color: var(--accent-on-ink); letter-spacing: 0.08em; }
.method p { color: #c3c9d6; }

/* Pricing */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.offer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; align-content: start; }
.offer.lead { border: 2px solid var(--accent); }
.offer .kicker { font: 600 0.76rem var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.price { font-family: var(--display); font-weight: 700; font-size: 2.4rem; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font: 500 0.9rem var(--body); color: var(--muted); letter-spacing: 0; }
.offer li, .offer p { color: var(--muted); font-size: 0.96rem; }

.spec { width: 100%; border-collapse: collapse; font-size: 0.97rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec th, .spec td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { width: 34%; font-weight: 600; color: var(--text); }
.spec td { color: var(--muted); }
.table-scroll { overflow-x: auto; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.founder { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; }
.monogram { width: 72px; height: 72px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 700 1.4rem var(--display); }
.cta-band { display: grid; gap: 22px; justify-items: start; }

/* Form */
.form { display: grid; gap: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); }
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label, legend { font-weight: 600; font-size: 0.96rem; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
legend { padding: 0; margin-bottom: 4px; }
.hint { font-size: 0.86rem; color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], input[type="url"], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: #fff; border: 1.5px solid #c4c9d4; border-radius: 8px; padding: 11px 13px;
}
textarea { min-height: 130px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid #c4c9d4; border-radius: 8px; padding: 9px 13px; font-weight: 500; font-size: 0.95rem; cursor: pointer; background: #fff; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-weight: 400; font-size: 0.95rem; }
.check input { margin-top: 5px; width: 17px; height: 17px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 14px 16px; border-radius: 8px; background: var(--flag-soft); color: #6d3310; font-size: 0.95rem; }
.form-msg[hidden] { display: none; }

.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px; margin: 0; }
.steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font: 700 0.85rem var(--display); }
.steps strong { display: block; }
.steps span { color: var(--muted); font-size: 0.95rem; }
.aside { display: grid; gap: 28px; align-content: start; }
.contact-list { list-style: none; padding: 0; display: grid; gap: 8px; color: var(--muted); }
.contact-list li { margin: 0; }
.callout { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 18px 20px; border-radius: 0 8px 8px 0; display: grid; gap: 10px; }

/* Footer */
.site-footer { background: var(--ink); color: #aab2c2; padding: 48px 0 32px; font-size: 0.93rem; }
.site-footer a { color: #d5d9e3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid #ffffff1c; }
.foot-grid h3 { font: 600 0.78rem var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.foot-grid ul { list-style: none; padding: 0; display: grid; gap: 7px; }
.foot-grid li { margin: 0; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; padding-top: 22px; font-size: 0.86rem; }
.foot-legal span a + a { margin-left: 18px; }

@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .grid.c3, .offers, .method { grid-template-columns: 1fr; }
  .leaks { grid-template-columns: 1fr; }
  .leak, .leak + .leak { padding: 20px 0 12px; border-left: 0; border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 20px 22px; border-bottom: 1px solid #ffffff1c; }
  .nav.open { display: flex; }
  .nav a { padding: 9px 0; font-size: 1.02rem; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--accent-on-ink); }
  .nav .btn { margin-top: 8px; padding: 11px 18px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid.c2, .field-row, .flow-cols, .foot-grid { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .spec th { width: 42%; }
  .spec th, .spec td { padding: 11px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Price keeps its display size inside offer cards and prose */
.offer .price, .prose .price { font-size: 2.4rem; color: var(--text); }
.offer .price small, .prose .price small { font-size: 0.9rem; }

/* White masthead so the logo shows in its own colours */
.site-header { background: var(--surface); color: var(--text); border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); gap: 10px; align-items: center; font-size: 1.4rem; }
.brand img { height: 34px; width: auto; display: block; }
.site-footer .brand { color: #fff; }
.nav a { color: #3c4658; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: 0 2px 0 var(--accent); }
.nav .btn, .nav .btn:hover { color: #fff; }
.nav-toggle { border-color: #c4c9d4; color: var(--ink); }
.site-header :focus-visible, .section:not(.on-ink) :focus-visible { outline-color: var(--accent); }
.portrait { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; display: block; border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--accent); }
.portrait.sm { width: 84px; height: 84px; }
@media (max-width: 900px) {
  .nav { background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px #0e152414; }
  .nav a[aria-current="page"] { color: var(--accent); }
}

/* ---------- Motion and interaction ---------- */
.site-header { transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 6px 24px #0e15241a; }
.rv { transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.rv.pre { opacity: 0; transform: translateY(22px); }
.card, .offer { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, opacity .6s ease; }
.card:hover, .offer:hover { transform: translateY(-4px); box-shadow: 0 14px 30px #0e152417; border-color: #c9b6dc; }
.btn { transition: background .15s, border-color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.more::after { content: " \2192"; display: inline-block; transition: transform .2s; }
.more:hover::after { transform: translateX(4px); }
.leak h3::before { content: ""; display: block; width: 28px; height: 3px; background: var(--accent); margin-bottom: 14px; transition: width .3s; }
.leak:hover h3::before { width: 56px; }

/* Hero: copy rises in, workflow steps arrive one at a time */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes stepIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 #7fe0c100; } 50% { box-shadow: 0 0 0 5px #7fe0c12e; } }
.hero-copy > * { animation: rise .7s both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-copy > *:nth-child(5) { animation-delay: .32s; }
.flow { animation: rise .8s .15s both; }
.flow .step { animation: stepIn .45s both; }
.flow-col:first-child .step:nth-of-type(1) { animation-delay: .5s; }
.flow-col:first-child .step:nth-of-type(2) { animation-delay: .65s; }
.flow-col:first-child .step:nth-of-type(3) { animation-delay: .8s; }
.flow-col:first-child .step:nth-of-type(4) { animation-delay: .95s; }
.flow-col:first-child .step:nth-of-type(5) { animation-delay: 1.1s; }
.flow-col:last-child .step:nth-of-type(1) { animation-delay: 1.5s; }
.flow-col:last-child .step:nth-of-type(2) { animation-delay: 1.7s; }
.flow-col:last-child .step:nth-of-type(3) { animation-delay: 1.9s; }
.flow-col:last-child .step:nth-of-type(4) { animation-delay: 2.1s; }
.flow .step { transition: background .2s; }
.flow .step:hover { background: #ffffff1a; }
.tag.auto { animation: pulse 2.8s 2.6s ease-in-out infinite; }
.page-hero .wrap > * { animation: rise .6s both; }
.page-hero .wrap > *:nth-child(2) { animation-delay: .08s; }
.page-hero .wrap > *:nth-child(3) { animation-delay: .16s; }

/* Cost estimator */
.calc { margin-top: 44px; background: var(--ink); color: #e8ebf2; border-radius: 14px; padding: clamp(22px, 4vw, 36px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.calc h3 { color: #fff; font-size: 1.35rem; margin-bottom: 6px; }
.calc .lede { font-size: 0.98rem; color: #b9c0cf; }
.calc-fields { display: grid; gap: 18px; margin-top: 22px; }
.calc-field { display: grid; gap: 8px; }
.calc-field label { display: flex; justify-content: space-between; gap: 12px; font-weight: 500; font-size: 0.95rem; color: #d5d9e3; }
.calc-field output { font-family: var(--display); font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.calc input[type="range"] { width: 100%; accent-color: var(--accent-on-ink); height: 28px; cursor: pointer; }
.calc-result { background: var(--ink-2); border: 1px solid #ffffff1c; border-radius: 12px; padding: 24px; display: grid; gap: 10px; }
.calc-result .kicker { font: 600 0.76rem var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: #98a1b3; }
.calc-year { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.1rem); line-height: 1; color: var(--accent-on-ink); font-variant-numeric: tabular-nums; }
.calc-result p { color: #c3c9d6; font-size: 0.95rem; }
.calc-result .note { color: #98a1b3; font-size: 0.82rem; }
.calc-result .btn { justify-self: start; margin-top: 6px; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .flow, .flow .step, .tag.auto, .page-hero .wrap > * { animation: none; }
  .rv, .card, .offer, .btn, .more::after, .leak h3::before { transition: none; }
  .rv.pre { opacity: 1; transform: none; }
  .card:hover, .offer:hover, .btn:hover { transform: none; }
}
.calc-result .calc-year { font-size: clamp(2.2rem, 5vw, 3.1rem); color: var(--accent-on-ink); }
.calc-result .kicker { font-size: 0.76rem; color: #98a1b3; }
