/* Cardmox landing — static HTML for Cloudflare Pages */

:root {
  --bg: #f4f1e9;
  --bg-elevated: #ffffff;
  --text: #1a1c18;
  --muted: #5c5f57;
  --accent: #c6f04e;
  --accent-ink: #20300a;
  --border: rgba(26, 28, 24, 0.12);
  --radius: 14px;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    linear-gradient(180deg, #faf8f3 0%, var(--bg) 40%, #ebe6dc 100%),
    radial-gradient(ellipse 100% 70% at 50% -10%, rgba(198, 240, 78, 0.35), transparent 55%);
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: #3d5c12;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #2a4209;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  border-radius: 6px;
}

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

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(244, 241, 233, 0.92);
  backdrop-filter: blur(12px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--text);
}

.brand-logo {
  border-radius: 22%;
  box-shadow: 0 4px 20px rgba(26, 28, 24, 0.12);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-ghost {
  color: var(--text);
  border-color: var(--border);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-primary:hover {
  background: #2d3029;
  border-color: #2d3029;
  color: var(--bg);
}

.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 8vw, 5rem);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4a6b18;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lead {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  color: var(--muted);
}

.sub {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.15rem;
  border-radius: 12px;
  background: var(--text);
  color: #f4f1e9;
  text-decoration: none;
  border: 1px solid var(--text);
  transition: transform 0.15s, box-shadow 0.15s;
}

.store-btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(26, 28, 24, 0.18);
}

.store-line {
  display: block;
  font-size: 0.65rem;
  opacity: 0.85;
}

.store-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

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

.hero-glow {
  position: absolute;
  width: min(280px, 70vw);
  height: min(280px, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 240, 78, 0.55), transparent 70%);
  filter: blur(8px);
}

.hero-logo {
  position: relative;
  width: clamp(100px, 22vw, 140px);
  border-radius: 24%;
  box-shadow: 0 20px 50px rgba(26, 28, 24, 0.15);
}

.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section--alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--border);
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 58ch;
}

.feature-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: 0 2px 12px rgba(26, 28, 24, 0.04);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.pricing-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 1.75rem 1.85rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  text-align: center;
}

.pricing-card p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.pricing-card p:last-child {
  margin-bottom: 0;
}

.cta-row {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  text-align: center;
}

.footer-tagline {
  margin: 0 0 0.5rem;
  font-weight: 650;
}

.footer-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-meta a {
  color: var(--muted);
}

.footer-legal-links {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-legal-links a {
  color: var(--muted);
}

.footer-dot {
  margin: 0 0.35rem;
  opacity: 0.6;
}

.legal-main {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.legal-doc {
  max-width: 720px;
}

.legal-doc h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 3.5vw, 2rem);
  letter-spacing: -0.02em;
}

.legal-updated {
  margin: 0 0 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.legal-back {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.legal-back a {
  color: var(--muted);
}

.legal-section h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
}

.legal-section:first-of-type h2 {
  margin-top: 0;
}

.legal-section h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 0.98rem;
}

.legal-section ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.legal-intro {
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 60ch;
}

code {
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(26, 28, 24, 0.06);
}

.support-contact-card {
  margin: 0 0 2rem;
  padding: 1.5rem 1.75rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.support-contact-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.support-contact-card p {
  color: var(--muted);
  margin: 0 0 0.75rem;
  font-size: 0.98rem;
}

.support-email-row {
  margin: 1rem 0 0;
}

.support-email-btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  word-break: break-all;
}

.link-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.not-found-main {
  padding: clamp(2rem, 6vw, 4rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.not-found-doc {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.not-found-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
}

.not-found-code {
  font-size: clamp(3.25rem, 12vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(26, 28, 24, 0.12);
}

.not-found-heading-line {
  font-size: clamp(1.5rem, 3.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.not-found-lead {
  margin-bottom: 1.75rem;
  margin-inline: auto;
}

.not-found-actions {
  margin-bottom: 2.25rem;
}

.not-found-nav {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: left;
}

.not-found-nav-title {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .header-inner .brand {
    justify-content: center;
  }

  .header-actions {
    justify-content: center;
  }
}
