/* costsegregationairbnb.com — shared styles */
:root {
  --accent: #E03E45;
  --accent-dark: #E04B50;
  --navy-1: #1a1a2e;
  --navy-2: #0f3460;
  --ink: #1f1d2b;
  --ink-2: #4a4859;
  --ink-3: #65637a;
  --bg: #ffffff;
  --bg-warm: #FFF8F6;
  --bg-cream: #FDF6F2;
  --border: #ece6e2;
  --border-strong: #dcd3cd;
  --shadow-sm: 0 1px 2px rgba(26,26,46,0.04), 0 1px 3px rgba(26,26,46,0.06);
  --shadow-md: 0 4px 12px rgba(26,26,46,0.06), 0 8px 24px rgba(26,26,46,0.06);
  --shadow-lg: 0 20px 48px rgba(26,26,46,0.12);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  font-size: 17px;
  letter-spacing: -0.005em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0;
  line-height: 1.1;
  text-wrap: balance;
}
h1 { font-size: clamp(42px, 5.2vw, 68px); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 3.4vw, 44px); letter-spacing: -0.028em; }
h3 { font-size: 22px; }
p  { color: var(--ink-2); margin: 0 0 16px; text-wrap: pretty; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 28px; }

/* ------- FTC Disclosure bar ------- */
.ftc {
  background: #2a1f1c;
  color: #e8d9d1;
  font-size: 12.5px;
  padding: 8px 28px;
  text-align: center;
  letter-spacing: 0.005em;
}
.ftc strong { color: #fff; font-weight: 600; }

/* ------- Nav ------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -0.02em; font-size: 17px;
  color: var(--ink);
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent);
  position: relative;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 6px 14px -4px rgba(255,90,95,0.55);
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-sub { color: #605e70; font-weight: 500; font-size: 12.5px; letter-spacing: 0; display: block; margin-top: -2px;}

.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-warm); }
.nav-links a.active { color: var(--ink); background: var(--bg-warm); }
.nav-links a.btn { color: #fff !important; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s;
  box-shadow: 0 8px 20px -8px rgba(255,90,95,0.6);
  letter-spacing: -0.005em;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(255,90,95,0.75); }
.btn svg { width: 14px; height: 14px; }

.btn-ghost {
  background: transparent; color: var(--ink);
  box-shadow: none;
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-warm); border-color: var(--ink-3); }

.btn-lg { padding: 15px 26px; font-size: 16px; border-radius: 999px;}

/* ------- Hero ------- */
.hero {
  background: linear-gradient(135deg, var(--navy-1) 0%, var(--navy-2) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(255,90,95,0.18), transparent 45%),
    radial-gradient(ellipse at 90% 90%, rgba(100,181,246,0.12), transparent 50%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1180px; margin: 0 auto;
  padding: 72px 28px 80px;
}
.hero h1 { color: #fff; }
.hero p.lede { color: #d8d4e2; font-size: 19px; max-width: 620px; margin: 20px 0 28px; }
.hero .accent-num { color: var(--accent); white-space: nowrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: #ffd9db;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,90,95,0.2);
}
.eyebrow-light {
  background: var(--bg-warm); border: 1px solid #f3dcd5; color: #0e7a35;
}

/* ------- Section ------- */
section { padding: 84px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head p { font-size: 18px; color: var(--ink-2); margin-top: 12px; }

/* ------- Cards ------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--border-strong); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 15.5px; }

.callout {
  background: var(--bg-warm);
  border: 1px solid #f3dcd5;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}
.callout-coral {
  background: linear-gradient(135deg, #fff4f3, var(--bg-warm));
  border: 1px solid #f5cdc7;
}

/* ------- Table ------- */
.tbl-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
th {
  font-weight: 600; color: var(--ink); font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.06em;
  background: #faf6f4;
}
tr:last-child td { border-bottom: none; }
td .pct { font-weight: 700; color: var(--ink); font-size: 17px; letter-spacing: -0.01em;}
.row-hi td { background: #fff8f6; }
.row-hi td .pct { color: var(--accent-dark); }

/* ------- Footer ------- */
footer {
  background: #181622;
  color: #b7b3c2;
  padding: 56px 28px 36px;
  margin-top: 40px;
}
.foot-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}
footer h4, .foot-heading { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px;font-weight:600;}
footer a { display: block; color: #b7b3c2; padding: 4px 0; font-size: 14.5px; }
footer a:hover { color: #fff; }
.foot-brand { font-weight: 700; color: #fff; font-size: 17px; margin-bottom: 10px; display:flex; gap:10px; align-items:center;}
.foot-disclosure {
  max-width: 1180px; margin: 36px auto 0;
  padding-top: 28px;
  border-top: 1px solid #2a2738;
  color: #8a879a;
  font-size: 12.5px;
  line-height: 1.6;
}
.foot-disclosure strong { color: #e8d9d1; }

/* ------- Property photo placeholder ------- */
.photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background-size: cover; background-position: center;
  position: relative;
  border: 1px solid var(--border);
}
.photo.stripe {
  background:
    linear-gradient(135deg, rgba(0,0,0,0.04), rgba(0,0,0,0) 50%),
    repeating-linear-gradient(45deg, #f0e5df 0 12px, #e9ddd6 12px 24px);
}
.photo .tag {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(24,22,34,0.78);
  color: #fff;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* Utility */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .hero-inner { padding: 56px 24px; }
  section { padding: 64px 0;}
}

.pill {
  display:inline-block; padding: 4px 10px;
  background: var(--bg-warm); color: var(--accent-dark);
  border-radius: 999px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em;
}
.muted { color: var(--ink-3); }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 14px; }

/* numbered step */
.step-num {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--bg-warm); color: var(--accent-dark);
  display: grid; place-items: center;
  font-weight: 700; font-size: 17px;
  border: 1px solid #f3dcd5;
  margin-bottom: 18px;
}

/* Tweaks panel */
.tweaks {
  position: fixed; right: 24px; bottom: 24px;
  width: 280px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 18px;
  z-index: 100;
  display: none;
  font-size: 14px;
}
.tweaks.active { display: block; }
.tweaks h5 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 600;}
.tweaks label { display: block; font-size: 12.5px; color: var(--ink-2); margin: 10px 0 6px; font-weight: 500;}
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  width: 28px; height: 28px; border-radius: 8px;
  cursor: pointer; border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--border);
  transition: transform .1s;
}
.swatch:hover { transform: scale(1.1); }
.swatch.active { box-shadow: 0 0 0 2px var(--ink); }
