/* ============================================================
   Cardfolio — usecardfolio.com
   Editorial · Ink + Cream · GSAP-driven
   ============================================================ */

:root {
  --ink:        #0A0F1A;
  --ink-soft:   #14192A;
  --cream:      #F9F6F0;
  --cream-2:    #EFEAE0;
  --rule:       rgba(249, 246, 240, 0.14);
  --rule-dark:  rgba(10, 15, 26, 0.12);
  --muted:      rgba(249, 246, 240, 0.62);
  --muted-dark: rgba(10, 15, 26, 0.58);
  --accent:     #C8553D; /* warm terracotta — editorial signature */
  --gutter:     clamp(1.25rem, 4vw, 3rem);
  --serif:      "Playfair Display", "Times New Roman", serif;
  --sans:       "Manrope", "Inter", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html, body { background: var(--cream); color: var(--ink); font-family: var(--sans); font-weight: 400; line-height: 1.5; }
body { overflow-x: hidden; max-width: 100vw; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Typography ---------- */
.overline {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.serif        { font-family: var(--serif); font-weight: 700; letter-spacing: -0.02em; line-height: 1.02; }
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1380px; margin: 0 auto; padding-inline: var(--gutter); }
section { padding-block: clamp(5rem, 11vw, 9rem); }
.hr-rule { height: 1px; background: var(--rule-dark); width: 100%; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(14px);
  background: rgba(10, 15, 26, 0.55);
  border-bottom: 1px solid rgba(249, 246, 240, 0.08);
  color: var(--cream);
  transition: background 280ms ease;
}
.nav-brand { display: flex; align-items: center; }
.brand-logo   { height: 38px; width: auto; display: block; }
.footer-logo  { height: 52px; width: auto; display: block; margin-bottom: 6px; }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 13px; }
.nav-links a { opacity: 0.85; transition: opacity 200ms; }
.nav-links a:hover { opacity: 1; }
.nav-cta {
  padding: 10px 18px; border: 1px solid var(--cream); color: var(--cream);
  font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  transition: background 200ms, color 200ms;
}
.nav-cta:hover { background: var(--cream); color: var(--ink); }
@media (max-width: 760px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh; background: var(--ink); color: var(--cream);
  padding-top: 120px; padding-bottom: 60px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("https://picsum.photos/seed/handshake-ink-paper/1920/1200") center/cover;
  opacity: 0.28;
  filter: grayscale(0.6) contrast(1.15);
}
.hero-wash {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(10,15,26,0.15) 0%, rgba(10,15,26,0.85) 70%, rgba(10,15,26,0.98) 100%),
    linear-gradient(180deg, rgba(10,15,26,0.6) 0%, transparent 30%, rgba(10,15,26,0.9) 100%);
}
.hero-content { position: relative; z-index: 2; width: 100%; max-width: 1180px; margin: 0 auto; text-align: center; padding-inline: var(--gutter); }
.hero-overline { color: var(--muted); margin-bottom: 28px; }
.hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 auto;
  max-width: 1100px;
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--cream-2); }
.hero-sub {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.05rem, 1.4vw, 1.4rem);
  color: var(--muted);
  max-width: 620px; margin: 28px auto 0;
}
.hero-ctas {
  display: flex; gap: 14px; justify-content: center; margin-top: 48px; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  font-weight: 600; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  transition: transform 200ms ease, background 200ms, color 200ms;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--cream); color: var(--ink); }
.btn-primary:hover { background: var(--cream-2); }
.btn-ghost { border: 1px solid rgba(249,246,240,0.4); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--ink-soft); }
.hero-foot {
  position: absolute; bottom: 28px; left: 0; right: 0; text-align: center;
  font-family: var(--serif); font-style: italic; font-size: 12px; color: var(--muted);
  z-index: 2;
}

/* ---------- THREE STEPS ---------- */
.steps { background: var(--cream); color: var(--ink); }
.steps-header { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 80px; flex-wrap: wrap; }
.steps-header h2 { font-family: var(--serif); font-size: clamp(2.25rem, 4.5vw, 4rem); max-width: 760px; line-height: 1.05; letter-spacing: -0.025em; }
.steps-header .tag { font-family: var(--serif); font-style: italic; color: var(--muted-dark); font-size: 16px; max-width: 320px; }
.step-row {
  display: grid; grid-template-columns: 80px 1fr auto; align-items: center;
  gap: 32px; padding: 36px 0; border-top: 1px solid var(--rule-dark);
}
.step-row:last-child { border-bottom: 1px solid var(--rule-dark); }
.step-num { font-family: var(--serif); font-style: italic; font-size: 44px; color: var(--muted-dark); font-weight: 400; }
.step-title { font-family: var(--serif); font-size: clamp(1.6rem, 2.4vw, 2.2rem); letter-spacing: -0.02em; }
.step-sub   { font-family: var(--sans); font-size: 14px; color: var(--muted-dark); margin-top: 6px; max-width: 480px; }
.step-icon  { width: 56px; height: 56px; border: 1px solid var(--rule-dark); display: grid; place-items: center; color: var(--ink); font-family: var(--serif); font-size: 22px; }
@media (max-width: 720px) {
  .step-row { grid-template-columns: 60px 1fr; gap: 18px; }
  .step-icon { display: none; }
  .step-num { font-size: 32px; }
}

/* ---------- BENTO ---------- */
.bento-wrap { background: var(--ink); color: var(--cream); }
.bento-header { display: flex; align-items: end; justify-content: space-between; margin-bottom: 56px; flex-wrap: wrap; gap: 24px; }
.bento-header h2 { font-family: var(--serif); font-size: clamp(2.25rem, 4.5vw, 4rem); max-width: 700px; letter-spacing: -0.025em; line-height: 1.05; }
.bento-header p { color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 16px; max-width: 320px; }
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  grid-auto-flow: dense;
  gap: 16px;
}
.bento-card {
  background: var(--ink-soft);
  border: 1px solid rgba(249,246,240,0.08);
  padding: 32px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color 240ms;
}
.bento-card:hover { border-color: rgba(249,246,240,0.28); }
.bento-card .label { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.bento-card h3 { font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -0.02em; line-height: 1.08; margin-top: 12px; }
.bento-card p  { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 460px; }
.bento-a { grid-column: span 2; grid-row: span 1; }
.bento-b { grid-column: span 1; grid-row: span 2; }
.bento-c { grid-column: span 1; grid-row: span 1; }
.bento-d { grid-column: span 1; grid-row: span 1; }
.bento-a .img {
  position: absolute; inset: 0; opacity: 0.18;
  background: url("https://picsum.photos/seed/businesscard-ocr/1600/900") center/cover;
  filter: grayscale(0.6) contrast(1.2);
}
.bento-b .img {
  position: absolute; right: -30%; bottom: -10%; width: 140%; height: 60%; opacity: 0.16;
  background: url("https://picsum.photos/seed/abstract-network/900/900") center/cover;
  filter: grayscale(0.8);
}
.crm-list { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; position: relative; z-index: 1; }
.crm-list li {
  font-family: var(--serif); font-size: 22px; letter-spacing: -0.02em;
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 12px; border-bottom: 1px solid rgba(249,246,240,0.08);
  list-style: none;
}
.crm-list li:last-child { border-bottom: none; }
.crm-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.bento-content { position: relative; z-index: 1; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .bento-a, .bento-b, .bento-c, .bento-d { grid-column: span 1; grid-row: span 1; }
}

/* ---------- MANIFESTO (scrub text) ---------- */
.manifesto { background: var(--cream); color: var(--ink); }
.manifesto-block {
  font-family: var(--serif); font-weight: 700; letter-spacing: -0.025em; line-height: 1.18;
  font-size: clamp(1.6rem, 3.5vw, 3.2rem);
  max-width: 1100px; margin: 0 auto;
}
.manifesto-block .word { opacity: 0.16; transition: opacity 100ms linear; }
.manifesto-block em { font-style: italic; font-weight: 400; }

/* ---------- MARQUEE ---------- */
.marquee-wrap { background: var(--cream); color: var(--ink); padding: 60px 0; border-block: 1px solid var(--rule-dark); }
.marquee-label { text-align: center; color: var(--muted-dark); margin-bottom: 28px; }
.marquee { overflow: hidden; position: relative; }
.marquee-track {
  display: flex; gap: 64px; width: max-content;
  animation: scroll 36s linear infinite;
}
.marquee-track span {
  font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); font-style: italic;
  color: var(--ink); opacity: 0.7; white-space: nowrap;
}
.marquee-track span::after {
  content: "·"; margin-left: 64px; color: var(--accent); font-style: normal;
}
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- PRICING ---------- */
.pricing { background: var(--ink); color: var(--cream); }
.pricing-header { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.pricing-header h2 { font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.03em; line-height: 1.04; }
.pricing-header p { color: var(--muted); font-family: var(--serif); font-style: italic; margin-top: 16px; font-size: 18px; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 880px; margin: 0 auto; }
.plan {
  background: var(--ink-soft); border: 1px solid rgba(249,246,240,0.1);
  padding: 40px; position: relative; transition: border-color 240ms, transform 240ms;
}
.plan:hover { transform: translateY(-4px); border-color: rgba(249,246,240,0.3); }
.plan.featured { border-color: var(--accent); }
.plan .ribbon { position: absolute; top: -10px; left: 24px; background: var(--accent); color: var(--cream); padding: 4px 12px; font-size: 10px; font-weight: 700; letter-spacing: 0.25em; }
.plan-name { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.plan-price { font-family: var(--serif); font-size: clamp(3rem, 5vw, 4.5rem); letter-spacing: -0.04em; margin-top: 12px; line-height: 1; }
.plan-per { color: var(--muted); font-size: 14px; margin-top: 6px; }
.plan-hint { font-family: var(--serif); font-style: italic; color: var(--accent); margin-top: 12px; font-size: 14px; }
.plan-features { list-style: none; margin-top: 28px; }
.plan-features li { padding: 10px 0; border-top: 1px solid rgba(249,246,240,0.08); font-size: 14px; color: var(--cream); display: flex; align-items: center; gap: 12px; }
.plan-features li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.plan .btn { width: 100%; justify-content: center; margin-top: 28px; }
@media (max-width: 720px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ---------- CTA STRIP ---------- */
.cta-strip { background: var(--cream); color: var(--ink); text-align: center; }
.cta-strip h2 { font-family: var(--serif); font-size: clamp(2.8rem, 6vw, 5rem); letter-spacing: -0.035em; line-height: 1; }
.cta-strip h2 em { font-style: italic; font-weight: 400; color: var(--accent); }
.cta-strip .actions { margin-top: 40px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink); color: var(--cream); padding: 80px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; margin-bottom: 56px; }
.footer-brand p { font-family: var(--serif); font-style: italic; color: var(--muted); margin-top: 16px; max-width: 320px; font-size: 15px; }
.footer-col h4 { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 700; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--cream); opacity: 0.8; transition: opacity 200ms; }
.footer-col a:hover { opacity: 1; }
.footer-bottom { border-top: 1px solid rgba(249,246,240,0.1); padding-top: 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--muted); }
.footer-bottom .serif-italic { font-style: italic; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }

/* ---------- LEGAL PAGES (privacy / terms / support) ---------- */
.legal { padding-top: 160px; padding-bottom: 120px; background: var(--cream); color: var(--ink); min-height: 100vh; }
.legal .container { max-width: 820px; }
.legal .eyebrow { font-family: var(--serif); font-style: italic; color: var(--muted-dark); margin-bottom: 14px; font-size: 18px; }
.legal h1 { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4rem); letter-spacing: -0.03em; line-height: 1; margin-bottom: 14px; }
.legal .meta { color: var(--muted-dark); font-size: 13px; margin-bottom: 56px; padding-bottom: 28px; border-bottom: 1px solid var(--rule-dark); }
.legal h2 { font-family: var(--serif); font-size: 1.7rem; letter-spacing: -0.02em; margin-top: 56px; margin-bottom: 16px; }
.legal h3 { font-family: var(--serif); font-style: italic; font-size: 1.15rem; margin-top: 32px; margin-bottom: 10px; color: var(--ink); }
.legal p, .legal li { font-size: 15.5px; line-height: 1.72; color: rgba(10,15,26,0.86); margin-bottom: 14px; }
.legal ul, .legal ol { margin-left: 22px; margin-bottom: 18px; }
.legal a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.legal a:hover { background: var(--accent); color: var(--cream); }
.legal .toc { background: rgba(10,15,26,0.04); border-left: 2px solid var(--accent); padding: 24px 28px; margin: 32px 0 48px; }
.legal .toc h4 { font-family: var(--sans); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 12px; }
.legal .toc ul { list-style: none; margin: 0; }
.legal .toc li { margin-bottom: 6px; }
.legal .toc a { border: none; font-size: 14px; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 40px; color: var(--muted-dark); }
.legal-back:hover { color: var(--ink); }

/* ---------- SUPPORT PAGE ---------- */
.support-hero { padding-top: 160px; padding-bottom: 0; background: var(--ink); color: var(--cream); }
.support-hero .container { max-width: 980px; text-align: center; }
.support-hero h1 { font-family: var(--serif); font-size: clamp(2.8rem, 6vw, 5rem); letter-spacing: -0.035em; line-height: 1; }
.support-hero h1 em { font-style: italic; font-weight: 400; color: var(--cream-2); }
.support-hero p { font-family: var(--serif); font-style: italic; color: var(--muted); margin-top: 20px; font-size: clamp(1.05rem, 1.4vw, 1.3rem); }
.support-hero .channels {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  max-width: 880px; margin: 56px auto 0; padding-bottom: 80px;
}
.support-card {
  background: var(--ink-soft); border: 1px solid rgba(249,246,240,0.1);
  padding: 32px 24px; text-align: left; transition: border-color 240ms, transform 240ms;
}
.support-card:hover { transform: translateY(-4px); border-color: rgba(249,246,240,0.3); }
.support-card .label { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.support-card h3 { font-family: var(--serif); font-size: 1.5rem; margin-top: 12px; letter-spacing: -0.02em; }
.support-card p { font-family: var(--sans); font-style: normal; font-size: 13px; color: var(--muted); margin-top: 10px; }
.support-card a { display: inline-block; margin-top: 18px; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cream); border-bottom: 1px solid var(--cream); padding-bottom: 4px; }
@media (max-width: 720px) { .support-hero .channels { grid-template-columns: 1fr; } }

.faq { background: var(--cream); color: var(--ink); padding-block: clamp(5rem, 10vw, 8rem); }
.faq .container { max-width: 880px; }
.faq h2 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.025em; margin-bottom: 56px; }
.faq-item { border-top: 1px solid var(--rule-dark); padding: 28px 0; cursor: pointer; }
.faq-item:last-child { border-bottom: 1px solid var(--rule-dark); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--serif); font-size: clamp(1.15rem, 1.6vw, 1.5rem); letter-spacing: -0.015em; }
.faq-q .plus { font-family: var(--sans); font-size: 22px; transition: transform 240ms; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { font-size: 15px; color: var(--muted-dark); line-height: 1.72; max-width: 720px; max-height: 0; overflow: hidden; transition: max-height 360ms ease, margin-top 360ms ease; }
.faq-item.open .faq-a { max-height: 400px; margin-top: 18px; }

/* ---------- Utility ---------- */
.text-accent { color: var(--accent); }
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 800ms ease, transform 800ms ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
