/* MettaGrowth product site: an editorial, type-led page in the dashboard's font (Inter).
 * Large tight headlines, warm paper, one product screenshot, thin rules instead of boxes.
 * Light by default; dark when chosen. */

:root {
  --paper: #f6f3ec;
  --paper-2: #efeadf;
  --card: #fbf9f4;
  --ink: #15171c;
  --ink-2: #3a3d45;
  --muted: #6b6e76;
  --rule: #ddd7ca;
  --rule-strong: #c9c1b0;
  --navy: #10223f;
  --accent: #1e9bd7;
  --accent-2: #14d3e3;
  --on-ink: #f6f3ec;
  --shadow: 0 1px 2px rgba(21, 23, 28, 0.06), 0 24px 60px -24px rgba(16, 34, 63, 0.28);
  /* Inter, as in the dashboard; headlines are Inter too, heavier and tighter. */
  --display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #121315;
  --paper-2: #181a1d;
  --card: #1a1c20;
  --ink: #ecebe6;
  --ink-2: #c4c3bd;
  --muted: #8f9097;
  --rule: #2a2c31;
  --rule-strong: #3a3d43;
  --navy: #0b1830;
  --accent: #4fb8e8;
  --accent-2: #3fe0ee;
  --on-ink: #121315;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow > * { max-width: 860px; }  /* same left edge as every section, shorter lines */

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--ink); color: var(--paper); border-radius: 6px; }
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* --- Header --------------------------------------------------------------------------------- */
.head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.head.scrolled { border-bottom-color: var(--rule); }
.head-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-size: 17px; letter-spacing: -0.01em; font-weight: 500; }
.brand-name b { font-weight: 700; }
.nav { display: flex; gap: 28px; margin-left: 16px; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.nav a:hover { color: var(--ink); }
.head-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tool {
  display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px;
  border: 1px solid transparent; border-radius: 8px; background: none; color: var(--ink-2);
  font: 600 13px/1 var(--sans); cursor: pointer;
}
.tool:hover { border-color: var(--rule); color: var(--ink); }
.when-dark { display: none; }
:root[data-theme="dark"] .when-dark { display: block; }
:root[data-theme="dark"] .when-light { display: none; }
.link-quiet { text-decoration: none; color: var(--ink-2); font-size: 15px; padding: 0 8px; }
.link-quiet:hover { color: var(--ink); }

/* --- Buttons -------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--navy); color: #fff; }
:root[data-theme="dark"] .btn-ink:hover { background: #fff; color: #121315; }
.btn-line { border-color: var(--rule-strong); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--rule-strong); padding-bottom: 2px; }
.link-arrow:hover { border-color: var(--ink); }

/* --- Type ----------------------------------------------------------------------------------- */
.kicker, .eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.eyebrow { margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 2px; }
.display {
  font-family: var(--display); font-weight: 650; letter-spacing: -0.045em; line-height: 1.02;
  font-size: clamp(42px, 7vw, 96px); max-width: 15ch; margin: 22px 0 0;
}
.display-sm { font-family: var(--display); font-weight: 650; letter-spacing: -0.035em; line-height: 1.08; font-size: clamp(34px, 5vw, 60px); }
.statement { font-family: var(--display); font-weight: 650; letter-spacing: -0.035em; line-height: 1.1; font-size: clamp(32px, 4.6vw, 58px); margin-bottom: 28px; }
.title { font-family: var(--display); font-weight: 650; letter-spacing: -0.03em; line-height: 1.15; font-size: clamp(28px, 3.4vw, 42px); max-width: 22ch; }
.soft { color: var(--muted); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.body-lg { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 38em; }
.body { font-size: 17px; color: var(--ink-2); margin-top: 16px; max-width: 34em; }
.note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* --- Hero ----------------------------------------------------------------------------------- */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px 64px; align-items: end; margin-top: 40px; }
.screen { margin: clamp(48px, 7vw, 88px) 0 0; }
.screen img { width: 100%; border-radius: 14px; border: 1px solid var(--rule); box-shadow: var(--shadow); cursor: zoom-in; background: var(--card); }
.screen figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* --- Facts ---------------------------------------------------------------------------------- */
.facts { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.facts-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts-row > div { padding: 28px 24px 30px 0; display: grid; gap: 6px; }
.facts-row > div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.facts strong { font-family: var(--display); font-size: clamp(30px, 3.4vw, 44px); font-weight: 650; letter-spacing: -0.04em; line-height: 1; }
.facts span { font-size: 14px; color: var(--muted); max-width: 22ch; }

/* --- Sections ------------------------------------------------------------------------------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section.tint { background: var(--paper-2); }
.section.ink { background: var(--navy); color: #eef1f6; }
:root[data-theme="dark"] .section.ink { background: #0c1424; }
.section.ink .eyebrow, .section.ink .soft { color: #93a3bd; }
.section.ink .body-lg, .section.ink p { color: #c8d1df; }
.section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px 80px; align-items: start; }
.two + .two { margin-top: clamp(64px, 8vw, 104px); padding-top: clamp(64px, 8vw, 104px); border-top: 1px solid var(--rule); }

.numbered { list-style: none; padding: 0; margin: 48px 0 0; counter-reset: n; border-top: 1px solid var(--rule); }
.numbered li { counter-increment: n; position: relative; padding: 22px 0 22px 56px; border-bottom: 1px solid var(--rule); font-size: 18px; line-height: 1.5; }
.numbered li::before { content: "0" counter(n); position: absolute; left: 0; top: 22px; font-family: var(--display); color: var(--muted); font-size: 18px; }

/* --- Flow (how it works) -------------------------------------------------------------------- */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; }
.flow li { position: relative; padding: 28px 22px 0 0; display: grid; gap: 8px; align-content: start; }
.flow li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--rule-strong); }
.flow li:first-child::before { background: linear-gradient(90deg, var(--accent-2), var(--rule-strong)); }
.flow li::after { content: ""; position: absolute; top: -5px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--ink); }
.flow li:last-child::after { background: var(--accent); border-color: var(--accent); }
.flow-no { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.flow strong { font-family: var(--display); font-size: 24px; font-weight: 650; letter-spacing: -0.025em; }
.flow li > span:last-child { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.flow-back { margin-top: 48px; padding: 22px 24px; border-left: 3px solid var(--accent); background: var(--card); font-size: 17px; color: var(--ink-2); max-width: 52em; border-radius: 0 10px 10px 0; }

/* --- Feature rows --------------------------------------------------------------------------- */
.rows { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.rows li { display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px 40px; padding: 32px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.row-no { font-family: var(--display); color: var(--muted); font-size: 18px; }
.rows h3 { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2vw, 25px); letter-spacing: -0.02em; line-height: 1.25; }
.rows p { color: var(--ink-2); font-size: 16px; }

/* --- Principle and security (dark band) ----------------------------------------------------- */
.chain { list-style: none; padding: 0; margin: 0 0 36px; display: flex; flex-wrap: wrap; gap: 10px; }
.chain li { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: #eef1f6; }
.chain li + li::before { content: "→"; color: #6f84a6; }
.chain li { padding: 0; }
.chain li span { padding: 0; }
.sec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 56px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.sec-grid > div { padding: 24px 24px 0 0; }
.sec-grid > div + div { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.sec-grid h3 { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.sec-grid p { font-size: 14.5px; color: #aebbd0 !important; }

/* --- Integrations, audience ----------------------------------------------------------------- */
.plain-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.plain-list li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.plain-list b { font-weight: 600; }
.plain-list span { color: var(--muted); text-align: right; }

/* --- Pricing -------------------------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan { display: flex; flex-direction: column; gap: 10px; padding: 30px 28px; background: var(--card); border: 1px solid var(--rule); border-radius: 16px; }
.plan.featured { border-color: var(--ink); box-shadow: var(--shadow); }
.plan h3 { font-family: var(--display); font-weight: 650; font-size: 24px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.tag { font: 600 11px/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 8px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.plan-note { color: var(--muted); font-size: 15px; }
.price { margin-top: 14px; font-family: var(--display); font-size: 34px; font-weight: 650; letter-spacing: -0.035em; line-height: 1.1; }
.price small { font-family: var(--sans); font-size: 15px; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.price-year { font-size: 14px; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 14px 0 22px; display: grid; gap: 10px; flex: 1; border-top: 1px solid var(--rule); padding-top: 18px; }
.ticks li { position: relative; padding-left: 24px; font-size: 15px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan .btn { width: 100%; }
.price .from { margin: 0 6px 0 0; }

.sub-title { margin: 64px 0 18px; font-family: var(--display); font-weight: 650; font-size: 24px; letter-spacing: -0.02em; }
.compare-wrap { position: relative; min-width: 0; max-width: 100%; overflow-x: auto; border: 1px solid var(--rule); border-radius: 16px; background: var(--card); }
.compare-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 12px 18px; text-align: center; border-top: 1px solid var(--rule); }
.compare thead th { border-top: 0; font-family: var(--display); font-weight: 650; font-size: 17px; }
.compare th[scope="row"] { text-align: left; font-weight: 400; color: var(--ink-2); }
.compare tr.group th { text-align: left; font: 600 12px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); padding-top: 14px; padding-bottom: 12px; }
.compare td:nth-child(3), .compare thead th:nth-child(3) { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.compare td.yes { color: var(--accent); font-weight: 700; }
.compare td.no { color: var(--muted); }
.compare th[scope="row"], .compare thead th:first-child { position: sticky; left: 0; background: var(--card); }
.compare tr.group th { position: static; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.addons { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; margin-top: 64px; align-items: start; }
.addons .sub-title { margin-top: 0; }
.addon-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.addon-list li { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--rule); }
.addon-list strong { font-weight: 600; }
.addon-list span { font-family: var(--display); font-weight: 650; font-size: 18px; letter-spacing: -0.01em; }
.addon-list p { color: var(--muted); font-size: 14px; }

/* --- FAQ ------------------------------------------------------------------------------------ */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-size: 18px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 300 26px/1 var(--sans); color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 24px 0; color: var(--ink-2); }

/* --- Contact, final ------------------------------------------------------------------------- */
.contact { font-style: normal; display: grid; gap: 8px; padding: 30px 28px; background: var(--card); border: 1px solid var(--rule); border-radius: 16px; }
.contact h3 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.contact p { color: var(--ink-2); }
.contact-big { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.025em; }
.contact-big a { text-decoration: none; color: var(--ink); }
.contact-big a:hover { color: var(--accent); }
.final { padding: clamp(80px, 11vw, 144px) 0; text-align: left; border-top: 1px solid var(--rule); }
.final .body-lg { margin: 20px 0 32px; }

/* --- Footer --------------------------------------------------------------------------------- */
.foot { border-top: 1px solid var(--rule); padding: 56px 0 28px; font-size: 14px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.foot h4 { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.foot nav { display: grid; gap: 8px; align-content: start; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot p { margin-bottom: 6px; }
.foot-brand { display: grid; gap: 12px; align-content: start; }
.foot-brand .brand { color: var(--ink); }
.madeby a { text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule); }

/* --- Lightbox ------------------------------------------------------------------------------- */
.lightbox { border: 0; padding: 0; max-width: min(96vw, 1600px); background: transparent; }
.lightbox::backdrop { background: rgba(10, 12, 16, 0.82); }
.lightbox img { border-radius: 10px; max-height: 90vh; width: auto; }
.lightbox-close { position: fixed; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #15171c; font-size: 24px; line-height: 1; cursor: pointer; }

/* --- Mobile menu ---------------------------------------------------------------------------- */
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { list-style: none; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; border-radius: 8px; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span, .mobile-menu summary span::before, .mobile-menu summary span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ""; }
.mobile-menu summary span::before { position: absolute; top: -6px; }
.mobile-menu summary span::after { position: absolute; top: 6px; }
.mobile-menu nav { position: absolute; right: 0; top: 46px; min-width: 220px; display: grid; padding: 8px; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow); }
.mobile-menu nav a { padding: 10px 12px; text-decoration: none; border-radius: 8px; }
.mobile-menu nav a:hover { background: var(--paper-2); }

/* --- Responsive ----------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .nav, .login { display: none; }
  .mobile-menu { display: block; }
  .hero-foot, .two { grid-template-columns: 1fr; }
  .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-row > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts-row > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow li { padding: 0 0 28px 30px; }
  .flow li::before { top: 0; bottom: 0; left: 5px; right: auto; width: 2px; height: auto; }
  .flow li:first-child::before { background: linear-gradient(180deg, var(--accent-2), var(--rule-strong)); }
  .flow li::after { top: 4px; left: 0; }
  .rows li { grid-template-columns: 48px minmax(0, 1fr); }
  .rows li p { grid-column: 2; }
  .sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-grid > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .sec-grid > div { padding-bottom: 24px; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .addons { grid-template-columns: 1fr; gap: 12px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .addon-list { grid-template-columns: 1fr; }
  .compare th, .compare td { padding: 10px 12px; }
  .head-tools .btn-sm { display: none; }
  .facts-row { grid-template-columns: 1fr; }
  .facts-row > div, .facts-row > div + div { padding: 20px 0; border-left: 0; }
  .facts-row > div + div { border-top: 1px solid var(--rule); }
  .sec-grid { grid-template-columns: 1fr; }
  .sec-grid > div, .sec-grid > div + div { padding-left: 0; border-left: 0; }
  .plain-list li { flex-direction: column; gap: 2px; }
  .plain-list span { text-align: left; }
  .foot-grid { grid-template-columns: 1fr; }
}
