/* ============================================================================
   POM — marketing site stylesheet
   Design language matched to the POM app: warm paper surfaces, deep navy accent,
   Newsreader serif headings, IBM Plex Sans body, IBM Plex Mono labels.
   ========================================================================== */

:root {
  /* surface */
  --bg:          #f7f6f2;
  --surface:     #ffffff;
  --surface-2:   #faf9f5;
  --surface-3:   #f1efe9;
  --line-soft:   #eae7df;
  --line:        #ddd8ce;
  --line-strong: #c7c0b3;

  /* ink */
  --ink:   #2a2723;
  --ink-2: #48443d;
  --ink-3: #6d675e;
  --ink-4: #97918a;
  --ink-5: #b8b2a9;

  /* accent — deep navy */
  --accent:      #294a78;
  --accent-2:    #1f3a60;
  --accent-soft: #e7ecf4;
  --accent-ink:  #1c3457;

  /* status accent for chips */
  --ok:      #2f7a52;
  --ok-soft: #e6f1ea;

  --serif: "Newsreader", "Source Serif 4", Georgia, serif;
  --sans:  "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, monospace;

  --radius-sm: 6px;
  --radius:    9px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

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

/* ── Type ─────────────────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.12; }
h3 { font-size: 1.28rem; line-height: 1.25; }

p { margin: 0 0 1rem; color: var(--ink-2); }
.lead { font-size: 1.18rem; color: var(--ink-2); line-height: 1.6; }

.overline {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.muted { color: var(--ink-3); }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 500;
  padding: 12px 20px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; transition: all .15s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; transform: translateY(-1px); }
.btn-accent { background: var(--ink); color: var(--bg); }
.btn-accent:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--line-strong); }
.btn-lg { padding: 15px 26px; font-size: 1rem; }

/* ── Nav ──────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1rem; font-weight: 600; letter-spacing: 0;
}
.brand .brand-logo { height: 48px; width: auto; display: block; }
.footer .brand .brand-logo { height: 60px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 0.95rem; color: var(--ink-2); font-weight: 500; transition: color .12s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a.signin { color: var(--accent); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; color: var(--ink); }

/* ── Section scaffolding ──────────────────────────────────────────────── */
section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head .overline { display: block; margin-bottom: 14px; }
.section-head p { margin-top: 16px; font-size: 1.12rem; color: var(--ink-3); }
.center { text-align: center; }

.alt { background: var(--surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.ink-band { background: var(--accent); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding: 76px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: center; }
.hero h1 { margin: 18px 0 20px; }
.hero .lead { max-width: 30rem; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 0.88rem; color: var(--ink-4); }

/* stylized app-window mock */
.mock {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 30px 70px -34px rgba(28,52,87,0.34), 0 2px 8px -3px rgba(0,0,0,0.06);
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 15px; border-bottom: 1px solid var(--line-soft); background: var(--surface-2); }
.mock-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock-bar .dot:nth-child(1){ background:#e0685f;} .mock-bar .dot:nth-child(2){ background:#e6b95c;} .mock-bar .dot:nth-child(3){ background:#79b47f;}
.mock-bar .url { margin-left: 10px; font-family: var(--mono); font-size: 11px; color: var(--ink-4); }
.hero-shot { display: block; width: 100%; height: auto; }
.step-shot {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px -34px rgba(28,52,87,0.34), 0 2px 8px -3px rgba(0,0,0,0.06);
}
.mock-body { display: grid; grid-template-columns: 118px 1fr; min-height: 340px; }
.mock-side { border-right: 1px solid var(--line-soft); background: var(--surface-2); padding: 14px 10px; }
.mock-side .s-brand { font-family: var(--serif); font-size: 13px; color: var(--ink); margin-bottom: 14px; padding: 0 4px; }
.mock-side .s-item { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; font-size: 11.5px; color: var(--ink-3); margin-bottom: 2px; }
.mock-side .s-item.on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.mock-side .s-item i { width: 6px; height: 6px; border-radius: 2px; background: currentColor; opacity: .55; }
.mock-main { padding: 18px; }
.mock-main .m-over { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); }
.mock-main .m-title { font-family: var(--serif); font-size: 19px; color: var(--ink); margin: 5px 0 14px; }
.mock-chips { display: flex; gap: 7px; margin-bottom: 14px; flex-wrap: wrap; }
.mock-chip { font-size: 10px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-soft); color: var(--ink-3); }
.mock-chip.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.mock-row { display: grid; grid-template-columns: 1fr 64px 54px; gap: 10px; padding: 9px 4px; border-top: 1px solid var(--line-soft); font-size: 11.5px; color: var(--ink-2); }
.mock-row.h { color: var(--ink-4); font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; border-top: 0; }
.mock-row .num { text-align: right; font-family: var(--mono); }
.mock-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.mock-kpi { border: 1px solid var(--line-soft); border-radius: 10px; padding: 11px 12px; background: var(--surface); }
.mock-kpi .k-l { font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-4); font-family: var(--mono); }
.mock-kpi .k-v { font-family: var(--serif); font-size: 18px; color: var(--ink); margin-top: 3px; }

/* ── Logos / positioning strip ────────────────────────────────────────── */
.strip { padding: 30px 0; border-bottom: 1px solid var(--line-soft); }
.strip p { text-align: center; margin: 0; font-size: 0.9rem; color: var(--ink-4); letter-spacing: .02em; }

/* ── Feature grid ─────────────────────────────────────────────────────── */
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-md); padding: 26px 24px; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: 0 16px 34px -22px rgba(28,52,87,0.3); }
.card .ico {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card .ico svg { width: 22px; height: 22px; }
.card h3 { font-family: var(--sans); font-size: 1.08rem; font-weight: 600; margin-bottom: 8px; }
.card p { margin: 0; font-size: 0.95rem; color: var(--ink-3); line-height: 1.55; }

/* ── Alternating capability rows ──────────────────────────────────────── */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 40px; }
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .fr-media { order: 2; }
.feature-row .overline { display: block; margin-bottom: 12px; }
.feature-row h2 { margin-bottom: 14px; }
.feature-list { list-style: none; padding: 0; margin: 20px 0 0; }
.feature-list li { position: relative; padding: 7px 0 7px 30px; color: var(--ink-2); font-size: 0.98rem; border-bottom: 1px solid var(--line-soft); }
.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before {
  content: ""; position: absolute; left: 4px; top: 14px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}

/* media panel (decorative, on-brand) */
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 24px;
  box-shadow: 0 24px 54px -34px rgba(28,52,87,0.28);
}
.panel-h { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.panel-h .t { font-family: var(--serif); font-size: 1.15rem; }
.panel-h .b { font-size: 11px; font-family: var(--mono); color: #fff; background: var(--accent); padding: 3px 9px; border-radius: 999px; }
.p-line { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.92rem; color: var(--ink-2); }
.p-line:last-child { border-bottom: 0; }
.p-line .tick { width: 20px; height: 20px; border-radius: 6px; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
.p-line .tick svg { width: 13px; height: 13px; }
.p-line .val { font-family: var(--mono); font-size: 0.85rem; color: var(--ink-3); }

/* ── Steps ────────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; }
.step .n {
  width: 40px; height: 40px; border-radius: 11px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.15rem; margin-bottom: 16px;
}
.step h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 0.94rem; color: var(--ink-3); margin: 0; }

/* ── CTA band ─────────────────────────────────────────────────────────── */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.82); max-width: 34rem; margin: 16px auto 28px; font-size: 1.1rem; }
.cta-band .btn-primary { background: #fff; color: var(--accent-2); }
.cta-band .btn-primary:hover { background: #f3f3f3; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* ── Contact ──────────────────────────────────────────────────────────── */
.contact-card {
  max-width: 640px; margin: 0 auto; text-align: center;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: 48px 40px;
}
.contact-email {
  display: inline-flex; align-items: center; gap: 10px; margin: 22px 0 8px;
  font-family: var(--mono); font-size: 1.15rem; color: var(--accent-ink);
  background: var(--accent-soft); padding: 12px 20px; border-radius: var(--radius);
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer { background: var(--ink); border-top: 1px solid var(--ink); padding: 54px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer .brand { margin-bottom: 14px; color: #fff; }
.footer-blurb { font-size: 0.92rem; color: rgba(255,255,255,0.65); max-width: 22rem; }
.footer h4 { font-family: var(--sans); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 9px; }
.footer ul a { font-size: 0.94rem; color: rgba(255,255,255,0.78); }
.footer ul a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid, .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 34px; }
  .feature-row.reverse .fr-media { order: 0; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--surface);
    border-bottom: 1px solid var(--line); padding: 8px 24px 16px;
  }
  .nav-links.open a { padding: 12px 0; }
}
