/* Chamfer marketing site — shared components (nav, hero, phones, sections, footer) */

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    font-size: 16px;
  }
  h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }
  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; }
  .wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

  /* ---------- Buttons ---------- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-sans); font-weight: 600; font-size: 16px;
    padding: 14px 24px; border-radius: var(--radius-full);
    border: none; cursor: pointer; transition: background 0.15s ease;
    white-space: nowrap;
  }
  .btn-primary { background: var(--primary); color: var(--on-primary); }
  .btn-primary:hover { background: var(--primary-strong); }
  .btn-ghost { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--border-strong); }
  .btn-ghost:hover { background: var(--surface-alt); }
  .btn-sm { padding: 10px 18px; font-size: 14px; }

  /* ---------- Nav ---------- */
  .nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(250, 246, 240, 0.92); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
  }
  .nav-inner { display: flex; align-items: center; gap: 32px; height: 76px; }
  .logo { display: flex; align-items: center; gap: 10px; margin-right: auto; }
  .logo img { width: 34px; height: auto; }
  .logo span { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.01em; }
  .nav .logo img { width: 44px; height: auto; }
  .nav .logo span { font-size: 30px; }
  .nav-links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; color: var(--text-muted); }
  .nav-links a:hover { color: var(--text); }
  @media (max-width: 760px) { .nav-links { display: none; } }

  /* ---------- Hero ---------- */
  .hero { padding: 72px 0 40px; overflow: hidden; }
  .hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
  @media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
  .pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--clay-50); color: var(--accent-ink);
    font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em;
    padding: 7px 14px; border-radius: var(--radius-full); margin-bottom: 20px;
  }
  .pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
  .hero h1 { font-size: clamp(38px, 5.4vw, 58px); letter-spacing: -0.015em; margin-bottom: 20px; }
  .hero h1 em { font-style: normal; color: var(--primary); }
  .hero .sub { font-size: 19px; color: var(--text-muted); max-width: 46ch; margin-bottom: 32px; }

  .waitlist { display: flex; gap: 10px; max-width: 440px; }
  .waitlist input {
    flex: 1; min-width: 0; font: inherit; font-size: 16px;
    padding: 14px 18px; border-radius: var(--radius-full);
    border: 1.5px solid var(--border-strong); background: var(--surface);
    color: var(--text);
  }
  .waitlist input::placeholder { color: var(--text-subtle); }
  .waitlist input:focus { outline: 2px solid var(--green-100); border-color: var(--primary); }
  @media (max-width: 480px) { .waitlist { flex-direction: column; } }
  .waitlist-note { font-size: 13.5px; color: var(--text-subtle); margin-top: 12px; }

  /* ---------- Phone mockups (CSS-drawn stand-ins for real screenshots) ---------- */
  .phone {
    width: 300px; background: #2a2621; border-radius: 44px; padding: 12px;
    box-shadow: var(--shadow-lg); flex-shrink: 0;
  }
  .phone-screen {
    background: var(--bg); border-radius: 34px; overflow: hidden;
    height: 600px; display: flex; flex-direction: column;
  }
  .phone-status { display: flex; justify-content: space-between; padding: 14px 22px 6px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
  .app-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
  .app-crumb { font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-subtle); }
  .app-title { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.2; }
  .app-progress { height: 6px; background: var(--surface-alt); border-radius: 999px; overflow: hidden; }
  .app-progress i { display: block; height: 100%; width: 62%; background: var(--primary); border-radius: 999px; }
  .app-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 14px; box-shadow: var(--shadow-sm);
    font-size: 13.5px;
  }
  .app-card .step-n { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--green-50); color: var(--primary); font-weight: 600; font-size: 12.5px; margin-bottom: 8px; }
  .app-card h4 { font-size: 14.5px; font-weight: 600; margin-bottom: 4px; font-family: var(--font-sans); }
  .app-card p { color: var(--text-muted); line-height: 1.45; }
  .app-safety {
    background: var(--danger-soft); border: 1px solid var(--danger-border);
    border-radius: var(--radius-md); padding: 14px; font-size: 13.5px;
  }
  .app-safety b { color: var(--danger); display: flex; align-items: center; gap: 6px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 6px; }
  .app-safety p { color: var(--text); line-height: 1.45; }
  .app-cta { margin-top: auto; background: var(--primary); color: var(--on-primary); text-align: center; font-weight: 600; font-size: 15px; padding: 13px; border-radius: var(--radius-full); }
  .viewfinder {
    background: #35302a; border-radius: var(--radius-md); height: 190px;
    display: flex; align-items: center; justify-content: center; position: relative;
  }
  .viewfinder svg { width: 110px; height: 110px; opacity: 0.85; }
  .viewfinder .shutter {
    position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--bg); border: 3px solid var(--border-strong);
  }
  .viewfinder .corner {
    position: absolute; width: 22px; height: 22px;
    border: 2.5px solid rgba(251, 247, 241, 0.75);
  }
  .corner.tl { top: 12px; left: 12px; border-right: none; border-bottom: none; border-radius: 6px 0 0 0; }
  .corner.tr { top: 12px; right: 12px; border-left: none; border-bottom: none; border-radius: 0 6px 0 0; }
  .corner.bl { bottom: 62px; left: 12px; border-right: none; border-top: none; border-radius: 0 0 0 6px; }
  .corner.br { bottom: 62px; right: 12px; border-left: none; border-top: none; border-radius: 0 0 6px 0; }
  .id-chip {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--green-50); color: var(--primary);
    font-size: 12.5px; font-weight: 600; padding: 5px 11px;
    border-radius: var(--radius-full); margin-bottom: 8px;
  }
  .chat-q { align-self: flex-end; max-width: 85%; background: var(--green-500); color: var(--on-primary); border-radius: 16px 16px 4px 16px; padding: 10px 14px; font-size: 13.5px; }
  .chat-a { align-self: flex-start; max-width: 88%; background: var(--surface); border: 1px solid var(--border); border-radius: 16px 16px 16px 4px; padding: 10px 14px; font-size: 13.5px; color: var(--text); line-height: 1.45; }

  .hero-phone { display: flex; justify-content: center; }
  @media (max-width: 860px) { .phone { width: 270px; } .phone-screen { height: 540px; } }

  /* ---------- Stat strip ---------- */
  .stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
  .stats-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 32px 0; text-align: center; }
  @media (max-width: 640px) { .stats-inner { grid-template-columns: 1fr; gap: 20px; } }
  .stat b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--primary); }
  .stat span { font-size: 14.5px; color: var(--text-muted); }

  /* ---------- Sections ---------- */
  section { padding: 84px 0; }
  .kicker { font-size: 13.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; }
  .sec-title { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.01em; margin-bottom: 16px; max-width: 22ch; }
  .sec-sub { font-size: 17.5px; color: var(--text-muted); max-width: 58ch; margin-bottom: 44px; }

  /* Problem / savings cards */
  .cost-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  @media (max-width: 860px) { .cost-grid { grid-template-columns: 1fr; } }
  .cost-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 26px; box-shadow: var(--shadow-sm);
  }
  .cost-card h3 { font-size: 20px; margin-bottom: 18px; }
  .cost-row { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; font-size: 15px; }
  .cost-row + .cost-row { border-top: 1px dashed var(--border-strong); }
  .cost-row .who { color: var(--text-muted); }
  .cost-row .amt { font-weight: 600; }
  .cost-row .amt.pro { color: var(--text); }
  .cost-row .amt.diy { color: var(--success); }
  .cost-save {
    margin-top: 16px; background: var(--success-soft); border: 1px solid var(--success-border);
    color: var(--success); font-weight: 600; font-size: 14.5px;
    padding: 9px 14px; border-radius: var(--radius-sm); text-align: center;
  }
  .footnote { font-size: 13px; color: var(--text-subtle); margin-top: 20px; }

  /* How it works */
  .alt-band { background: var(--surface-alt); }
  .how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  @media (max-width: 860px) { .how-grid { grid-template-columns: 1fr; } }
  .how-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
  .how-n {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--primary); color: var(--on-primary);
    font-family: var(--font-display); font-weight: 700; font-size: 19px; margin-bottom: 18px;
  }
  .how-card h3 { font-size: 21px; margin-bottom: 10px; }
  .how-card p { color: var(--text-muted); font-size: 15.5px; }

  /* Safety */
  .safety-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  @media (max-width: 860px) { .safety-grid { grid-template-columns: 1fr; } }
  @media (min-width: 861px) { .photo-grid .hero-phone { order: -1; } }
  .safety-list { list-style: none; display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
  .safety-list li { display: flex; gap: 14px; font-size: 16px; }
  .safety-list .ico {
    flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 14px;
    background: var(--green-50); color: var(--primary); font-weight: 700; margin-top: 1px;
  }
  .safety-list b { display: block; font-weight: 600; }
  .safety-list span { color: var(--text-muted); font-size: 15px; }

  /* Blog preview */
  .blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  @media (max-width: 860px) { .blog-grid { grid-template-columns: 1fr; } }
  .post-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
  }
  .post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
  .post-thumb { height: 140px; display: flex; align-items: center; justify-content: center; }
  .post-thumb svg { width: 52px; height: 52px; }
  .post-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
  .post-tag { font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent-ink); }
  .post-card h3 { font-size: 19px; line-height: 1.3; }
  .post-card p { color: var(--text-muted); font-size: 14.5px; flex: 1; }
  .post-date { font-size: 13px; color: var(--text-subtle); }

  /* Final CTA */
  .cta-band { background: var(--green-700); color: var(--text-inverse); border-radius: var(--radius-lg); padding: 64px 48px; text-align: center; }
  @media (max-width: 640px) { .cta-band { padding: 48px 24px; } }
  .cta-band h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
  .cta-band p { color: var(--green-100); font-size: 17px; max-width: 48ch; margin: 0 auto 32px; }
  .cta-band .waitlist { margin: 0 auto; }
  .cta-band .waitlist input { border-color: var(--green-600); background: #ffffff; }
  .cta-band .btn-primary { background: var(--accent); color: var(--on-accent); }
  .cta-band .btn-primary:hover { background: var(--accent-strong); }

  /* Footer */
  footer { border-top: 1px solid var(--border); padding: 48px 0 56px; margin-top: 84px; }
  .foot-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
  .foot-brand { max-width: 280px; }
  .foot-brand .logo { margin-bottom: 12px; }
  .foot-brand p { font-size: 14px; color: var(--text-muted); }
  .foot-col b { display: block; font-size: 13.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 14px; font-weight: 600; }
  .foot-col a { display: block; font-size: 15px; color: var(--text-muted); margin-bottom: 10px; }
  .foot-col a:hover { color: var(--text); }
  .foot-legal { margin-top: 40px; font-size: 13px; color: var(--text-subtle); }

/* Nav: current-page indicator */
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { content: ""; display: block; height: 2px; background: var(--accent); border-radius: 2px; margin-top: 2px; }

/* Upkeep phone bits */
.score-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--success-soft); border: 1px solid var(--success-border);
  color: var(--success); font-size: 12.5px; font-weight: 600;
  padding: 6px 12px; border-radius: var(--radius-full); align-self: flex-start;
}
.task-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; font-size: 13.5px; }
.task-row + .task-row { border-top: 1px dashed var(--border); }
.task-row .t { font-weight: 500; }
.due-pill {
  font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: var(--radius-full);
  background: var(--surface-alt); color: var(--text-muted); white-space: nowrap;
}
.due-pill.soon { background: var(--warning-soft); color: var(--warning); }

/* Waitlist form feedback */
.form-msg { max-width: 440px; }
.form-msg.ok {
  background: var(--success-soft); border: 1px solid var(--success-border);
  color: var(--success); font-weight: 600; font-size: 15.5px;
  padding: 15px 22px; border-radius: var(--radius-full); text-align: center;
}
.cta-band .form-msg.ok, .digest .form-msg.ok { margin: 0 auto; }
.form-msg.err {
  color: var(--danger); font-size: 14px; font-weight: 500; margin-top: 10px;
}
.cta-band .form-msg.err, .digest .form-msg.err { color: #f3c4b6; }

/* Mobile nav (hamburger) */
.nav .cta-mini { display: none; }
.nav { position: sticky; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; align-items: center;
  background: none; border: none; cursor: pointer; padding: 0;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block; width: 22px; height: 2.5px; border-radius: 2px;
  background: var(--text); transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
@media (max-width: 760px) {
  .nav-inner { gap: 12px; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); padding: 4px 24px 12px;
  }
  .nav-links.open a { padding: 15px 0; font-size: 17px; border-top: 1px dashed var(--border); }
  .nav-links.open a.active::after { display: none; }
  .nav-links.open a.active { color: var(--text); font-weight: 600; }
}
@media (max-width: 480px) {
  .nav-inner { gap: 10px; }
  .nav .logo img { width: 36px; }
  .nav .logo span { font-size: 22px; }
  .nav .btn-sm { font-size: 13.5px; padding: 9px 14px; }
  .nav .cta-full { display: none; }
  .nav .cta-mini { display: inline; }
}
