/* Wharfsync website. Self-contained: no web fonts, no third-party assets. */
:root {
  --navy: #0b2540;
  --navy-2: #0e3a55;
  --teal: #0f766e;
  --teal-bright: #2dd4bf;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --card: #ffffff;
  --warn-bg: #fff7ed;
  --warn-line: #fdba74;
  --danger: #b91c1c;
  --ok: #047857;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e2e8f0;
    --muted: #a8b4c4;
    --line: #243447;
    --bg: #0b1522;
    --bg-soft: #0f1d2e;
    --card: #102236;
    --teal: #5eead4;
    --warn-bg: #2a1d0d;
    --warn-line: #b45309;
    --danger: #fca5a5;
    --ok: #6ee7b7;
    --shadow: none;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 1.0625rem; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; border-radius: 4px; }
code { font-family: var(--mono); font-size: 0.92em; background: var(--bg-soft); border: 1px solid var(--line); padding: 0.05em 0.35em; border-radius: 6px; overflow-wrap: anywhere; }
.visually-hidden { position: absolute !important; 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: -9999px; top: 0; background: #f59e0b; color: #111; padding: 0.6rem 1rem; z-index: 10; font-weight: 600; }
.skip:focus { left: 1rem; top: 1rem; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }

/* header */
.site-header { background: var(--navy); color: #f8fafc; }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: #f8fafc; text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: 0.2px; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 1.1rem; flex-wrap: wrap; margin-left: auto; }
.nav a { color: #cbd5e1; text-decoration: none; font-size: 0.97rem; padding: 0.25rem 0; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; border-bottom: 2px solid var(--teal-bright); }

/* hero */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #f8fafc; padding: 4rem 0 4.5rem; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.15; margin: 0 0 1rem; letter-spacing: -0.5px; max-width: 18ch; }
.hero p.lead { font-size: 1.2rem; color: #cbd5e1; max-width: 60ch; margin: 0 0 1.75rem; }
.hero .note { color: #99f6e4; font-size: 0.95rem; margin-top: 1.25rem; }
.hero .note a, .hero .kicker { color: #99f6e4; }
.hero code { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); color: #f8fafc; }
.cta-row { display: flex; gap: 0.85rem; flex-wrap: wrap; }

.btn { display: inline-block; font: inherit; font-weight: 650; padding: 0.8rem 1.35rem; border-radius: 10px; border: 2px solid transparent; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn-primary { background: var(--teal-bright); color: #062a2a; }
.btn-primary:hover { background: #5eead4; }
.btn-ghost { border-color: #94a3b8; color: #f8fafc; background: transparent; }
.btn-ghost:hover { border-color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
main .btn-ghost { color: var(--ink); border-color: var(--line); }
button:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

/* sections */
section { padding: 3.5rem 0; }
section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.25; margin: 0 0 1rem; letter-spacing: -0.3px; }
h3 { font-size: 1.2rem; margin: 1.6rem 0 0.5rem; }
.kicker { text-transform: uppercase; letter-spacing: 1.2px; font-size: 0.8rem; font-weight: 700; color: var(--teal); margin: 0 0 0.5rem; }
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.2rem; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card p { margin: 0.4rem 0 0; color: var(--muted); }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.2rem 1.2rem 3.4rem; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 1rem; top: 1.05rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.95rem; }

/* feature table */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.98rem; }
th, td { text-align: left; padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); }
td.yes { color: var(--ok); font-weight: 700; }
td.no { color: var(--muted); }

/* pricing */
.pricing { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; }
.price-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.price-card.featured { border: 2px solid var(--teal); }
.price-card h3 { margin: 0; }
.price { font-size: 2.2rem; font-weight: 800; margin: 0.6rem 0 0; letter-spacing: -0.5px; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-alt { color: var(--muted); margin: 0.1rem 0 1rem; }
.price-card ul { padding-left: 1.1rem; margin: 0 0 1.4rem; color: var(--muted); }
.price-card .btn { margin-top: auto; text-align: center; }

/* forms */
form.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
fieldset { border: 0; padding: 0; margin: 0 0 1.2rem; }
legend { font-weight: 700; margin-bottom: 0.6rem; }
.choice { display: flex; gap: 0.75rem; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 0.85rem 1rem; margin-bottom: 0.6rem; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal) inset; }
.choice input { margin-top: 0.35rem; width: 1.1rem; height: 1.1rem; flex: none; }
.choice strong { display: block; }
.choice span { color: var(--muted); font-size: 0.95rem; }
label.field { display: block; font-weight: 600; margin: 0 0 0.35rem; }
input[type="text"], input[type="email"], textarea { width: 100%; font: inherit; padding: 0.7rem 0.8rem; border: 1px solid #94a3b8; border-radius: 10px; background: var(--bg); color: var(--ink); }
textarea { font-family: var(--mono); font-size: 0.9rem; min-height: 7.5rem; resize: vertical; }
.hint { color: var(--muted); font-size: 0.93rem; margin: 0.3rem 0 1rem; }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; margin: 0 0 0.9rem; }
.consent input { margin-top: 0.3rem; width: 1.15rem; height: 1.15rem; flex: none; }

/* messages */
.callout { background: var(--warn-bg); border: 1px solid var(--warn-line); border-left-width: 6px; border-radius: 10px; padding: 0.9rem 1.2rem; margin: 1.2rem 0; }
.callout p { margin: 0.4rem 0; }
.alert { border-radius: 10px; padding: 0.85rem 1.1rem; margin: 0 0 1.2rem; border: 1px solid var(--line); background: var(--bg-soft); }
.alert.error { border-color: var(--danger); color: var(--danger); }
.alert.success { border-color: var(--ok); }
.keybox { display: grid; gap: 0.7rem; }
.row { display: flex; gap: 0.7rem; flex-wrap: wrap; align-items: center; }

/* prose (legal pages) */
.prose { padding: 2.5rem 0 3.5rem; }
.prose h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1.2; margin: 0 0 0.5rem; }
.prose h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.1rem; }
.prose p, .prose li { max-width: 72ch; }
.prose table { margin: 1rem 0; }

/* footer */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 2.2rem 0 2.6rem; font-size: 0.93rem; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-bottom: 1rem; }
.site-footer nav a { color: var(--ink); }
.site-footer p { margin: 0.35rem 0; max-width: 90ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 560px) {
  .hero { padding: 2.6rem 0 3rem; }
  section { padding: 2.4rem 0; }
  .nav { margin-left: 0; }
}
@media print {
  .site-header, .site-footer nav, .skip, .btn { display: none !important; }
}
