/* TwoHomes — public/marketing pages */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --th-green:       #7BA098;
  --th-green-dark:  #5C857B;
  --th-green-light: #E8F0ED;
  --th-warm:        #D4A574;
  --th-warm-dark:   #A87E51;
  --th-bg:          #FAF7F2;
  --th-surface:     #FFFFFF;
  --th-text:        #3A3530;
  --th-muted:       #7A6F62;
  --th-subtle:      #A39A8C;
  --th-border:      #E8E2D5;
  --th-shadow-sm:   0 2px 8px rgba(58,53,48,0.07);
  --th-shadow-md:   0 4px 24px rgba(58,53,48,0.11);
  --th-radius:      10px;
  --th-max:         1120px;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--th-bg);
  color: var(--th-text);
  margin: 0;
  line-height: 1.6;
}

a { color: var(--th-green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.pub-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--th-surface);
  border-bottom: 1px solid var(--th-border);
  box-shadow: var(--th-shadow-sm);
}
.pub-nav-inner {
  max-width: var(--th-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.pub-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--th-text);
  text-decoration: none;
  flex-shrink: 0;
}
.pub-nav-logo .logo-mark {
  width: 28px;
  height: 28px;
  background: var(--th-green);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
}
.pub-nav-links {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  align-items: center;
}
.pub-nav-links a {
  color: var(--th-muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.pub-nav-links a:hover { color: var(--th-text); text-decoration: none; }
.btn-nav {
  background: var(--th-green);
  color: white !important;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s;
}
.btn-nav:hover { background: var(--th-green-dark) !important; text-decoration: none; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--th-green);
  color: white;
  padding: 0.7rem 1.6rem;
  border-radius: var(--th-radius);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--th-green-dark); text-decoration: none; box-shadow: 0 4px 12px rgba(92,133,123,0.3); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--th-green-dark);
  padding: 0.7rem 1.6rem;
  border-radius: var(--th-radius);
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid var(--th-green);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.btn-outline:hover { background: var(--th-green-light); text-decoration: none; }

/* ── Page wrapper ─────────────────────────────────────────────────────────── */
.pub-container {
  max-width: var(--th-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Section base ─────────────────────────────────────────────────────────── */
.pub-section {
  padding: 5rem 0;
}
.pub-section-sm {
  padding: 3rem 0;
}
.pub-section-alt {
  background: var(--th-surface);
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--th-green-dark);
  margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 1rem;
  color: var(--th-text);
}
.section-sub {
  font-size: 1.05rem;
  color: var(--th-muted);
  max-width: 600px;
  margin: 0 0 2.5rem;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.pub-hero {
  background: linear-gradient(160deg, #f0ece4 0%, var(--th-bg) 60%);
  padding: 5rem 0 4rem;
  text-align: center;
}
.pub-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  max-width: 780px;
  margin: 0 auto 1.2rem;
  color: var(--th-text);
}
.pub-hero h1 em {
  font-style: normal;
  color: var(--th-green-dark);
}
.pub-hero p {
  font-size: 1.15rem;
  color: var(--th-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-visual {
  margin-top: 3.5rem;
  background: var(--th-surface);
  border-radius: 14px;
  box-shadow: var(--th-shadow-md);
  border: 1px solid var(--th-border);
  overflow: hidden;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.hero-visual-inner {
  background: var(--th-bg);
  padding: 1.5rem;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-calendar-mock {
  width: 100%;
  max-width: 780px;
}
.cal-mock-header {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--th-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cal-mock-header span { flex: 1; text-align: center; }
.cal-mock-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.cal-cell {
  flex: 1;
  height: 52px;
  border-radius: 8px;
  border: 1px solid var(--th-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 500;
}
.cal-cell.parent-a { background: #E8F0ED; border-color: #7BA098; color: #3F5E58; }
.cal-cell.parent-b { background: #F5E6DD; border-color: #C97B5C; color: #6B3D2A; }
.cal-cell.today { outline: 2px solid var(--th-green); outline-offset: 1px; }
.cal-cell .day-num { font-size: 0.95rem; font-weight: 700; }
.cal-cell .day-label { font-size: 0.65rem; opacity: 0.8; }

/* ── Trust bar ────────────────────────────────────────────────────────────── */
.trust-bar {
  background: var(--th-surface);
  border-top: 1px solid var(--th-border);
  border-bottom: 1px solid var(--th-border);
  padding: 1.25rem 0;
}
.trust-bar-inner {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--th-muted);
}
.trust-item .trust-icon {
  width: 22px;
  height: 22px;
  background: var(--th-green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--th-green-dark);
  flex-shrink: 0;
}

/* ── Problem section ──────────────────────────────────────────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.problem-card {
  background: var(--th-surface);
  border-radius: var(--th-radius);
  padding: 1.75rem;
  border: 1px solid var(--th-border);
  box-shadow: var(--th-shadow-sm);
}
.problem-icon {
  width: 40px;
  height: 40px;
  background: var(--th-green-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--th-green-dark);
  margin-bottom: 0.875rem;
}
.problem-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--th-text);
}
.problem-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--th-muted);
  line-height: 1.55;
}

/* ── Features section ─────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--th-surface);
  border-radius: var(--th-radius);
  padding: 1.5rem;
  border: 1px solid var(--th-border);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.feature-card:hover {
  border-color: var(--th-green);
  box-shadow: var(--th-shadow-md);
}
.feature-card-icon {
  width: 40px;
  height: 40px;
  background: var(--th-green-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--th-green-dark);
  margin-bottom: 0.875rem;
}
.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--th-text);
}
.feature-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--th-muted);
  line-height: 1.55;
}

/* ── Child view callout ───────────────────────────────────────────────────── */
.child-callout {
  background: linear-gradient(135deg, #E8F0ED 0%, #F5E6DD 100%);
  border-radius: 16px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  border: 1px solid var(--th-border);
}
@media (max-width: 680px) {
  .child-callout { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem; }
}
.child-callout h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--th-text);
}
.child-callout p {
  color: var(--th-muted);
  margin: 0 0 1.5rem;
  line-height: 1.6;
}
.child-mock {
  background: white;
  border-radius: var(--th-radius);
  padding: 1.25rem;
  box-shadow: var(--th-shadow-sm);
  border: 1px solid var(--th-border);
}
.child-mock-name {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--th-subtle);
  margin-bottom: 0.75rem;
}
.child-mock-card {
  background: var(--th-green-light);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  margin-bottom: 0.5rem;
  border-left: 3px solid var(--th-green);
}
.child-mock-card.alt { background: #F5E6DD; border-left-color: #C97B5C; }
.child-mock-card h4 {
  margin: 0 0 0.2rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--th-text);
}
.child-mock-card p { margin: 0; font-size: 0.8rem; color: var(--th-muted); }

/* ── How it works ─────────────────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}
@media (max-width: 680px) {
  .steps-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.step-item {
  text-align: center;
  padding: 1.5rem;
}
.step-num {
  width: 48px;
  height: 48px;
  background: var(--th-green);
  color: white;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.step-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}
.step-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--th-muted);
}

/* ── Comparison table ─────────────────────────────────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--th-surface);
  border-radius: var(--th-radius);
  overflow: hidden;
  box-shadow: var(--th-shadow-sm);
  border: 1px solid var(--th-border);
}
.compare-table th {
  background: var(--th-green-light);
  padding: 0.875rem 1.25rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--th-text);
  border-bottom: 2px solid var(--th-border);
}
.compare-table th:first-child { width: 50%; }
.compare-table th.highlight { background: var(--th-green); color: white; text-align: center; }
.compare-table td {
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--th-border);
  color: var(--th-muted);
}
.compare-table td.highlight { text-align: center; color: var(--th-green-dark); font-weight: 600; }
.compare-table td.dim { text-align: center; color: var(--th-subtle); }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table tr:hover td { background: #faf8f5; }
.check { color: var(--th-green-dark); }
.cross { color: #aaa; }

/* ── Pricing ──────────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
.pricing-card {
  background: var(--th-surface);
  border-radius: 14px;
  padding: 2rem;
  border: 2px solid var(--th-border);
  position: relative;
  box-shadow: var(--th-shadow-sm);
}
.pricing-card.featured {
  border-color: var(--th-green);
  box-shadow: 0 0 0 3px rgba(123,160,152,0.15), var(--th-shadow-md);
}
.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--th-green);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
}
.pricing-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
}
.pricing-price {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--th-text);
  line-height: 1;
  margin: 0.5rem 0 0.25rem;
}
.pricing-price sup { font-size: 1.1rem; vertical-align: top; margin-top: 0.4rem; }
.pricing-price sub { font-size: 0.875rem; color: var(--th-muted); font-weight: 400; }
.pricing-note { font-size: 0.8rem; color: var(--th-subtle); margin-bottom: 1.25rem; }
.pricing-features {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pricing-features li {
  font-size: 0.875rem;
  color: var(--th-muted);
  padding: 0.3rem 0;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.pricing-features li::before {
  content: "✓";
  color: var(--th-green-dark);
  font-weight: 700;
  flex-shrink: 0;
}
.pricing-cta {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
}
.pricing-footnote {
  text-align: center;
  font-size: 0.875rem;
  color: var(--th-muted);
  margin-top: 1.75rem;
}
.pricing-footnote a { color: var(--th-green-dark); }

/* ── Attorneys section ────────────────────────────────────────────────────── */
.attorney-section {
  background: var(--th-green);
  color: white;
  padding: 4.5rem 0;
  text-align: center;
}
.attorney-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: white;
}
.attorney-section p {
  font-size: 1.05rem;
  opacity: 0.88;
  max-width: 580px;
  margin: 0 auto 2rem;
}
.btn-white {
  display: inline-block;
  background: white;
  color: var(--th-green-dark);
  padding: 0.7rem 1.6rem;
  border-radius: var(--th-radius);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: box-shadow 0.15s;
}
.btn-white:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.18); text-decoration: none; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.pub-footer {
  background: var(--th-text);
  color: rgba(255,255,255,0.65);
  padding: 2.5rem 0;
}
.pub-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}
.pub-footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  text-decoration: none;
  margin-bottom: 0.5rem;
}
.pub-footer-tagline {
  font-size: 0.8rem;
  opacity: 0.55;
  max-width: 240px;
}
.pub-footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.pub-footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  text-decoration: none;
}
.pub-footer-links a:hover { color: white; text-decoration: none; }

/* ── Legal/content pages ──────────────────────────────────────────────────── */
.pub-page-hero {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--th-border);
}
.pub-page-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.4rem;
}
.pub-page-hero .updated {
  font-size: 0.875rem;
  color: var(--th-subtle);
}
.pub-content {
  max-width: 740px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.pub-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2.5rem 0 0.6rem;
  color: var(--th-text);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--th-border);
}
.pub-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.4rem;
  color: var(--th-text);
}
.pub-content p {
  color: var(--th-muted);
  line-height: 1.7;
  margin: 0 0 0.875rem;
}
.pub-content ul, .pub-content ol {
  color: var(--th-muted);
  line-height: 1.7;
  margin: 0 0 0.875rem;
  padding-left: 1.5rem;
}
.pub-content li { margin-bottom: 0.25rem; }
.pub-content a { color: var(--th-green-dark); }
.pub-content .callout {
  background: var(--th-green-light);
  border-left: 3px solid var(--th-green);
  padding: 0.875rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1.25rem 0;
}
.pub-content .callout p { margin: 0; color: var(--th-green-dark); font-size: 0.9rem; }

/* ── Contact form ─────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  max-width: 860px;
}
@media (max-width: 680px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--th-text);
}
.form-group input, .form-group select, .form-group textarea {
  padding: 0.6rem 0.875rem;
  border: 1.5px solid var(--th-border);
  border-radius: 7px;
  font: inherit;
  font-size: 0.95rem;
  background: var(--th-surface);
  color: var(--th-text);
  transition: border-color 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--th-green);
  box-shadow: 0 0 0 3px rgba(123,160,152,0.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.contact-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.contact-info p {
  font-size: 0.9rem;
  color: var(--th-muted);
  margin: 0 0 1.25rem;
}
.contact-info-item {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  margin-bottom: 0.875rem;
}
.contact-info-icon {
  width: 32px;
  height: 32px;
  background: var(--th-green-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--th-green-dark);
  flex-shrink: 0;
}
.contact-info-text { font-size: 0.875rem; }
.contact-info-text strong { display: block; font-weight: 600; color: var(--th-text); }
.contact-info-text span { color: var(--th-muted); }
#contact-success {
  display: none;
  background: var(--th-green-light);
  border: 1px solid var(--th-green);
  border-radius: var(--th-radius);
  padding: 1rem 1.25rem;
  color: var(--th-green-dark);
  font-weight: 600;
  margin-top: 0.5rem;
}

/* ── Security page ────────────────────────────────────────────────────────── */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.security-card {
  background: var(--th-surface);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius);
  padding: 1.5rem;
  box-shadow: var(--th-shadow-sm);
}
.security-card-icon {
  width: 40px;
  height: 40px;
  background: var(--th-green-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--th-green-dark);
  margin-bottom: 0.875rem;
}
.security-card h3 {
  font-size: 0.975rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--th-text);
}
.security-card p {
  font-size: 0.875rem;
  color: var(--th-muted);
  margin: 0;
  line-height: 1.55;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .pub-nav-links .hide-mobile { display: none; }
  .pub-section { padding: 3.5rem 0; }
  .pub-page-hero h1 { font-size: 1.6rem; }
}
@media (max-width: 480px) {
  .pub-nav-inner { gap: 0.75rem; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn-primary, .hero-ctas .btn-outline { width: 100%; text-align: center; }
  .pub-footer-inner { flex-direction: column; }
  .pub-footer-links { gap: 1rem; }
  .compare-table { font-size: 0.8rem; }
  .compare-table th, .compare-table td { padding: 0.6rem 0.75rem; }
}
