@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700&family=Literata:opsz,wght@7..72,500;7..72,700&display=swap");

:root {
  --ink: #14110f;
  --ink-soft: #3a322c;
  --paper: #f7f1e8;
  --paper-deep: #ebe2d4;
  --cinnabar: #c23b22;
  --cinnabar-deep: #9a2a16;
  --jade: #1f6b4a;
  --line: rgba(20, 17, 15, 0.12);
  --muted: #6b5f55;
  --white: #fffdf9;
  --radius: 1.25rem;
  --font-body: "Be Vietnam Pro", sans-serif;
  --font-display: "Literata", Georgia, serif;
  --max: 70rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

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

/* —— Site chrome —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
}
.nav-links {
  display: none;
  gap: 1.6rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.nav-links a {
  text-decoration: none;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 1.5px;
  background: var(--cinnabar);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--cinnabar);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover {
  background: var(--cinnabar-deep);
  transform: translateY(-1px);
}
.btn-dark {
  background: var(--ink);
}
.btn-dark:hover { background: #000; }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--white);
  transform: none;
}

/* —— Marketing hero —— */
.hero {
  position: relative;
  min-height: min(92vh, 54rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(194, 59, 34, 0.55), transparent 55%),
    radial-gradient(ellipse 50% 50% at 15% 80%, rgba(31, 107, 74, 0.35), transparent 50%),
    linear-gradient(155deg, #1a120e 0%, #3d1a14 42%, #0f1f18 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-inner {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 7rem 0 3.5rem;
  display: grid;
  gap: 2.5rem;
}
.hero-copy {
  max-width: 34rem;
  animation: rise 0.9s ease both;
}
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 4.75rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}
.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.1rem;
  color: rgba(255, 253, 249, 0.82);
  max-width: 28rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.hero-visual {
  justify-self: center;
  width: min(100%, 22rem);
  aspect-ratio: 1;
  animation: float-in 1.1s 0.15s ease both;
}
.hero-orb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,253,249,0.35), transparent 40%),
    linear-gradient(160deg, #fff8ef 0%, #f0d9b8 45%, #c23b22 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  animation: drift 8s ease-in-out infinite;
  position: relative;
}
.hero-orb::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(20, 17, 15, 0.12);
}
.hero-orb-day {
  text-align: center;
  color: var(--ink);
  z-index: 1;
}
.hero-orb-day small {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-orb-day strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 5rem);
  line-height: 1;
  margin: 0.2rem 0;
}
.hero-orb-day span {
  font-size: 0.95rem;
  color: var(--cinnabar-deep);
  font-weight: 600;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes float-in {
  from { opacity: 0; transform: translateY(36px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (min-width: 880px) {
  .nav-links { display: flex; }
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    padding: 8.5rem 0 4.5rem;
  }
  .hero-visual { justify-self: end; width: 24rem; }
}

/* —— Sections —— */
.section {
  padding: 4.5rem 0;
}
.section-head {
  max-width: 34rem;
  margin-bottom: 2.5rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.feature-row {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  animation: rise 0.7s ease both;
}
.feature-row:nth-child(2) { animation-delay: 0.05s; }
.feature-row:nth-child(3) { animation-delay: 0.1s; }
.feature-row:nth-child(4) { animation-delay: 0.15s; }
.feature-row h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}
.feature-row p {
  margin: 0;
  color: var(--muted);
}
@media (min-width: 800px) {
  .feature-row {
    grid-template-columns: 14rem 1fr;
    align-items: baseline;
    gap: 2rem;
  }
}

.band {
  background: var(--ink);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.75rem;
}
.band p {
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  color: rgba(255,253,249,0.75);
}
.band .btn {
  background: var(--white);
  color: var(--ink);
}
.band .btn:hover { background: var(--paper); }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
  padding: 3rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
}
.footer-grid strong {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-grid a {
  display: block;
  text-decoration: none;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.footer-grid a:hover { color: var(--cinnabar); }
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.footer-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
  max-width: 22rem;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* —— Support / legal pages —— */
.page {
  width: min(100% - 2.5rem, 44rem);
  margin: 0 auto;
  padding: 5.5rem 0 4rem;
  color: var(--ink-soft);
}
.page h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--ink);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.page .lede {
  font-size: 1.1rem;
  margin: 0 0 2rem;
  color: var(--muted);
}
.page h2 {
  color: var(--ink);
  font-size: 1.2rem;
  margin: 2.25rem 0 0.75rem;
}
.page a { color: var(--cinnabar-deep); }
.page .date {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-block {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.contact-block a.mail {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}
.contact-block a.mail:hover { color: var(--cinnabar); }
.meta {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.faq {
  display: grid;
  gap: 0.5rem;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--cinnabar);
  font-weight: 500;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

/* Legacy aliases used by privacy/terms */
.header { /* maps old class */ }
.article, article.page-legacy {
  width: min(100% - 2.5rem, 44rem);
  margin: 0 auto;
  padding: 5.5rem 0 4rem;
  color: var(--ink-soft);
}
article h1 {
  font-family: var(--font-display);
  color: var(--ink);
}
article h2 { color: var(--ink); margin-top: 2rem; }
article a { color: var(--cinnabar-deep); }
.muted { color: var(--muted); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.btn, .brand { /* already defined */ }
.nav { /* already */ }
.wrap { /* already */ }
.footer { /* prefer .site-footer */ }
)
