/* ConstructPM marketing site — "Confident Tool" / site-ledger aesthetic.
   Calm cream paper, ruled ledger lines, flat teal blocks, amber stamps. No gradients. */

:root {
  --teal: #0D9488;
  --teal-deep: #0F766E;
  --teal-ink: #06403c;
  --cream: #FBF6EE;
  --cream-line: #ece5d8;
  --amber: #D97706;
  --amber-text: #B45309;
  --amber-soft: #fdf0dd;
  --ink: #1c1917;
  --muted: #78716c;
  --paper: #fffdf9;
  --display: 'Hind', 'Hind Vadodara', system-ui, sans-serif;
  --body: 'Hind', 'Hind Vadodara', system-ui, sans-serif;
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.15rem; }

a { color: var(--teal); }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: 4px;
}

.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--amber-text);
  margin: 0 0 10px;
}
.kicker-light { color: #f3c98b; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 238, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  min-height: 44px;
}
.wordmark b { color: var(--teal); font-weight: 700; }
.wordmark-light { color: var(--cream); }
.wordmark-light b { color: #7dd3c8; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--cream-line);
  border-radius: 8px;
  color: var(--ink);
  width: 44px;
  height: 44px;
  padding: 9px;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
}
.nav-links a:hover { color: var(--teal); background: rgba(13, 148, 136, 0.07); }

.btn-solid {
  background: var(--teal);
  color: #04201D !important;
  border-radius: 8px;
  padding: 0 20px !important;
}
.btn-solid:hover { background: var(--teal-deep) !important; color: #04201D !important; }

@media (max-width: 639.98px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-line);
    padding: 10px 20px 18px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { justify-content: flex-start; }
  .btn-solid { justify-content: center !important; margin-top: 6px; }
}

/* ---------- Hero ---------- */

.hero {
  /* ruled ledger paper: faint horizontal lines + one amber margin rule */
  background:
    linear-gradient(to right, transparent 0, transparent 31px, rgba(217, 119, 6, 0.10) 31px, rgba(217, 119, 6, 0.10) 33px, transparent 33px),
    repeating-linear-gradient(to bottom, var(--cream) 0, var(--cream) 35px, var(--cream-line) 35px, var(--cream-line) 36px);
  border-bottom: 1px solid var(--cream-line);
  padding: 56px 0 72px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--paper);
  border: 1px solid var(--cream-line);
  border-radius: 999px;
  padding: 7px 14px;
  margin: 0 0 22px;
}
.eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  font-weight: 700;
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: italic;
  color: var(--teal);
}

.subhead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 28px;
}

/* Beta form */
#beta-form {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 480px;
}
#beta-email {
  flex: 1 1 220px;
  min-height: 52px;
  padding: 0 16px;
  font-size: 1rem;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 10px;
}
#beta-email::placeholder { color: var(--muted); }
#beta-email:focus-visible { outline-offset: 0; border-color: var(--teal); }
#beta-submit {
  min-height: 52px;
  padding: 0 22px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--body);
  color: #04201D;
  background: var(--teal);
  border: 2px solid var(--teal);
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--amber);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
#beta-submit:hover { background: var(--teal-deep); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--amber); }
#beta-submit:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--amber); }
#beta-submit:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: 3px 3px 0 var(--amber); }
#beta-msg {
  flex-basis: 100%;
  margin: 2px 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  min-height: 1.4em;
}

.microcopy {
  margin: 14px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Phone mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: 290px;
  background: var(--ink);
  border-radius: 38px;
  padding: 12px;
  box-shadow: 0 24px 48px -16px rgba(28, 25, 23, 0.35), 0 4px 12px rgba(28, 25, 23, 0.18);
  transform: rotate(2deg);
}

.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 8px;
  border-radius: 999px;
  background: #3b3734;
  z-index: 2;
}

.phone-screen {
  position: relative;
  background: var(--paper);
  border-radius: 28px;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.app-bar {
  background: var(--teal);
  color: #04201D;
  padding: 36px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.app-bar-title { font-weight: 700; font-size: 1.02rem; }
.app-bar-sub { font-size: 0.74rem; opacity: 0.82; }

.app-progress { padding: 14px 18px 4px; }
.app-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.72rem;
  color: var(--muted);
  gap: 8px;
}
.app-progress-pct { font-weight: 700; color: var(--teal); font-variant-numeric: tabular-nums; }
.app-progress-track {
  margin-top: 6px;
  height: 7px;
  border-radius: 999px;
  background: var(--cream-line);
  overflow: hidden;
}
.app-progress-fill {
  width: 48%;
  height: 100%;
  border-radius: 999px;
  background: var(--amber);
}

.app-section-label {
  padding: 14px 18px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.app-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-top: 1px solid var(--cream-line);
}
.app-row-icon {
  flex: none;
  width: 10px; height: 10px;
  border-radius: 3px;
}
.app-row-icon.teal { background: var(--teal); }
.app-row-icon.amber { background: var(--amber); }
.app-row-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.app-row-main b { font-size: 0.8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-row-main small { font-size: 0.68rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-row-amt {
  font-weight: 700;
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.app-total-row {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px 20px;
  border-top: 2px solid var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.app-total-amt {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}

.app-fab {
  position: absolute;
  right: 16px;
  bottom: 64px;
  width: 48px; height: 48px;
  border-radius: 16px;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px -4px rgba(13, 148, 136, 0.5);
}

.hero-stamp {
  position: absolute;
  top: -10px;
  right: 4px;
  background: var(--amber);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 6px;
  transform: rotate(-6deg);
  box-shadow: 0 6px 14px -4px rgba(217, 119, 6, 0.5);
}

/* Anchored sections — clear the 64 px sticky header */
#features, #plans { scroll-margin-top: 80px; }

/* ---------- Features ---------- */

.features {
  padding: 72px 0;
  background: var(--paper);
}

.feature-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.feature-card {
  background: var(--cream);
  border: 1px solid var(--cream-line);
  border-radius: 14px;
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--teal);
}
.feature-card:nth-child(2)::before { background: var(--amber); }
.feature-card h3 { margin-top: 16px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--teal);
  color: #04201D;
}
.feature-card:nth-child(2) .feature-icon { background: var(--amber); }

/* ---------- How it works ---------- */

.how {
  padding: 72px 0;
  background: var(--teal-ink);
  color: var(--cream);
}
.how h2 { color: var(--cream); }

.steps {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 0;
  border-top: 1px solid rgba(250, 247, 242, 0.2);
  padding-top: 18px;
}
.step-num {
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 700;
  font-style: italic;
  color: var(--amber);
  display: block;
  line-height: 1;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.step h3 { color: var(--cream); margin-bottom: 6px; }
.step p { margin: 0; color: rgba(250, 247, 242, 0.72); font-size: 0.96rem; }

/* ---------- Plans ---------- */

.plans { padding: 72px 0; }

.ea-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 30px;
  background: var(--amber-soft);
  border: 1.5px solid var(--amber);
  color: #92510a;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.97rem;
}
.ea-banner svg { flex: none; color: var(--amber); }
.ea-banner strong { color: #7c4205; }

.plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}

.plan-card {
  background: var(--paper);
  border: 1px solid var(--cream-line);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
.plan-card h3 { font-size: 1.35rem; margin-bottom: 4px; }

.plan-card-featured {
  border: 2px solid var(--teal);
  box-shadow: 6px 6px 0 rgba(13, 148, 136, 0.16);
}

.plan-tag {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
}
.plan-tag-amber { color: var(--amber-text); }

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--cream-line);
}
.plan-amt {
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.plan-per { color: var(--muted); font-size: 0.92rem; }

.plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 0.95rem;
}
.plan-list li {
  position: relative;
  padding-left: 26px;
}
.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 14px; height: 8px;
  border-left: 2.5px solid var(--teal);
  border-bottom: 2.5px solid var(--teal);
  transform: rotate(-45deg);
}

/* ---------- FAQ ---------- */

.faq {
  padding: 72px 0;
  background: var(--paper);
  border-top: 1px solid var(--cream-line);
}
.faq-inner { max-width: 760px; }

.faq details {
  border: 1px solid var(--cream-line);
  border-radius: 12px;
  background: var(--cream);
  margin-top: 12px;
}
.faq details:first-of-type { margin-top: 30px; }

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--amber);
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 36px 0;
}

.footer-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.footer-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  margin-left: -12px;
  border-radius: 8px;
}
.footer-links a:hover { color: #7dd3c8; text-decoration: underline; }

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(250, 247, 242, 0.55);
}

/* ---------- Breakpoints ---------- */

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .plan-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .footer-links a { margin-left: 0; }
}

@media (min-width: 960px) {
  .hero { padding: 84px 0 96px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 48px; }
  .phone { width: 312px; }
  .hero-stamp { right: 36px; }
}
