/* Trample marketing site. Light only: the supplied lockup is artwork on a light background. */
@font-face {
  /* The display face echoes the heavy, rounded wordmark. Self-hosted (OFL); no third-party font requests. */
  font-family: "Rubik"; src: url("assets/fonts/rubik-latin-wght.woff2") format("woff2");
  font-weight: 300 900; font-display: swap;
}
:root {
  color-scheme: light;
  --plum: #411950;
  --orchid: #8e4394;
  --rose: #c36ca8;
  --petal: #e7adcd;
  --paper: #f6f2f3;
  --card: #fcfcfb;
  --text: var(--plum);
  --text-secondary: #5c4a62;
  --border: #e6dde2;
  --display: "Rubik", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--text); }
a { color: var(--orchid); }
:focus-visible { outline: 2px solid var(--orchid); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
h1, h2, h3 { font-family: var(--display); }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* header */
.site-header { border-bottom: 1px solid var(--border); background: var(--paper); position: sticky; top: 0; z-index: 2; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; flex-wrap: wrap; }
.logo img { display: block; height: 44px; width: auto; }
.site-header nav { display: flex; gap: 4px 20px; flex-wrap: wrap; align-items: center; font-size: 15px; }
.site-header nav a { color: var(--text-secondary); text-decoration: none; padding: 6px 0; }
.site-header nav a:hover { color: var(--text); text-decoration: underline; }
.site-header nav a.nav-signin { color: var(--plum); font-weight: 600; }

/* buttons */
.button {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 11px 20px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--card); color: var(--plum);
}
.button:hover { border-color: var(--orchid); }
.button.primary { background: var(--plum); border-color: var(--plum); color: #fff; }
.button.primary:hover { background: #551f68; }

/* hero: the one centered block on the page */
.hero { padding: 64px 0 0; text-align: center; }
.hero h1 { font-size: clamp(38px, 7vw, 68px); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 16px; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--text-secondary); max-width: 36em; margin: 0 auto 28px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fine { font-size: 15px; color: var(--text-secondary); margin: 12px 0 0; }
.shot { margin: 44px 0 0; }
.shot img { display: block; width: 100%; border: 1px solid var(--border); border-radius: 10px; }

/* sections: left-aligned, reading width for text */
main section:not(.hero) { padding: 80px 0 0; }
main section:not(.hero) > p { max-width: 40em; color: var(--text-secondary); }
h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 12px; }
h3 { font-size: 21px; font-weight: 600; margin: 0 0 8px; line-height: 1.25; }

/* features: a real piece of the product beside a short explanation */
.feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 56px; align-items: center;
  padding: 40px 0; border-bottom: 1px solid var(--border);
}
.feature:nth-of-type(even) .feature-text { order: 2; }
.feature-text p { color: var(--text-secondary); margin: 0 0 12px; }
.feature img { display: block; border: 1px solid var(--border); border-radius: 10px; justify-self: center; }
.inline-code { margin: 0 0 12px; padding: 10px 14px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; overflow-x: auto; font-size: 15px; }
@media (max-width: 800px) {
  .feature { grid-template-columns: minmax(0, 1fr); padding: 28px 0; }
  .feature:nth-of-type(even) .feature-text { order: 0; }
}

.also { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px 40px; margin: 40px 0 0; }
.also dt { font-weight: 600; margin-bottom: 4px; }
.also dd { margin: 0; color: var(--text-secondary); font-size: 16px; }

.install-head { margin-top: 56px; }
.snippet { background: var(--plum); color: #f6eaf2; border-radius: 8px; padding: 16px 20px; overflow-x: auto; font-size: 14px; max-width: 760px; margin: 16px 0 0; }
.note { font-size: 15px; margin-top: 14px; }

/* pricing: a plain table */
.table-scroll { overflow-x: auto; margin: 24px 0 0; }
.price-table { border-collapse: collapse; min-width: min(100%, 560px); font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { text-align: left; padding: 12px 40px 12px 0; border-bottom: 1px solid var(--border); white-space: nowrap; }
.price-table thead th { font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.price-table tbody th { font-weight: 600; }
.price-table td:nth-child(3) { font-weight: 600; }
.cta-left { display: flex; gap: 8px 16px; align-items: center; flex-wrap: wrap; margin: 28px 0 0; }
.cta-left .fine { margin: 0; }

/* footer */
.site-footer { margin-top: 96px; border-top: 1px solid var(--border); padding: 24px 0 40px; font-size: 14px; color: var(--text-secondary); }
.footer-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.site-footer a { color: var(--text-secondary); }
@media (max-width: 480px) {
  .price-table th, .price-table td { padding-right: 16px; }
}
