/* Sepal marketing site
   ---------------------------------------------------------------
   Edit colours, spacing and radii in the :root block below; every
   rule in this file refers back to it. Component rules are grouped
   in the order the sections appear in index.html. */

:root {
  /* Brand */
  --brand: #0F6B5C;
  --brand-hover: #0A4A40;
  --brand-tint: #E4F1EE;
  --brand-on-dark: #5FBFAB;

  /* Text */
  --text: #12211E;
  --text-muted: #5C6E69;
  --text-soft: #4A5C57;
  --text-faint: #7D908B;
  --text-dim: #9AACA7;
  --text-table: #2C3E39;
  --text-nav: #3B4B47;

  /* Surfaces and borders */
  --bg: #FBFCFB;
  --surface: #fff;
  --surface-alt: #F6F9F8;
  --border: #E3E8E6;
  --border-strong: #D5DEDB;
  --border-light: #EEF2F1;
  --border-faint: #F3F6F5;

  /* Dark "open source" section */
  --dark-bg: #0E1F1B;
  --dark-surface: #0A1815;
  --dark-border: #26403A;
  --dark-border-strong: #3E5F58;
  --dark-text: #DCE8E5;
  --dark-text-muted: #A9BFBA;

  /* Signup band */
  --signup-text: #3B5B54;
  --signup-note: #4E7A72;
  --field-border: #B9D3CD;

  /* Incidental */
  --dot: #DCE3E1;
  --toggle-track: #EEF3F2;

  /* Layout */
  --gutter: clamp(20px, 4vw, 32px);
  --section-y: clamp(64px, 8vw, 96px);
  --band-y: clamp(60px, 8vw, 88px);
  --max-w: 1200px;

  /* Type */
  --font-sans: 'Public Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radii and shadows */
  --radius: 6px;
  --radius-card: 10px;
  --radius-pill: 100px;
  --shadow-mock: 0 24px 60px -30px rgba(18, 33, 30, .28);
  --shadow-toggle: 0 1px 3px rgba(18, 33, 30, .12);
}

/* Base -------------------------------------------------------- */

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

body {
  margin: 0;
  background: var(--bg);
}

a {
  color: var(--brand);
  text-decoration: none;
}

/* :not(.btn) keeps the hover colour off buttons, which set their own. */
a:hover:not(.btn) { color: var(--brand-hover); }

.page {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Shared type ------------------------------------------------- */

.h2 {
  font-size: clamp(28px, 4.2vw, 36px);
  font-weight: 700;
  letter-spacing: -.025em;
  margin: 0 0 10px;
}

.h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--brand);
  margin: 0 0 24px;
}

.section__lede {
  font-size: 17px;
  color: var(--text-muted);
  margin: 0;
}

.section__lede--intro {
  max-width: 60ch;
  margin-bottom: 44px;
}

/* Layout ------------------------------------------------------ */

/* Contained section: gutters, capped width, bottom breathing room. */
.section {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-bottom: var(--section-y);
}

/* Same, but with symmetric vertical padding instead of flush top. */
.section--padded {
  padding-block: var(--band-y);
}

/* Full-bleed band: background spans the viewport, content is capped. */
.band { padding-inline: var(--gutter); }

.band__inner {
  max-width: var(--max-w);
  margin-inline: auto;
}

/* Buttons ----------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 14px 26px;
  border: 0;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.btn--primary {
  background: var(--brand);
  color: var(--surface);
}

.btn--outline {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn--on-dark {
  border: 1px solid var(--dark-border-strong);
  color: var(--surface);
  padding: 12px 22px;
  font-size: 14px;
}

/* Header CTA: inherits the nav's lighter weight, so it is not --primary alone. */
.btn--sm {
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
}

.btn .icon {
  height: 16px;
  width: 16px;
  vertical-align: center;
  margin-inline-end: 4px;
}

/* Header ------------------------------------------------------ */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(251, 252, 251, .9);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  width: 22px;
  height: 22px;
  border-radius: 50% 0 50% 50%;
  background: var(--brand);
}

.brand__mark--sm {
  width: 18px;
  height: 18px;
}

.brand__name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 26px);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-nav);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a:not(.btn) { color: var(--text-nav); }

/* Hero -------------------------------------------------------- */

.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 88px) var(--gutter) 56px;
  text-align: center;
}

.hero__title {
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1.05;
  letter-spacing: -.035em;
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}

.hero__lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 24px auto 0;
  max-width: 60ch;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}

.hero__note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  margin: 20px 0 0;
}

/* Product mock ------------------------------------------------ */

.mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-mock);
}

.mock__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  background: var(--surface-alt);
}

.mock__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot);
}

.mock__url {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  margin-left: 12px;
}

.mock__body {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.mock__sidebar {
  flex: 0 1 200px;
  min-width: 160px;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: start;
  padding: 20px 16px;
  background: var(--bg);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.mock__label {
  flex-basis: 100%;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--text-dim);
  margin: 0 0 6px;
}

.mock__item {
  font-size: 14px;
  padding: 7px 10px;
  color: var(--text-soft);
}

.mock__item.is-active {
  border-radius: 5px;
  background: var(--brand-tint);
  color: var(--brand);
  font-weight: 600;
}

.mock__main {
  flex: 1 1 520px;
  min-width: 0;
  overflow-x: auto;
}

/* One grid definition for the header row and all six data rows. */
.mock__row {
  display: grid;
  grid-template-columns: 110px 1.4fr 1fr 1fr 90px;
  gap: 16px;
  min-width: 640px;
  align-items: center;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border-faint);
  font-size: 13.5px;
  color: var(--text-table);
}

.mock__row--head {
  align-items: stretch;
  padding: 12px 20px;
  border-bottom-color: var(--border-light);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--text-dim);
}

.mock__acc {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--brand);
}

.mock__dim { color: var(--text-muted); }

.mock__date {
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.mock__count {
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

/* Features ---------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 26px;
}

.card__text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* Open source ------------------------------------------------- */

.band--dark {
  background: var(--dark-bg);
  color: var(--dark-text);
  padding-block: var(--band-y);
}

.open-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.eyebrow--on-dark {
  color: var(--brand-on-dark);
  letter-spacing: normal;
  margin-bottom: 20px;
}

.h2--on-dark {
  font-size: clamp(28px, 4.4vw, 38px);
  line-height: 1.12;
  color: var(--surface);
  margin-bottom: 18px;
}

.open__lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--dark-text-muted);
  margin: 0 0 28px;
  max-width: 52ch;
}

.open__list {
  display: grid;
  gap: 12px;
}

.open__card {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-card);
  padding: 22px 24px;
}

.open__card-title {
  font-size: 15.5px;
  color: var(--surface);
}

.open__card-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--dark-text-muted);
  margin: 6px 0 0;
}

/* Donation band ----------------------------------------------- */

.band--donation {
  border-bottom: 1px solid var(--border);
  padding-block: clamp(36px, 5vw, 52px);
}

.donation {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  align-items: baseline;
  justify-content: space-between;
}

.donation__headline {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 0;
  max-width: 34ch;
}

.donation__detail {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
  max-width: 46ch;
}

/* Pricing ----------------------------------------------------- */

.pricing__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.toggle {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--toggle-track);
  border-radius: var(--radius-pill);
}

.toggle__btn {
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.toggle__btn.is-active {
  background: var(--surface);
  color: var(--brand);
  box-shadow: var(--shadow-toggle);
}

.toggle__hint { opacity: .7; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 16px;
  align-items: stretch;
}

/* Used with .card; adds the column layout the tiers need. */
.plan {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.plan--featured {
  border: 2px solid var(--brand);
  position: relative;
}

.plan__badge {
  position: absolute;
  top: -11px;
  left: 24px;
  background: var(--brand);
  color: var(--surface);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.plan__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.plan--featured .plan__name { color: var(--brand); }

.plan__price {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -.03em;
  margin: 0;
}

.plan__per {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-faint);
}

.plan__blurb {
  font-size: 13.5px;
  color: var(--text-faint);
  margin: 6px 0 0;
}

.plan__features {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-soft);
}

/* Used with .btn: pins the CTA to the bottom of the card. */
.plan__cta {
  margin-top: auto;
  padding: 11px;
  font-size: 14px;
}

.pricing__note {
  font-size: 14.5px;
  color: var(--text-muted);
  margin: 24px 0 0;
}

/* FAQ --------------------------------------------------------- */

.faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 4vw, 56px);
}

.faq__title {
  font-size: clamp(26px, 4vw, 32px);
  margin: 0;
}

.faq__list {
  display: grid;
  gap: 28px;
}

.faq__answer {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
  max-width: 70ch;
}

/* Signup ------------------------------------------------------ */

.signup {
  background: var(--brand-tint);
  padding-block: clamp(56px, 8vw, 80px);
  text-align: center;
}

.signup__title {
  font-size: clamp(28px, 4.6vw, 38px);
  letter-spacing: -.03em;
  margin: 0 0 14px;
}

.signup__lede {
  font-size: 17px;
  color: var(--signup-text);
  margin: 0 auto 32px;
  max-width: 52ch;
}

.signup__form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 520px;
  margin: 0 auto;
}

.field {
  flex: 1;
  min-width: 240px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
}

.signup__note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--signup-note);
  margin: 18px 0 0;
}

/* Footer ------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px var(--gutter) 36px;
  background: var(--bg);
}

.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 40px 32px;
}

.footer__brand { min-width: 220px; }

.footer__brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer__brand-name {
  font-size: 16px;
  font-weight: 700;
}

.footer__tagline {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-faint);
  margin: 0;
  max-width: 30ch;
}

.footer-col {
  display: grid;
  gap: 9px;
  align-content: start;
  font-size: 14px;
}

.footer-col__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 3px;
}

.footer-col a { color: var(--text-muted); }

.footer__legal {
  max-width: var(--max-w);
  margin: 44px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
}
