/* Thwack marketing site
   Direction: deep fairway ink + warm tracer gold on cool mist greens.
   Type: SF Rounded (app) → Nunito on the web. */

:root {
  --ink: #0c1a12;
  --ink-soft: #24352b;
  --mist: #e7eee8;
  --mist-deep: #d5e0d7;
  --panel: #f3f7f3;
  --fairway: #1a5c3b;
  --fairway-deep: #0f3d28;
  --tracer: #d4b44a;
  --tracer-hot: #f0d56a;
  --white: #f8faf7;
  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Avenir Next Rounded", system-ui, sans-serif;
  --font-brand: var(--font);
  --font-body: var(--font);
}

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

/* Inner pages sit under the fixed header */
.page {
  padding: calc(var(--header-h) + 2.5rem) 0 4rem;
}

.page > .section:first-child {
  padding-top: 0;
}

.site-nav a.is-active {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--tracer);
}

.page-hero-mini {
  width: min(1080px, calc(100% - 2.5rem));
  margin: 0 auto 1rem;
}

.page-hero-mini .brand-sm {
  margin-bottom: 0.35rem;
}

html {
  color-scheme: light;
  scroll-behavior: auto;
}


body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 12% -8%, #cfe0d4 0%, transparent 55%),
    radial-gradient(700px 420px at 100% 8%, #e6efc9 0%, transparent 45%),
    var(--mist);
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--fairway-deep); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* -- Header -- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--mist) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}

.wordmark {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.75rem);
}

.site-nav a {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--ink-soft);
}

.site-nav a:hover { color: var(--ink); }

.nav-cta {
  color: var(--fairway-deep) !important;
}

@media (max-width: 720px) {
  .site-header {
    height: auto;
    min-height: var(--header-h);
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }
  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
  }
  .site-nav a {
    font-size: 0.85rem;
  }
}

/* -- Hero -- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 40%;
  transform: scale(1.06);
  animation: heroDrift 28s var(--ease) infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, 1%, 0); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 18, 12, 0.35) 0%, rgba(8, 18, 12, 0.18) 35%, rgba(8, 18, 12, 0.72) 100%),
    linear-gradient(90deg, rgba(8, 18, 12, 0.55) 0%, transparent 55%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto var(--header-h);
  padding: 0 0 clamp(2.5rem, 8vh, 4.5rem);
  animation: rise 1s var(--ease) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.brand {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(3.4rem, 12vw, 7.5rem);
  letter-spacing: -0.05em;
  line-height: 0.9;
  margin: 0 0 1rem;
  color: inherit;
}

.brand-sm {
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.04em;
  color: var(--fairway);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(1.65rem, 4.2vw, 2.55rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0 0 0.85rem;
  max-width: 14ch;
}

.lede {
  margin: 0 0 1.75rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 400;
  max-width: 34ch;
  color: color-mix(in srgb, var(--white) 86%, transparent);
}

.hero .lede { color: color-mix(in srgb, #f4f7f2 88%, transparent); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: center;
}

.btn {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0 1.35rem;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: transform 160ms var(--ease), background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }

.btn-primary {
  background: var(--tracer);
  color: var(--ink);
}

.btn-primary:hover { background: var(--tracer-hot); }

.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: color-mix(in srgb, currentColor 45%, transparent);
}

.hero .btn-ghost { color: var(--white); }

.btn-ghost:hover {
  border-color: currentColor;
  background: color-mix(in srgb, currentColor 8%, transparent);
}

/* -- Sections -- */
.section {
  width: min(1080px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(4.5rem, 12vh, 7.5rem) 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: clamp(2rem, 5vh, 3.25rem);
}

.section-head h2,
.split-copy h2,
.download h2 {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0 0 0.75rem;
}

.section-head p,
.split-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

/* Metrics - not cards: one horizontal composition */
.measures {
  position: relative;
}

.metric-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-rail li {
  padding: 1.35rem 1rem 1.35rem 0;
  border-right: 1px solid var(--line);
}

.metric-rail li:last-child {
  border-right: 0;
  padding-right: 0;
}

.metric-name {
  display: block;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.metric-hint {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.tracer-line {
  display: block;
  width: 100%;
  height: 64px;
  margin-top: 1.75rem;
  color: var(--tracer);
}

.tracer-line path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawTracer 1.8s var(--ease) 0.2s forwards;
}

@keyframes drawTracer {
  to { stroke-dashoffset: 0; }
}

@media (max-width: 860px) {
  .metric-rail {
    grid-template-columns: 1fr 1fr;
  }
  .metric-rail li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 1.1rem 0;
  }
  .metric-rail li:nth-child(odd) {
    padding-right: 1rem;
  }
}

/* How it works */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.steps li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.steps li:last-child { border-bottom: 1px solid var(--line); }

.step-num {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  color: var(--fairway);
  line-height: 1.2;
}

.steps h3 {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 42rem;
}

/* Privacy split */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: center;
  width: min(1120px, calc(100% - 2.5rem));
}

.split-copy h2 { max-width: 10ch; }

.split-copy p + p { margin-top: 1rem; }

.text-link {
  font-family: var(--font-brand);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--fairway) 45%, transparent);
  padding-bottom: 0.1rem;
}

.text-link:hover { border-bottom-color: var(--fairway); }

.split-media {
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  min-height: 280px;
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
}

/* Practice - editorial rows, not cards */
.practice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3rem;
}

.practice-grid article {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.practice-grid h3 {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
}

.practice-grid p {
  margin: 0;
  color: var(--ink-soft);
}

@media (max-width: 700px) {
  .practice-grid { grid-template-columns: 1fr; gap: 0; }
}

/* Setup needs */
.need-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.need-list li {
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.need-list li:last-child { border-bottom: 1px solid var(--line); }

.need-list strong {
  font-family: var(--font-brand);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.need-list a {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--fairway) 40%, transparent);
}

/* Tripod buy / print */
.tripod-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3rem;
}

.tripod-actions > div {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tripod-actions h3 {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.45rem;
}

.tripod-actions p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  max-width: 28rem;
}

.tripod-actions .btn-ghost {
  color: var(--ink);
}

@media (max-width: 700px) {
  .tripod-actions { grid-template-columns: 1fr; gap: 0; }
  .tripod-actions > div:first-child { border-bottom: 0; }
}

/* Download */
.download {
  text-align: center;
  padding-top: clamp(5rem, 14vh, 8rem);
  padding-bottom: clamp(5rem, 14vh, 8rem);
}

.download .lede {
  margin-left: auto;
  margin-right: auto;
  color: var(--ink-soft);
}

.download .cta-row {
  justify-content: center;
}

.download .btn-ghost {
  color: var(--ink);
}

.fine {
  margin: 1.5rem auto 0;
  max-width: 36rem;
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--ink-soft) 80%, transparent);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 3rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  background: color-mix(in srgb, var(--panel) 70%, transparent);
}

.footer-brand p {
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: start;
  justify-content: end;
  font-family: var(--font-brand);
  font-weight: 600;
}

.footer-links a { text-decoration: none; color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }

.footer-note {
  grid-column: 1 / -1;
  margin: 0.5rem 0 0;
  color: color-mix(in srgb, var(--ink-soft) 75%, transparent);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { justify-content: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { animation: none; transform: none; }
  .hero-copy { animation: none; }
  .tracer-line path { animation: none; stroke-dashoffset: 0; }
}
