/* ============================================================================
   Subi marketing site — design system
   Hand-rebuilt to match https://subi-subscriptions.framer.website/
   Dark, premium deep-teal theme with Growth-Green accents.
   ========================================================================== */

/* Headings use TT Travels Text (brand display face). The licensed woff2 files,
   when dropped into static/fonts/, are picked up by these @font-face rules;
   until then the stack falls back to Inter/DM Sans (see README "Fonts"). */
@font-face {
  font-family: "TT Travels Text";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/tt-travels-text-medium.woff2") format("woff2");
}
@font-face {
  font-family: "TT Travels Text";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/tt-travels-text-demibold.woff2") format("woff2");
}

:root {
  --green: #8EE571;
  --green-dark: #5AB83B;
  --deep-trust: #073C3D;
  --deep-darker: #042626;
  --page-dark: #0F0F0F;
  --violet: #927FFE;
  --calm: #E2EFDE;
  --ink: #151515;
  --muted: #5E5E5E;
  --muted-dark: #B7C4B6;
  --light-surface: #F2F2F2;
  --white: #FFFFFF;

  --font-display: "TT Travels Text", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "DM Sans", "Inter", system-ui, -apple-system, sans-serif;

  --maxw: 1200px;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 500px;
  --shadow-card: 0 1px 2px rgba(7, 60, 61, 0.04), 0 12px 32px rgba(7, 60, 61, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
  color: var(--ink);
}

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── Sections & backgrounds ──────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.bg-dark   { background: var(--page-dark); color: var(--white); }
.bg-teal   { background: var(--deep-trust); color: var(--white); }
.bg-deepest{ background: var(--deep-darker); color: var(--white); }
.bg-light  { background: var(--white); color: var(--ink); }
.bg-mint   { background: var(--calm); color: var(--ink); }
.bg-green  { background: var(--green); color: var(--deep-darker); }

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4,
.bg-teal h1, .bg-teal h2, .bg-teal h3, .bg-teal h4,
.bg-deepest h1, .bg-deepest h2, .bg-deepest h3, .bg-deepest h4 { color: var(--white); }

.bg-dark .muted, .bg-teal .muted, .bg-deepest .muted { color: var(--muted-dark); }
.muted { color: var(--muted); }

/* ── Eyebrow / kicker label ──────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.bg-light .eyebrow, .bg-mint .eyebrow { color: var(--green-dark); }

/* Pill badge used above centered section headings ("Features", "Integrations") */
.badge {
  display: inline-block; font-family: var(--font-body);
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  padding: 7px 16px; border-radius: var(--radius-pill);
  background: rgba(7,60,61,0.06); color: var(--deep-trust); margin-bottom: 18px;
}
.bg-dark .badge, .bg-teal .badge, .bg-deepest .badge { background: rgba(255,255,255,0.1); color: #fff; }

/* Two-tone headings: the accent word/line in Growth Green (Framer pattern) */
.g { color: var(--green); }
.bg-light .g, .bg-mint .g { color: var(--green-dark); }

/* ── Type scale ──────────────────────────────────────────────────────────── */
.display {
  font-size: clamp(44px, 7vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.h-section { font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -0.03em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; }
.text-green { color: var(--green); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--green); color: var(--deep-darker); }
.btn--primary:hover { background: #9bef80; }
.btn--primary .dot { background: var(--deep-darker); }
.btn--light { background: var(--light-surface); color: var(--ink); }
.btn--light:hover { background: #e8e8e8; }
.btn--ghost-dark { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.25); }
.btn--ghost-dark:hover { background: rgba(255,255,255,0.08); }
.btn--ghost-light { background: transparent; color: var(--deep-trust); border-color: rgba(7,60,61,0.3); }
.btn .dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--deep-darker);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--green); font-size: 12px;
}
.btn--primary .dot { background: var(--deep-darker); color: var(--green); }

/* ── Framer-style adaptive floating header ───────────────────────────────── */
/* Standalone logo (left) + centered link pill (center) + Book Demo (right).
   The whole thing flips dark↔light depending on the section behind it. */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand .subi-logo { height: 22px; width: auto; display: block; transition: color .25s ease; }

/* Centered link pill */
.nav-pill {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 7px; border-radius: var(--radius-pill);
  transition: background-color .25s ease;
}
.nav-pill a, .nav-pill .has-menu > span {
  font-size: 15px; font-weight: 500; padding: 9px 16px;
  border-radius: var(--radius-pill); display: inline-flex; align-items: center; gap: 5px;
  cursor: pointer; transition: background-color .15s ease, color .25s ease; white-space: nowrap;
}
.nav-pill .has-menu > span i { font-style: normal; font-size: 9px; opacity: .6; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

/* Theme: dark sections behind → light header content + dark teal pill */
.nav-dark .brand .subi-logo { color: #fff; }
.nav-dark .nav-pill { background: var(--deep-darker); }
.nav-dark .nav-pill a, .nav-dark .nav-pill .has-menu > span { color: rgba(255,255,255,0.92); }
.nav-dark .nav-pill a:hover, .nav-dark .nav-pill .has-menu:hover > span { background: rgba(255,255,255,0.12); }

/* Theme: light sections behind → dark header content + light grey pill */
.nav-light .brand .subi-logo { color: var(--deep-trust); }
.nav-light .nav-pill { background: var(--light-surface); }
.nav-light .nav-pill a, .nav-light .nav-pill .has-menu > span { color: var(--ink); }
.nav-light .nav-pill a:hover, .nav-light .nav-pill .has-menu:hover > span { background: rgba(7,60,61,0.07); }

/* Scrolled: solid white bar across the header (Framer) */
.site-header.scrolled {
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 6px 28px rgba(7,60,61,0.10);
  border-bottom: 1px solid rgba(7,60,61,0.06);
}
.site-header.scrolled .nav-inner { padding-top: 12px; padding-bottom: 12px; }
.site-header.scrolled .nav-pill { background: transparent; }  /* links sit on the white bar */

.nav-pill .chev { transition: transform .2s ease; }
.has-menu:hover .chev { transform: rotate(180deg); }

/* Book Demo = ghost/outlined pill (matches Framer's header button, not green) */
.btn--ghost-nav { background: transparent; border: 2px solid currentColor; font-weight: 600; padding: 11px 24px; }
.nav-dark .btn--ghost-nav { color: #fff; border-color: rgba(255,255,255,0.25); }
.nav-dark .btn--ghost-nav:hover { background: rgba(255,255,255,0.1); }
.nav-light .btn--ghost-nav { color: var(--deep-trust); border-color: rgba(7,60,61,0.28); }
.nav-light .btn--ghost-nav:hover { background: rgba(7,60,61,0.06); }

/* Mega-menu dropdown (dark panel, columns + featured card) */
.has-menu { position: relative; }
.has-menu .menu {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px);
  padding-top: 14px;  /* transparent bridge: keeps hover contiguous (no dead gap) */
  max-width: calc(100vw - 32px);
  opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease; z-index: 60;
}
.has-menu:hover .menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
/* keep the menu open briefly when the cursor is between trigger and panel */
.has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega {
  display: flex; gap: 32px; background: var(--deep-trust);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 22px; padding: 24px 28px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.45); white-space: nowrap;
}
.mega-sm { padding: 16px; }
.mm-col { display: flex; flex-direction: column; gap: 2px; min-width: 175px; }
.mm-h { color: var(--muted-dark); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.mega a { display: block; padding: 9px 12px; border-radius: 12px; color: #fff !important; font-size: 14.5px; font-weight: 500; }
.mega a:hover { background: rgba(255,255,255,0.07) !important; }
/* Featured "Latest Updates" card with image */
.mm-feature { min-width: 244px; }
.mega a.mm-card { padding: 12px; background: rgba(142,229,113,0.08); border: 1px solid rgba(142,229,113,0.2); border-radius: 16px; white-space: normal; }
.mega a.mm-card:hover { background: rgba(142,229,113,0.14) !important; }
.mm-card img { width: 100%; border-radius: 10px; display: block; margin-bottom: 12px; }
.mm-card strong { display: block; color: #fff; font-size: 14.5px; font-weight: 600; margin-bottom: 12px; }
.mm-card .mm-btn { display: inline-block; background: var(--green); color: var(--deep-darker); font-weight: 700; font-size: 13px; padding: 8px 16px; border-radius: var(--radius-pill); }

/* Mobile hamburger + drawer (shown ≤960 via the responsive block) */
.nav-toggle { display: none; flex-direction: column; gap: 5px; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.nav-dark .nav-toggle { color: #fff; }
.nav-light .nav-toggle, .site-header.scrolled .nav-toggle { color: var(--deep-trust); }
.site-header.menu-open .nav-toggle { color: #fff; }
.nav-toggle.on span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.on span:nth-child(2) { opacity: 0; }
.nav-toggle.on span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; flex-direction: column; background: var(--deep-darker); max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.mobile-menu.open { max-height: 88vh; overflow-y: auto; padding: 10px 22px 26px; }
.mobile-menu a:not(.btn) { color: #fff; padding: 14px 2px; border-bottom: 1px solid rgba(255,255,255,0.08); font-weight: 500; }
.mobile-menu .btn { justify-content: center; margin-top: 10px; }
.mobile-menu .btn--ghost-light { color: #fff; border-color: rgba(255,255,255,0.3); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 520px at 50% -10%, rgba(142,229,113,0.18), transparent 60%),
    linear-gradient(180deg, var(--deep-trust) 0%, var(--deep-darker) 60%, var(--page-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 84px 0 0;
  overflow: hidden;
}
.hero .pill-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-pill); padding: 7px 16px 7px 8px;
  font-size: 13.5px; color: var(--white); margin-bottom: 28px;
}
.hero .pill-link .tag { background: var(--green); color: var(--deep-darker); border-radius: var(--radius-pill); padding: 3px 10px; font-weight: 700; font-size: 11px; }
.hero .display { color: var(--white); margin: 0 auto 18px; max-width: 16ch; }
.hero .lead { color: rgba(255,255,255,0.86); max-width: 52ch; margin: 0 auto 30px; }
.hero-shot { margin-top: 56px; }
.hero-shot img { border-radius: 16px 16px 0 0; }

/* ── Logo strip ──────────────────────────────────────────────────────────── */
.logos { text-align: center; }
.logos .label { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.logos .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 48px; }
.logos .row img { height: 30px; width: auto; object-fit: contain; opacity: .55; filter: grayscale(1); transition: opacity .15s ease; }
.logos .row img:hover { opacity: .9; filter: grayscale(0); }
.int-logo { width: 64px; height: 64px; border-radius: 16px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; padding: 12px; }
.int-logo img { width: 100%; height: 100%; object-fit: contain; }

/* ── Product feature rows ────────────────────────────────────────────────── */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.feature-row.reverse .feature-copy { order: 2; }
.feature-row + .feature-row { margin-top: 88px; }
.feature-copy h2 { font-size: clamp(28px, 3.4vw, 40px); }
.feature-list { list-style: none; padding: 0; margin: 22px 0 28px; }
.feature-list li { position: relative; padding-left: 28px; margin-bottom: 12px; color: rgba(255,255,255,0.82); }
.bg-light .feature-list li { color: var(--muted); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 4px rgba(142,229,113,0.18);
}
.feature-media img { border-radius: var(--radius-lg); box-shadow: 0 30px 80px rgba(0,0,0,0.4); }

/* ── Generic card grid ───────────────────────────────────────────────────── */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid #ececec;
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-card);
}
.card h3, .card h4 { margin-bottom: 8px; }
.bg-dark .card, .bg-teal .card, .bg-deepest .card {
  background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1);
}

/* ── Stat cards ──────────────────────────────────────────────────────────── */
.stat { font-family: var(--font-display); font-size: clamp(40px,5vw,64px); line-height: 1; letter-spacing: -0.03em; }
.stat-green { color: var(--green); }

/* ── Section header ──────────────────────────────────────────────────────── */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .lead { margin-top: 14px; }

/* ── Pricing ─────────────────────────────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.price-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column;
}
.price-card.feature { background: var(--deep-trust); border-color: var(--green); position: relative; }
.price-card .pop { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--green); color: var(--deep-darker); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 14px; border-radius: var(--radius-pill); }
.price-card .plan-name { font-size: 15px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--green); }
.price-card .price { font-family: var(--font-display); font-size: 52px; line-height: 1; margin: 14px 0 4px; }
.price-card .per { color: var(--muted-dark); font-size: 14px; }
.price-card .blurb { color: rgba(255,255,255,0.78); font-size: 14.5px; min-height: 44px; margin: 12px 0 18px; }
.price-card .fee { font-size: 13px; color: var(--green); margin: 16px 0; padding: 10px 12px; background: rgba(142,229,113,0.08); border-radius: 10px; }
.price-card ul { list-style: none; padding: 0; margin: 0; }
.price-card li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 14.5px; color: rgba(255,255,255,0.82); }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.price-card .btn { width: 100%; justify-content: center; margin-top: 4px; }

.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid #ececec; }
.compare thead th { font-family: var(--font-display); font-weight: 500; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare thead th:not(:first-child) { color: var(--deep-trust); }
.compare tr.grp td { font-family: var(--font-display); font-weight: 500; font-size: 18px; background: var(--calm); color: var(--deep-trust); }
.compare .ck { color: var(--green-dark); font-weight: 700; font-size: 17px; }
.compare .ck-no { color: #c9c9c9; }
.compare tbody tr td:first-child { font-weight: 500; }

/* ── FAQ / accordion ─────────────────────────────────────────────────────── */
.faq details { border-bottom: 1px solid #e6e6e6; padding: 8px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-family: var(--font-display); font-size: 19px; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green-dark); font-size: 24px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 16px; }

/* ── CTA band ────────────────────────────────────────────────────────────── */
.cta-band {
  background:
    radial-gradient(900px 360px at 50% 120%, rgba(142,229,113,0.18), transparent 60%),
    linear-gradient(180deg, var(--page-dark), var(--deep-darker));
  color: var(--white); text-align: center;
}
.cta-band .h-section { color: var(--white); }
.cta-band .lead { color: rgba(255,255,255,0.8); margin: 14px auto 28px; max-width: 46ch; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--deep-darker); color: var(--white); padding: 72px 0 32px; }
.site-footer .top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.site-footer h3 { font-size: 14px; color: rgba(255,255,255,0.95); margin-bottom: 18px; font-family: var(--font-body); font-weight: 600; }
.site-footer .col a:not(.btn) { display: block; color: rgba(255,255,255,0.68); padding: 7px 0; font-size: 14.5px; }
.site-footer .col a:not(.btn):hover { color: var(--green); }
.site-footer .f-brand .brand { display: inline-block; margin-bottom: 16px; }
.site-footer .f-brand .subi-logo { height: 26px; color: #fff; }
.site-footer .f-brand .muted { max-width: 22ch; margin-bottom: 22px; }
.shopify-badge { display: inline-block; border-radius: 9px; overflow: hidden; transition: transform .15s ease; }
.shopify-badge:hover { transform: translateY(-1px); }
.shopify-badge img { display: block; width: 179px; height: auto; }
.site-footer .col .fcta { margin-top: 16px; display: inline-flex; }
.site-footer .social { display: flex; gap: 12px; }
.site-footer .social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.site-footer .social a:hover { background: var(--green); color: var(--deep-darker); }
.site-footer .bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); color: var(--muted-dark); font-size: 13.5px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

/* ── Article / blog content ──────────────────────────────────────────────── */
.article-hero { background: linear-gradient(180deg, var(--deep-trust), var(--deep-darker)); color: var(--white); padding: 72px 0 56px; }
.article-hero .container { max-width: 800px; }
.article-hero .crumb { color: var(--muted-dark); font-size: 14px; margin-bottom: 18px; }
.article-hero h1 { font-size: clamp(32px, 4.5vw, 52px); margin-bottom: 18px; }
.article-hero .meta { color: rgba(255,255,255,0.7); font-size: 14.5px; }
.article-body { max-width: 760px; margin: 0 auto; padding: 56px 24px 24px; }
.article-body h2 { font-size: 30px; margin: 1.6em 0 .5em; }
.article-body h3 { font-size: 23px; margin: 1.4em 0 .4em; }
.article-body p, .article-body li { font-size: 18px; line-height: 1.7; color: #2a2a2a; }
.article-body ul, .article-body ol { padding-left: 22px; margin: 0 0 1.2em; }
.article-body img { border-radius: var(--radius); margin: 1.5em 0; }
.article-body a { color: var(--deep-trust); text-decoration: underline; text-underline-offset: 2px; }
.article-body blockquote { border-left: 3px solid var(--green); padding-left: 20px; margin: 1.5em 0; color: var(--muted); font-style: italic; }
.article-body { overflow-wrap: break-word; }
.article-body table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 16px; -webkit-overflow-scrolling: touch; }
.article-body th, .article-body td { border: 1px solid #e6e6e6; padding: 10px 14px; text-align: left; }
.article-body img, .article-body iframe, .article-body video { max-width: 100%; height: auto; }
.article-body pre { overflow-x: auto; }

/* ── Blog index cards ────────────────────────────────────────────────────── */
.post-card { background: var(--white); border: 1px solid #ececec; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); transition: transform .15s ease; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-3px); }
.post-card .thumb { aspect-ratio: 16/9; background: var(--calm); object-fit: cover; width: 100%; }
.post-card .body { padding: 22px; }
.post-card h3 { font-size: 20px; margin-bottom: 8px; }
.post-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ── Stacked rounded panels (the layered Framer look) ─────────────────────── */
/* Light sections lift over the dark one above them with a big rounded top. */
.panel-top { border-radius: 40px 40px 0 0; margin-top: -40px; position: relative; z-index: 2; }
.panel-round { border-radius: 40px; }
.round-bottom { border-radius: 0 0 40px 40px; }

/* ── Hero refinements ────────────────────────────────────────────────────── */
.hero { padding-top: 72px; }
/* image-less heroes (product/marketing pages): pad the bottom so content clears
   the next section's -40px panel-top overlap (otherwise the CTA gets covered). */
.hero--plain { padding-bottom: 104px; }
.hero .hero-shot { margin-top: 64px; max-width: 1180px; }
.hero .hero-shot img { width: 100%; border-radius: 18px 18px 0 0; }

/* ── Hero load animation (soft staggered fade-up) ─────────────────────────── */
@keyframes heroIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes heroShotIn { from { opacity: 0; transform: translateY(40px) scale(.985); } to { opacity: 1; transform: none; } }
.hero .badge, .hero .pill-link, .hero .display, .hero .lead, .hero .btn, .hero .hero-shot {
  animation: heroIn .8s cubic-bezier(.2,.7,.2,1) both;
}
.hero .badge, .hero .pill-link { animation-delay: .05s; }
.hero .display { animation-delay: .16s; }
.hero .lead { animation-delay: .30s; }
.hero .btn { animation-delay: .42s; }
.hero .hero-shot { animation: heroShotIn 1s cubic-bezier(.2,.7,.2,1) .52s both; }
@media (prefers-reduced-motion: reduce) {
  .hero .badge, .hero .pill-link, .hero .display, .hero .lead, .hero .btn, .hero .hero-shot { animation: none; }
}

/* ── Why-Subi bento grid ─────────────────────────────────────────────────── */
.bento {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px; gap: 18px;
}
.bento .cell { border-radius: 22px; padding: 26px; overflow: hidden; position: relative; display: flex; flex-direction: column; }
.bento .green { background: var(--green); color: var(--deep-darker); }
.bento .green .stat { color: var(--deep-darker); }
.bento .dark { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff; }
.bento .light { background: #fff; color: var(--ink); }
.bento .img { padding: 0; }
.bento .img img { width: 100%; height: 100%; object-fit: cover; }
.bento .cell .label { font-family: var(--font-display); font-size: 22px; margin-top: auto; }
.bento .cell p { font-size: 13.5px; line-height: 1.5; margin: 8px 0 0; }
.bento .green p { color: rgba(4,38,38,0.78); }
.bento .dark p { color: var(--muted-dark); }
.bento .light p { color: var(--muted); }
.bento .stat { font-size: 56px; }
/* spans */
.col-1{grid-column:span 1}.col-2{grid-column:span 2}.row-2{grid-row:span 2}

/* ── Integration circular icons ──────────────────────────────────────────── */
.int-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px; }
.int-logo { width: 76px; height: 76px; border-radius: 50%; background: #fff; border: none; display: flex; align-items: center; justify-content: center; padding: 0; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.int-logo img { width: 100%; height: 100%; object-fit: cover; }

/* ── Feature image pair ──────────────────────────────────────────────────── */
.feat-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.feat-imgs .shot { border-radius: var(--radius); overflow: hidden; border: 1px solid #ececec; background: var(--calm); }
.feat-imgs .shot img { width: 100%; display: block; }

/* ── Testimonials ────────────────────────────────────────────────────────── */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tcard { background: #fff; border: 1px solid #ececec; border-radius: 20px; padding: 24px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.tcard .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tcard .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--green); display: inline-flex; align-items: center; justify-content: center; color: var(--deep-darker); font-weight: 800; }
.tcard .src { font-size: 12.5px; color: var(--muted); }
.tcard .quote { font-size: 15.5px; line-height: 1.55; color: #2a2a2a; flex: 1; }
.tcard .who { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.tcard .who img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.tcard .who b { display: block; font-size: 14px; }
.tcard .who span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }

/* ── Case study block ────────────────────────────────────────────────────── */
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; background: var(--calm); border-radius: 28px; padding: 40px; }
.case .media img { border-radius: 18px; width: 100%; }
.case h3 { font-size: 28px; }
.case .stats { display: flex; gap: 40px; margin: 22px 0; }
.case .stats .stat { font-size: 48px; }
.case .stats small { display: block; font-size: 13px; color: var(--muted); max-width: 18ch; }

/* ── Migration diagram ───────────────────────────────────────────────────── */
.mig { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.mig .diagram { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; place-items: center; }
.mig .diagram .node { width: 72px; height: 72px; border-radius: 18px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,0.18); font-weight: 700; color: var(--ink); font-size: 13px; }
.mig .diagram .hub { background: var(--green); color: var(--deep-darker); }

/* ── Inset "slide" sections (marketing pages) ────────────────────────────── */
/* Each section is a rounded card inset from the viewport edges, stacked over a
   dark gutter — the layered slide look from Framer. Scoped to main.slides so
   content/blog pages stay normal. */
main.slides { background: var(--deep-darker); padding: 86px 16px 0; }
main.slides > section {
  border-radius: 40px; position: relative; overflow: hidden;
}
main.slides > section + section { margin-top: -40px; }
/* the CTA band is last in main — keep its rounded card, footer stays full-width */
main.slides .cta-band { border-radius: 40px; }

/* ── Hero grid/mesh background (Framer) ──────────────────────────────────── */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.10) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255,255,255,0.10) 2px, transparent 2px),
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 340px 340px, 340px 340px, 68px 68px, 68px 68px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 35%, transparent 75%);
          mask-image: radial-gradient(120% 80% at 50% 0%, #000 35%, transparent 75%);
}
.hero > .container { position: relative; z-index: 1; }

/* ── Marquees (auto-scrolling rows) ──────────────────────────────────────── */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee var(--mq, 40s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
.logos .marquee-track img { height: 30px; width: auto; margin: 0 32px; opacity: .55; filter: grayscale(1); flex: 0 0 auto; }
.marquee-track .int-logo { margin: 0 14px; flex: 0 0 auto; }
.t-marquee .marquee-track { padding: 4px 0; }
.t-marquee .tcard { width: 360px; flex: 0 0 360px; margin: 0 10px; white-space: normal; }

/* ── Scroll-reveal (fail-safe: only hides when JS is present) ─────────────── */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ── First-section clearance under the fixed header ──────────────────────── */
.article-hero { padding-top: 130px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .feature-row, .grid-3, .grid-4, .price-grid, .site-footer .top,
  .tgrid, .case, .mig, .feat-imgs { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-copy { order: 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .bento .col-2 { grid-column: span 2; }
  .bento .row-2 { grid-row: span 1; }
  /* header → hamburger + drawer */
  .nav-pill, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; }
  .site-header.menu-open { background: var(--deep-darker); }
  .nav-inner { padding: 12px 18px; }
  .section { padding: 64px 0; }
  .section--tight { padding: 48px 0; }
  .panel-top { margin-top: -24px; border-radius: 28px 28px 0 0; }
  main.slides { padding: 74px 10px 0; }
  main.slides > section { border-radius: 28px; }
  .hero { padding-top: 56px; }
  .hero--plain { padding-bottom: 80px; }
  .container { padding-inline: 18px; }
  .case { padding: 24px; }
  .case .stats { gap: 28px; }
  .nav-inner { gap: 10px; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento .col-1, .bento .col-2, .bento .row-2 { grid-column: auto; grid-row: auto; }
  .bento .cell { min-height: 150px; }
  .bento .img { min-height: 180px; }
  .t-marquee .tcard { width: 300px; flex-basis: 300px; }
  .display { font-size: clamp(38px, 11vw, 52px); }
  .h-section { font-size: clamp(26px, 7vw, 34px); }
}
