/* Totem Landing Page Theme */
:root {
  --bg: #F5F0E8;
  --bg-alt: #EDE8DF;
  --fg: #1C1917;
  --fg-muted: #6B6560;
  --accent: #C8873A;
  --accent-light: #F0DEC9;
  --border: #D9D3C8;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 0.6rem; }
.logo-text { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--fg); }
.header-nav { display: flex; gap: 2rem; }
.header-nav a { font-size: 0.875rem; color: var(--fg-muted); text-decoration: none; transition: color 0.2s; font-weight: 400; }
.header-nav a:hover { color: var(--fg); }
.header-download-btn {
  background: var(--accent) !important;
  color: white !important;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background 0.2s;
}
.header-download-btn:hover { background: #b5772e !important; color: white !important; }

/* ── Section base ── */
.section-inner { max-width: 1200px; margin: 0 auto; padding: 5rem 2rem; }
.section-eyebrow { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.section-headline { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; color: var(--fg); }
.section-headline em { font-style: italic; color: var(--accent); }

/* ── Hero ── */
.hero { padding: 5rem 2rem 4rem; }
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem; display: block; }
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.hero-headline em { font-style: italic; color: var(--accent); }
.hero-lede { font-size: 1.125rem; color: var(--fg-muted); line-height: 1.65; max-width: 42ch; margin-bottom: 2rem; font-weight: 300; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 400;
}

/* ── Hero visual (phone) ── */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.phone-frame {
  position: relative;
  background: #1C1917;
  border-radius: 36px;
  padding: 12px;
  width: 260px;
  box-shadow: 0 32px 64px rgba(28, 25, 23, 0.18), 0 8px 24px rgba(28, 25, 23, 0.1);
}
.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #1C1917;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}
.phone-screen {
  background: var(--bg);
  border-radius: 26px;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}
.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
}
.screen-label { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--fg); }
.totem-list { padding: 0.75rem 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.75rem; }
.totem-item { display: flex; align-items: center; gap: 0.75rem; }
.totem-done .totem-check {
  background: var(--accent);
  border-color: var(--accent);
}
.totem-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.totem-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
}
.totem-info { display: flex; flex-direction: column; }
.totem-name { font-size: 0.875rem; color: var(--fg); font-weight: 400; }
.totem-time { font-size: 0.75rem; color: var(--fg-muted); font-weight: 300; }
.screen-footer { padding: 1rem 1.25rem 1.25rem; border-top: 1px solid var(--border); }
.scan-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--accent);
  border-radius: 10px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}
.nfc-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-alt);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--fg-muted);
}

/* ── How it works ── */
.how-it-works { background: var(--bg-alt); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 3.5rem;
  border-top: 1px solid var(--border);
}
.step-card { padding: 2.5rem 2rem 2.5rem 0; border-right: 1px solid var(--border); }
.step-card:last-child { border-right: none; }
.step-number { font-family: var(--font-display); font-size: 3rem; font-weight: 300; color: var(--accent); opacity: 0.4; line-height: 1; margin-bottom: 1.5rem; }
.step-content h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--fg); margin-bottom: 0.75rem; }
.step-content p { font-size: 0.9rem; color: var(--fg-muted); line-height: 1.65; font-weight: 300; }

/* ── Steps 3-col variant ── */
.steps-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.steps-grid--3 .step-card:nth-child(3) { border-right: none; }

/* ── Tier sections ── */
.tier-section { }
.tier-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.tier-layout--reverse .tier-text { order: 2; }
.tier-layout--reverse .tier-features { order: 1; }
.tier-desc { font-size: 1rem; color: var(--fg-muted); line-height: 1.65; max-width: 40ch; margin-top: 1rem; font-weight: 300; }
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  font-size: 0.95rem;
  color: var(--fg-muted);
  font-weight: 300;
  line-height: 1.5;
}
.feature-list li svg { flex-shrink: 0; margin-top: 0.1rem; }
.feature-list li strong { color: var(--fg); font-weight: 500; }
.tier-upgrade-note { font-size: 0.8rem; color: var(--fg-muted); font-weight: 300; margin-top: 1.5rem; opacity: 0.75; }
.upgrade-tier { background: var(--bg-alt); }

/* ── Download CTA ── */
.download-cta { background: var(--accent); }
.download-inner { max-width: 700px; margin: 0 auto; padding: 5rem 2rem; text-align: center; }
.download-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 1rem;
}
.download-sub { font-size: 1.05rem; color: rgba(255,255,255,0.8); font-weight: 300; margin-bottom: 2.5rem; }
.store-buttons { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; }
.store-btn {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  background: white;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.store-btn svg { color: var(--fg); flex-shrink: 0; }
.store-btn-text { display: flex; flex-direction: column; text-align: left; }
.store-btn-label { font-size: 0.65rem; color: var(--fg-muted); font-weight: 400; text-transform: uppercase; letter-spacing: 0.05em; line-height: 1; }
.store-btn-name { font-size: 1rem; font-weight: 600; color: var(--fg); line-height: 1.2; }
.download-note { font-size: 0.8rem; color: rgba(255,255,255,0.65); margin-top: 1.5rem; font-weight: 300; }

/* ── Difference ── */
.diff-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.diff-body { font-size: 1rem; color: var(--fg-muted); line-height: 1.7; margin-top: 1.5rem; font-weight: 300; max-width: 38ch; }
.diff-features { display: flex; flex-direction: column; gap: 2rem; }
.diff-feature { display: flex; gap: 1.25rem; align-items: flex-start; }
.diff-icon { flex-shrink: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.diff-feature h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--fg); margin-bottom: 0.4rem; }
.diff-feature p { font-size: 0.875rem; color: var(--fg-muted); line-height: 1.65; font-weight: 300; }

/* ── Who ── */
.who { background: var(--bg-alt); }
.personas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.persona { }
.persona-icon { margin-bottom: 1.25rem; }
.persona h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--fg); margin-bottom: 0.75rem; line-height: 1.3; }
.persona p { font-size: 0.875rem; color: var(--fg-muted); line-height: 1.65; font-weight: 300; }

/* ── Manifesto ── */
.manifesto { background: #1C1917; color: white; }
.manifesto-inner { max-width: 900px; margin: 0 auto; padding: 6rem 2rem; }
.manifesto-quote {
  border-left: 3px solid var(--accent);
  padding-left: 2.5rem;
  margin-bottom: 3rem;
}
.manifesto-quote p:first-child {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: #F5F0E8;
}
.manifesto-source { font-size: 0.8rem; color: #9C948A; margin-top: 1rem; font-weight: 400; }
.manifesto-body p { font-size: 1rem; color: #A8A29E; line-height: 1.75; font-weight: 300; max-width: 60ch; }
.manifesto-body p em { font-style: italic; color: #D4C9BC; }
.manifesto-body p + p { margin-top: 1rem; }

/* ── Closing ── */
.closing { background: var(--bg); }
.closing-inner { max-width: 1200px; margin: 0 auto; padding: 5rem 2rem; text-align: center; }
.closing-eyebrow { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem; display: block; }
.closing-headline { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; color: var(--fg); margin-bottom: 3rem; }
.closing-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem; margin-bottom: 2rem; }
.closing-example { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--fg-muted); font-weight: 400; }
.closing-note { font-size: 0.8rem; color: var(--fg-muted); font-weight: 300; opacity: 0.7; }

/* ── Footer ── */
.site-footer { background: #1C1917; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 3rem 2rem; display: flex; align-items: center; justify-content: space-between; }
.footer-brand .logo-text { color: white; }
.footer-desc { font-size: 0.8rem; color: #9C948A; margin-top: 0.5rem; }
.footer-desc a { color: var(--accent); text-decoration: none; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.8rem; color: #9C948A; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: white; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { display: none; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .step-card:nth-child(2) { border-right: none; }
  .step-card:nth-child(3) { padding-top: 2rem; }
  .step-card:nth-child(4) { padding-top: 2rem; border-right: none; }
  .diff-layout { grid-template-columns: 1fr; gap: 3rem; }
  .personas-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; gap: 1.5rem; text-align: center; }
}
@media (max-width: 600px) {
  .header-nav { display: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { border-right: none; padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
  .step-card:last-child { border-bottom: none; }
  .personas-grid { grid-template-columns: 1fr; }
  .tier-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .tier-layout--reverse .tier-text,
  .tier-layout--reverse .tier-features { order: unset; }
  .store-buttons { flex-direction: column; align-items: center; }
  .store-btn { width: 260px; }
  .download-inner { padding: 4rem 1.5rem; }
}