/* Foldyn landing — light luxury, warm paper + ink + gold. Max 3 hues. */
:root {
  --paper: #F7F4EF;
  --paper-2: #EFEBE4;
  --ink: #0A0A0A;
  --ink-soft: #3D3630;
  --muted: #6B635A;
  --line: rgba(10, 10, 10, 0.10);
  --gold: #C5A572;
  --gold-deep: #9A7F4F;
  --gold-soft: rgba(197, 165, 114, 0.16);
  --shadow: 0 24px 60px rgba(10, 10, 10, 0.10);
  --radius: 20px;
  --max: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 239, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-weight: 600; font-size: 1.35rem;
  letter-spacing: -0.02em; color: var(--ink);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand em {
  font-style: normal; color: var(--gold);
}
.brand-mark {
  height: 32px; width: auto; display: block; flex-shrink: 0;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--ink-soft); font-size: 0.92rem; font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink) !important; color: var(--paper) !important;
  padding: 10px 18px; border-radius: 999px; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--ink-soft) !important; text-decoration: none; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 10px; color: var(--ink); font-size: 1.15rem;
  padding: 6px 12px; cursor: pointer;
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% 40% auto -10%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(197,165,114,0.18), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 48px 0 40px; }
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: var(--gold);
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.5vw, 3.85rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 550;
  margin: 0 0 20px;
  color: var(--ink);
}
.hero h1 .line2 { color: var(--gold-deep); }
.lede {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 34rem;
  margin: 0 0 32px;
}
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer; border: none; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: var(--ink); color: var(--paper);
  box-shadow: 0 10px 28px rgba(10,10,10,0.18);
}
.btn-primary:hover { background: #2a2420; color: var(--paper); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--ink); }
.trust-row {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; gap: 18px 28px;
  color: var(--muted); font-size: 0.85rem;
}
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
}

/* Hero visual — product shot + layer stack */
.hero-visual {
  position: relative;
  min-height: 420px;
}
.hero-shot {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--paper-2);
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin-left: auto;
}
.hero-shot img {
  width: 100%; height: 100%; object-fit: cover;
}
@media (max-width: 900px) {
  .hero-shot { margin: 0 auto; max-width: 380px; }
  .hero-visual { min-height: 0; }
}

/* ---------- section chrome ---------- */
.section { padding: 88px 0; }
.section.band {
  background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sec-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.sec-head.left { text-align: left; margin-left: 0; }
.kicker {
  color: var(--gold-deep);
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; margin-bottom: 12px;
}
.sec-head h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  letter-spacing: -0.02em; font-weight: 550;
  margin: 0 0 14px; line-height: 1.15;
}
.sec-head p { color: var(--muted); margin: 0; font-size: 1.02rem; }

/* ---------- process layers (animation 2) ---------- */
.process {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; }
}
.layer-stage {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 24px;
  background:
    linear-gradient(145deg, #fff 0%, var(--paper-2) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.layer-stage::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(197,165,114,0.12), transparent 45%);
  pointer-events: none;
}
.stack {
  position: absolute;
  inset: 14% 12% 18% 12%;
  perspective: 900px;
}
.stack-layer {
  position: absolute; inset: 0;
  border-radius: 10px;
  border: 1px solid rgba(10,10,10,0.08);
  background: #fff;
  box-shadow: 0 8px 24px rgba(10,10,10,0.08);
  display: flex; align-items: flex-end;
  padding: 14px 16px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-soft);
  transform: translateY(28px) rotateX(8deg);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(.2,.7,.2,1), opacity 0.7s ease;
}
.stack-layer .swatch {
  width: 10px; height: 10px; border-radius: 2px; margin-right: 8px;
}
.stack-layer.l1 { z-index: 1; }
.stack-layer.l2 { z-index: 2; background: linear-gradient(180deg, #faf8f4, #f3eee6); }
.stack-layer.l3 { z-index: 3; background: linear-gradient(135deg, #f5efe4, #e8d9c0); color: var(--gold-deep); }
.stack-layer.l4 { z-index: 4; background: linear-gradient(135deg, #efe8dc, #e0d2bb); }
.stack-layer.l5 { z-index: 5; background: #fff; border: 1px dashed rgba(70,120,180,0.55); color: #3a6ea5; }

/* foil pattern hint */
.stack-layer.l3::before {
  content: "";
  position: absolute; top: 18%; left: 22%; right: 22%; bottom: 36%;
  background:
    linear-gradient(135deg, transparent 40%, rgba(197,165,114,0.55) 40%, rgba(197,165,114,0.55) 60%, transparent 60%),
    linear-gradient(45deg, transparent 40%, rgba(212,175,119,0.35) 40%, rgba(212,175,119,0.35) 55%, transparent 55%);
  background-size: 18px 18px;
  border-radius: 4px;
  opacity: 0.85;
}

.stack.in-view .stack-layer.l1 { transition-delay: 0.05s; transform: translateY(48px) translateZ(0); opacity: 1; }
.stack.in-view .stack-layer.l2 { transition-delay: 0.18s; transform: translateY(36px) translateZ(12px); opacity: 1; }
.stack.in-view .stack-layer.l3 { transition-delay: 0.32s; transform: translateY(24px) translateZ(24px); opacity: 1; }
.stack.in-view .stack-layer.l4 { transition-delay: 0.46s; transform: translateY(12px) translateZ(36px); opacity: 1; }
.stack.in-view .stack-layer.l5 { transition-delay: 0.60s; transform: translateY(0) translateZ(48px); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .stack-layer { opacity: 1; transform: none !important; transition: none !important; }
  .stack .stack-layer.l1 { transform: translateY(40px) !important; }
  .stack .stack-layer.l2 { transform: translateY(30px) !important; }
  .stack .stack-layer.l3 { transform: translateY(20px) !important; }
  .stack .stack-layer.l4 { transform: translateY(10px) !important; }
  .stack .stack-layer.l5 { transform: translateY(0) !important; }
}

.check-list { list-style: none; padding: 0; margin: 24px 0 0; }
.check-list li {
  position: relative;
  padding: 10px 0 10px 32px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 16px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: inset 0 0 0 1.5px var(--gold);
}
.check-list li::after {
  content: "";
  position: absolute; left: 5px; top: 20px;
  width: 6px; height: 4px;
  border-left: 1.5px solid var(--gold-deep);
  border-bottom: 1.5px solid var(--gold-deep);
  transform: rotate(-45deg);
}

/* ---------- three ways ---------- */
.ways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) {
  .ways { grid-template-columns: 1fr; }
}
.way-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  box-shadow: 0 8px 28px rgba(10,10,10,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.way-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0; transition: opacity 0.25s ease;
}
.way-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(197,165,114,0.45);
}
.way-card:hover::before { opacity: 1; }
.way-num {
  font-family: var(--display);
  font-size: 0.95rem; color: var(--gold);
  letter-spacing: 0.04em; margin-bottom: 14px;
}
.way-card h3 {
  font-family: var(--display);
  font-size: 1.35rem; font-weight: 550;
  margin: 0 0 12px; letter-spacing: -0.02em;
}
.way-card p {
  color: var(--muted); margin: 0 0 10px; font-size: 0.95rem;
}
.way-card ul {
  margin: 14px 0 0; padding: 0 0 0 18px; color: var(--ink-soft);
  font-size: 0.9rem;
}
.way-card li { margin-bottom: 6px; }
.badge {
  display: inline-block;
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 700; padding: 4px 10px; border-radius: 999px;
  margin-bottom: 12px;
}
.badge-live { background: var(--gold-soft); color: var(--gold-deep); }
.badge-soon { background: rgba(10,10,10,0.06); color: var(--muted); }

/* ---------- pricing ---------- */
.pricing {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 860px) {
  .pricing { grid-template-columns: 1fr; }
}
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 8px 28px rgba(10,10,10,0.04);
}
.price-card.featured {
  background: var(--ink);
  color: var(--paper);
  border-color: transparent;
  box-shadow: 0 28px 60px rgba(10,10,10,0.28);
}
.price-card.featured .muted,
.price-card.featured .note { color: rgba(247,244,239,0.62); }
.price-card h3 {
  font-family: var(--display);
  font-size: 1.4rem; font-weight: 550; margin: 0 0 6px;
}
.price-card .muted { color: var(--muted); margin: 0 0 22px; font-size: 0.95rem; }
.price-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  gap: 16px;
}
.price-card.featured .price-row {
  border-bottom-color: rgba(247,244,239,0.12);
}
.price-row:last-of-type { border-bottom: none; }
.price-row .label { font-weight: 500; }
.price-row .amount {
  font-family: var(--display);
  font-size: 1.35rem; font-weight: 550; white-space: nowrap;
}
.price-card.featured .amount { color: var(--gold); }
.note {
  margin: 18px 0 0; font-size: 0.85rem; color: var(--muted);
  line-height: 1.5;
}
.launch-tag {
  display: inline-block;
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700; color: var(--gold-deep);
  background: var(--gold-soft);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}
.price-card.featured .launch-tag {
  background: rgba(197,165,114,0.22); color: #e8d5b3;
}

/* waitlist form */
.waitlist {
  margin-top: 8px;
}
.waitlist label {
  display: block; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 8px; color: inherit;
}
.waitlist .field-row {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.waitlist input[type="email"] {
  flex: 1 1 180px;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 999px;
  border: 1px solid rgba(247,244,239,0.18);
  background: rgba(247,244,239,0.06);
  color: var(--paper);
  font: inherit; font-size: 0.95rem;
  outline: none;
}
.waitlist input::placeholder { color: rgba(247,244,239,0.45); }
.waitlist input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197,165,114,0.25);
}
.waitlist .btn { flex: 0 0 auto; }
.waitlist .form-status {
  margin-top: 12px; font-size: 0.88rem;
  color: rgba(247,244,239,0.7); min-height: 1.3em;
}
.waitlist .form-status.ok { color: #c8b48a; }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-body p {
  color: var(--ink-soft); font-size: 1.05rem; margin: 0 0 16px;
}
.about-meta {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.about-meta dt {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-top: 14px;
}
.about-meta dt:first-child { margin-top: 0; }
.about-meta dd {
  margin: 4px 0 0; color: var(--ink); font-weight: 500;
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: 72px 24px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(197,165,114,0.18), transparent 55%),
    var(--ink);
  color: var(--paper);
  border-radius: 28px;
  margin: 0 24px 88px;
  max-width: calc(var(--max) + 48px);
  margin-left: auto; margin-right: auto;
}
.cta-band h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 550; letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.cta-band p { color: rgba(247,244,239,0.65); margin: 0 0 28px; }
.cta-band .btn-primary {
  background: var(--gold); color: var(--ink);
  box-shadow: 0 10px 28px rgba(197,165,114,0.3);
}
.cta-band .btn-primary:hover { background: #D4B888; color: var(--ink); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  background: var(--paper-2);
}
.footer-grid {
  display: flex; flex-wrap: wrap; gap: 24px;
  justify-content: space-between; align-items: flex-start;
}
.footer-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-size: 1.2rem; font-weight: 550; color: var(--ink);
  margin-bottom: 6px;
}
.footer-brand em { font-style: normal; color: var(--gold); }
.footer-brand .brand-mark { height: 28px; width: auto; }
.footer-copy { color: var(--muted); font-size: 0.88rem; max-width: 320px; }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-size: 0.88rem;
}
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }

/* ---------- scroll reveal (animation 1) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* skip link */
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }
