/*
Theme Name: RoofMeasure AI
Theme URI: https://example.com/roofmeasure-ai
Author: OpenAI
Author URI: https://openai.com
Description: Custom landing page theme for an AI-powered roof measurement and estimate platform. Built without page-builder HTML widgets.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: roofmeasure-ai
Tags: landing-page, custom, responsive, business
*/

:root {
  --rm-navy: #071937;
  --rm-navy-2: #0c244a;
  --rm-blue: #1267f2;
  --rm-blue-2: #1d78ff;
  --rm-blue-3: #eaf3ff;
  --rm-sky: #f5f9ff;
  --rm-line: #dce7f5;
  --rm-muted: #586981;
  --rm-green: #19ad4a;
  --rm-yellow: #fff3cf;
  --rm-yellow-text: #996b00;
  --rm-white: #ffffff;
  --rm-shadow: 0 22px 60px rgba(7, 25, 55, 0.10);
  --rm-soft-shadow: 0 12px 34px rgba(7, 25, 55, 0.08);
  --rm-radius-lg: 30px;
  --rm-radius-md: 20px;
  --rm-radius-sm: 14px;
  --rm-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--rm-navy);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
body.rm-menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.rm-page {
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 4%, rgba(18, 103, 242, 0.08), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(18, 103, 242, 0.06), transparent 24%),
    #ffffff;
}
.rm-container {
  width: min(var(--rm-container), calc(100% - 48px));
  margin: 0 auto;
}
.rm-section-eyebrow {
  margin: 0 0 12px;
  color: var(--rm-blue);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.rm-section-title {
  margin: 0;
  color: var(--rm-navy);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}
.rm-section-copy {
  margin: 18px 0 0;
  color: var(--rm-muted);
  font-size: 17px;
  line-height: 1.65;
}
.rm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  min-height: 52px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.rm-button:hover { transform: translateY(-1px); }
.rm-button-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--rm-blue-2), var(--rm-blue));
  box-shadow: 0 12px 22px rgba(18, 103, 242, 0.24);
}
.rm-button-primary:hover { box-shadow: 0 16px 28px rgba(18, 103, 242, 0.30); }
.rm-button-secondary {
  color: var(--rm-blue);
  background: #fff;
  border-color: rgba(18, 103, 242, 0.35);
  box-shadow: 0 8px 24px rgba(7, 25, 55, 0.04);
}
.rm-play-dot {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(18, 103, 242, 0.1);
  display: grid;
  place-items: center;
  color: var(--rm-blue);
  font-size: 11px;
}

/* Header */
.rm-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(220, 231, 245, 0.78);
}
.rm-nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.rm-logo {
  display: inline-flex;
  align-items: center;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.rm-logo span { color: var(--rm-blue); }
.rm-menu {
  display: flex;
  align-items: center;
  gap: 44px;
  color: var(--rm-navy-2);
  font-size: 14px;
  font-weight: 750;
}
.rm-menu a {
  opacity: .86;
  transition: color .2s ease, opacity .2s ease;
}
.rm-menu a:hover { color: var(--rm-blue); opacity: 1; }
.rm-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}
.rm-signin {
  color: var(--rm-navy-2);
  font-size: 14px;
  font-weight: 800;
}
.rm-header-actions .rm-button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 13px;
}
.rm-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rm-line);
  border-radius: 12px;
  background: #fff;
  color: var(--rm-navy);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.rm-mobile-toggle span {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* Hero */
.rm-hero {
  position: relative;
  padding: 82px 0 46px;
}
.rm-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 50%;
  width: 760px;
  height: 760px;
  transform: translate(-2%, -28%);
  pointer-events: none;
  background: radial-gradient(circle, rgba(18, 103, 242, 0.11), transparent 65%);
  filter: blur(4px);
}
.rm-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.16fr);
  align-items: center;
  gap: 50px;
}
.rm-hero-content {
  padding: 20px 0 0;
}
.rm-hero h1 {
  margin: 0;
  color: var(--rm-navy);
  font-size: clamp(42px, 6.2vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  font-weight: 950;
  max-width: 660px;
}
.rm-hero-lede {
  max-width: 560px;
  margin: 26px 0 0;
  color: var(--rm-muted);
  font-size: 19px;
  line-height: 1.58;
  letter-spacing: -0.015em;
}
.rm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 32px 0 0;
}
.rm-address-card {
  width: min(540px, 100%);
  margin-top: 34px;
  padding: 18px;
  border: 1px solid rgba(220, 231, 245, .9);
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--rm-soft-shadow);
}
.rm-address-label {
  display: block;
  margin: 0 0 8px;
  color: var(--rm-navy-2);
  font-size: 13px;
  font-weight: 850;
}
.rm-address-row {
  display: flex;
  gap: 10px;
}
.rm-address-row input {
  min-width: 0;
  flex: 1;
  height: 54px;
  border: 1px solid var(--rm-line);
  border-radius: 10px;
  background: #fff;
  color: var(--rm-navy);
  padding: 0 15px;
  outline: none;
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(7,25,55,.03);
}
.rm-address-row input:focus {
  border-color: rgba(18,103,242,.48);
  box-shadow: 0 0 0 4px rgba(18,103,242,.08);
}
.rm-address-row .rm-button {
  min-height: 54px;
  padding: 0 20px;
  white-space: nowrap;
}
.rm-reassurance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(220,231,245,.82);
  color: #68788e;
  font-size: 13px;
  font-weight: 700;
}
.rm-check-mini,
.rm-home-mini {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  color: var(--rm-green);
}
.rm-home-mini { color: #718096; }
.rm-hero-visual {
  position: relative;
  margin-right: -24px;
}
.rm-hero-visual img {
  width: 100%;
  filter: drop-shadow(0 28px 44px rgba(7, 25, 55, 0.12));
}
.rm-hero-visual::after {
  content: "";
  position: absolute;
  inset: 9% 7% auto auto;
  width: 36%;
  height: 34%;
  border-radius: 50%;
  background: rgba(18, 103, 242, 0.10);
  filter: blur(50px);
  z-index: -1;
}

/* Benefit strip */
.rm-benefits {
  padding: 14px 0 50px;
}
.rm-benefit-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(220, 231, 245, .95);
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--rm-soft-shadow);
  overflow: hidden;
}
.rm-benefit-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 28px 32px;
  min-height: 122px;
  position: relative;
}
.rm-benefit-item + .rm-benefit-item::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 0;
  width: 1px;
  background: var(--rm-line);
}
.rm-icon-circle {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f3f8ff, #eef5ff);
  border: 1px solid #dce9ff;
  color: var(--rm-blue);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.rm-icon-circle svg,
.rm-feature-icon svg,
.rm-step-icon svg { width: 32px; height: 32px; stroke: currentColor; fill: none; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.rm-benefit-item h3,
.rm-feature-card h3,
.rm-step-card h3,
.rm-faq-card h3 {
  margin: 0;
  color: var(--rm-navy);
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.rm-benefit-item p,
.rm-feature-card p,
.rm-step-card p,
.rm-faq-card p {
  margin: 7px 0 0;
  color: var(--rm-muted);
  font-size: 14px;
  line-height: 1.48;
}

/* How it works */
.rm-how {
  padding: 34px 0 58px;
  text-align: center;
}
.rm-steps {
  margin: 38px auto 0;
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: 1fr 48px 1fr 48px 1fr;
  align-items: center;
  gap: 0;
}
.rm-step-card {
  min-height: 150px;
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--rm-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--rm-soft-shadow);
}
.rm-step-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--rm-blue);
  background: var(--rm-blue-3);
}
.rm-step-arrow {
  color: var(--rm-blue);
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
  text-align: center;
}

/* Features */
.rm-features {
  padding: 18px 0 76px;
}
.rm-features .rm-section-title { text-align: center; }
.rm-feature-grid {
  margin: 40px auto 0;
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.rm-feature-card {
  min-height: 136px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 17px;
  padding: 26px 24px;
  border: 1px solid var(--rm-line);
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 9px 24px rgba(7,25,55,.045);
}
.rm-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--rm-blue);
  background: #f7fbff;
  border: 1px solid #dfeeff;
}
.rm-feature-card.rm-green .rm-feature-icon { color: var(--rm-green); background: #f3fff7; border-color: #d5f3df; }

/* Upgrade */
.rm-upgrade {
  padding: 72px 0;
  background:
    radial-gradient(circle at 24% 34%, rgba(18, 103, 242, 0.10), transparent 33%),
    linear-gradient(180deg, #f5f9ff, #eef6ff);
  border-top: 1px solid rgba(220,231,245,.7);
  border-bottom: 1px solid rgba(220,231,245,.7);
}
.rm-upgrade-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  align-items: center;
  gap: 72px;
}
.rm-upgrade-visual {
  border-radius: 28px;
  background: rgba(255,255,255,.36);
}
.rm-upgrade-visual img {
  width: 100%;
  filter: drop-shadow(0 26px 48px rgba(7,25,55,.10));
}
.rm-check-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 30px;
  display: grid;
  gap: 14px;
}
.rm-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--rm-navy-2);
  font-size: 16px;
  font-weight: 700;
}
.rm-check-list span {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #fff;
  background: var(--rm-green);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 13px;
  margin-top: 1px;
}
.rm-small-note {
  margin: 14px 0 0;
  color: #64758d;
  font-size: 14px;
  line-height: 1.45;
}

/* Results */
.rm-results {
  padding: 62px 0 36px;
  text-align: center;
}
.rm-result-card {
  width: min(940px, 100%);
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: 150px repeat(3, 1fr) 220px;
  align-items: center;
  gap: 0;
  text-align: left;
  border: 1px solid var(--rm-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--rm-soft-shadow);
  overflow: hidden;
}
.rm-result-thumb {
  padding: 22px 26px;
}
.rm-result-thumb img { width: 118px; }
.rm-result-metric {
  min-height: 116px;
  padding: 28px 28px;
  border-left: 1px solid var(--rm-line);
}
.rm-result-metric span {
  display: block;
  color: #697a91;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .02em;
  text-transform: none;
}
.rm-result-metric strong {
  display: block;
  margin-top: 7px;
  color: var(--rm-navy);
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.055em;
}
.rm-result-metric small {
  display: block;
  margin-top: 7px;
  color: #697a91;
  font-size: 13px;
  font-weight: 700;
}
.rm-medium { color: #e08b00 !important; }
.rm-result-status {
  min-height: 116px;
  padding: 26px 28px;
  border-left: 1px solid var(--rm-line);
}
.rm-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--rm-yellow-text);
  background: var(--rm-yellow);
  font-size: 13px;
  font-weight: 900;
}
.rm-result-status p {
  margin: 12px 0 0;
  color: var(--rm-muted);
  font-size: 14px;
  line-height: 1.45;
}

/* FAQ */
.rm-faq {
  padding: 22px 0 82px;
  text-align: center;
}
.rm-faq-grid {
  margin: 28px auto 0;
  width: min(960px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: left;
}
.rm-faq-card {
  position: relative;
  min-height: 130px;
  padding: 24px 42px 24px 24px;
  border: 1px solid var(--rm-line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(7,25,55,.04);
}
.rm-faq-card::after {
  content: "⌄";
  position: absolute;
  right: 20px;
  top: 22px;
  color: var(--rm-navy);
  font-weight: 900;
}

/* Footer */
.rm-footer {
  padding: 54px 0 36px;
  color: #d7e7ff;
  background:
    radial-gradient(circle at 80% 20%, rgba(18,103,242,.25), transparent 30%),
    linear-gradient(135deg, #061832, #09264d);
}
.rm-footer-grid {
  display: grid;
  grid-template-columns: 1.65fr repeat(3, 0.75fr) 1.15fr;
  gap: 48px;
  align-items: start;
}
.rm-footer .rm-logo { color: #fff; }
.rm-footer p {
  max-width: 300px;
  margin: 16px 0 0;
  color: #a8bad2;
  font-size: 15px;
  line-height: 1.55;
}
.rm-footer h3 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 14px;
}
.rm-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rm-footer a { color: #b8c8db; font-size: 14px; }
.rm-footer a:hover { color: #fff; }
.rm-footer-cta { text-align: right; }
.rm-footer-cta .rm-button {
  color: #fff;
  min-height: 54px;
  min-width: 226px;
  background: transparent;
  border-color: rgba(255,255,255,.52);
}
.rm-footer-cta p {
  margin-left: auto;
  font-size: 13px;
  color: #91a6c0;
}
.rm-footer-legal {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 1080px) {
  .rm-menu { gap: 24px; }
  .rm-hero-grid,
  .rm-upgrade-grid { grid-template-columns: 1fr; }
  .rm-hero-visual { margin: 20px auto 0; max-width: 760px; }
  .rm-hero { padding-top: 58px; }
  .rm-benefit-strip { grid-template-columns: 1fr; }
  .rm-benefit-item + .rm-benefit-item::before { top: 0; bottom: auto; left: 28px; right: 28px; width: auto; height: 1px; }
  .rm-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .rm-result-card { grid-template-columns: 130px repeat(3, 1fr); }
  .rm-result-status { grid-column: 1 / -1; border-left: none; border-top: 1px solid var(--rm-line); min-height: 0; }
  .rm-footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .rm-footer-cta { text-align: left; grid-column: span 3; }
  .rm-footer-cta p { margin-left: 0; }
  .rm-footer-legal { justify-content: flex-start; }
}
@media (max-width: 860px) {
  .rm-mobile-toggle { display: inline-flex; }
  .rm-menu,
  .rm-header-actions {
    position: fixed;
    left: 24px;
    right: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px;
    background: rgba(255,255,255,.98);
    border: 1px solid var(--rm-line);
    box-shadow: var(--rm-shadow);
  }
  .rm-menu { top: 82px; border-radius: 18px 18px 0 0; border-bottom: 0; }
  .rm-header-actions { top: 248px; border-radius: 0 0 18px 18px; }
  body.rm-menu-open .rm-menu,
  body.rm-menu-open .rm-header-actions { display: flex; }
  .rm-menu a,
  .rm-signin { padding: 12px 8px; }
  .rm-header-actions .rm-button { min-height: 50px; }
  .rm-hero h1 { max-width: 680px; }
  .rm-steps { grid-template-columns: 1fr; gap: 16px; }
  .rm-step-arrow { transform: rotate(90deg); font-size: 28px; }
  .rm-feature-grid,
  .rm-faq-grid { grid-template-columns: 1fr; }
  .rm-result-card { grid-template-columns: 1fr; }
  .rm-result-thumb { display: flex; justify-content: center; }
  .rm-result-metric, .rm-result-status { border-left: 0; border-top: 1px solid var(--rm-line); min-height: 0; }
}
@media (max-width: 620px) {
  .rm-container { width: min(100% - 32px, var(--rm-container)); }
  .rm-nav { height: 66px; }
  .rm-logo { font-size: 20px; }
  .rm-hero { padding: 42px 0 34px; }
  .rm-hero-actions { align-items: stretch; }
  .rm-button { width: 100%; }
  .rm-address-row { flex-direction: column; }
  .rm-benefit-item, .rm-step-card, .rm-feature-card { grid-template-columns: 1fr; }
  .rm-section-title { font-size: 31px; }
  .rm-upgrade { padding: 50px 0; }
  .rm-footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .rm-footer-cta { grid-column: auto; }
  .rm-footer-cta .rm-button { width: 100%; }
}
