/* superdavelab.com — the umbrella page.

   The common ground of the four product pages: Fraunces headings, the cream
   paper with teal and clay washes, the frosted pills, the grain overlay from
   LedgerSprout and LedgerDock, and the card-with-a-mark from Ebb and Nexpill.
   Palette is the family navy/teal/clay the logos are drawn in. */

:root {
  --navy: #14344b;
  --ink: #14232e;
  --muted: #5f6d75;
  --cream: #f5f1ea;
  --card: #fffcf7;
  --line: #e4dccf;
  --clay: #c4613f;
  --lavender: #a09eb9;
  --teal: #1a8783;
  --green: #196741;
  --radius: 22px;
  --paper: #fffdf8;
  --glass: rgba(255, 252, 247, 0.82);
  --glass-line: rgba(20, 52, 75, 0.1);
  --shadow: 0 8px 20px rgba(20, 52, 75, 0.08);
  --band: rgba(255, 252, 247, 0.55);
  --wash-teal: rgba(26, 135, 131, 0.18);
  --wash-lavender: rgba(160, 158, 185, 0.26);
  --wash-clay: rgba(196, 97, 63, 0.1);
  --grain: rgba(20, 52, 75, 0.12);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --navy: #8cc7d3;
    --ink: #e8eef0;
    --muted: #93a3a9;
    --cream: #11191c;
    --card: #1a2428;
    --line: #2a373c;
    --clay: #e48d6d;
    --green: #5fbf8b;
    --paper: #152024;
    --glass: rgba(26, 36, 40, 0.82);
    --glass-line: rgba(232, 238, 240, 0.1);
    --shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    --band: rgba(26, 36, 40, 0.55);
    --wash-teal: rgba(26, 135, 131, 0.22);
    --wash-lavender: rgba(160, 158, 185, 0.16);
    --wash-clay: rgba(228, 141, 109, 0.07);
    --grain: rgba(232, 238, 240, 0.07);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 4%, var(--wash-teal), transparent 30%),
    radial-gradient(circle at 90% 8%, var(--wash-lavender), transparent 32%),
    radial-gradient(circle at 50% 55%, var(--wash-clay), transparent 45%),
    linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  background-color: var(--cream);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* The paper tooth from LedgerSprout's and LedgerDock's pages. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.16;
  background-image: radial-gradient(var(--grain) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}

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

a { color: var(--navy); }

h1, h2, h3 {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-weight: 560;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 0;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pill {
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); padding: 6px 16px 6px 6px; }
.brand img { width: 38px; height: 38px; }
.brand span { font: 600 1.45rem/1 var(--serif); }
.site-header nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 6px; }
.site-header nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.93rem; padding: 7px 14px; border-radius: 999px; }
.site-header nav a:hover { background: rgba(160, 158, 185, 0.18); }
.site-header nav a.nav-cta { background: var(--navy); color: var(--cream); }
.site-header nav a.nav-cta:hover { filter: brightness(1.12); }

/* Jumping to a section shouldn't tuck its heading under the sticky bar. */
section[id], main[id] { scroll-margin-top: 90px; }

/* Hero */

.hero { padding: 40px 0 60px; position: relative; z-index: 2; }
.hero-brand-lockup {
  /* Block-level, so the eyebrow below it starts on its own line: the hero here
     is full width, not the narrow column the product pages wrap it in. */
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 0.95rem;
  margin-bottom: 0.9rem;
}
.hero-mark {
  width: clamp(110px, 14vw, 165px);
  height: auto;
  filter: drop-shadow(0 14px 24px rgba(20, 52, 75, 0.22));
}
.hero-name {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 0.93;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 14px;
}
.lede { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 18px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px 22px; flex-wrap: wrap; color: var(--muted); font-size: 0.95rem; }
.hero-points li::before { content: "●"; color: var(--lavender); margin-right: 8px; font-size: 0.7em; vertical-align: 2px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 18px;
  background: var(--navy);
  color: var(--cream);
  font-weight: 650;
  text-decoration: none;
  border: 2px solid var(--navy);
}
.btn:hover { filter: brightness(1.12); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-small { padding: 10px 18px; font-size: 0.93rem; border-radius: 14px; }
.btn small { font-weight: 500; opacity: 0.8; }

/* Sections */

section { padding: 60px 0; position: relative; z-index: 2; }
section.alt { background: var(--band); border-block: 1px solid var(--line); }
.section-lede { color: var(--muted); max-width: 42em; margin: 0 0 36px; font-size: 1.08rem; }

/* Products */

/* Two families, laid out to suit their screenshots: the desktop apps get a
   wide shot above the copy, the phone apps a tall one beside it. */
.family { margin-bottom: 14px; }
.family h2 { margin-bottom: 0.3em; }

.desk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

.product {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
}
section.alt .product { background: var(--cream); }
.product-shot { display: block; border-bottom: 1px solid var(--line); background: var(--cream); }
.product-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top center; }
.product-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.product-head { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.product-head img { width: 52px; height: 52px; border-radius: 14px; }
.product-head h3 { margin: 0; font-size: 1.55rem; }
.product-tag { color: var(--ink); font-weight: 600; margin: 10px 0 0; }
.product p.blurb { color: var(--muted); margin: 10px 0 0; }
.product ul { color: var(--muted); margin: 16px 0 0; padding-left: 1.2em; }
.product ul li { margin-bottom: 6px; }
.product .spacer { flex: 1; min-height: 18px; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.badge {
  display: inline-block;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.badge.hot { background: var(--clay); border-color: var(--clay); color: #fff; }
.badge.free { background: var(--green); border-color: var(--green); color: #fff; }

.price-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.price-line strong { color: var(--ink); }
.product-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* The phone apps: copy beside a tall screenshot. */
.phone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.product.phone { flex-direction: row; align-items: stretch; }
.product.phone .product-body { padding-right: 20px; }
.product.phone .phone-shot {
  flex: 0 0 172px;
  align-self: center;
  padding: 22px 22px 22px 0;
}
.product.phone .phone-shot img {
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 28px rgba(20, 52, 75, 0.16);
}

/* Promise cards */

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
section.alt .card { background: var(--cream); }
.card p { margin: 0; color: var(--muted); }
.card h3 { margin-bottom: 0.4em; }
.card .mark { display: block; width: 34px; height: 6px; border-radius: 3px; background: var(--clay); margin-bottom: 18px; }
.card:nth-child(3n + 2) .mark { background: var(--lavender); }
.card:nth-child(3n + 3) .mark { background: var(--teal); }

/* About */

.about {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 34px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 36px;
}
.about img { width: 132px; height: 132px; }
.about p { color: var(--muted); max-width: 46em; }
.about p:last-child { margin-bottom: 0; }
.about strong { color: var(--ink); }

.note { color: var(--muted); font-size: 0.95rem; }

/* Footer */

.site-footer { padding: 40px 0 56px; color: var(--muted); font-size: 0.92rem; position: relative; z-index: 2; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; gap: 8px 16px; flex-wrap: wrap; }

/* Narrow screens */

@media (max-width: 980px) {
  .desk-grid, .phone-grid { grid-template-columns: 1fr; }
  .grid, .grid.four { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  /* One slim row on phones, like the product pages: just the menu. */
  .site-header .wrap { justify-content: center; }
  .brand { display: none; }
  .site-header nav { gap: 0; flex-wrap: nowrap; justify-content: center; padding: 4px; }
  .site-header nav a { padding: 6px 7px; font-size: 0.76rem; white-space: nowrap; }
  .grid, .grid.four { grid-template-columns: 1fr; }
  .product.phone { flex-direction: column-reverse; }
  .product.phone .phone-shot { flex: none; align-self: flex-start; padding: 24px 24px 0; width: min(200px, 60%); }
  .product.phone .product-body { padding-right: 28px; }
  .about { grid-template-columns: 1fr; gap: 20px; padding: 28px; }
  .about img { width: 96px; height: 96px; }
  section { padding: 46px 0; }
}
