/* DachsFin website: the app's cream, ink and caramel, in light and dark */
:root {
  --bg: #fff6ea;
  --surface: #fffdf9;
  --soft: #fce9d4;
  --tint: #f3e4d0;
  --ink: #3b2a20;
  --body: #6e5644;
  --muted: #7a6555;
  --line: #eadbc8;
  --primary: #c27a3e;
  --accent: #9a5a24;
  --on-primary: #3b2a20;
  --mint: #5bbf8e;
  --mint-soft: #ddf3e8;
  --honey: #ffd46b;
  --honey-soft: #fff1c7;
  --shadow: 0 10px 28px rgba(59, 42, 32, 0.08);
  --radius: 24px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1613;
    --surface: #2a211c;
    --soft: #4f3626;
    --tint: #3a2a20;
    --ink: #f6ebdf;
    --body: #d2bdaa;
    --muted: #b39d8a;
    --line: #4a3b32;
    --accent: #d7a57a;
    --mint-soft: #1f3a2d;
    --honey-soft: #3f3320;
    --shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Nunito', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: var(--accent);
  font-weight: 800;
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: 'Fredoka', 'Noto Sans SC', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  padding: 18px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: 'Fredoka', sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--body);
  text-decoration: none;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav a:hover,
.nav a[aria-current='page'] {
  background: var(--tint);
  color: var(--ink);
}

/* Hero */
.hero {
  padding: 32px 0 56px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 32px;
}

.eyebrow {
  display: inline-block;
  font-family: 'Fredoka', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.hero p {
  color: var(--body);
  font-size: 19px;
  margin: 18px 0 26px;
  max-width: 520px;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
}

.pill-dark {
  background: var(--ink);
  color: var(--bg);
}

.pill-outline {
  border: 2px solid var(--line);
  color: var(--ink);
  background: var(--surface);
}

.pill svg {
  flex: none;
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.hero-art .blob {
  position: absolute;
  inset: 12% 2% 10%;
  border-radius: 999px;
  background: var(--soft);
}

.hero-art svg {
  position: relative;
  width: min(100%, 440px);
  height: auto;
}

/* Sections */
section {
  padding: 48px 0;
}

.section-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 10px;
}

.section-sub {
  text-align: center;
  color: var(--body);
  margin: 0 auto 36px;
  max-width: 560px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 21px;
  margin: 14px 0 6px;
}

.card p {
  margin: 0;
  color: var(--body);
  font-size: 16px;
}

.icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  color: var(--accent);
}

.icon.mint {
  background: var(--mint-soft);
  color: var(--mint);
}

.icon.honey {
  background: var(--honey-soft);
  color: #b07d00;
}

.promise {
  background: var(--ink);
  color: var(--bg);
  border-radius: 32px;
  padding: 36px 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  text-align: center;
}

.promise strong {
  display: block;
  font-family: 'Fredoka', sans-serif;
  font-size: 24px;
  font-weight: 600;
}

.promise span {
  opacity: 0.8;
  font-size: 15px;
}

/* Long-form pages (privacy, terms, support) */
.doc {
  padding: 16px 0 64px;
}

.doc .wrap {
  max-width: 760px;
}

.doc h1 {
  font-size: clamp(32px, 5vw, 46px);
  margin: 12px 0 6px;
}

.doc .updated {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 28px;
}

.doc h2 {
  font-size: 24px;
  margin: 36px 0 10px;
}

.doc h3 {
  font-size: 19px;
  margin: 22px 0 6px;
}

.doc p,
.doc li {
  color: var(--body);
}

.doc li {
  margin: 6px 0;
}

.doc strong {
  color: var(--ink);
}

.callout {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  margin: 0 0 24px;
}

.callout p {
  margin: 0;
}

.todo {
  background: var(--honey);
  color: #3b2a20;
  border-radius: 6px;
  padding: 0 6px;
  font-weight: 800;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 15px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--body);
}

th {
  color: var(--ink);
  font-weight: 800;
}

.table-scroll {
  overflow-x: auto;
}

details {
  background: var(--surface);
  border-radius: 18px;
  padding: 16px 20px;
  margin: 10px 0;
  box-shadow: var(--shadow);
}

summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--ink);
}

details p {
  margin: 10px 0 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 15px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--body);
}

@media (max-width: 820px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
    min-height: 220px;
  }

  .grid,
  .promise {
    grid-template-columns: 1fr;
  }
}
