/* Storm Xactimate landing
   Theme: single dark "storm slate" theme, one accent (hazard orange).
   Radius rule: interactive elements 10px, surfaces 16px, chips 6px. */

:root {
  --bg: #0c1013;
  --bg-2: #11171b;
  --surface: #151c21;
  --surface-2: #1b242a;
  --line: #26323a;
  --line-soft: #1e282e;
  --text: #e9eef1;
  --muted: #9db0bb;
  --dim: #7d909b;
  --accent: #ff7a2f;
  --accent-ink: #1a0c03;
  --accent-soft: rgba(255, 122, 47, .12);
  --r-ui: 10px;
  --r-surface: 16px;
  --r-chip: 6px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1240px;
  /* z-index scale: nav 20, skip link 30 */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 30;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 14px; border-radius: var(--r-ui); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; letter-spacing: -.005em; white-space: nowrap;
  text-decoration: none; border-radius: var(--r-ui); border: 1px solid transparent;
  padding: .8rem 1.2rem; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn--sm { padding: .55rem .9rem; font-size: .9375rem; }
.btn--lg { padding: 1rem 1.45rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 10px 30px -12px rgba(255,122,47,.55); }
.btn--primary:hover { background: #ff8a47; }
.btn--primary .ph-arrow-right { transition: transform .25s var(--ease); }
.btn--primary:hover .ph-arrow-right { transform: translateX(3px); }
.btn--ghost { background: rgba(255,255,255,.03); color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: #3a4a55; background: rgba(255,255,255,.06); }
.link-quiet { color: var(--muted); text-decoration: none; font-weight: 600; }
.link-quiet:hover { color: var(--text); }

.eyebrow {
  font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent); margin-bottom: 1rem;
}
.h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
  line-height: 1.06; letter-spacing: -.025em; font-stretch: 108%;
  max-width: 22ch;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(12,16,19,.78);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-size: 1rem;
}
.brand__name { font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; font-size: 1.05rem; }
.brand__name span { color: var(--muted); font-weight: 600; margin-left: .2em; }
.nav__links { display: none; gap: 1.75rem; }
.nav__links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9375rem; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 1rem; }
.nav__actions .link-quiet { font-size: .9375rem; }
@media (min-width: 960px) { .nav__links { display: flex; } }
@media (max-width: 420px) {
  .nav .brand__name span { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 40px 0 64px; }
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 85% 10%, rgba(80,110,128,.22), transparent 70%),
    radial-gradient(40% 40% at 10% 0%, rgba(255,122,47,.07), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 70%);
}
.hero__bg::after {
  /* rain streaks: fixed-angle, static texture */
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(105deg, rgba(255,255,255,.025) 0 1px, transparent 1px 14px);
  mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
}
.hero__grid { position: relative; display: grid; gap: 40px; align-items: center; }
.hero__title {
  font-size: clamp(2.3rem, 1.4rem + 3vw, 3.6rem);
  line-height: 1.03; letter-spacing: -.035em; font-weight: 800; font-stretch: 110%;
  max-width: 17ch;
}
.hero__sub { margin-top: 1.25rem; color: var(--muted); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); max-width: 46ch; }
.hero__ctas { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 520px) { .hero__ctas .btn { width: 100%; } }
@media (min-width: 1024px) {
  .hero { padding: 72px 0 96px; min-height: min(calc(100dvh - 64px), 880px); display: flex; align-items: center; }
  .hero__grid { grid-template-columns: 1.08fr .92fr; gap: 64px; }
}

/* Estimate sheet (real component preview) */
.sheet {
  margin: 0; background: linear-gradient(180deg, #172027, #121a1f);
  border: 1px solid var(--line); border-radius: var(--r-surface);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 40px 80px -40px rgba(0,0,0,.7);
  padding: 20px; font-size: .9rem;
}
@media (min-width: 1024px) { .sheet { transform: rotate(-1.2deg); padding: 24px; } }
.sheet__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.sheet__label { color: var(--dim); font-size: .78rem; font-weight: 600; }
.sheet__title { font-weight: 700; font-size: 1.05rem; margin-top: .15rem; }
.sheet__tag {
  font-size: .75rem; font-weight: 700; color: var(--accent); background: var(--accent-soft);
  border-radius: var(--r-chip); padding: .2rem .5rem;
}
.sheet__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }
.sheet__meta div { background: rgba(255,255,255,.03); border: 1px solid var(--line-soft); border-radius: var(--r-ui); padding: 10px 12px; }
.sheet__meta dt { color: var(--dim); font-size: .72rem; font-weight: 600; }
.sheet__meta dd { margin: .1rem 0 0; font-weight: 600; font-size: .9rem; }
.sheet__table { width: 100%; border-collapse: collapse; }
.sheet__table th { text-align: left; color: var(--dim); font-size: .72rem; font-weight: 600; padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.sheet__table td { padding: 9px 0; border-bottom: 1px solid var(--line-soft); color: #cfdae0; }
.sheet__table tr:last-child td { border-bottom: 0; }
.sheet__table .num { text-align: right; white-space: nowrap; padding-left: 12px; }
.sheet__table td.num { color: var(--text); font-size: .82rem; }
.sheet__files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.sheet__files span {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600;
  border-radius: var(--r-chip); padding: .35rem .6rem; background: var(--surface-2); color: var(--text);
}
.sheet__files i { color: var(--accent); font-size: 1rem; }

/* ---------- Pain ---------- */
.pain { padding: 80px 0; border-top: 1px solid var(--line-soft); }
.pain__grid { display: grid; gap: 40px; }
.pain__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.pain__list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.pain__list i { font-size: 1.6rem; color: var(--accent); margin-top: 2px; }
.pain__list h3 { font-size: 1.2rem; letter-spacing: -.01em; line-height: 1.3; }
.pain__list p { color: var(--muted); margin-top: .4rem; max-width: 56ch; }
@media (min-width: 1024px) {
  .pain { padding: 120px 0; }
  .pain__grid { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
  .pain__grid .h2 { position: sticky; top: 112px; }
  .pain__list { gap: 44px; }
}

/* ---------- How ---------- */
.how { padding: 80px 0; background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 36px; counter-reset: step; }
.step { position: relative; padding-top: 24px; border-top: 1px solid var(--line); }
.step__icon {
  width: 48px; height: 48px; border-radius: var(--r-ui); display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 1.5rem; margin-bottom: 18px;
}
.step h3 { font-size: 1.35rem; letter-spacing: -.015em; font-stretch: 106%; }
.step p { color: var(--muted); margin-top: .6rem; max-width: 46ch; }
.track {
  margin-top: 56px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.track span {
  font-size: .82rem; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--r-chip); padding: .35rem .7rem;
  position: relative;
}
.track .is-done { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
@media (min-width: 900px) {
  .how { padding: 120px 0; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .step:nth-child(2) { margin-top: 40px; }
  .step:nth-child(3) { margin-top: 80px; }
}

/* ---------- Included (bento) ---------- */
.included { padding: 80px 0; }
.bento { margin-top: 48px; display: grid; gap: 14px; grid-template-columns: 1fr; }
.cell {
  position: relative; overflow: hidden; border-radius: var(--r-surface);
  background: var(--surface); border: 1px solid var(--line-soft); padding: 26px;
  display: flex; flex-direction: column; gap: .5rem; min-height: 190px;
}
.cell i { font-size: 1.6rem; color: var(--accent); margin-bottom: .5rem; }
.cell h3 { font-size: 1.2rem; letter-spacing: -.01em; }
.cell p { color: var(--muted); max-width: 44ch; }
.cell--a {
  background:
    radial-gradient(90% 120% at 100% 100%, rgba(255,122,47,.22), transparent 60%),
    var(--surface);
}
.cell .cell__big {
  margin-top: auto; font-size: clamp(4.5rem, 3rem + 6vw, 8rem); font-weight: 800; line-height: .9;
  font-stretch: 115%; letter-spacing: -.05em; color: var(--accent); align-self: flex-end;
}
.cell--c {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 28px),
    linear-gradient(160deg, #1a252c, var(--surface));
}
.cell--e { background: linear-gradient(135deg, #1d2a31, #141b20); }
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cell--a { grid-row: span 2; }
}
@media (min-width: 1024px) {
  .included { padding: 120px 0; }
  .bento { grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: minmax(220px, auto); }
  .cell--a { grid-row: span 2; }
}

/* ---------- Pricing ---------- */
.pricing { padding: 80px 0; background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.plans { margin-top: 48px; display: grid; gap: 16px; align-items: stretch; }
.plan {
  border-radius: var(--r-surface); background: var(--surface); border: 1px solid var(--line);
  padding: 28px; display: flex; flex-direction: column;
}
.plan__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.plan__name { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.plan__save {
  font-size: .78rem; font-weight: 700; color: var(--accent); background: var(--accent-soft);
  border-radius: var(--r-chip); padding: .2rem .55rem;
}
.plan__price { margin-top: 1.25rem; font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem); font-weight: 800; font-stretch: 108%; letter-spacing: -.035em; line-height: 1; font-feature-settings: "tnum" 1; }
.plan__per { margin-top: .5rem; color: var(--muted); }
.plan__per strong { color: var(--text); }
.plan__list { list-style: none; padding: 0; margin: 1.5rem 0 1.75rem; display: grid; gap: .65rem; flex: 1; }
.plan__list li { display: flex; gap: .6rem; align-items: baseline; color: #cfdae0; }
.plan__list i { color: var(--accent); font-size: .95rem; transform: translateY(2px); }
.plan--featured {
  border-color: rgba(255,122,47,.55);
  background: linear-gradient(180deg, rgba(255,122,47,.09), transparent 45%), var(--surface);
  box-shadow: 0 30px 70px -40px rgba(255,122,47,.45);
}
.pricing__note { margin-top: 28px; color: var(--muted); font-size: .95rem; max-width: 72ch; }
@media (min-width: 900px) {
  .pricing { padding: 120px 0; }
  .plans { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .plan--featured { transform: translateY(-12px); }
}

/* ---------- FAQ ---------- */
.faq { padding: 80px 0; }
.faq__grid { display: grid; gap: 36px; }
.faq__list { display: grid; gap: 10px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-ui);
  transition: border-color .2s var(--ease);
}
.faq details[open] { border-color: var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 600; font-size: 1.05rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 1.3rem; color: var(--accent); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 20px 20px; color: var(--muted); max-width: 68ch; }
@media (min-width: 1024px) {
  .faq { padding: 120px 0; }
  .faq__grid { grid-template-columns: 4fr 8fr; gap: 80px; align-items: start; }
  .faq__grid .h2 { position: sticky; top: 112px; }
}

/* ---------- Final CTA ---------- */
.final { padding: 40px 0 96px; }
.final__inner {
  position: relative; overflow: hidden; border-radius: var(--r-surface);
  border: 1px solid rgba(255,122,47,.35);
  background:
    radial-gradient(70% 140% at 0% 100%, rgba(255,122,47,.20), transparent 60%),
    repeating-linear-gradient(105deg, rgba(255,255,255,.025) 0 1px, transparent 1px 14px),
    var(--surface);
  padding: 48px 24px;
}
.final__title { font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); line-height: 1.03; letter-spacing: -.035em; font-weight: 800; font-stretch: 110%; max-width: 18ch; }
.final__sub { color: var(--muted); margin-top: 1rem; font-size: 1.1rem; max-width: 50ch; }
.final__ctas { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }
@media (max-width: 520px) { .final__ctas .btn { width: 100%; } }
@media (min-width: 900px) { .final__inner { padding: 80px 64px; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 48px 0 40px; }
.footer__inner { display: grid; gap: 28px; }
.footer__by { color: var(--dim); margin-top: .6rem; font-size: .9rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; }
.footer__links a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.footer__links a:hover { color: var(--text); }
.footer__legal { color: var(--dim); font-size: .82rem; line-height: 1.6; max-width: 90ch; padding-top: 20px; border-top: 1px solid var(--line-soft); }
@media (min-width: 900px) {
  .footer__inner { grid-template-columns: 1fr auto; align-items: start; }
  .footer__legal { grid-column: 1 / -1; }
}

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}
@media (min-width: 1024px) {
  .js .sheet.reveal { transform: translateY(24px) rotate(0deg); }
  .js .sheet.reveal.is-in { transform: rotate(-1.2deg); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal.is-in { opacity: 1; transform: none; transition: none; }
  @media (min-width: 1024px) { .js .sheet.reveal, .js .sheet.reveal.is-in { transform: rotate(-1.2deg); } }
  .btn, .btn .ph-arrow-right, .faq summary::after { transition: none; }
}
