/* ============================================================
   NOVA AI — Built for Builders
   Sketch.com-style theme: warm white, near-black text, brand
   yellow accent, bold grotesque type, black pill buttons,
   soft rounded cards. Structure mirrors sketch.com's homepage.
   ============================================================ */

:root {
  --bg: #FFFFFF;
  --bg-warm: #F7F6F3;        /* warm section background */
  --card: #FFFFFF;
  --card-tint: #F6F5F2;
  --line: #E8E6E1;
  --ink: #1B1B1B;
  --ink-soft: #4A4A48;
  --muted: #71716E;

  --yellow: #FDB300;         /* Sketch brand yellow */
  --yellow-soft: #FFF3D6;

  --font-body: "Instrument Sans", system-ui, sans-serif;

  --radius-card: 20px;
  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 48px);
}

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

html { scroll-behavior: smooth; color-scheme: light; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* no grain in the light theme */
.grain { display: none; }

/* ============ buttons (black pills, sketch-style) ============ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 15px 34px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: #FFFFFF;
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: #000;
  box-shadow: 0 12px 28px -12px rgb(0 0 0 / 0.4);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

.btn-block { display: block; text-align: center; }
.btn-large { padding: 18px 48px; font-size: 1.05rem; }

/* ============ nav ============ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgb(255 255 255 / 0.85);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: transform 0.3s ease;
}
.site-nav.nav-hidden { transform: translateY(-100%); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--yellow);
  color: var(--ink);
  padding: 5px 8px;
  border-radius: 8px;
  letter-spacing: 0.04em;
}
.brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-text em { font-style: normal; color: inherit; margin-left: 0.18em; }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }

.btn-nav {
  padding: 10px 24px;
  font-size: 0.88rem;
  background: var(--ink);
  color: #fff;
  white-space: nowrap;
}
.btn-nav:hover { transform: translateY(-1px); background: #000; }

@media (max-width: 800px) {
  .nav-links { display: none; }
}

/* ============ hero (centered, sketch-style) ============ */
.hero {
  padding: 170px 0 0;
  text-align: center;
  background: var(--bg);
}

.hero-title {
  font-weight: 700;
  font-size: clamp(2.9rem, 8vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%);
}

.hero-sub {
  max-width: 600px;
  margin: 0 auto 36px;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  color: var(--muted);
  font-weight: 450;
}

.hero-cta { margin-bottom: 20px; }

.hero-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 72px;
}

/* --- dashboard mock (light UI) --- */
.hero-visual {
  max-width: 920px;
  margin: 0 auto;
  text-align: left;
}

.dash {
  background: var(--card);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  box-shadow: 0 -20px 60px -30px rgb(0 0 0 / 0.18), 0 30px 80px -30px rgb(0 0 0 / 0.22);
  overflow: hidden;
}

.dash-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--card-tint);
}
.dash-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #D9D7D2;
}
.dash-dot:first-child { background: #F87168; }
.dash-dot:nth-child(2) { background: #FDBC40; }
.dash-dot:nth-child(3) { background: #34C749; }
.dash-title {
  margin-left: 10px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--muted);
}

.dash-body {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  padding: 22px;
  background: var(--card);
}
@media (max-width: 700px) {
  .dash-body { grid-template-columns: 1fr; }
}

.dash-main { display: flex; flex-direction: column; gap: 16px; }

.dash-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
}

.dash-score,
.dash-chart,
.dash-stat,
.dash-lead {
  background: var(--card-tint);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.dash-score-num {
  font-size: 3.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.dash-score-num em {
  font-style: normal;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--muted);
}
.dash-score-track {
  margin-top: 16px;
  height: 8px;
  border-radius: 99px;
  background: #ECEAE5;
  overflow: hidden;
}
.dash-score-fill {
  width: 84%;
  height: 100%;
  border-radius: 99px;
  background: var(--yellow);
}

.dash-chart { flex: 1; }
.dash-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 90px;
}
.dash-bars div {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: #DDDAD3;
}
.dash-bars div:last-child { background: var(--yellow); }

.dash-side { display: flex; flex-direction: column; gap: 12px; }

.dash-stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 18px;
}
.dash-stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.dash-stat-num em { font-style: normal; font-size: 0.85rem; }
.dash-stat-label { font-size: 0.85rem; color: var(--muted); }

.dash-lead {
  background: var(--yellow-soft);
  border-color: #F3D89A;
}
.dash-lead-flag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 6px;
  padding: 3px 8px;
  margin-bottom: 10px;
}
.dash-lead p { font-size: 0.85rem; color: var(--ink); line-height: 1.5; }

/* ============ quote band ============ */
.quote-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-warm);
  padding: clamp(56px, 8vw, 88px) 0;
}

.quote { text-align: center; }
.quote blockquote {
  font-weight: 600;
  font-size: clamp(1.5rem, 3.6vw, 2.3rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 28px;
}
.quote figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.quote-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
}
.quote-who { font-size: 0.92rem; color: var(--muted); }
.quote-who strong { color: var(--ink); font-weight: 600; }

/* ============ sections ============ */
.section { padding: clamp(84px, 11vw, 130px) 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(44px, 6vw, 64px);
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}
.section-head h2 {
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.section-lede {
  font-size: 1.05rem;
  color: var(--muted);
}

/* ============ feature grid ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1020px;
}
@media (max-width: 900px) { .feature-grid-3 { grid-template-columns: 1fr; max-width: 640px; } }

.feature-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.feature-card {
  background: var(--card-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 32px 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -20px rgb(0 0 0 / 0.18);
}
.feature-card h3 {
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

/* alternate section background, sketch-style rhythm */
#content { background: var(--bg-warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#content .feature-card { background: var(--card); }

/* ============ guarantee band ============ */
.guarantee-band {
  background: var(--ink);
  color: #fff;
  padding: clamp(72px, 10vw, 110px) 0;
}
.guarantee-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.guarantee-band h2 {
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.guarantee-band h2 em {
  font-style: normal;
  color: var(--yellow);
}
.guarantee-band p {
  font-size: 1.08rem;
  color: rgb(255 255 255 / 0.72);
}

/* ============ roi ============ */
.roi-bars {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto 40px;
}

.roi-row {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 24px;
  align-items: center;
}
@media (max-width: 700px) {
  .roi-row { grid-template-columns: 1fr; gap: 10px; }
}

.roi-name {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.015em;
}
.roi-desc {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}

.roi-track {
  background: var(--card-tint);
  border: 1px solid var(--line);
  border-radius: 14px;
  height: 58px;
  position: relative;
  overflow: hidden;
}
.roi-bar {
  height: 100%;
  width: var(--w);
  display: flex;
  align-items: center;
  padding: 0 18px;
  min-width: fit-content;
  border-radius: 13px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.roi-bars.in-view .roi-bar { transform: scaleX(1); }
.roi-bars.in-view .roi-row:nth-child(2) .roi-bar { transition-delay: 0.25s; }

.roi-bar-bad { background: var(--ink); }
.roi-bar-good { background: var(--yellow); }

.roi-value {
  font-size: clamp(0.78rem, 1.6vw, 0.92rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s ease 0.8s;
}
.roi-bar-good .roi-value { color: var(--ink); }
.roi-bars.in-view .roi-value { opacity: 1; }
.roi-value em { font-style: normal; opacity: 0.65; }

.roi-breakdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 900px) { .roi-breakdown { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .roi-breakdown { grid-template-columns: 1fr; } }

.roi-item {
  background: var(--card-tint);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px;
  text-align: center;
}
.roi-item-num {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.roi-item-label {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
  display: block;
}

/* ============ pricing ============ */
#pricing { background: var(--bg-warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 36px);
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 820px) { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1080px;
}
@media (max-width: 980px) { .pricing-grid-3 { grid-template-columns: 1fr; max-width: 520px; } }
.pricing-grid-3 .price-card { padding: 36px 30px; }

.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 40px 36px;
  position: relative;
}

.price-featured {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 0 30px 70px -30px rgb(0 0 0 / 0.45);
}
@media (min-width: 821px) {
  .price-featured { transform: translateY(-14px); }
}

.featured-flag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--yellow);
  color: var(--ink);
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.price-card-head { margin-bottom: 26px; text-align: center; }
.price-card h3 {
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 8px;
}
.price-tag {
  font-size: 0.84rem;
  color: var(--muted);
}
.price-featured .price-tag { color: rgb(255 255 255 / 0.6); }

.price-numbers {
  display: flex;
  justify-content: center;
  gap: 44px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
  text-align: center;
}
.price-featured .price-numbers { border-color: rgb(255 255 255 / 0.15); }
.price-big {
  display: block;
  font-size: 1.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}
.price-featured .price-big { color: var(--yellow); }
.price-small {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}
.price-featured .price-small { color: rgb(255 255 255 / 0.55); }

.price-list { list-style: none; margin-bottom: 30px; }
.price-list li {
  position: relative;
  padding: 9px 0 9px 26px;
  font-size: 0.93rem;
  border-bottom: 1px solid var(--line);
}
.price-featured .price-list li { border-color: rgb(255 255 255 / 0.12); }
.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  font-weight: 700;
  color: var(--yellow);
}
.price-list li:first-child { font-weight: 600; }

.price-featured .btn-primary {
  background: var(--yellow);
  color: var(--ink);
}
.price-featured .btn-primary:hover {
  background: #FFC022;
  box-shadow: 0 12px 28px -12px rgb(253 179 0 / 0.6);
}

/* ============ differentiation band ============ */
.different {
  padding: clamp(64px, 9vw, 100px) 0;
}
.different-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.different h2 {
  font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 2.8rem);
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.different p {
  font-size: 1.08rem;
  color: var(--muted);
}
.different strong { color: var(--ink); font-weight: 600; }

/* ============ closing ============ */
.closing {
  padding: clamp(100px, 14vw, 150px) 0;
  background: var(--bg-warm);
  border-top: 1px solid var(--line);
}
.closing-inner { text-align: center; }

.closing-title {
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.closing-title em {
  font-style: normal;
  background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%);
}

.closing-sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  margin-bottom: 40px;
}

.closing-email {
  margin-top: 26px;
  font-size: 0.88rem;
  color: var(--muted);
}
.closing-email a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============ footer ============ */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: clamp(48px, 7vw, 72px) 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 36px;
  margin-bottom: 48px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand-col .brand-text { font-size: 1.35rem; }
.footer-tagline {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 10px;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 5px 0;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--ink); }
.footer-muted {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 5px 0;
}

.footer-base {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ============ scroll reveals ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .roi-bar { transform: scaleX(1); transition: none; }
  .roi-value { opacity: 1; transition: none; }
  html { scroll-behavior: auto; }
}
