/* Webrox marketing site — base styles.
   Structure/content pass — a design pass is expected to refine this
   further (see README.md). Brand colours match the app itself
   (navy #084C7A / gold #F9C400) for consistency. */

:root {
  --navy: #084c7a;
  --navy-dark: #063a5e;
  --navy-light: #e8f0f6;
  --gold: #f9c400;
  --ink: #17232e;
  --muted: #59697a;
  --paper: #faf9f6;
  --surface: #ffffff;
  --line: #e3e0d8;
  --green: #1a7a4c;
  --amber: #b8860b;
  --brick: #b3452e;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(23, 35, 46, 0.04), 0 8px 24px rgba(23, 35, 46, 0.06);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  /* height: auto is load-bearing, not boilerplate. Every <img> carries
     explicit width/height attributes (they reserve the right space
     before the image loads, which stops the page jumping). Without
     height:auto the browser treats that height attribute as the actual
     rendered height, so once max-width lets the image grow past its
     natural width on a large screen, the width scales and the height
     doesn't — every screenshot stretches horizontally. Setting it to
     auto keeps the attributes doing their job for layout reservation
     while the real aspect ratio decides the height. */
  height: auto;
  display: block;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  text-decoration: none;
}

.brand img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--navy);
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 16px;
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .nav-actions .btn.btn-ghost {
    display: none;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease, opacity 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--navy-light);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.02rem;
}

.btn-block {
  width: 100%;
}

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

.hero {
  padding: 88px 0 80px;
  text-align: center;
  background: var(--navy-dark);
  color: #fff;
}

.eyebrow {
  display: inline-block;
  background: var(--navy-light);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

/* Both hero variants sit on navy, so their eyebrow pill needs the
   inverse treatment — dark translucent fill, gold text — rather than
   the pale-blue/navy version used everywhere else .eyebrow appears
   (e.g. inside a light .card, if it's ever reused there). */
.hero .eyebrow,
.page-hero .eyebrow {
  background: rgba(0, 0, 0, 0.22);
  color: var(--gold);
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

/* Gold reads as a brand accent, not an everyday primary action — this
   is the one CTA on the whole site that gets it, matching the app's own
   "gold is for plan/upgrade and brand moments, not everyday buttons"
   rule (CLAUDE.md, app repo). */
.hero .btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
}

.hero .btn-primary:hover {
  background: #ffce1a;
}

.hero .btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.hero-shot {
  margin-top: 56px;
}

/* ---------- Browser frame for screenshots ---------- */

.browser-frame {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--surface);
  max-width: 980px;
  margin: 0 auto;
}

.browser-frame .chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #eeece6;
  border-bottom: 1px solid var(--line);
}

.browser-frame .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d6d2c8;
}

.browser-frame img {
  width: 100%;
  /* Same reason as the global img rule above — this one sets an
     explicit width, so it needs the matching height:auto or the
     framed screenshots stretch on wide viewports. */
  height: auto;
  display: block;
}

/* ---------- Sections ---------- */

section {
  padding: 72px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- Feature grid ---------- */

.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

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

@media (max-width: 600px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--navy-light);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- Feature list (features page) ---------- */

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.feature-block:last-child {
  border-bottom: none;
}

.feature-block.reverse .feature-copy {
  order: 2;
}

@media (max-width: 860px) {
  .feature-block,
  .feature-block.reverse .feature-copy {
    order: initial;
    grid-template-columns: 1fr;
  }
  .feature-block {
    display: block;
  }
  .feature-block .feature-copy {
    margin-bottom: 28px;
  }
}

.feature-copy .tag {
  display: inline-block;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.feature-copy h3 {
  font-size: 1.5rem;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.feature-copy p {
  color: var(--muted);
  margin: 0 0 16px;
}

.feature-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-copy li {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  color: var(--ink);
  font-size: 0.95rem;
}

.feature-copy li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1180px) {
  .pricing-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .pricing-grid,
  .pricing-grid-5 {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--navy);
  box-shadow: var(--shadow);
  position: relative;
}

.price-card .badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.price-card h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.price-card .price {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 8px 0 4px;
}

.price-card .price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.price-card .price-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 22px;
}

.price-card ul {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  flex-grow: 1;
}

.price-card li {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.93rem;
  border-top: 1px solid var(--line);
}

.price-card li:first-child {
  border-top: none;
}

.price-card li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
}

/* ---------- Screenshot gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 760px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

.gallery figure {
  margin: 0;
}

.gallery figcaption {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--muted);
  text-align: center;
}

.gallery figcaption strong {
  color: var(--ink);
  display: block;
  font-size: 1rem;
  margin-bottom: 3px;
}

/* ---------- Stat strip ---------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

@media (max-width: 700px) {
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-strip .num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
}

.stat-strip .label {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  background: var(--navy);
  color: #fff;
  border-radius: 18px;
  padding: 56px 40px;
  text-align: center;
}

.cta-banner h2 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-banner p {
  color: #cfe0ec;
  margin: 0 0 28px;
  font-size: 1.05rem;
}

.cta-banner .btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
}

.cta-banner .btn-primary:hover {
  background: #ffd633;
}

.cta-banner .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.cta-banner .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-grid h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 14px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 9px;
}

.footer-grid a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-grid a:hover {
  color: var(--navy);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Page header (non-home pages) ---------- */

.page-hero {
  padding: 64px 0 56px;
  text-align: center;
  background: var(--navy-dark);
  color: #fff;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  color: #fff;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Pricing's own first-month-free pill sits inside .page-hero, so it
   needs the same light-on-navy → gold-on-dark inversion as .eyebrow
   rather than its default cream/gold-border styling, which was tuned
   for a light page background. */
.page-hero .badge-note {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(249, 196, 0, 0.4);
  color: var(--gold);
  margin-top: 20px;
}

/* ---------- Misc ---------- */

.center {
  text-align: center;
}

.mt-lg {
  margin-top: 48px;
}

.badge-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff8e1;
  border: 1px solid #f2dd94;
  color: #7a5d00;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin: 0 auto 24px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 760px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}
