/* ===================================================================
   Shelfdrive — marketing site design system
   Geist typeface + the app's dark palette. 1080px, left-aligned,
   selective cards. Apple-meets-Linear: restraint, space, type.
   =================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&display=swap");

:root {
  --bg: #09090b;
  --panel: #0c0c0e;
  --surface: #18181b;
  --code-bg: #0f0f14;
  --text: #fafafa;
  --muted: #b2b2bb;
  --faint: #85858f;
  --line: #323238;

  --accent: #6366f1;
  --accent-text: #818cf8;
  --accent-soft: rgba(99, 102, 241, 0.16);
  --accent-50: rgba(99, 102, 241, 0.5);

  --sans: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --wrap: 1080px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: #3f3f46 transparent;
}

body {
  background: var(--bg);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(99, 102, 241, 0.32);
  color: #fff;
}

/* subtle ambient backdrop — faint indigo light, slowly drifting */
body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(34% 28% at 16% 12%, rgba(99, 102, 241, 0.07), transparent 72%),
    radial-gradient(32% 30% at 86% 46%, rgba(99, 102, 241, 0.055), transparent 72%),
    radial-gradient(40% 30% at 44% 96%, rgba(99, 102, 241, 0.05), transparent 72%);
  animation: bg-drift 26s ease-in-out infinite alternate;
}
@keyframes bg-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(0, -2.4%, 0) scale(1.06);
  }
}

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

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

/* ---- layout ------------------------------------------------------- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}
.wrap.article {
  max-width: 744px;
}

.section {
  padding: 124px 0;
}
.section.tall {
  padding: 72px 0;
}
.section.cta-section {
  padding: 150px 0;
}

/* tightened transitions into specific sections */
section.section-demo {
  padding-bottom: 72px;
}
#security {
  padding-top: 72px;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
}

/* ---- nav ---------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 200ms ease;
}
.nav.scrolled {
  background: rgba(9, 9, 11, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  height: 52px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.wordmark-mark {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--faint);
  transition: color 150ms ease;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a.bright {
  color: var(--text);
}

/* ---- typography --------------------------------------------------- */
h1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(40px, 4.8vw, 64px);
  line-height: 1.07;
  letter-spacing: -0.03em;
  color: var(--text);
}

h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(28px, 2.7vw, 38px);
  line-height: 1.14;
  letter-spacing: -0.022em;
  color: var(--text);
}

.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.subhead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

.lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

/* section heading block */
.head h2 {
  margin-bottom: 0;
}
.head .eyebrow {
  margin-bottom: 8px;
}

/* ---- buttons ------------------------------------------------------ */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: #09090b;
  background: var(--text);
  border: 0;
  border-radius: 6px;
  padding: 12px 26px;
  cursor: pointer;
  transition: transform 150ms ease, filter 150ms ease;
}
.g-logo {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.cta:hover {
  transform: scale(1.02);
  filter: brightness(1.05);
}
.cta:active {
  transform: scale(0.99);
}

.subcta {
  font-size: 11px;
  color: var(--faint);
}

.textlink {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-text);
  transition: filter 150ms ease;
}
.textlink:hover {
  filter: brightness(1.18);
}

/* ---- hero (stacked: headline, then full-width product shot) ------- */
.hero {
  padding: 84px 0 0;
}
.hero .eyebrow {
  margin-bottom: 18px;
}
.hero h1 {
  max-width: none;
}
.hero .subhead {
  margin-top: 26px;
  max-width: none;
}
.hero-cta {
  margin-top: 38px;
}
.hero-cta .subcta {
  margin-top: 12px;
}
.hero-shot {
  margin-top: 44px;
}

/* ---- product mockup (app screenshot) ----------------------------- */
.mockup {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 40px 80px -34px rgba(0, 0, 0, 0.78);
}
.mk-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.mk-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.mk-dot:nth-child(1) {
  background: #ff5f57;
}
.mk-dot:nth-child(2) {
  background: #febc2e;
}
.mk-dot:nth-child(3) {
  background: #28c840;
}
.mk-url {
  margin-left: 14px;
  font-size: 12px;
  color: var(--faint);
}
.mk-body {
  display: flex;
  height: 540px;
}
.mk-side {
  width: 248px;
  flex-shrink: 0;
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  overflow: hidden;
}
.mk-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0 8px;
  margin-bottom: 12px;
}
.mk-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--muted);
}
.mk-row.folder {
  color: var(--text);
  font-weight: 500;
}
.mk-row.active {
  background: var(--accent-soft);
  color: var(--text);
}
.mk-row.l1 {
  padding-left: 26px;
}
.mk-row.l2 {
  padding-left: 46px;
}
.mk-caret {
  width: 9px;
  flex-shrink: 0;
  color: var(--faint);
  font-size: 9px;
}
.mk-ico {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mk-ico.doc {
  color: #60a5fa;
}
.mk-ico.sheet {
  color: #34d399;
}
.mk-ico.fold {
  color: var(--faint);
}
.mk-ico.slides {
  color: #fbbf24;
}
.mk-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #e9eaed;
}
/* embedded Google Docs editor */
.mk-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: #ffffff;
  border-bottom: 1px solid #e3e5e8;
  overflow: hidden;
}
.tb-btn {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 4px;
  background: #e8eaed;
}
.tb-sep {
  width: 1px;
  height: 18px;
  flex-shrink: 0;
  background: #dadce0;
  margin: 0 3px;
}
.tb-text {
  font-size: 12px;
  color: #5f6368;
}
.tb-field {
  display: flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 4px;
  background: #f1f3f4;
  font-size: 12px;
  color: #3c4043;
  white-space: nowrap;
}
.tb-field::after {
  content: "";
  margin-left: 7px;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid #5f6368;
}
.tb-size {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #5f6368;
}
.tb-num {
  width: 28px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-size: 12px;
  color: #3c4043;
}
.tb-fmt {
  width: 20px;
  text-align: center;
  font-size: 13px;
  color: #444746;
}
.tb-fmt.tb-b {
  font-weight: 700;
}
.tb-fmt.tb-i {
  font-style: italic;
}
.tb-fmt.tb-u {
  text-decoration: underline;
}
.mk-page {
  flex: 1;
  margin: 22px 28px 0;
  padding: 40px 48px;
  background: #ffffff;
  border-radius: 3px 3px 0 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  overflow: hidden;
}
.dc-title {
  font-size: 23px;
  font-weight: 500;
  color: #202124;
}
.dc-meta {
  margin-top: 5px;
  font-size: 11px;
  color: #80868b;
}
.dc-h {
  margin: 22px 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: #202124;
}
.dc-p {
  font-size: 12.5px;
  line-height: 1.75;
  color: #3c4043;
}

/* ---- cards (shared) ---------------------------------------------- */
.card {
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  transition: border-color 200ms ease, background 200ms ease;
}
.card:hover {
  border-color: var(--accent-50);
  background: rgba(255, 255, 255, 0.038);
}

/* ---- section heads ------------------------------------------------ */
.head {
  margin-bottom: 48px;
}
.head .subhead {
  margin-top: 20px;
  max-width: 600px;
}

/* ---- features ----------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-text);
  margin-bottom: 16px;
}
.feature-icon svg {
  width: 20px;
  height: 20px;
}
.feature-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 9px;
}
.feature-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---- demo video --------------------------------------------------- */
.video {
  aspect-ratio: 16 / 9;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  overflow: hidden;
}
.video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.video-play {
  font-size: 40px;
  color: var(--accent-text);
  line-height: 1;
}
.video-note {
  font-size: 13px;
  color: var(--faint);
}

/* ---- security ----------------------------------------------------- */
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.security-grid .lead {
  margin-top: 32px;
  max-width: 400px;
}
.security-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---- comparison table -------------------------------------------- */
.cmp {
  width: 100%;
  border-collapse: collapse;
}
.cmp th,
.cmp td {
  text-align: left;
  padding: 16px 16px;
  border-bottom: 1px solid var(--line);
}
.cmp thead th {
  font-size: 14px;
  font-weight: 500;
  color: var(--faint);
}
.cmp thead th.is-shelf {
  color: var(--accent-text);
}
.cmp tbody td {
  font-size: 15px;
  color: var(--muted);
}
.cmp tbody td:first-child {
  color: var(--text);
}
.cmp th:not(:first-child),
.cmp td:not(:first-child) {
  text-align: center;
}
.cmp .yes {
  color: var(--accent-text);
  font-size: 18px;
}
.cmp .no {
  color: var(--line);
  font-size: 13px;
}
.cmp .val {
  font-size: 14px;
}

/* ---- pricing tiers ----------------------------------------------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px;
}
.tier.featured {
  border-width: 1.5px;
  border-color: var(--accent);
}
.tier.featured:hover {
  border-color: var(--accent);
}
.tier-pop {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 10px;
}
.tier-name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.tier-tag {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}
.tier-price {
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.028em;
  color: var(--text);
  margin: 16px 0 2px;
  line-height: 1;
}
.tier-per {
  font-size: 13px;
  color: var(--faint);
}
.tier-per .was {
  text-decoration: line-through;
  margin-right: 6px;
  color: var(--line);
}
.tier-feats {
  list-style: none;
  margin: 18px 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 2;
  color: var(--muted);
  flex: 1;
}
.tier-feats li::before {
  content: "\2713";
  color: var(--accent-text);
  margin-right: 9px;
}
.tier-cta {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  padding: 11px 0;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 150ms ease, filter 150ms ease,
    background 150ms ease, border-color 150ms ease;
}
.tier-cta.solid {
  background: var(--text);
  color: #09090b;
  border: 1px solid var(--text);
}
.tier-cta.solid:hover {
  transform: scale(1.02);
  filter: brightness(1.05);
}
.tier-cta.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.tier-cta.ghost:hover {
  border-color: var(--accent-50);
}
.tier-note {
  font-size: 13px;
  color: var(--faint);
  margin-top: 24px;
}

/* monthly / annual toggle */
.toggle {
  display: inline-flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px;
}
.toggle button {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--faint);
  background: transparent;
  border: 0;
  border-radius: 6px;
  padding: 7px 16px;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}
.toggle button.on {
  background: var(--text);
  color: #09090b;
}
.price-annual {
  display: none;
}
body.annual .price-annual {
  display: inline;
}
body.annual .price-monthly {
  display: none;
}

/* ---- use-case cards ---------------------------------------------- */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.uc-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-text);
  margin-bottom: 12px;
}
.uc-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 24px;
}

/* ---- accordion / faq --------------------------------------------- */
.faq {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  position: relative;
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  padding: 26px 44px 26px 0;
}
.faq-sign {
  position: absolute;
  right: 0;
  top: 26px;
  font-size: 16px;
  color: var(--accent-text);
}
.faq-sign::before {
  content: "+";
}
.faq-item.open .faq-sign::before {
  content: "\2212";
}
.faq-a {
  display: none;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  padding: 0 44px 22px 0;
  max-width: none;
}
.faq-item.open .faq-a {
  display: block;
}

/* ---- problem / big-type sections --------------------------------- */
.bigtype {
  font-size: clamp(32px, 3.7vw, 48px);
  line-height: 1.13;
  letter-spacing: -0.025em;
  color: var(--text);
  max-width: 580px;
}
.cta-h2 {
  font-size: clamp(34px, 3.9vw, 52px);
  line-height: 1.09;
  letter-spacing: -0.028em;
}

/* ---- code / folder trees ----------------------------------------- */
pre {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px 28px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  overflow-x: auto;
}

/* ---- blog index --------------------------------------------------- */
.article-list {
  border-top: 1px solid var(--line);
}
.article-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 32px;
  border: 1px solid transparent;
  border-bottom: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 200ms ease;
}
.article-card:hover {
  border-color: var(--accent-50);
}
.article-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.article-read {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 6px;
}
.article-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.article-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 12px 0;
}

/* ---- blog article ------------------------------------------------- */
.article-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 24px;
}
.article-header {
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.prose {
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
}
.prose h2 {
  font-size: clamp(22px, 2.1vw, 28px);
  color: var(--text);
  margin: 52px 0 16px;
}
.prose p {
  margin: 20px 0;
}
.prose a {
  color: var(--accent-text);
  font-weight: 500;
}
.prose a:hover {
  filter: brightness(1.18);
}
.prose strong {
  color: var(--text);
  font-weight: 600;
}
.prose ul {
  margin: 20px 0;
  padding-left: 22px;
}
.prose li {
  margin: 8px 0;
}
.prose pre {
  margin: 28px 0;
}

/* end-of-article CTA card */
.cta-card {
  margin-top: 56px;
}
.cta-card h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
}
.cta-card p {
  font-size: 16px;
  color: var(--muted);
  margin: 14px 0 24px;
}

/* ---- footer ------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
}
.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 72px 32px 52px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 64px;
  padding-bottom: 44px;
}
.footer-brand {
  max-width: 280px;
}
.footer-tag {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--faint);
}
.footer-cols {
  display: flex;
  gap: 60px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-h {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.footer-col a {
  font-size: 13px;
  color: var(--faint);
  transition: color 150ms ease;
}
.footer-col a:hover {
  color: var(--text);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--faint);
}
.footer-fine {
  opacity: 0.72;
}
@media (max-width: 760px) {
  .footer-top {
    flex-direction: column;
    gap: 40px;
  }
  .footer-cols {
    flex-wrap: wrap;
    gap: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}

/* ---- scroll-reveal motion ---------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}
.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}
.js .reveal.mockup-reveal {
  transform: translateY(22px);
}
.js .reveal.mockup-reveal.in {
  transition: opacity 600ms ease-out 100ms, transform 600ms ease-out 100ms;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  body::before {
    animation: none;
  }
  .js .reveal,
  .js .reveal.in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- spacing helpers --------------------------------------------- */
.mt8 { margin-top: 8px; }
.mt16 { margin-top: 16px; }
.mt24 { margin-top: 24px; }
.mt32 { margin-top: 32px; }
.mt40 { margin-top: 40px; }
.mt48 { margin-top: 48px; }
.mt64 { margin-top: 64px; }
.mt80 { margin-top: 80px; }

/* ---- responsive --------------------------------------------------- */
@media (max-width: 940px) {
  .hero {
    padding: 60px 0 0;
  }
  .hero-shot {
    margin-top: 32px;
  }
  .security-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .tiers {
    grid-template-columns: repeat(2, 1fr);
  }
  .usecase-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .section {
    padding: 96px 0;
  }
  .section.tall {
    padding: 56px 0;
  }
  .section.cta-section {
    padding: 130px 0;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .tiers {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 22px;
  }
  .security-cards {
    gap: 10px;
  }
  .video {
    aspect-ratio: auto;
    min-height: 168px;
  }
  .article-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .cmp th,
  .cmp td {
    padding: 9px 8px;
    font-size: 13px;
  }
  .mk-side {
    display: none;
  }
}

/* ===================================================================
   Page-scoped spacing — blog index & pricing
   Tightens the vertical rhythm on these two pages only; the shared
   homepage and use-case layouts keep the default .section spacing.
   =================================================================== */

/* ---- blog index --------------------------------------------------- */
/* hero sat far above the article list — close the dead zone ~60% */
.page-blog .bl-hero {
  padding-bottom: 48px;
}
.page-blog .bl-articles {
  padding-top: 52px;
  padding-bottom: 56px;
}
/* shorter article rows — less vertical padding per card (~25%) */
.page-blog .article-card {
  padding: 24px 32px;
}
/* tighter leading so the title cap-aligns with the category tag */
.page-blog .article-title {
  line-height: 1.3;
}
/* less air above the footer's logo/columns */
.page-blog .footer-inner {
  padding-top: 44px;
}

/* ---- pricing ------------------------------------------------------ */
/* pull the tier cards up under the hero toggle */
.page-pricing .pr-hero {
  padding-bottom: 44px;
}
.page-pricing .pr-tiers {
  padding-top: 48px;
  padding-bottom: 60px;
}
.page-pricing .pr-compare {
  padding-top: 64px;
  padding-bottom: 60px;
}
.page-pricing .pr-faq {
  padding-top: 64px;
  padding-bottom: 56px;
}
/* final CTA reads as a close, not a floating island */
.page-pricing .pr-cta {
  padding-top: 72px;
  padding-bottom: 80px;
}

/* tighter card padding + feature rows so cards aren't taller than needed */
.page-pricing .tier {
  padding: 20px;
}
.page-pricing .tier-feats {
  margin: 14px 0;
  padding-top: 14px;
  line-height: 1.7;
}

/* compact comparison-table rows, closer to a standard row height */
.page-pricing .cmp th,
.page-pricing .cmp td {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* tighter FAQ accordion rows */
.page-pricing .faq-q {
  padding-top: 19px;
  padding-bottom: 19px;
}
.page-pricing .faq-sign {
  top: 19px;
}
.page-pricing .faq-a {
  padding-bottom: 18px;
}

/* ===================================================================
   Use-case pages — denser rhythm, polished hero, page-specific
   closing CTA. Scoped to .page-usecase so the homepage is untouched.
   =================================================================== */

/* eyebrow + heading should read as one unit (all section heads) */
.head .eyebrow {
  line-height: 1;
}

/* ---- section rhythm — the pages felt half-empty at 124px sections - */
.page-usecase .section {
  padding: 64px 0;
}
.page-usecase .hero-section .rule {
  margin-top: 48px;
}

/* ---- hero --------------------------------------------------------- */
/* the folder-tree block sits tight under the CTA, as a contained card */
.page-usecase .hero-right {
  margin-top: 32px;
  max-width: 420px;
}
/* "USE CASE" as an intentional pill, not a loose floating label */
.page-usecase .hero .eyebrow {
  display: inline-block;
  margin-bottom: 22px;
  padding: 5px 11px;
  line-height: 1;
  border: 1px solid var(--accent-50);
  border-radius: 999px;
  background: var(--accent-soft);
}

/* ---- body copy measure — prose was drifting across the full width - */
.page-usecase .lead {
  max-width: 560px;
}
/* structure section: tighter columns, and the text must top-align
   with the code card (an inherited margin-top was dropping it 32px) */
.page-usecase .security-grid {
  gap: 48px;
  align-items: start;
}
.page-usecase .security-grid .lead {
  margin-top: 0;
  max-width: none;
}

/* ---- feature cards — compact, equal height, interactive ---------- */
.page-usecase .feature-grid {
  grid-auto-rows: 1fr;
}
.page-usecase .feature-grid .card {
  padding: 20px;
  transition: border-color 200ms ease, background 200ms ease,
    transform 200ms ease;
}
.page-usecase .feature-grid .card:hover {
  transform: translateY(-2px);
}

/* ---- folder-tree code blocks — one clean bordered box ------------ */
.page-usecase .hero-right .card,
.page-usecase .hero-right .card:hover,
.page-usecase .security-grid .card,
.page-usecase .security-grid .card:hover {
  padding: 0;
  background: var(--code-bg);
  border-color: var(--line);
  overflow: hidden;
}
.page-usecase .hero-right .card pre,
.page-usecase .security-grid .card pre {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 26px 30px;
}

/* ---- closing CTA — a contained conversion moment ----------------- */
.page-usecase .cta-section {
  padding: 56px 0 84px;
}
.page-usecase .cta-block {
  padding: clamp(40px, 6vw, 60px) clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(130% 130% at 50% 0%, var(--accent-soft), transparent 62%),
    rgba(255, 255, 255, 0.022);
  text-align: center;
}
.page-usecase .cta-block .cta-h2 {
  font-size: clamp(28px, 3vw, 38px);
}
.page-usecase .cta-block .subhead {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
