/* =========================================================
   Doorly — landing page styles
   Palette: off-white #FAFAF7, ink #1A1A1A, forest #1F5238
   Type: Fraunces (serif) for H1, Inter (sans) for everything else
   ========================================================= */

:root {
  --bg: #FAFAF7;
  --bg-elevated: #FFFFFF;
  --ink: #1A1A1A;
  --ink-muted: #4A4A4A;
  --ink-faint: #666666;
  --rule: #E5E2DA;
  --accent: #1F5238;
  --accent-hover: #2A6849;
  --accent-soft: #EFF5F1;
  --max-width: 1100px;
  --max-width-narrow: 720px;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.04);
  --shadow-md: 0 4px 16px rgba(26, 26, 26, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   Header / nav
   ========================================================= */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(8px);
  background: rgba(250, 250, 247, 0.9);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
}
.brand-name { letter-spacing: -0.01em; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--ink-muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links .btn { margin-left: 4px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.05s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-link {
  color: var(--ink-muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.btn-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: 96px 0 80px;
  text-align: left;
}
.hero-h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--ink);
  max-width: 900px;
}
.hero-h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 600;
}
.hero-sub {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 680px;
  margin: 0 0 36px;
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-trust {
  color: var(--ink-faint);
  font-size: 14px;
  margin: 0;
}

/* =========================================================
   Why section
   ========================================================= */
.why {
  padding: 64px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--accent-soft);
}
.why-body {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  font-weight: 400;
}

/* =========================================================
   Section heading shared
   ========================================================= */
.section-h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  color: var(--ink);
}
.section-lead {
  font-size: 18px;
  color: var(--ink-muted);
  margin: 0 0 48px;
  max-width: 600px;
}

/* =========================================================
   Pillars
   ========================================================= */
.pillars {
  padding: 96px 0;
}
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.pillar {
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.pillar:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.pillar-icon svg { width: 22px; height: 22px; }
.pillar h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--ink);
}
.pillar-lead {
  color: var(--ink-muted);
  font-size: 15px;
  margin: 0 0 20px;
}
.pillar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pillar li {
  font-size: 15px;
  color: var(--ink);
  padding: 8px 0 8px 22px;
  position: relative;
  border-top: 1px solid var(--rule);
}
.pillar li:first-child { border-top: none; }
.pillar li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 12px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* =========================================================
   Design partner offer
   ========================================================= */
.partner {
  padding: 96px 0;
  border-top: 1px solid var(--rule);
  background: var(--bg-elevated);
}
.partner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.partner-col {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.partner-col-get { border-left: 4px solid var(--accent); }
.partner-col-ask { border-left: 4px solid var(--ink-faint); }
.partner-col h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 20px;
  color: var(--ink);
}
.partner-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.partner-col li {
  font-size: 16px;
  color: var(--ink);
  padding: 12px 0 12px 26px;
  position: relative;
  border-top: 1px solid var(--rule);
}
.partner-col li:first-child { border-top: none; }
.partner-col-get li::before {
  content: '+';
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
}
.partner-col-ask li::before {
  content: '·';
  position: absolute;
  left: 4px;
  top: 8px;
  color: var(--ink-faint);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
}
.partner-caps {
  text-align: center;
  color: var(--ink-faint);
  font-size: 14px;
  font-weight: 500;
  margin: 40px 0 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* =========================================================
   Waitlist
   ========================================================= */
.waitlist {
  padding: 96px 0;
  border-top: 1px solid var(--rule);
}
.waitlist #getWaitlistContainer { margin: 24px 0; }

/* getwaitlist widget overrides — match forest green theme.
   The widget ships with a blue inline style, so !important is required. */
#getWaitlistContainer button {
  background-color: var(--accent) !important;
  color: #FFFFFF !important;
  border-color: var(--accent) !important;
}
#getWaitlistContainer button:hover {
  background-color: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
  opacity: 1 !important;
}
#getWaitlistContainer input[type="email"],
#getWaitlistContainer input[type="text"] {
  border-color: var(--rule) !important;
  font-family: var(--font-sans) !important;
}
#getWaitlistContainer input[type="email"]:focus,
#getWaitlistContainer input[type="text"]:focus {
  outline: 2px solid var(--accent) !important;
  outline-offset: 1px !important;
}

.casl {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 16px;
  line-height: 1.55;
}

/* =========================================================
   About
   ========================================================= */
.about {
  padding: 80px 0;
  border-top: 1px solid var(--rule);
  background: var(--accent-soft);
}
.about p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
}
.about-contact {
  margin-top: 20px !important;
  font-size: 16px !important;
  color: var(--ink-muted) !important;
}
.about-contact a {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid var(--accent);
}
.about-contact a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
  text-decoration: none;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq {
  padding: 96px 0;
  border-top: 1px solid var(--rule);
}
.faq-item {
  border-top: 1px solid var(--rule);
  padding: 20px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  padding: 4px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-faint);
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: '−'; }
.faq-body {
  padding-top: 12px;
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.65;
  max-width: 640px;
}

/* =========================================================
   Final CTA
   ========================================================= */
.final-cta {
  padding: 96px 0;
  text-align: center;
  border-top: 1px solid var(--rule);
}
.final-h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  color: var(--ink);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: #C7C7C7;
  padding: 64px 0 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.footer-brand .brand-mark {
  background: #FFFFFF;
  color: var(--ink);
}
.footer-brand .brand-name { color: #FFFFFF; }
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-brand > :first-child { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.footer-tagline {
  color: #B0B0B0;
  font-size: 14px;
  margin: 0;
  max-width: 280px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: #C7C7C7;
  font-size: 14px;
  text-decoration: none;
}
.footer-nav a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-legal {
  font-size: 13px;
  color: #9A9A9A;
}
.footer-legal p { margin: 0 0 4px; }
.footer-legal a { color: #C7C7C7; }
.footer-legal a:hover { color: #FFFFFF; }
.footer-legal span { margin: 0 8px; color: #6A6A6A; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .pillar-grid { grid-template-columns: 1fr; gap: 20px; }
  .partner-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 64px 0 56px; }
  .pillars, .partner, .waitlist, .faq, .final-cta { padding: 64px 0; }
}

@media (max-width: 600px) {
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn) { display: none; }
  .nav-links .btn { margin-left: 0; }
  .hero-ctas { gap: 16px; }
  .hero-ctas .btn-link { font-size: 14px; }
  body { font-size: 16px; }
  .container, .container-narrow { padding: 0 20px; }
}

/* =========================================================
   Focus styles (accessibility)
   ========================================================= */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
