/* ===========================================================================
   OfficOne — marketing site
   Editorial / industrial: ledger paper, hairline rules, numbered sections.
   Brand: OfficOne blue #3F65B0 on ink, 70/20/10 neutral:brand:accent.
   =========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #0A0A0A;
  --ink-soft: #3A3A38;
  --ink-faint: #6B6B66;
  --paper: #F4F1EA;
  --paper-bright: #FBFAF6;
  --rule: #D9D4C7;
  --brand: #3F65B0;
  --brand-deep: #2C4880;
  --brand-wash: #E8EDF7;
  --accent: #C8451C;

  --measure: 66ch;
  --shell: 1240px;
  --gutter: clamp(20px, 5vw, 64px);

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4:  clamp(2.6rem, 1.9rem + 3.6vw, 5.4rem);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background-color: var(--paper);
  /* Ledger grid: the paper this business currently runs on. */
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  background-position: -1px -1px;
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  /* Softens the grid so it reads as texture, not a table. */
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(244,241,234,0.15), var(--paper) 72%);
  pointer-events: none;
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

h1, h2, h3, .display {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; max-width: var(--measure); }
a { color: inherit; }

.shell {
  width: min(var(--shell), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(244, 241, 234, 0.82);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.06em;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

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

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--step--1);
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
  min-height: 44px;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper-bright); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost { border-color: var(--rule); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { padding: 15px 26px; font-size: var(--step-0); border-radius: 12px; }
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

/* ── Section scaffolding ─────────────────────────────────────────────────── */
section { padding: clamp(64px, 9vw, 130px) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: attr(data-num);
  font-family: 'Bricolage Grotesque', sans-serif;
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  padding: 2px 7px;
  letter-spacing: 0;
}

.lede {
  font-size: var(--step-1);
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 52ch;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { padding-top: clamp(56px, 7vw, 92px); padding-bottom: clamp(48px, 6vw, 80px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
.hero h1 { font-size: var(--step-4); }
.hero h1 em {
  font-style: normal;
  color: var(--brand);
  /* Underline drawn as a stroke so it sits under the descenders. */
  background: linear-gradient(transparent 68%, rgba(63,101,176,0.22) 0);
}
.hero-sub { margin-top: 26px; font-size: var(--step-1); color: var(--ink-soft); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: var(--step--1); color: var(--ink-faint); }

.hero-card {
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background: var(--paper-bright);
  padding: 22px;
  box-shadow: 8px 8px 0 rgba(10, 10, 10, 0.08);
}
.hero-card h3 { font-size: 0.95rem; letter-spacing: -0.01em; margin-bottom: 14px; }
.feed-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--rule);
  font-size: var(--step--1);
}
.feed-row:first-of-type { border-top: 0; }
.chip {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--brand-wash);
  color: var(--brand-deep);
  white-space: nowrap;
}
.chip-wa { background: #E3F3E8; color: #1F6B3A; }
.chip-jd { background: #FBE9E2; color: #A93C17; }
.feed-name { font-weight: 600; }
.feed-meta { margin-left: auto; color: var(--ink-faint); font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
}

/* ── Marquee of sources ──────────────────────────────────────────────────── */
.sources {
  border-block: 1px solid var(--rule);
  padding: 18px 0;
  background: rgba(251, 250, 246, 0.6);
}
.sources-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: var(--step--1);
  color: var(--ink-faint);
}
.sources-inner b { color: var(--ink); font-weight: 600; }

/* ── Problem ─────────────────────────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.problem-list { list-style: none; margin: 0; padding: 0; }
.problem-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.problem-list li:last-child { border-bottom: 1px solid var(--rule); }
.problem-list b { font-size: var(--step-0); display: block; margin-bottom: 3px; }
.problem-list span { color: var(--ink-soft); font-size: var(--step--1); }
.x-mark {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  margin-top: 2px;
}

/* ── Feature bento ───────────────────────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin-top: 46px;
}
.tile {
  grid-column: span 4;
  border: 1.5px solid var(--rule);
  border-radius: 14px;
  background: var(--paper-bright);
  padding: 26px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.tile:hover { border-color: var(--ink); transform: translateY(-3px); }
.tile-wide { grid-column: span 6; }
.tile-hero { grid-column: span 12; background: var(--ink); color: var(--paper-bright); border-color: var(--ink); }
.tile-hero .tile-body { color: rgba(244, 241, 234, 0.78); }
.tile-hero .tile-icon { background: rgba(244,241,234,0.12); color: var(--paper-bright); }

.tile-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--brand-wash);
  color: var(--brand-deep);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.tile h3 { font-size: var(--step-1); margin-bottom: 8px; }
.tile-body { color: var(--ink-soft); font-size: var(--step--1); line-height: 1.6; }

@media (max-width: 1000px) {
  .tile, .tile-wide { grid-column: span 6; }
}
@media (max-width: 680px) {
  .tile, .tile-wide, .tile-hero { grid-column: span 12; }
}

/* ── Steps ───────────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 46px; }
.step {
  padding: 30px clamp(18px, 2.4vw, 34px);
  border-left: 1px solid var(--rule);
}
.step:first-child { border-left: 0; padding-left: 0; }
.step-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: var(--step-3);
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  display: block;
  margin-bottom: 14px;
}
.step h3 { font-size: var(--step-1); margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: var(--step--1); }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; }
  .step:first-child { border-top: 0; }
}

/* ── Apps ────────────────────────────────────────────────────────────────── */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
.app-card {
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  padding: 26px;
  background: var(--paper-bright);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.app-card .chip { align-self: flex-start; }
.app-card h3 { font-size: var(--step-1); }
.app-card p { color: var(--ink-soft); font-size: var(--step--1); }
@media (max-width: 820px) { .apps { grid-template-columns: 1fr; } }

/* ── Pricing ─────────────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; align-items: start; }
.plan {
  border: 1.5px solid var(--rule);
  border-radius: 16px;
  background: var(--paper-bright);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.plan-featured {
  border-color: var(--ink);
  box-shadow: 8px 8px 0 rgba(63, 101, 176, 0.16);
}
.plan h3 { font-size: var(--step-1); }
.price {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: var(--step-3);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.price span { font-family: 'Inter', sans-serif; font-size: var(--step--1); font-weight: 500; color: var(--ink-faint); letter-spacing: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.plan li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  font-size: var(--step--1);
  color: var(--ink-soft);
  align-items: start;
}
.tick { color: var(--brand); margin-top: 3px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq { margin-top: 40px; border-top: 1px solid var(--rule); }
details {
  border-bottom: 1px solid var(--rule);
  padding: 20px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
  font-size: var(--step-0);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  min-height: 32px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.4rem;
  color: var(--brand);
  line-height: 1;
  transition: transform 0.2s var(--ease);
}
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 12px; color: var(--ink-soft); font-size: var(--step--1); }

/* ── Closing CTA ─────────────────────────────────────────────────────────── */
.closer {
  background: var(--ink);
  color: var(--paper-bright);
  border-radius: 20px;
  padding: clamp(40px, 6vw, 76px);
  text-align: center;
  margin-bottom: 80px;
}
.closer h2 { font-size: var(--step-3); margin-bottom: 16px; }
.closer p { color: rgba(244, 241, 234, 0.76); margin-inline: auto; }
.closer .hero-actions { justify-content: center; }
.closer .btn-primary { background: var(--paper-bright); color: var(--ink); }
.closer .btn-primary:hover { background: var(--brand-wash); }
.closer .btn-ghost { border-color: rgba(244,241,234,0.35); color: var(--paper-bright); }
.closer .btn-ghost:hover { border-color: var(--paper-bright); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--rule);
  padding: 36px 0 60px;
  font-size: var(--step--1);
  color: var(--ink-faint);
}
.foot-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

/* ── Entrance ────────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* Small phones: the nav buttons were wrapping onto two lines and eating the fold. */
@media (max-width: 520px) {
  .nav-cta .btn { white-space: nowrap; padding: 10px 14px; }
  .nav-cta .btn-ghost { display: none; }
  .nav-inner { padding: 12px 0; }
}
