/* PropertyFormStudio — static site. No external requests, no trackers. */
:root {
  --navy: #1b365d;
  --navy-deep: #12243e;
  --navy-mid: #2d4568;
  --gold: #b8954e;
  --gold-light: #d4bc7a;
  --gold-dim: #8f7034;
  --cream: #f6f1e7;
  --cream-dark: #ebe4d6;
  --paper: #fffdf8;
  --white: #ffffff;
  --ink: #1f2430;
  --muted: #5a606c;
  --line: #e4ddd0;
  --line-strong: #d0c7b6;
  --success: #1f6b45;
  --success-bg: #e7f4ec;
  --alert: #8b2e2e;
  --alert-bg: #f8ecec;
  --shadow: 0 10px 30px rgba(18, 36, 62, 0.08);
  --shadow-lg: 0 18px 50px rgba(18, 36, 62, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1120px;
  --header-h: 72px;
  --font-serif: "DM Serif Display", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-sans: "Source Sans Pro", "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --focus: 0 0 0 3px rgba(184, 149, 78, 0.55);
}

@font-face {
  font-family: "DM Serif Display";
  src: url("../fonts/DMSerifDisplay-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Serif Display";
  src: url("../fonts/DMSerifDisplay-Italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/SourceSansPro-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/SourceSansPro-Italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/SourceSansPro-Semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/SourceSansPro-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-dim); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--navy-deep);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.15rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 42rem; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }
.fine { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--navy);
  color: #fff;
  padding: 8px 14px;
  z-index: 100;
  border-radius: 0 0 6px 6px;
}
.skip-link:focus { top: 0; color: #fff; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy-deep);
  flex-shrink: 0;
}
.brand:hover { color: var(--navy-deep); }
.brand img { width: 44px; height: 44px; border-radius: 8px; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
.brand-tag {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  color: var(--navy);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  margin: 0 auto;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  display: block;
  text-decoration: none;
  color: var(--navy-mid);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 6px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--navy-deep);
  background: var(--cream);
}
.site-nav .nav-cta {
  background: var(--navy);
  color: #fff !important;
  margin-left: 8px;
  padding: 8px 16px;
}
.site-nav .nav-cta:hover { background: var(--navy-deep); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-header.is-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px 20px 16px; }
  .site-nav .nav-cta { margin: 8px 0 0; text-align: center; }
}

/* Hero */
.hero {
  background:
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 70%, #24446e 100%);
  color: #f4eee3;
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 40px solid rgba(184, 149, 78, 0.09);
  pointer-events: none;
}
.hero h1 { color: #fff; max-width: 18ch; }
.hero .lead { color: #d9d1c2; }
.hero-gold {
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 14px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 14px 22px;
  border-radius: 8px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  background: var(--gold);
  color: var(--navy-deep) !important;
}
.btn:hover { background: var(--gold-light); color: var(--navy-deep) !important; }
.btn-navy {
  background: var(--navy);
  color: #fff !important;
}
.btn-navy:hover { background: var(--navy-deep); color: #fff !important; }
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.45);
  color: #fff !important;
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff !important; }
.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy) !important;
}
.btn-outline:hover { background: var(--navy); color: #fff !important; }
.btn-sm { padding: 10px 16px; font-size: 0.92rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

main { flex: 1; }

.section { padding: 64px 0; }
.section-tight { padding: 48px 0; }
.section-cream { background: var(--cream); }
.section-paper { background: var(--paper); }
.section-navy { background: var(--navy-deep); color: #efe8db; }
.section-navy h2, .section-navy h3 { color: #fff; }

.section-kicker {
  color: var(--gold-dim);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 10px;
}

/* Cards */
.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 22px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (min-width: 861px) and (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h2, .card h3 { margin-top: 0; }
.card-tool {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.card-tool p { flex: 1; }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.card-link { font-weight: 700; text-decoration: none; color: var(--navy); }
.card-link:hover { color: var(--gold-dim); }

/* Tool layout */
.tool-hero {
  padding: 40px 0 16px;
}
.tool-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 28px;
  align-items: start;
  padding-bottom: 64px;
}
@media (max-width: 900px) {
  .tool-layout { grid-template-columns: 1fr; }
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px 28px;
  box-shadow: var(--shadow);
}
.panel-sticky { position: sticky; top: calc(var(--header-h) + 16px); }
.panel h2 { font-size: 1.35rem; margin-bottom: 4px; }
.fieldset {
  border: 0;
  margin: 0 0 18px;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
}
.fieldset legend {
  font-weight: 700;
  color: var(--navy);
  padding: 0 8px 0 0;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin-top: 12px;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-row.full > * { grid-column: 1 / -1; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-mid);
  margin-bottom: 4px;
}
.field .hint { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 3px; }
.field input, .field select, .field textarea {
  width: 100%;
  font: 400 1rem var(--font-sans);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px 12px;
  appearance: none;
}
.field textarea { min-height: 80px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover {
  border-color: var(--navy-mid);
}
.input-affix {
  position: relative;
}
.input-affix.prefix input { padding-left: 26px; }
.input-affix.suffix input { padding-right: 28px; }
.input-affix .affix {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  pointer-events: none;
}
.input-affix.prefix .affix { left: 10px; }
.input-affix.suffix .affix { right: 10px; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* Results */
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}
.metric {
  background: var(--cream);
  border-radius: 10px;
  padding: 14px 14px 12px;
  border: 1px solid transparent;
}
.metric.primary {
  background: var(--navy);
  color: #fff;
}
.metric.primary .metric-label { color: var(--gold-light); }
.metric.primary .metric-value { color: #fff; }
.metric.good { background: var(--success-bg); border-color: #cfe4d7; }
.metric.good .metric-value { color: var(--success); }
.metric.bad { background: var(--alert-bg); border-color: #e6d0d0; }
.metric.bad .metric-value { color: var(--alert); }
.metric-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.metric-value {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--navy-deep);
  line-height: 1.2;
  margin-top: 2px;
}
.metric-sub { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.metric.primary .metric-sub { color: #cfc6b6; }

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 8px 0 16px;
}
.results-table th, .results-table td {
  text-align: left;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.results-table th { font-weight: 600; color: var(--navy-mid); width: 62%; }
.results-table td { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.sample-banner {
  background: #6e2430;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
}

details.stress {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 8px;
}
details.stress summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}
details.stress summary:hover { color: var(--gold-dim); }

/* Receipt preview */
.receipt-preview-wrap { background: var(--cream-dark); padding: 20px; border-radius: var(--radius); }
.receipt {
  background: #fff;
  color: #1a1a1a;
  max-width: 640px;
  margin: 0 auto;
  padding: 36px 40px 28px;
  box-shadow: var(--shadow-lg);
  font-size: 15px;
  line-height: 1.45;
}
.receipt-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 3px solid var(--navy);
  padding-bottom: 16px;
  margin-bottom: 18px;
}
.receipt-head h2 {
  font-size: 1.7rem;
  margin: 0 0 4px;
  color: var(--navy);
}
.receipt-brand { display: flex; align-items: center; gap: 8px; }
.receipt-brand img { width: 36px; height: 36px; }
.receipt-meta { text-align: right; font-size: 0.85rem; color: #444; }
.receipt-gold { height: 4px; background: var(--gold); margin: -3px 0 20px; }
.receipt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin-bottom: 18px;
}
.receipt-grid .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #666;
  font-weight: 700;
}
.receipt-grid .value { font-size: 1rem; font-weight: 600; min-height: 1.3em; word-break: break-word; }
.receipt-amount {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  padding: 14px 18px;
  margin: 8px 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.receipt-amount .amt {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--navy);
}
.receipt-notes { margin: 12px 0; min-height: 2em; }
.receipt-sign {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 36px;
}
.receipt-sign .line {
  border-top: 1px solid #222;
  padding-top: 6px;
  font-size: 0.8rem;
  color: #555;
}
.receipt-foot {
  margin-top: 28px;
  border-top: 1px solid #ddd;
  padding-top: 10px;
  font-size: 0.72rem;
  color: #666;
}

@media print {
  body * { visibility: hidden; }
  .print-root, .print-root * { visibility: visible; }
  .print-root {
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    background: #fff;
    box-shadow: none;
    padding: 0;
  }
  .no-print, .site-header, .site-footer, .hero, .cta-band, .tool-hero, .form-actions, .nav-toggle {
    display: none !important;
  }
  .receipt { box-shadow: none; max-width: none; }
  a[href]::after { content: none !important; }
}

/* CTA / Etsy */
.cta-band {
  background: var(--navy);
  color: #efe8db;
  padding: 36px 0;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #d5ccbe; max-width: 42rem; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }

.etsy-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--paper);
}
.etsy-card .price {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--navy);
}
.etsy-card .price-note { font-size: 0.8rem; color: var(--muted); }

/* Article / SEO */
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.25em; }
.prose li { margin-bottom: 0.4em; }
.prose code {
  font-size: 0.9em;
  background: var(--cream-dark);
  padding: 1px 5px;
  border-radius: 4px;
}
.callout {
  background: var(--paper);
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  margin: 1.4em 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.disclaimer-box {
  background: var(--cream-dark);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 0.88rem;
  color: var(--muted);
  margin: 24px 0;
}
.formula {
  background: var(--navy-deep);
  color: #f3ece0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  padding: 16px 20px;
  border-radius: 10px;
  margin: 1em 0 1.3em;
  letter-spacing: 0.01em;
}

/* Embed snippet */
.snippet {
  background: var(--navy-deep);
  color: #e8e0d2;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  padding: 16px 18px;
  border-radius: 10px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 12px 0;
}
.copy-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #c9c0b0;
  padding: 48px 0 28px;
  margin-top: auto;
  font-size: 0.92rem;
}
.site-footer a { color: #efe8db; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.site-footer h2 {
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  font-size: 0.8rem;
  color: #9a9286;
}
.footer-legal p { margin: 0 0 0.7em; }

/* About / legal pages */
.legal { padding: 40px 0 72px; }
.legal .prose { max-width: 760px; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 8px;
}

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1em; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 12px 0 12px 56px;
  border-bottom: 1px solid var(--line);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 80;
}
.toast.show { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast { transition: none; }
}
