/* TheWebBarn — dark blue with baby blue, premium and friendly. Phone-first. */
:root {
  --blue: #8fd0f5;            /* baby blue: fills, highlights */
  --blue-soft: #e9f6fe;
  --blue-deep: #1672b8;       /* links and outlines (readable on white) */
  --navy: #0f2a43;            /* headings, main buttons */
  --paper: #ffffff; --wash: #f5fafe; --card: #ffffff; --ink: #14283a; --muted: #5b6f80; --line: #dce9f3; --strong: #b9cfdf;
  --btn: #0f2a43; --btn-ink: #ffffff; --btn-hover: #1b4266;
  --good: #1d6b43; --good-soft: #e3f4ea; --warn: #8a5a00; --warn-soft: #fdf1d3; --bad: #a3271f; --bad-soft: #fbe6e3;
  --radius: 16px; --radius-sm: 10px; --shadow: 0 1px 2px rgba(15, 42, 67, .05), 0 8px 24px rgba(15, 42, 67, .06);
  --font: 'Avenir Next', Avenir, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}
/* Always the dark blue look (Alex’s choice). */
:root {
  --blue-soft: #12304a; --blue-deep: #8fd0f5; --navy: #eef7fd;
  --paper: #0b1a28; --wash: #0e2031; --card: #12283b; --ink: #e6f0f7; --muted: #9db3c4; --line: #1f3b53; --strong: #325672;
  --btn: #8fd0f5; --btn-ink: #0b1a28; --btn-hover: #b4e0f9;
  --good: #7fd6a4; --good-soft: #123524; --warn: #f3c969; --warn-soft: #3a2d0c; --bad: #ff9c94; --bad-soft: #401a17;
  --shadow: none;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--blue-deep); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5rem; color: var(--navy); letter-spacing: -.015em; }
h1 { font-size: 1.9rem; font-weight: 800; }
h2 { font-size: 1.3rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 .6rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
code { font: .88rem ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--blue-soft); padding: .1rem .35rem; border-radius: 5px; overflow-wrap: anywhere; }
pre { background: #0f2a43; color: #e6f0f7; padding: .9rem 1rem; border-radius: var(--radius-sm); overflow-x: auto; font: .85rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; margin: .5rem 0; }

/* top bar */
#top { background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.bar { max-width: 1120px; margin: 0 auto; padding: .6rem 1rem; display: flex; align-items: center; gap: .4rem 1rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.2rem; color: var(--navy); text-decoration: none; margin-right: auto; letter-spacing: -.02em; }
.brand svg { width: 36px; height: 36px; }
.logo .lw { stroke: var(--blue); }
.logo .ln { fill: var(--blue-deep); }
.logo .lb { fill: var(--navy); }
.logo .lp { fill: var(--paper); }
.logo .lbs { stroke: var(--navy); }
.brand b { color: var(--blue-deep); font-weight: 800; }
.brand small { font-weight: 500; font-size: .8rem; color: var(--muted); border-left: 1px solid var(--line); padding-left: .55rem; letter-spacing: 0; }
.tabs { display: flex; gap: .1rem; flex-wrap: wrap; }
.tabs a { padding: .42rem .65rem; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .94rem; }
.tabs a:hover, .tabs a.on { background: var(--blue-soft); color: var(--navy); }
.lang { display: inline-flex; border: 1px solid var(--strong); border-radius: 99px; overflow: hidden; }
.lang button { border: 0; background: transparent; color: var(--muted); font: 600 .8rem var(--font); padding: .3rem .6rem; cursor: pointer; }
.lang button.on { background: var(--blue); color: #0f2a43; }

#app { max-width: 1120px; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
.narrow { max-width: 440px; margin: 2rem auto; }
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6rem; }
.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.back { display: inline-block; margin-bottom: .6rem; font-weight: 600; text-decoration: none; }
footer.foot { border-top: 1px solid var(--line); background: var(--wash); }
footer.foot .in { max-width: 1120px; margin: 0 auto; padding: 1.5rem 1rem 5rem; display: flex; gap: 1rem 2rem; flex-wrap: wrap; justify-content: space-between; color: var(--muted); font-size: .92rem; }
footer.foot a { color: var(--muted); margin-right: 1rem; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid .card { margin-bottom: 0; }
.grid { margin-bottom: 1rem; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: .75rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .5rem 1.1rem; border-radius: 99px; border: 1px solid var(--btn); background: var(--btn); color: var(--btn-ink); font: 700 .97rem var(--font); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.blue { background: var(--blue); border-color: var(--blue); color: #0f2a43; }
.btn.blue:hover { background: #b4e0f9; border-color: #b4e0f9; }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--strong); }
.btn.ghost:hover { background: var(--blue-soft); }
.btn.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn.danger:hover { background: var(--bad-soft); }
.btn.sm { min-height: 34px; padding: .25rem .8rem; font-size: .9rem; }
.btn.wide { width: 100%; }
.btn.top-cta { min-height: 48px; padding: .6rem 1.5rem; font-size: 1.05rem; }
.linkish { background: none; border: 0; padding: 0; color: var(--blue-deep); font: inherit; text-decoration: underline; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.field { margin-bottom: .85rem; }
.field label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: .25rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input[type=checkbox] { width: 18px; height: 18px; vertical-align: -3px; margin-right: .35rem; accent-color: var(--blue-deep); }
.field input:not([type=checkbox]), .field select, .field textarea { width: 100%; min-height: 44px; padding: .5rem .75rem; border: 1px solid var(--strong); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; }
.field textarea { min-height: 96px; }
.hp { position: absolute; left: -9999px; }
.hint { color: var(--muted); font-size: .87rem; margin: .25rem 0 0; }
.form-error { background: var(--bad-soft); color: var(--bad); padding: .6rem .8rem; border-radius: 10px; margin-bottom: .8rem; font-weight: 600; }
.note { padding: .7rem .9rem; border-radius: 12px; background: var(--warn-soft); color: var(--warn); margin-bottom: 1rem; }
.note.good { background: var(--good-soft); color: var(--good); }
.note.bad { background: var(--bad-soft); color: var(--bad); }
.note.info { background: var(--blue-soft); color: var(--navy); }

.pill { display: inline-block; padding: .12rem .6rem; border-radius: 99px; font-size: .82rem; font-weight: 700; background: var(--blue-soft); color: var(--muted); white-space: nowrap; }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }

.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: .7rem 0; border-top: 1px solid var(--line); display: flex; gap: .8rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.list > li:first-child { border-top: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; display: flex; gap: .8rem; align-items: center; padding: .75rem 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps li::before { content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--blue-soft); color: var(--muted); }
.steps li.done::before { content: '✓'; background: var(--good-soft); color: var(--good); }
.steps li > div { flex: 1; }

/* the five-step tracker */
.track { display: flex; list-style: none; padding: 0; margin: .5rem 0 0; counter-reset: t; }
.track li { counter-increment: t; flex: 1; text-align: center; font-size: .82rem; font-weight: 600; color: var(--muted); position: relative; padding-top: 40px; }
.track li::before { content: counter(t); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 2px solid var(--strong); z-index: 1; }
.track li::after { content: ''; position: absolute; top: 14px; left: -50%; width: 100%; height: 3px; background: var(--line); }
.track li:first-child::after { display: none; }
.track li.done::before { content: '✓'; background: var(--blue); border-color: var(--blue); color: #0f2a43; }
.track li.done::after, .track li.now::after { background: var(--blue); }
.track li.now { color: var(--navy); }
.track li.now::before { border-color: var(--blue-deep); color: var(--navy); box-shadow: 0 0 0 4px var(--blue-soft); }

.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .65rem .6rem; border-top: 1px solid var(--line); vertical-align: top; }
th { border-top: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tr.go { cursor: pointer; }
tr.go:hover td { background: var(--wash); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; text-decoration: none; color: inherit; display: block; }
.stat b { display: block; font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.stat span { color: var(--muted); font-size: .9rem; }

/* the public site */
.hero { padding: 3rem 0 2rem; max-width: 780px; }
.eyebrow { display: inline-block; background: var(--blue-soft); color: var(--navy); font-weight: 700; font-size: .85rem; padding: .25rem .7rem; border-radius: 99px; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--blue-deep); }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 620px; }
.band { background: var(--wash); border: 1px solid var(--line); border-radius: 24px; padding: 2rem 1.25rem; margin: 2rem 0; }
.section { margin: 2.5rem 0; }
.section > h2 { font-size: 1.6rem; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--blue); color: #0f2a43; display: grid; place-items: center; margin-bottom: .7rem; }
.icon svg { width: 24px; height: 24px; }
.plan { display: flex; flex-direction: column; }
.plan .price { font-size: 2.2rem; font-weight: 800; color: var(--navy); margin: .2rem 0 .1rem; letter-spacing: -.02em; }
.plan .price small { font-weight: 500; font-size: .95rem; color: var(--muted); letter-spacing: 0; }
.plan.current { border-color: var(--blue-deep); box-shadow: 0 0 0 2px var(--blue); }
.ticks { list-style: none; padding: 0; margin: .5rem 0 0; }
.ticks li { padding-left: 1.6rem; position: relative; margin-bottom: .35rem; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--blue-deep); font-weight: 800; }
details.faq { border-top: 1px solid var(--line); padding: .8rem 0; }
details.faq summary { font-weight: 600; cursor: pointer; color: var(--navy); }
details.faq p { margin: .5rem 0 0; color: var(--muted); }
.work-logo { display: block; width: 100%; max-width: 320px; height: auto; margin: 0 0 .9rem; border-radius: 12px; }
.avatar-ph { width: 96px; height: 96px; border-radius: 50%; background: var(--blue); color: #0f2a43; display: grid; place-items: center; font-size: 2.2rem; font-weight: 800; flex: none; }
.cta { text-align: center; }
.cta .phone { font-size: 1.6rem; font-weight: 800; color: var(--navy); text-decoration: none; display: block; margin: .4rem 0 1rem; }

/* chat helper */
.chat-btn { position: fixed; right: 16px; bottom: 16px; z-index: 30; box-shadow: 0 8px 24px rgba(15, 42, 67, .25); }
.chat { position: fixed; right: 16px; bottom: 16px; z-index: 31; width: min(360px, calc(100vw - 32px)); height: min(480px, calc(100vh - 100px)); background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 40px rgba(15, 42, 67, .25); display: flex; flex-direction: column; overflow: hidden; }
.chat header { background: var(--blue); color: #0f2a43; padding: .7rem 1rem; display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.chat header button { background: none; border: 0; font-size: 1.3rem; cursor: pointer; color: #0f2a43; }
.chat .msgs { flex: 1; overflow-y: auto; padding: .8rem; display: flex; flex-direction: column; gap: .5rem; }
.chat .m { max-width: 85%; padding: .5rem .75rem; border-radius: 14px; font-size: .94rem; white-space: pre-wrap; }
.chat .m.a { background: var(--blue-soft); align-self: flex-start; }
.chat .m.u { background: var(--btn); color: var(--btn-ink); align-self: flex-end; }
.chat form { display: flex; gap: .4rem; padding: .6rem; border-top: 1px solid var(--line); }
.chat input { flex: 1; min-height: 40px; border: 1px solid var(--strong); border-radius: 99px; padding: 0 .9rem; background: var(--paper); color: var(--ink); font: inherit; }

.loading { width: 34px; height: 34px; margin: 4rem auto; border: 3px solid var(--line); border-top-color: var(--blue-deep); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loading { animation: none; } html { scroll-behavior: auto; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #0f2a43; color: #fff; padding: .65rem 1rem; border-radius: 12px; opacity: 0; transition: .25s; z-index: 50; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: #a3271f; }
dialog.dialog { border: 0; border-radius: var(--radius); padding: 1.2rem; max-width: 440px; width: calc(100% - 2rem); background: var(--card); color: var(--ink); }
dialog.dialog::backdrop { background: rgba(11, 26, 40, .55); }
.demo button { width: 100%; text-align: left; margin-top: .5rem; display: block; height: auto; padding: .6rem 1rem; border-radius: 14px; }
.demo button span { display: block; font-weight: 400; color: var(--muted); font-size: .87rem; }
@media (max-width: 720px) { .track li { font-size: .7rem; } }
