/* Terra site: the app's design language (src/theme), self-hosted fonts, no external requests. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/BricolageGrotesque_800ExtraBold.ttf') format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/DMSans_400Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/DMSans_700Bold.ttf') format('truetype');
}

:root {
  --ink: #0f1220;
  --surface: #1a1e2e;
  --raised: #242a3d;
  --border: #2e3550;
  --text: #f4f1ea;
  --soft: #c3c7d4;
  --muted: #a6abbd;
  --citrus: #ffc940;
  --radius: 22px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font:
    400 17px/1.6 'DM Sans',
    system-ui,
    sans-serif;
}
a {
  color: var(--citrus);
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--citrus);
  outline-offset: 3px;
  border-radius: 6px;
}
h1,
h2,
h3 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
}
h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-top: 1.6em;
}
h3 {
  font-size: 1.2rem;
  margin-top: 1.4em;
}
.wrap {
  width: min(1040px, 100% - 32px);
  margin-inline: auto;
}
.narrow {
  width: min(720px, 100% - 32px);
  margin-inline: auto;
}

/* Header and footer */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font:
    800 1.4rem 'Bricolage Grotesque',
    system-ui,
    sans-serif;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--soft);
  text-decoration: none;
  font-weight: 700;
}
.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--text);
}
.site-footer {
  margin-top: 72px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer .nav {
  margin-bottom: 12px;
}

/* Landing */
.hero {
  display: grid;
  gap: 40px;
  align-items: center;
  padding: 32px 0 16px;
}
@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.lede {
  font-size: 1.2rem;
  color: var(--soft);
  max-width: 34em;
}
.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #2a2410;
  color: var(--citrus);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.badge {
  display: inline-flex;
  flex-direction: column;
  padding: 10px 18px;
  min-width: 180px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.badge small {
  color: var(--muted);
  font-size: 0.8rem;
}
.badge strong {
  font-size: 1.05rem;
}
.phone {
  justify-self: center;
  width: min(300px, 80vw);
  height: auto;
  border-radius: 36px;
  border: 8px solid var(--raised);
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.45);
}
.features {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
@media (min-width: 760px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
}
.card h3 {
  margin-top: 0;
}
.card p {
  margin: 0;
  color: var(--soft);
}
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.shots figure {
  margin: 0;
}
.shots img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.shots figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 8px;
}

/* FAQ and long-form pages */
.faq details {
  border-radius: 16px;
  background: var(--surface);
  margin: 10px 0;
  padding: 4px 18px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 0;
}
.faq details p {
  margin-top: 0;
  color: var(--soft);
}
.prose p,
.prose li {
  color: var(--soft);
}
.prose strong {
  color: var(--text);
}
.updated {
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
