/* DialHouse styles. Plain CSS, mobile first. */
:root {
  --ink: #0F172A;
  --paper: #F7F4EE;
  --white: #FFFFFF;
  --green: #15803D;
  --green-dark: #166534;
  --amber: #F59E0B;
  --slate: #475569;
  --border: #E2E8F0;
  --max: 1120px;
  --section: 64px;
  --radius: 14px;
  --head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  padding-bottom: 76px; /* room for the phone bottom bar */
}
@media (min-width: 768px) {
  body { font-size: 18px; padding-bottom: 0; }
  :root { --section: 96px; }
}

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 16px;
}
h1 { font-size: 38px; letter-spacing: -0.02em; }
h2 { font-size: 30px; letter-spacing: -0.01em; }
h3 { font-size: 20px; }
@media (min-width: 768px) {
  h1 { font-size: 56px; }
  h2 { font-size: 38px; }
  h3 { font-size: 22px; }
}
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }
strong { font-weight: 600; }

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: var(--section) 0; scroll-margin-top: 64px; }
section[id], [id="mockup"] { scroll-margin-top: 72px; }
.section-dark { background: var(--ink); color: #E2E8F0; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-white { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lede { color: var(--slate); font-size: 1.05em; max-width: 680px; }
.section-dark .lede { color: #CBD5E1; }
.muted { color: var(--slate); }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--white); color: var(--ink); padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 8px; }

.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;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  border-radius: 10px; border: 2px solid transparent;
  font-family: var(--body); font-weight: 600; font-size: 17px; line-height: 1.2;
  text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); color: var(--white); }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 15px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 238, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(140%) blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo svg { display: block; }
.logo-word { font-family: var(--head); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 14px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav a:hover { color: var(--green-dark); text-decoration: underline; }
.nav .btn { display: none; }
.nav .btn-primary { color: var(--white); text-decoration: none; }
@media (max-width: 767px) {
  .site-header .wrap { padding: 0 16px; }
  .header-inner { gap: 8px; }
  .logo { gap: 6px; }
  .logo svg { width: 24px; height: 24px; }
  .logo-word { font-size: 18px; }
  .nav { gap: 12px; }
  .nav a { font-size: 14px; }
}
@media (max-width: 350px) {
  .header-inner { flex-wrap: wrap; justify-content: center; padding: 8px 0; }
}
@media (min-width: 768px) {
  .header-inner { min-height: 72px; }
  .nav { gap: 28px; }
  .nav a { font-size: 16px; }
  .nav .btn { display: inline-flex; }
}

/* Phone bottom bar */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--white); border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
}
.bottom-bar .btn { flex: 1; }
@media (min-width: 768px) { .bottom-bar { display: none; } }

/* Hero */
.hero { padding: 48px 0 var(--section); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) {
  .hero { padding-top: 80px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
}
.badge-short { display: none; }
@media (max-width: 480px) { .badge-long { display: none; } .badge-short { display: inline; } }
.badge {
  display: inline-block; background: var(--amber); color: var(--ink);
  font-weight: 600; font-size: 14px; line-height: 1.3;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
}
.hero .sub { font-size: 1.1em; color: var(--slate); max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 28px 0 20px; }
.text-link { font-weight: 600; }
.trust-line { font-size: 15px; color: var(--slate); margin: 0; }

/* Phone mockup */
.mockup { margin: 0; display: flex; flex-direction: column; align-items: center; }
.phone {
  width: 290px; max-width: 100%;
  background: var(--ink); border-radius: 40px; padding: 12px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 72px; height: 18px; background: var(--ink); border-radius: 12px; z-index: 2;
}
.screen { background: var(--white); border-radius: 30px; overflow: hidden; font-size: 13px; line-height: 1.45; color: var(--ink); }
.s-top { display: flex; justify-content: space-between; align-items: center; padding: 40px 16px 10px; border-bottom: 1px solid var(--border); }
.s-brand { font-family: var(--head); font-weight: 700; font-size: 14px; }
.s-menu { width: 18px; height: 12px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); position: relative; }
.s-menu::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid var(--ink); }
.s-hero { background: #ECFDF3; padding: 18px 16px; }
.s-tag { display: inline-block; font-size: 11px; font-weight: 600; color: var(--green-dark); background: var(--white); border: 1px solid #BBF7D0; border-radius: 999px; padding: 2px 8px; margin-bottom: 8px; }
.s-title { font-family: var(--head); font-weight: 700; font-size: 19px; line-height: 1.2; margin: 0 0 6px; }
.s-text { color: var(--slate); margin: 0 0 12px; }
.s-btns { display: grid; gap: 8px; }
.s-btn { display: block; text-align: center; border-radius: 8px; padding: 9px 10px; font-weight: 600; font-size: 13px; }
.s-btn-call { background: var(--green); color: var(--white); }
.s-btn-quote { background: var(--white); color: var(--ink); border: 1px solid var(--border); }
.s-list { padding: 14px 16px 6px; }
.s-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); margin: 0 0 8px; }
.s-item { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; font-weight: 600; }
.s-item span:last-child { color: var(--green-dark); }
.s-foot { padding: 8px 16px 18px; color: var(--slate); font-size: 11px; }
.mockup figcaption { margin-top: 16px; font-size: 14px; color: var(--slate); text-align: center; }
.sample-label {
  display: inline-block; background: var(--amber); color: var(--ink);
  font-weight: 600; font-size: 13px; padding: 3px 10px; border-radius: 999px; margin-right: 6px;
}

/* Cards and grids */
.grid-3 { display: grid; gap: 20px; margin-top: 32px; }
.grid-2 { display: grid; gap: 24px; margin-top: 32px; }
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); align-items: start; }
}
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; color: var(--ink);
}
@media (min-width: 768px) { .card { padding: 32px; } }
.steps { list-style: none; padding: 0; }
.steps li { margin: 0; }
.card p:last-child,.card ul:last-child { margin-bottom: 0; }
.card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green); color: var(--white); font-weight: 600; margin-bottom: 14px;
}
.section-dark .card { color: var(--ink); }
.section-dark .card h3 { color: var(--ink); }

/* Pricing */
.price-card { display: flex; flex-direction: column; }
.price-card .for { color: var(--slate); }
.price { font-family: var(--head); font-weight: 700; font-size: 44px; line-height: 1; margin: 8px 0 4px; }
.price-note { color: var(--slate); font-size: 15px; margin-bottom: 20px; }
.price-card h4 { font-family: var(--body); font-weight: 600; font-size: 16px; margin: 24px 0 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate); }
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 0.35em;
  width: 16px; height: 9px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green);
  transform: rotate(-45deg);
}
.promise { background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 10px; padding: 16px; margin: 20px 0; font-size: 16px; }
.promise p:last-child { margin-bottom: 0; }
.terms { font-size: 16px; }
.price-card .btn { margin-top: auto; }
.price-card details { margin: 8px 0 0; border-top: 1px solid var(--border); padding-top: 12px; font-size: 16px; }
.price-card summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.price-card details ul { margin-top: 12px; }
.not-included { margin-top: 24px; }
.not-included ul { margin-bottom: 12px; }

/* Why list */
.why-list { list-style: none; padding: 0; display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 768px) { .why-list { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.why-list li { margin: 0; }
.why-list h3 { font-size: 19px; margin-bottom: 8px; }

/* FAQ */
.faq { margin-top: 32px; max-width: 820px; }
.faq details { background: var(--white); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; position: relative;
  font-family: var(--head); font-weight: 700; font-size: 18px; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 26px; font-weight: 400; color: var(--green);
}
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 20px 18px; }
.faq .answer p:last-child, .faq .answer ul:last-child { margin-bottom: 0; }

/* Form */
.cta-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; } }
.form-card { padding: 24px; }
.fields { display: grid; gap: 18px; }
@media (min-width: 600px) { .fields { grid-template-columns: 1fr 1fr; } .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: 16px; margin-bottom: 6px; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; font-size: 17px; color: var(--ink);
  background: var(--white); border: 1px solid #64748B; border-radius: 8px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.honey { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-card .btn { width: 100%; margin-top: 22px; }
.form-note { font-size: 15px; color: var(--slate); margin: 14px 0 0; }
.fallback { margin-top: 20px; }
.section-dark .fallback a, .section-dark a { color: #86EFAC; }
.section-dark .fallback a:hover, .section-dark a:hover { color: var(--white); }
.section-dark .form-card a { color: var(--green); }
.section-dark .form-card a:hover { color: var(--green-dark); }

/* Footer */
.site-footer { background: var(--white); border-top: 1px solid var(--border); padding: 48px 0 40px; font-size: 16px; color: var(--slate); }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1.6fr; } }
.site-footer p { margin-bottom: 8px; }
.site-footer .footer-name { color: var(--ink); font-weight: 600; }
.footer-small { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 20px; font-size: 15px; }

/* Simple pages (thanks) */
.simple { min-height: 60vh; display: flex; align-items: center; }
.simple .card { max-width: 640px; margin: 0 auto; text-align: center; }
