/* ==========================================================================
   Floor Plan App — floorplan-app.com
   "Blueprint at night" design system, matched to the iOS app's look:
   deep teal gradients, ink navy, mint accents, blueprint grid.
   ========================================================================== */

:root {
  --bg-0: #041619;
  --bg-1: #0a2e33;
  --bg-2: #10444b;
  --navy: #1d2a5e;
  --navy-2: #232f6b;
  --mint: #7ef0dc;
  --mint-soft: #a9f5e8;
  --mint-dim: rgba(126, 240, 220, 0.14);
  --blue: #4a57d3;
  --blue-hover: #3b48c4;
  --paper: #f5f6fa;
  --card: #ffffff;
  --text: #eaf6f3;
  --text-dim: #a8ccc6;
  --text-faint: #6f9993;
  --ink: #10182b;
  --ink-dim: #4a5670;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --maxw: 1120px;
  --font-display: "Space Grotesk", "Avenir Next", "Helvetica Neue", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--mint); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

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

/* --------------------------------------------------------------------------
   Blueprint grid backdrop
   -------------------------------------------------------------------------- */
.blueprint {
  position: relative;
  background:
    linear-gradient(180deg, rgba(16, 68, 75, 0.55) 0%, rgba(4, 22, 25, 0) 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
}
.blueprint::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(126, 240, 220, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 240, 220, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  pointer-events: none;
}
.blueprint > * { position: relative; }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(4, 22, 25, 0.78);
  border-bottom: 1px solid rgba(126, 240, 220, 0.12);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo img {
  flex-shrink: 0;
  border-radius: 7px;
  box-shadow: 0 0 0 1px rgba(126, 240, 220, 0.25);
}
.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--mint); text-decoration: none; }
.nav-cta {
  background: var(--mint);
  color: var(--bg-0) !important;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(126, 240, 220, 0.35); }
@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 84px 0 40px;
}
.hero h1 {
  font-size: clamp(40px, 5.4vw, 62px);
  color: #fff;
}
.hero h1 .accent { color: var(--mint); }
.hero .sub {
  margin-top: 22px;
  font-size: 19px;
  color: var(--text-dim);
  max-width: 46ch;
}
.hero-ctas {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-ctas img { height: 54px; width: auto; }
.pill {
  display: inline-block;
  background: var(--mint);
  color: #07211f;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 22px;
  border-radius: 999px;
}
.pill.ghost {
  background: var(--mint-dim);
  color: var(--mint-soft);
  border: 1px solid rgba(126, 240, 220, 0.35);
}
.hero-note { margin-top: 16px; font-size: 14px; color: var(--text-faint); }

.hero-shot { position: relative; display: flex; justify-content: center; }
.hero-shot::before {
  content: "";
  position: absolute;
  width: 130%;
  height: 130%;
  top: -15%;
  left: -15%;
  background: radial-gradient(closest-side, rgba(126, 240, 220, 0.16), transparent 70%);
  pointer-events: none;
}
.hero-shot img {
  width: min(340px, 78vw);
  border-radius: 44px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(126, 240, 220, 0.15);
  position: relative;
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; text-align: center; }
  .hero .sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
}

/* --------------------------------------------------------------------------
   Capability strip
   -------------------------------------------------------------------------- */
.strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 34px 0 76px;
}
.strip span {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mint-soft);
  background: var(--mint-dim);
  border: 1px solid rgba(126, 240, 220, 0.22);
  border-radius: 999px;
  padding: 8px 18px;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
section { padding: 84px 0; }
.section-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(30px, 3.6vw, 42px);
  color: #fff;
  margin-bottom: 16px;
}
.section-lead { color: var(--text-dim); font-size: 18px; max-width: 62ch; }
.center { text-align: center; }
.center .section-lead { margin: 0 auto; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.step {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(126, 240, 220, 0.14);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
}
.step .num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--bg-0);
  background: var(--mint);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.step h3 { color: #fff; font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--text-dim); font-size: 15.5px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
}
.feature-row.flip .feature-copy { order: 2; }
.feature-row.flip .feature-media { order: 1; }
.feature-copy h3 {
  font-size: clamp(26px, 3vw, 34px);
  color: #fff;
  margin-bottom: 16px;
}
.feature-copy h3 .accent { color: var(--mint); }
.feature-copy p { color: var(--text-dim); font-size: 17px; }
.feature-copy ul {
  margin-top: 18px;
  list-style: none;
}
.feature-copy li {
  color: var(--text-dim);
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
  font-size: 16px;
}
.feature-copy li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--mint);
  font-weight: 700;
}
.feature-media { display: flex; justify-content: center; }
.feature-media img {
  width: min(300px, 74vw);
  border-radius: 38px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(126, 240, 220, 0.12);
}
@media (max-width: 860px) {
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; gap: 36px; }
  .feature-row.flip .feature-copy { order: 1; }
  .feature-row.flip .feature-media { order: 2; }
}

/* Wide media (iPad) */
.wide-media {
  margin: 48px auto 0;
  max-width: 860px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(126, 240, 220, 0.14);
}

/* Video */
.video-wrap {
  margin-top: 48px;
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(126, 240, 220, 0.14);
  background: #000;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* FAQ */
.faq { max-width: 780px; margin: 48px auto 0; }
.faq details {
  border: 1px solid rgba(126, 240, 220, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: #fff;
  list-style: none;
  position: relative;
  padding-right: 52px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mint);
  font-size: 24px;
  font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 24px 20px; color: var(--text-dim); font-size: 15.5px; }

/* Guide cards */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.guide-card {
  display: block;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(126, 240, 220, 0.14);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.guide-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  border-color: rgba(126, 240, 220, 0.4);
  background: rgba(126, 240, 220, 0.06);
}
.guide-card .tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint);
}
.guide-card h3 {
  font-size: 18.5px;
  color: #fff;
  margin: 12px 0 10px;
  line-height: 1.3;
}
.guide-card p { font-size: 14.5px; color: var(--text-dim); }
.guide-card .more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--mint); }
@media (max-width: 860px) { .guide-grid { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band {
  text-align: center;
  background:
    radial-gradient(ellipse 70% 120% at 50% 0%, rgba(35, 47, 107, 0.85), transparent),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
  border-top: 1px solid rgba(126, 240, 220, 0.12);
  border-bottom: 1px solid rgba(126, 240, 220, 0.12);
}
.cta-band .cta-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 26px;
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(126, 240, 220, 0.25);
}
.cta-band h2 { font-size: clamp(30px, 4vw, 44px); color: #fff; margin-bottom: 14px; }
.cta-band p { color: var(--text-dim); font-size: 18px; margin-bottom: 32px; }
.cta-band img { height: 56px; width: auto; margin: 0 auto; }
.cta-band .hero-note { margin-top: 18px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
  padding: 56px 0 40px;
  border-top: 1px solid rgba(126, 240, 220, 0.1);
  font-size: 14px;
  color: var(--text-faint);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  margin-bottom: 36px;
}
.footer-grid h4 {
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--text-faint); }
.footer-grid a:hover { color: var(--mint); }
.footer-legal { line-height: 1.8; }

/* --------------------------------------------------------------------------
   Article pages
   -------------------------------------------------------------------------- */
.article-hero { padding: 64px 0 30px; }
.article-hero .crumbs { font-size: 14px; color: var(--text-faint); margin-bottom: 20px; }
.article-hero .crumbs a { color: var(--text-faint); }
.article-hero .crumbs a:hover { color: var(--mint); }
.article-hero h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  color: #fff;
  max-width: 22ch;
}
.article-hero .meta { margin-top: 18px; font-size: 14.5px; color: var(--text-faint); }

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 30px 24px 80px;
}
.article-body p { margin-bottom: 22px; color: var(--text-dim); }
.article-body h2 {
  font-size: 27px;
  color: #fff;
  margin: 48px 0 18px;
}
.article-body h3 { font-size: 20px; color: #fff; margin: 34px 0 14px; }
.article-body ul, .article-body ol { margin: 0 0 22px 24px; color: var(--text-dim); }
.article-body li { margin-bottom: 10px; }
.article-body strong { color: var(--text); }
.article-body img {
  border-radius: var(--radius-md);
  margin: 30px auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(126, 240, 220, 0.12);
}
.article-body img.phone { max-width: 320px; }
.article-body .callout {
  background: var(--mint-dim);
  border: 1px solid rgba(126, 240, 220, 0.3);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin: 30px 0;
  color: var(--mint-soft);
  font-size: 16px;
}
.article-body .callout a { font-weight: 600; }
.article-cta {
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(126, 240, 220, 0.18);
  border-radius: var(--radius-lg);
  padding: 44px 30px;
  margin-top: 56px;
}
.article-cta h2 { margin-top: 0 !important; }
.article-cta img { height: 52px; width: auto; margin: 22px auto 0; box-shadow: none; border-radius: 0; }
