/* Aldrify Sites USA - hand-written styles. Fonts are self-hosted (SIL OFL, see LICENSES.md). */
@font-face { font-family: "Inter"; src: url("fonts/inter-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Calistoga"; src: url("fonts/calistoga-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ink: #13201c;          /* main text */
  --ink-soft: #46524e;     /* secondary text, 7:1 on paper */
  --paper: #f7f4ee;        /* page background */
  --card: #ffffff;
  --line: #ddd6c8;
  --green: #0b6b4f;        /* primary, white text 6.4:1 */
  --green-deep: #08513c;
  --green-tint: #e3efe8;
  --orange: #b4430e;       /* accent, white text 5.6:1 */
  --orange-tint: #fbe9dd;
  --focus: #1d4ed8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(19,32,28,.06), 0 8px 24px rgba(19,32,28,.07);
  --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 40px; --space-5: 64px; --space-6: 96px;
  --display: "Calistoga", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); }
img, svg { display: block; max-width: 100%; }
a { color: var(--green-deep); text-underline-offset: 3px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 var(--space-2); text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 var(--space-2); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.section { padding: var(--space-6) 0; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: var(--space-2); }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn:active { transform: translateY(1px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,244,238,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.45rem; color: var(--ink); text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.brand small { font-family: var(--body); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); padding-left: 10px; border-left: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: var(--space-3); }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; padding: 10px 2px; }
.nav a:not(.btn):hover { color: var(--green); text-decoration: underline; }
.nav .btn { min-height: 44px; padding: 10px 18px; }

/* Hero */
.hero { padding: var(--space-5) 0 var(--space-6); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--space-5); align-items: center; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero .lead { margin-bottom: var(--space-4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-3); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; color: var(--ink-soft); font-size: .95rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 18px; height: 18px; color: var(--green); }

/* Browser frames */
.stack { position: relative; aspect-ratio: 5 / 4.4; }
.frame { position: absolute; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #efebe3; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #cfc6b5; }
.frame-bar span { margin-left: 8px; font-size: .74rem; color: var(--ink-soft); background: #fff; border-radius: 6px; padding: 2px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame-back { width: 72%; right: 0; top: 0; transform: rotate(2deg); }
.frame-front { width: 80%; left: 0; bottom: 0; }
.mini { padding: 18px; }
.mini-plumb { background: #0e2236; color: #fff; }
.mini-plumb b { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.mini-plumb .bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.25); margin: 6px 0; }
.mini-plumb .call { display: inline-block; margin-top: 12px; background: #ffc928; color: #0e2236; font-weight: 700; font-size: .8rem; padding: 7px 14px; border-radius: 6px; }
.mini-clean { background: #eef7f6; }
.mini-clean b { font-size: 1.1rem; color: #12464a; display: block; }
.mini-clean .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.mini-clean .row div { height: 54px; border-radius: 12px; background: #fff; border: 1px solid #cfe6e3; }
.mini-clean .bar { height: 8px; width: 70%; border-radius: 4px; background: #bfdcd8; margin-top: 8px; }
.mini-clean .call { display: inline-block; margin-top: 14px; background: #12464a; color: #fff; font-weight: 700; font-size: .8rem; padding: 7px 14px; border-radius: 999px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin: var(--space-4) 0 0; padding: 0; list-style: none; counter-reset: step; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4) var(--space-3) var(--space-3); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -22px; left: var(--space-3); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font-family: var(--display); font-size: 1.3rem; }
.step p { color: var(--ink-soft); margin: 0; }

/* Pricing */
.pricing { background: var(--ink); color: #f4f1ea; }
.pricing h2 { color: #fff; }
.pricing .lead { color: #c9d2ce; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-top: var(--space-4); }
.plan { border-radius: var(--radius); padding: var(--space-4); }
.plan-free { background: #1d2e29; border: 1px solid #34483f; }
.plan-paid { background: #fff; color: var(--ink); }
.plan-label { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: var(--space-1); }
.plan-free .plan-label { color: #9ad8bd; }
.plan-paid .plan-label { color: var(--orange); }
.price { font-family: var(--display); font-size: clamp(2.6rem, 5vw, 3.4rem); line-height: 1; margin: 6px 0 var(--space-2); }
.price small { font-family: var(--body); font-size: 1rem; font-weight: 500; opacity: .8; }
.plan ul { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: grid; gap: 12px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; }
.plan li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.plan-free li svg { color: #9ad8bd; }
.plan-paid li svg { color: var(--green); }
.plan-note { margin-top: var(--space-4); color: #c9d2ce; max-width: 70ch; }

/* Examples */
.examples-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); margin-top: var(--space-4); }
.ex-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.ex-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #c8bfae; color: var(--ink); }
.ex-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.ex-thumb .tag { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--ink); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.ex-body { padding: var(--space-3); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ex-body h3 { margin: 0; }
.ex-body p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
.ex-body .open { margin-top: auto; padding-top: var(--space-2); font-weight: 600; color: var(--green-deep); display: inline-flex; align-items: center; gap: 6px; }
.ex-body .open svg { width: 18px; height: 18px; transition: transform .2s ease; }
.ex-card:hover .open svg { transform: translateX(3px); }
.ex-disclaimer { margin-top: var(--space-3); font-size: .95rem; color: var(--ink-soft); }

/* Thumbnails drawn in CSS */
.t-plumb { background: #0e2236; padding: 22px; color: #fff; }
.t-plumb .t-h { font-weight: 800; font-size: 1.3rem; max-width: 60%; line-height: 1.15; }
.t-plumb .t-btn { display: inline-block; margin-top: 14px; background: #ffc928; color: #0e2236; font-weight: 800; font-size: .8rem; padding: 8px 14px; border-radius: 6px; }
.t-plumb .t-pipe { position: absolute; right: -10px; bottom: -10px; width: 46%; }
.t-clean { background: linear-gradient(160deg, #eef7f6, #d9efeb); padding: 22px; }
.t-clean .t-h { font-weight: 800; font-size: 1.25rem; color: #12464a; max-width: 62%; line-height: 1.2; }
.t-clean .t-spray { position: absolute; right: 60px; bottom: 0; width: 30%; }
.t-clean .t-bubbles span { position: absolute; border-radius: 50%; border: 3px solid #fff; background: rgba(255,255,255,.55); }
.t-roof { background: #1f2326; padding: 22px; color: #fff; }
.t-roof .t-h { font-family: Impact, "Arial Narrow", sans-serif; text-transform: uppercase; font-size: 1.5rem; letter-spacing: .02em; line-height: 1.05; max-width: 55%; }
.t-roof .t-h span { color: #ff7a1a; }
.t-roof svg { position: absolute; right: 0; bottom: 0; width: 60%; }
.t-cafe { background: #f3e6d3; padding: 22px; }
.t-cafe .t-h { font-family: Georgia, serif; font-style: italic; font-size: 1.5rem; color: #3b2417; max-width: 55%; line-height: 1.15; }
.t-cafe svg { position: absolute; right: 18px; bottom: 0; width: 38%; }

/* About */
.about .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--space-5); align-items: start; }
.about-card { background: var(--green-tint); border-radius: var(--radius); padding: var(--space-4); }
.about-card dl { margin: 0; display: grid; gap: var(--space-2); }
.about-card dt { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-deep); }
.about-card dd { margin: 2px 0 0; }
.about ul { padding-left: 1.2em; color: var(--ink-soft); }
.about li { margin-bottom: 8px; }

/* Contact */
.contact { background: var(--orange-tint); }
.contact .wrap { text-align: center; }
.contact .lead { margin-inline: auto; }
.mail-big { display: inline-flex; align-items: center; gap: 12px; margin: var(--space-3) 0 var(--space-2); font-family: var(--display); font-size: clamp(1.3rem, 4.2vw, 2.2rem); color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; word-break: break-all; padding: 6px 4px; }
.mail-big svg { width: 32px; height: 32px; flex: none; color: var(--orange); }
.mail-big:hover { color: var(--orange); }
.contact .small { font-size: .95rem; color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--ink); color: #c9d2ce; padding: var(--space-5) 0 var(--space-4); font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--space-4); }
.site-footer h2 { font-family: var(--body); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: var(--space-2); }
.site-footer a { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer ul a { display: inline-block; padding: 4px 0; }
.legal-line { grid-column: 1 / -1; border-top: 1px solid #34483f; padding-top: var(--space-3); font-size: .88rem; }

/* Privacy page */
.doc { padding: var(--space-5) 0 var(--space-6); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.doc h2 { font-size: 1.5rem; margin-top: var(--space-5); }
.doc h3 { margin-top: var(--space-3); }
.doc p, .doc li { color: #2b3733; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 8px; }
.doc .updated { color: var(--ink-soft); }
.doc .summary { background: var(--green-tint); border-radius: var(--radius); padding: var(--space-3); margin: var(--space-4) 0; }
.doc .summary p:last-child { margin: 0; }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap, .about .wrap { grid-template-columns: 1fr; }
  .stack { max-width: 520px; width: 100%; margin-inline: auto; }
  .steps { grid-template-columns: 1fr; gap: var(--space-5); }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: var(--space-5) 0; }
  .hero { padding-top: var(--space-4); }
  .nav a:not(.btn) { display: none; }
  .brand small { display: none; }
  .plans, .examples-grid { grid-template-columns: 1fr; }
  .plan { padding: var(--space-3); }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
