/* ==========================================================================
   OneClick Website — Shared Theme
   Match the existing HubSpot draft: navy header, red CTAs, diagonal stripes
   ========================================================================== */

:root {
  --navy: #14181F;
  --navy-soft: #1F252E;
  --navy-deep: #0B0E13;
  --red: #E63946;
  --red-deep: #C42836;
  --red-soft: #FFEEEF;
  --cream: #FAF6F0;
  --stripe-blue: #E8EEF7;
  --ink: #14181F;
  --ink-soft: #4A5263;
  --ink-muted: #7A8290;
  --line: #E5E8EE;
  --line-soft: #F0F2F5;
  --surface: #FFFFFF;
  --bg: #FFFFFF;
  --bg-alt: #FAFBFC;
  --green: #2E7D32;
  --shadow-1: 0 1px 3px rgba(20,24,31,0.06), 0 4px 12px rgba(20,24,31,0.04);
  --shadow-2: 0 4px 12px rgba(20,24,31,0.10), 0 16px 40px rgba(20,24,31,0.06);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px; line-height: 1.6;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--red-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ============== HEADER ============== */
.site-header {
  background: var(--navy); border-bottom: 1px solid var(--navy-deep);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 32px;
  display: flex; align-items: center; gap: 32px;
}
.logo {
  font-size: 26px; font-weight: 800; color: white; letter-spacing: -0.02em;
  font-family: "Poppins", sans-serif;
  display: inline-flex; align-items: center;
}
.logo img { height: 36px; width: auto; display: block; }
.logo .o { color: var(--red); }
.header-nav {
  display: flex; gap: 28px; margin-left: auto; align-items: center;
}
.header-nav > a {
  color: rgba(255,255,255,0.8); font-weight: 500; font-size: 15px;
  position: relative; padding: 6px 0;
}
.header-nav > a:hover { color: white; text-decoration: none; }
.header-nav > a.active {
  color: white;
}
.header-nav > a.active::after {
  content: ""; position: absolute; bottom: -22px; left: 0; right: 0;
  height: 3px; background: var(--red);
}
.header-cta-row { display: flex; align-items: center; gap: 18px; }
.login-link {
  color: white; font-weight: 500; font-size: 15px;
}
.btn-demo-header {
  background: var(--red); color: white !important; font-weight: 700; font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 12px 22px; border-radius: var(--radius-sm); border: none;
  cursor: pointer; transition: background 0.15s;
}
.btn-demo-header:hover { background: var(--red-deep); text-decoration: none; }

/* ============== HERO ============== */
.hero {
  position: relative; overflow: hidden; background: white;
  padding: 80px 32px 80px;
}
.hero-stripes {
  position: absolute; top: 0; left: 0; bottom: 0; width: 38%;
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 18px,
      var(--stripe-blue) 18px,
      var(--stripe-blue) 20px
    );
  z-index: 1;
  opacity: 0.7;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
}
.hero-content { padding-left: 8%; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--red); margin-bottom: 18px;
}
h1 {
  font-size: 56px; line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 0 18px; color: var(--ink); font-weight: 800;
}
.hero h1 { font-size: 60px; }
.subhead-red {
  color: var(--red); font-weight: 700; font-size: 19px; margin: 0 0 20px;
}
.hero p.lede {
  font-size: 18px; color: var(--ink); margin: 0 0 18px;
}
.hero p.lede strong { font-weight: 700; }
.hero p {
  font-size: 17px; color: var(--ink-soft); margin: 0 0 16px;
}
.hero-ctas { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 28px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 15px; cursor: pointer; border: none;
  transition: transform 0.1s, background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
}
.btn-primary {
  background: var(--red); color: white !important;
}
.btn-primary:hover { background: var(--red-deep); text-decoration: none; transform: translateY(-1px); }
.btn-secondary {
  background: white; color: var(--ink) !important;
  border: 2px solid var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: white !important; text-decoration: none; }
.btn-on-dark {
  background: white; color: var(--navy) !important;
}
.btn-on-dark:hover { background: rgba(255,255,255,0.9); text-decoration: none; }
.btn-ghost-dark {
  background: transparent; color: white !important;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-ghost-dark:hover { border-color: white; text-decoration: none; }

.hero-visual {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.phone-frame {
  width: 320px; height: 640px;
  border-radius: 36px; background: var(--navy);
  padding: 14px; box-shadow: var(--shadow-2);
  position: relative;
}
.phone-frame::before {
  content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 24px; background: var(--navy-deep); border-radius: 12px;
  z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 24px; overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F6FB 100%);
  position: relative;
}

/* ============== SOCIAL PROOF BAR ============== */
.social-proof-bar {
  background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 28px 32px;
}
.social-proof-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-muted);
}
.social-proof-inner .stat {
  font-size: 14px; color: var(--ink); font-weight: 700;
}
.social-proof-inner .stat strong { color: var(--red); font-weight: 800; }
.social-proof-inner .divider {
  width: 4px; height: 4px; background: var(--ink-muted); border-radius: 50%;
}

/* ============== SECTION ============== */
.section { padding: 96px 32px; }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--navy); color: white; }
.section.dark h2, .section.dark h3 { color: white; }
.section.dark p { color: rgba(255,255,255,0.85); }

h2 {
  font-size: 42px; line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 18px; color: var(--ink); font-weight: 800;
}
h3 { font-size: 22px; line-height: 1.3; margin: 0 0 12px; font-weight: 700; }
.section-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--red); margin-bottom: 12px;
}
.section-lede {
  font-size: 19px; color: var(--ink-soft); max-width: 720px; margin: 0 0 48px;
}
.section.dark .section-lede { color: rgba(255,255,255,0.75); }

/* Two-col layout (Problem -> Solution) */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
.two-col h2 { font-size: 36px; }
.two-col p { font-size: 17px; color: var(--ink-soft); }

/* Feature card grid */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.feature-card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; transition: all 0.2s; display: block;
}
.feature-card:hover {
  border-color: var(--red); box-shadow: var(--shadow-2); text-decoration: none;
  transform: translateY(-2px);
}
.feature-card .icon-square {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  background: var(--red-soft); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; margin-bottom: 20px;
}
.feature-card h3 { color: var(--ink); margin: 0 0 10px; }
.feature-card p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin: 0 0 16px; }
.feature-card .card-link {
  font-weight: 700; font-size: 14px; color: var(--red); text-transform: uppercase; letter-spacing: 0.06em;
}

/* How it works steps */
.steps-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.step {
  position: relative; padding: 32px;
  background: white; border-radius: var(--radius-lg); border: 1px solid var(--line);
}
.step-num {
  position: absolute; top: -22px; left: 32px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); color: white; font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin-top: 8px; color: var(--ink); }
.step p { color: var(--ink-soft); font-size: 15px; }

/* Testimonial */
.testimonial-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.testimonial {
  background: white; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
}
.testimonial blockquote {
  font-size: 17px; line-height: 1.55; color: var(--ink); font-style: normal;
  margin: 0; quotes: "“" "”";
}
.testimonial blockquote::before { content: open-quote; color: var(--red); font-size: 32px; line-height: 0; vertical-align: -8px; margin-right: 4px; }
.testimonial blockquote::after { content: close-quote; color: var(--red); font-size: 32px; line-height: 0; vertical-align: -16px; margin-left: 2px; }
.testimonial cite {
  font-style: normal; display: flex; gap: 14px; align-items: center; margin-top: auto;
}
.testimonial cite .avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red) 0%, #8B1A1A 100%);
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; flex-shrink: 0;
}
.testimonial cite .meta { font-size: 13px; line-height: 1.4; }
.testimonial cite .meta .name { font-weight: 700; color: var(--ink); display: block; }
.testimonial cite .meta .role { color: var(--ink-muted); }

/* Three layers */
.layer-card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; margin-bottom: 16px;
  display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center;
}
.layer-card .layer-num {
  font-size: 60px; font-weight: 800; line-height: 1;
  letter-spacing: -0.04em; color: var(--red);
}
.layer-card h3 { color: var(--ink); margin: 0 0 6px; }
.layer-card p { color: var(--ink-soft); margin: 0; }

/* CTA band */
.cta-band {
  background: var(--navy); color: white; padding: 80px 32px;
  text-align: center;
}
.cta-band h2 { color: white; max-width: 800px; margin: 0 auto 18px; font-size: 44px; }
.cta-band p { color: rgba(255,255,255,0.8); font-size: 19px; max-width: 640px; margin: 0 auto 32px; }
.cta-band .cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* FAQ */
.faq-list { max-width: 820px; }
.faq-item {
  border-bottom: 1px solid var(--line); padding: 24px 0;
}
.faq-item h3 { color: var(--ink); margin: 0 0 10px; font-size: 19px; }
.faq-item p { color: var(--ink-soft); font-size: 16px; margin: 0; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px; display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--red); border-width: 2px; box-shadow: var(--shadow-2); position: relative; }
.price-card.featured::before {
  content: "MOST POPULAR"; position: absolute; top: -12px; right: 24px;
  background: var(--red); color: white; font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  padding: 5px 12px; border-radius: 4px;
}
.price-tier { font-size: 14px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.price-name { font-size: 28px; font-weight: 800; color: var(--ink); margin: 0 0 6px; letter-spacing: -0.01em; }
.price-summary { color: var(--ink-soft); font-size: 14px; margin-bottom: 28px; min-height: 42px; }
.price-amount { font-size: 38px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.price-amount-sub { color: var(--ink-muted); font-size: 14px; margin-bottom: 24px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 28px; }
.price-card li { padding: 8px 0; font-size: 14px; color: var(--ink-soft); display: flex; gap: 10px; align-items: flex-start; }
.price-card li::before { content: "✓"; color: var(--red); font-weight: 800; flex-shrink: 0; }

/* Article / blog */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.article-card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: all 0.2s; display: flex; flex-direction: column;
}
.article-card:hover {
  border-color: var(--red); box-shadow: var(--shadow-2); text-decoration: none; transform: translateY(-2px);
}
.article-card .thumb {
  aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  position: relative; overflow: hidden;
}
.article-card .thumb::after {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, transparent 0, transparent 14px, rgba(230,57,70,0.15) 14px, rgba(230,57,70,0.15) 16px);
}
.article-card .thumb-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: white; color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 4px;
}
.article-card .body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.article-card h3 { color: var(--ink); font-size: 18px; margin: 0 0 10px; line-height: 1.35; }
.article-card p { color: var(--ink-soft); font-size: 14px; margin: 0 0 14px; flex: 1; }
.article-card .meta { font-size: 12px; color: var(--ink-muted); }

/* Customer card grid */
.customer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.customer-card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; display: flex; flex-direction: column; gap: 16px;
}
.customer-card .head {
  display: flex; gap: 18px; align-items: center;
}
.customer-card .avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red) 0%, #8B1A1A 100%);
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 22px; flex-shrink: 0;
}
.customer-card h3 { margin: 0; color: var(--ink); }
.customer-card .role { color: var(--ink-muted); font-size: 14px; }
.customer-card .stats {
  display: flex; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.customer-card .stats .stat { font-size: 13px; color: var(--ink-soft); line-height: 1.3; }
.customer-card .stats .stat strong { display: block; font-size: 22px; color: var(--red); font-weight: 800; }
.customer-card blockquote { margin: 0; font-style: italic; color: var(--ink); }
.customer-card .read-more { color: var(--red); font-weight: 700; font-size: 14px; }

/* Form */
.demo-form {
  background: white; border-radius: var(--radius-lg); border: 1px solid var(--line);
  padding: 40px; box-shadow: var(--shadow-1);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; color: var(--ink); background: white;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--red); }
.form-row.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.demo-form .btn { width: 100%; justify-content: center; padding: 16px; font-size: 16px; }

/* Footer — dark single-band, logo-friendly */
.site-footer {
  background: var(--navy-deep); color: rgba(255,255,255,0.75);
  padding: 56px 32px 28px; margin-top: 0;
}
.footer-top {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer-brand-line { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand-line img { height: 36px; width: auto; display: block; }
.footer-brand-line .tagline {
  font-size: 14px; color: rgba(255,255,255,0.65);
  border-left: 1px solid rgba(255,255,255,0.18);
  padding-left: 20px; line-height: 1.4;
}
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a {
  color: rgba(255,255,255,0.78); font-size: 14px; font-weight: 500;
}
.footer-nav a:hover { color: white; text-decoration: none; }
.footer-contact-row {
  max-width: var(--maxw); margin: 22px auto 0;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,0.65);
}
.footer-contact-row a { color: rgba(255,255,255,0.78); }
.footer-contact-row a:hover { color: white; }
.footer-contact-row .footer-phone { color: white; font-weight: 700; font-size: 14px; }
.footer-legal {
  max-width: var(--maxw); margin: 18px auto 0; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255,255,255,0.45); line-height: 1.5;
}
.footer-legal a { color: rgba(255,255,255,0.55); }
.footer-legal a:hover { color: rgba(255,255,255,0.8); }
.footer-legal .legal-text { max-width: 820px; }
.footer-legal .legal-links { display: flex; gap: 14px; flex-shrink: 0; }

/* Draft banner (preview only) */
.draft-banner {
  background: #1A1A1A; color: white; padding: 8px 16px; text-align: center; font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, monospace; letter-spacing: 0.04em;
}
.draft-banner a { color: var(--red); }

/* Page hero (non-home) */
.page-hero {
  background: white; padding: 80px 32px 40px; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: ""; position: absolute; top: 0; right: -100px; bottom: 0; width: 320px;
  background: repeating-linear-gradient(135deg, transparent 0, transparent 18px, var(--stripe-blue) 18px, var(--stripe-blue) 20px);
  opacity: 0.5;
}
.page-hero-inner { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 2; }
.page-hero h1 { font-size: 52px; max-width: 800px; }
.page-hero .lede { font-size: 19px; color: var(--ink-soft); max-width: 720px; margin: 8px 0 32px; }
.page-hero .crumbs { font-size: 13px; color: var(--ink-muted); margin-bottom: 18px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.page-hero .crumbs a { color: var(--ink-muted); }

/* Generic split cols */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.cols-2 img { border-radius: var(--radius-lg); }

/* ============== RESPONSIVE ============== */
@media (max-width: 980px) {
  .header-nav > a:not(.btn-demo-header) { display: none; }
  .login-link { display: none; }
  .hero { padding: 56px 24px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-content { padding-left: 0; }
  .hero h1 { font-size: 40px; }
  h1 { font-size: 38px; }
  h2, .cta-band h2 { font-size: 30px; }
  .section { padding: 64px 24px; }
  .feature-grid, .steps-row, .testimonial-grid, .pricing-grid, .article-grid { grid-template-columns: 1fr; }
  .customer-grid { grid-template-columns: 1fr; }
  .two-col, .cols-2 { grid-template-columns: 1fr; gap: 40px; }
  .layer-card { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .phone-frame { width: 260px; height: 520px; }
  .form-row.split { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 36px; }
}
