/* TantricMate — minimal marketing site */

:root {
  --tm-bg: #f4f7f9;
  --tm-bg-muted: #e8eef2;
  --tm-surface: #ffffff;
  --tm-text: #1a2f3d;
  --tm-text-muted: #4a6272;
  --tm-accent: #2d6a7a;
  --tm-accent-hover: #245663;
  --tm-border: #c5d4dc;
  --tm-radius: 10px;
  --tm-font: "DM Sans", system-ui, sans-serif;
  --tm-display: "Fraunces", Georgia, serif;
  --tm-wrap: min(1080px, 92vw);
  --tm-narrow: min(640px, 92vw);
}

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

html {
  scroll-behavior: smooth;
}

body.tm-site {
  margin: 0;
  font-family: var(--tm-font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--tm-text);
  background: var(--tm-bg);
}

.tm-wrap {
  width: var(--tm-wrap);
  margin-inline: auto;
}

.tm-narrow {
  max-width: var(--tm-narrow);
}

.tm-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--tm-accent);
  color: #fff;
  z-index: 100;
}

.tm-skip:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.tm-header {
  background: var(--tm-surface);
  border-bottom: 1px solid var(--tm-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.tm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.tm-brand {
  font-family: var(--tm-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--tm-text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.tm-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.tm-nav a {
  color: var(--tm-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.tm-nav a:hover,
.tm-nav a[aria-current="page"] {
  color: var(--tm-accent);
}

.tm-nav-cta {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--tm-accent) !important;
  color: #fff !important;
}

.tm-nav-cta:hover {
  background: var(--tm-accent-hover) !important;
}

.tm-menu-toggle {
  display: none;
  border: 1px solid var(--tm-border);
  background: var(--tm-surface);
  border-radius: var(--tm-radius);
  padding: 0.5rem 0.65rem;
  cursor: pointer;
}

.tm-menu-bars {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--tm-text);
  box-shadow: 0 6px 0 var(--tm-text), 0 -6px 0 var(--tm-text);
}

@media (max-width: 720px) {
  .tm-menu-toggle {
    display: block;
  }

  .tm-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 4vw;
    background: var(--tm-surface);
    border-bottom: 1px solid var(--tm-border);
    box-shadow: 0 8px 24px rgba(26, 47, 61, 0.08);
  }

  .tm-nav.is-open {
    display: flex;
  }

  .tm-header-inner {
    position: relative;
    flex-wrap: wrap;
  }
}

/* Hero */
.tm-hero {
  padding: 3.5rem 0 3rem;
  background: linear-gradient(165deg, #dfe9ef 0%, var(--tm-bg) 55%);
}

.tm-hero-inner {
  max-width: var(--tm-narrow);
}

.tm-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tm-accent);
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.tm-hero h1 {
  font-family: var(--tm-display);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.15;
}

.tm-lede {
  font-size: 1.2rem;
  color: var(--tm-text-muted);
  margin: 0 0 1.5rem;
}

.tm-bullets {
  margin: 0 0 2rem;
  padding-left: 1.25rem;
  color: var(--tm-text);
}

.tm-bullets li {
  margin-bottom: 0.5rem;
}

.tm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.tm-btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: var(--tm-radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.tm-btn-primary {
  background: var(--tm-accent);
  color: #fff;
}

.tm-btn-primary:hover {
  background: var(--tm-accent-hover);
}

.tm-btn-quiet {
  background: var(--tm-surface);
  color: var(--tm-text);
  border: 1px solid var(--tm-border);
}

.tm-meta {
  font-size: 0.9rem;
  color: var(--tm-text-muted);
}

.tm-meta a {
  color: var(--tm-accent);
  text-decoration: none;
}

.tm-meta a:hover {
  text-decoration: underline;
}

.tm-section {
  padding: 2.5rem 0 3rem;
}

.tm-section-muted {
  background: var(--tm-bg-muted);
}

.tm-section h2 {
  font-family: var(--tm-display);
  font-size: 1.5rem;
  margin-top: 0;
}

/* Prose / legal */
.tm-prose {
  padding: 2.5rem 0 3rem;
  max-width: var(--tm-narrow);
}

.tm-prose h1 {
  font-family: var(--tm-display);
  font-size: 2rem;
  margin: 0.25rem 0 0.5rem;
}

.tm-prose h2 {
  font-family: var(--tm-display);
  font-size: 1.25rem;
  margin-top: 2rem;
}

.tm-updated {
  color: var(--tm-text-muted);
  font-size: 0.9rem;
}

.tm-prose a {
  color: var(--tm-accent);
}

.tm-prose code {
  font-size: 0.88em;
  background: var(--tm-bg-muted);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.tm-faq dt {
  font-weight: 600;
  margin-top: 1rem;
}

.tm-faq dd {
  margin: 0.35rem 0 0;
  color: var(--tm-text-muted);
}

.tm-form label {
  display: block;
  font-weight: 600;
  margin: 1rem 0 0.35rem;
}

.tm-form input,
.tm-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  font: inherit;
  background: var(--tm-surface);
}

.tm-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.tm-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.tm-form-note {
  padding: 0.75rem 1rem;
  border-radius: var(--tm-radius);
}

.tm-form-error {
  background: #fde8e8;
  color: #8b1e1e;
}

.tm-form-success {
  background: #e6f4ea;
  color: #1e5631;
}

/* Footer */
.tm-footer {
  border-top: 1px solid var(--tm-border);
  background: var(--tm-surface);
  padding: 2rem 0;
  margin-top: auto;
}

.tm-footer-lead {
  margin: 0 0 1rem;
}

.tm-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}

.tm-footer-nav a {
  color: var(--tm-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.tm-footer-nav a:hover {
  color: var(--tm-accent);
}

.tm-fine {
  font-size: 0.82rem;
  color: var(--tm-text-muted);
  margin: 0.5rem 0 0;
  max-width: 52ch;
}

.tm-copy code {
  font-size: 0.85em;
}
