/* DTSwap marketing page. Colours and type follow src/theme/tokens.ts. */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/BricolageGrotesque_700Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/DMSans_400Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/DMSans_600SemiBold.ttf') format('truetype');
}

:root {
  --ground: #f2f4f1;
  --surface: #ffffff;
  --ink: #12201a;
  --text-secondary: #4d5c55;
  --border: #c9d2cc;
  --border-subtle: #dce2de;
  --primary: #136f48;
  --primary-pressed: #0d5235;
  --on-primary: #ffffff;
  --primary-tint: #e3f1ea;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0e1512;
    --surface: #16211c;
    --ink: #e6eee9;
    --text-secondary: #a3b3aa;
    --border: #3a4a42;
    --border-subtle: #29362f;
    --primary: #5cc796;
    --primary-pressed: #7dd6ac;
    --on-primary: #0b1a13;
    --primary-tint: #173528;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

h1,
h2,
.card-title,
.price,
.step-number,
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}
h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
}
h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.3em;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--primary);
  text-underline-offset: 3px;
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.narrow {
  max-width: 760px;
}
.muted {
  color: var(--text-secondary);
}
.small,
.caption {
  font-size: 0.875rem;
}
.caption {
  margin-bottom: 0.2em;
}
.tabular {
  font-variant-numeric: tabular-nums;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--surface);
  padding: 8px 16px;
  z-index: 10;
}
.skip:focus {
  left: 8px;
}

/* Buttons: pill-shaped, 52px tall */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--primary);
}
.button:hover {
  background: var(--primary-pressed);
  border-color: var(--primary-pressed);
}
.button-secondary {
  background: var(--surface);
  color: var(--primary);
}
.button-secondary:hover {
  background: var(--primary-tint);
  border-color: var(--primary);
}
.button-small {
  min-height: 44px;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}
.wordmark {
  font-size: 1.5rem;
  margin: 0;
  color: var(--ink);
  text-decoration: none;
}
nav {
  margin-left: auto;
}
.nav {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:hover {
  color: var(--primary);
}
@media (max-width: 760px) {
  nav {
    display: none;
  }
  .header-inner .button-small {
    margin-left: auto;
  }
}

/* Hero */
.hero {
  padding: 64px 0 72px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}
.eyebrow {
  color: var(--primary);
  font-weight: 600;
}
.lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 40em;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 24px;
}
.hero-card {
  max-width: 380px;
  justify-self: center;
  width: 100%;
  box-shadow: 0 12px 40px rgb(18 32 26 / 8%);
}
.hero-card p {
  margin-bottom: 0.3em;
}
.card-title {
  font-size: 1.6rem;
  margin: 0;
}
.hero-card hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 16px 0;
}
.chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.chip {
  min-height: 52px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.chip-yes {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}

/* Sections */
.section {
  padding: 72px 0;
}
.section-tint {
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.section-tint .card {
  background: var(--ground);
}
.note {
  color: var(--text-secondary);
  max-width: 48em;
  margin-top: 28px;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.steps p {
  color: var(--text-secondary);
  margin: 0;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--primary-tint);
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.rules,
.features {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
  max-width: 900px;
}
@media (max-width: 640px) {
  .rules,
  .features {
    grid-template-columns: 1fr;
  }
}
.rules li,
.features li {
  border-left: 3px solid var(--primary);
  padding-left: 16px;
}
.rules p,
.features p {
  color: var(--text-secondary);
  margin: 0;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-width: 760px;
  margin-top: 32px;
}
.plan-main {
  border: 2px solid var(--primary);
}
.price {
  font-size: 2.4rem;
  margin: 0.2em 0 0.4em;
}
.per {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.ticks li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 8px;
}
/* A line tick, drawn with borders (no emoji or icon font). */
.ticks li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  width: 6px;
  height: 12px;
  border: solid var(--primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

details {
  border-bottom: 1px solid var(--border-subtle);
  padding: 4px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 8px 0;
}
details p {
  color: var(--text-secondary);
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--surface);
  padding: 40px 0;
  font-size: 0.95rem;
}
.footer-inner p {
  margin-bottom: 0.6em;
}
