/* Meridyon marketing site — shared stylesheet
   System: white canvas, near-black type, blue-600 reserved for CTAs.
   Big type, generous whitespace, hairlines, near-zero motion. Geist. */

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --ink: #0f172a;
  --body: #3d4453;
  --muted: #69707f;
  --hairline: #e7e9ef;
  --panel: #f5f6f8;
  --dark: #0f172a;
  --dark-body: #b9c2d2;
  --dark-muted: #8b95a8;
  --radius-img: 1.25rem;
  --radius-frame: 0.875rem;
  --shadow-frame:
    0 1px 1px rgba(15, 23, 42, 0.04),
    0 2px 6px -1px rgba(15, 23, 42, 0.06),
    0 30px 60px -28px rgba(15, 23, 42, 0.32);
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scrollbar-gutter: stable; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: #fff;
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--blue); color: #fff; }

img, svg { max-width: 100%; height: auto; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
.dark-section :focus-visible { outline-color: #93c5fd; }

h1, h2, h3 { color: var(--ink); margin: 0 0 1rem; }
h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
}
h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.08;
}
h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.narrow {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--hairline);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  min-height: 44px;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; flex-shrink: 0; }
.header-nav { display: flex; align-items: center; gap: 1.4rem; }
.header-nav a.signin {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color 0.15s ease;
}
.header-nav a.signin:hover { color: var(--ink); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.005em;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--blue-dark); text-decoration: none; }
.btn-small { min-height: 2.25rem; padding: 0.4rem 1.1rem; font-size: 0.9rem; }
.text-link {
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color 0.15s ease;
}
.text-link:hover { color: var(--blue); text-decoration: none; }

/* ---------- Sections ---------- */
section { padding: 5.5rem 0; }
@media (min-width: 820px) { section { padding: 8.5rem 0; } }

.section-head { text-align: center; }
.section-head p {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 1.1rem;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 5.5rem 0 0;
}
@media (min-width: 820px) { .hero { padding: 7.5rem 0 0; } }
.hero h1 { margin: 0 auto 1.5rem; max-width: 16ch; text-wrap: balance; }
.hero .lede {
  font-size: clamp(1.1875rem, 1.8vw, 1.4375rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  text-wrap: balance;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
}
.cta-note {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 1.4rem 0 0;
}
/* Hero product shot bleeds up from below the fold */
.hero-shot {
  margin: 4rem auto 0;
  max-width: 1080px;
}
@media (min-width: 820px) { .hero-shot { margin-top: 5.5rem; } }
.hero-shot .caption { margin-top: 1.25rem; }

/* ---------- Browser frame (reusable) ---------- */
.browser {
  margin: 0;
  border-radius: var(--radius-frame);
  background: #fff;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-frame);
  overflow: hidden;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.7rem 0.95rem;
  background: #fbfbfd;
  border-bottom: 1px solid var(--hairline);
}
.browser-dots {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}
.browser-dots span {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: #dcdfe6;
}
.browser-url {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
  max-width: 320px;
  margin: 0 auto;
  padding: 0.3rem 0.85rem;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser-url svg { width: 0.72rem; height: 0.72rem; flex-shrink: 0; color: #94a3b8; }
.browser-spacer { width: 3rem; flex-shrink: 0; }
.browser-screen { overflow-x: auto; -webkit-overflow-scrolling: touch; background: #fff; }
.browser-screen img { display: block; width: 100%; height: auto; min-width: 760px; }

/* Caption shared by every shot */
.caption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 1.25rem 0 0;
  letter-spacing: -0.005em;
}

/* ---------- Alternating feature sections ---------- */
.feature-row { border-top: 1px solid var(--hairline); }
.feature-row .container {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .feature-row .container {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 4.5rem;
  }
  .feature-row.flip .copy { order: 2; }
  .feature-row.flip .media { order: 1; }
}
.feature-row .copy { max-width: 520px; }
.feature-row .who {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  margin: 0 0 1.1rem;
}
.feature-row .copy h2 { margin-bottom: 1.1rem; }
.feature-row .copy > p {
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.6;
  color: var(--body);
  margin: 0;
}
.feature-row .media { min-width: 0; }
.proof {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.proof li {
  border-top: 1px solid var(--hairline);
  padding: 0.85rem 0;
  font-size: 0.975rem;
  color: var(--body);
}
.proof li:last-child { border-bottom: 1px solid var(--hairline); }

/* ---------- Dark sections ---------- */
.dark-section { background: var(--dark); }
.dark-section h1, .dark-section h2, .dark-section h3 { color: #fff; }
.dark-section p { color: var(--dark-body); }
.dark-section .kicker, .dark-section .who { color: var(--dark-muted); }

/* ---------- Mobile section (phone frame) ---------- */
.mobile-row.feature-row { border-top: none; }
.mobile-row .who { color: #93c5fd; }
.mobile-row .copy > p {
  color: var(--dark-body);
  margin-bottom: 1rem;
}
.mobile-row .copy > p:last-child { margin-bottom: 0; }
.mobile-row .media { display: flex; justify-content: center; }
.phone-frame { margin: 0; width: 248px; max-width: 100%; }
.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border: 8px solid #1c2533;
  border-radius: 2.5rem;
  background: #1c2533;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 40px 80px -32px rgba(0, 0, 0, 0.75);
}
.mobile-row .caption { color: var(--dark-muted); }

/* ---------- Feature list ---------- */
.feature-list {
  display: grid;
  gap: 2.5rem 3rem;
  grid-template-columns: 1fr;
  max-width: 1000px;
  margin: 4rem auto 0;
}
@media (min-width: 640px) { .feature-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .feature-list { grid-template-columns: 1fr 1fr 1fr; } }
.feature-list > div { border-top: 1px solid var(--hairline); padding-top: 1.1rem; }
.feature-list h3 { margin-bottom: 0.25rem; }
.feature-list p { margin: 0; font-size: 0.975rem; color: var(--muted); }

/* ---------- Story ---------- */
.story { text-align: center; }
.story p {
  font-size: clamp(1.1875rem, 2vw, 1.5rem);
  line-height: 1.55;
  max-width: 660px;
  margin: 0 auto;
  text-wrap: balance;
}

/* ---------- Pricing ---------- */
.pricing { text-align: center; }
.pricing .price {
  font-size: clamp(4.5rem, 11vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--ink);
  line-height: 1;
  margin: 2.5rem 0 0.5rem;
}
.pricing .price-unit {
  display: block;
  font-size: 1.125rem;
  letter-spacing: normal;
  color: var(--muted);
  font-weight: 500;
  margin: 1rem 0 0;
}
.pricing ul {
  list-style: none;
  padding: 0;
  margin: 2.5rem auto 2.75rem;
  max-width: 420px;
}
.pricing ul li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--hairline);
  font-size: 1rem;
  color: var(--body);
}
.pricing ul li:last-child { border-bottom: 1px solid var(--hairline); }

/* ---------- FAQ ---------- */
.faq .faq-list { max-width: 720px; margin: 3rem auto 0; }
.faq details { border-top: 1px solid var(--hairline); }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding: 1.4rem 3rem 1.4rem 0;
  list-style: none;
  position: relative;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer {
  margin: 0;
  padding: 0 3rem 1.6rem 0;
  color: var(--muted);
  font-size: 1.0625rem;
}

/* ---------- CTA close ---------- */
.cta-close { text-align: center; border-top: 1px solid var(--hairline); }
.cta-close h2 { margin-bottom: 2.25rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--panel);
  color: var(--muted);
  padding: 3.5rem 0 2.5rem;
  font-size: 0.92rem;
  border-top: 1px solid var(--hairline);
}
.site-footer a { color: var(--body); transition: color 0.15s ease; }
.site-footer a:hover { color: var(--ink); }
.site-footer .brand { font-size: 1rem; min-height: 0; color: var(--ink); }
.site-footer .brand svg { width: 22px; height: 22px; }
.site-footer .footer-cols > div > p { margin-top: 0.75rem; }
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 1.5rem;
}
@media (min-width: 820px) {
  .footer-cols { grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 2.5rem; }
}
.footer-cols ul { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.footer-cols li { margin-bottom: 0.4rem; }
.footer-cols li a { display: inline-flex; align-items: center; min-height: 28px; }
.footer-cols .col-title {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 0.25rem;
}
.footer-bottom {
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.85rem;
}

/* ---------- 404 ---------- */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}
.error-page h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
.error-page p { color: var(--muted); }

/* ---------- Security page ---------- */
.doc-list {
  display: grid;
  gap: 2.5rem 3rem;
  grid-template-columns: 1fr;
  max-width: 880px;
  margin: 4rem auto 0;
}
@media (min-width: 720px) { .doc-list { grid-template-columns: 1fr 1fr; } }
.doc-list > div { border-top: 1px solid var(--hairline); padding-top: 1.1rem; }
.doc-list p { margin: 0; font-size: 0.975rem; color: var(--muted); }
.callout {
  max-width: 720px;
  margin: 4.5rem auto 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-img);
  padding: 2rem 2.25rem;
  text-align: left;
}
.callout h3 { font-size: 1.25rem; letter-spacing: -0.015em; margin-bottom: 0.75rem; }
.callout p, .callout li { font-size: 1rem; color: var(--body); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.trust-list { margin: 0 0 1rem; padding-left: 1.2rem; }
.trust-list li { margin-bottom: 0.6rem; }

/* ---------- Small screens ---------- */
@media (max-width: 560px) {
  .browser-url { max-width: none; font-size: 0.72rem; }
  .browser-spacer { width: 1.25rem; }
  .browser-screen img { min-width: 680px; }
  .hero-shot { margin-top: 3rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
