/* Inkly website — tokens mirror src/constants/theme.ts (design/design-system-ref.png). */
:root {
  --sage: #426b4f;
  --sage-dark: #35573f;
  --light-sage: #dbe4d6;
  --cream: #faf9f5;
  --stone: #e7e5df;
  --muted: #6b716e;
  --charcoal: #1f2937;
  --ink: #121513;
  --white: #ffffff;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 24px 60px rgba(31, 41, 55, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; }
em { font-style: italic; color: var(--sage); }

.overline {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage);
}
.lead { color: var(--muted); font-size: 1.1rem; max-width: 34rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 500; font-size: 0.95rem; transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-primary { background: var(--sage); color: var(--white); box-shadow: 0 8px 24px rgba(66, 107, 79, 0.28); }
.btn-primary:hover { background: var(--sage-dark); }
.btn-secondary { background: var(--white); color: var(--charcoal); border: 1px solid var(--stone); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-ghost-dark { color: var(--white); border: 1px solid rgba(255, 255, 255, 0.2); }
.btn-small { height: 42px; padding: 0 20px; font-size: 0.875rem; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 1.6rem; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 32px; font-size: 0.9rem; color: var(--muted); }
.nav-links a:hover { color: var(--charcoal); }

/* Hero */
.hero-frame {
  position: relative; overflow: hidden; margin-top: 8px;
  border-radius: 32px; border: 1px solid var(--stone);
  background:
    radial-gradient(60% 45% at 12% 72%, rgba(219, 228, 214, 0.95), transparent 70%),
    radial-gradient(55% 40% at 90% 60%, rgba(219, 228, 214, 0.85), transparent 70%),
    radial-gradient(40% 30% at 50% 0%, rgba(255, 255, 255, 0.9), transparent 70%),
    linear-gradient(180deg, var(--white) 0%, #f3f5ef 100%);
}
.hero { text-align: center; padding: 72px 24px 0; }
.hero .lead { margin: 20px auto 0; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px;
  padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--white);
  border: 1px solid var(--stone); font-size: 0.8rem; color: var(--muted); box-shadow: var(--shadow-sm);
}
.pill b { background: var(--light-sage); color: var(--sage); font-weight: 500; padding: 2px 10px; border-radius: 999px; }

.hero-visual { position: relative; max-width: 940px; margin: 48px auto 0; }
.hero-visual > img { width: 100%; filter: drop-shadow(0 30px 40px rgba(31, 41, 55, 0.18)); }
.chip {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; background: var(--white);
  font-size: 0.8rem; font-weight: 500; box-shadow: var(--shadow-md); border: 1px solid var(--stone);
  animation: bob 6s ease-in-out infinite;
}
.chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.chip:nth-of-type(1) { top: 14%; left: -2%; }
.chip:nth-of-type(2) { top: 6%; right: 2%; animation-delay: -2s; }
.chip:nth-of-type(3) { top: 52%; left: -6%; animation-delay: -4s; }
.chip:nth-of-type(4) { top: 46%; right: -4%; animation-delay: -1s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

.fade-up { animation: fadeUp 0.8s ease both; }
.fade-up.d1 { animation-delay: 0.1s; }
.fade-up.d2 { animation-delay: 0.2s; }
.fade-up.d3 { animation-delay: 0.35s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }

/* Placement strip */
.strip { display: flex; align-items: center; gap: 32px; padding: 40px 0 0; }
.strip p { flex: none; font-size: 0.85rem; color: var(--muted); line-height: 1.4; padding-right: 32px; border-right: 1px solid var(--stone); }
.strip-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.tag { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--stone); background: var(--white); font-size: 0.9rem; }

/* Sections */
section { padding: 112px 0 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .overline { display: block; margin-bottom: 16px; }
.section-head .lead { margin: 16px auto 0; }

/* Features bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--stone); border-radius: 24px;
  padding: 28px; display: flex; flex-direction: column; gap: 8px; overflow: hidden;
}
.card p { color: var(--muted); font-size: 0.92rem; }
.card-visual { margin-top: auto; padding-top: 24px; }
.card-tall { grid-row: span 2; padding: 0; position: relative; min-height: 520px; }
.card-tall img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-tall .card-copy {
  position: relative; margin-top: auto; padding: 28px; color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(18, 21, 19, 0.85));
}
.card-tall .card-copy p { color: rgba(255, 255, 255, 0.75); }
.badge {
  position: relative; align-self: flex-start; margin: 20px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.9); color: var(--sage); font-size: 0.75rem; font-weight: 500;
  backdrop-filter: blur(8px);
}
.card-wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 32px; }
.card-wide > div:first-child { flex: 1; }

.combine { display: flex; align-items: center; gap: 10px; }
.thumb {
  flex: 1; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden;
  background: var(--cream); border: 1px solid var(--stone); display: grid; place-items: center;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb svg { width: 60%; stroke: var(--charcoal); }
.combine .op { color: var(--muted); font-size: 1.2rem; }
.thumb-result { outline: 2px solid var(--sage); outline-offset: 2px; }

.picker { display: flex; flex-wrap: wrap; gap: 8px; }
.picker span { padding: 8px 14px; border-radius: 999px; background: var(--cream); border: 1px solid var(--stone); font-size: 0.8rem; }
.picker .on { background: var(--sage); border-color: var(--sage); color: var(--white); }

.quota { display: flex; align-items: center; gap: 20px; padding: 20px 24px; border-radius: 20px; background: var(--cream); border: 1px solid var(--stone); }
.quota svg { width: 76px; height: 76px; flex: none; }
.quota strong { display: block; font-size: 1.6rem; font-weight: 500; }
.quota small { color: var(--muted); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; }
.stat {
  display: flex; flex-direction: column; justify-content: space-between; min-height: 230px;
  padding: 28px; border-radius: 24px; border: 1px solid var(--stone); background: var(--white);
}
.stat:nth-child(even) { margin-top: 40px; background: #f3f2ee; }
.stat:nth-child(odd) { background: linear-gradient(160deg, var(--white) 30%, var(--light-sage)); }
.stat strong { font-family: var(--serif); font-weight: 400; font-variant-numeric: lining-nums; font-size: 3rem; line-height: 1; color: var(--charcoal); }
.stat p { color: var(--muted); font-size: 0.9rem; }

/* Steps */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.steps-visual { position: relative; border-radius: 24px; overflow: hidden; min-height: 460px; }
.steps-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.step-list { display: grid; gap: 14px; }
.step {
  display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px;
  border-radius: 20px; border: 1px solid var(--stone); background: var(--white);
}
.step-num {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sage); color: var(--white); font-size: 0.85rem; font-weight: 500;
}
.step h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 0.9rem; }

/* FAQ */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--stone); border-radius: 20px; background: var(--white); padding: 0 24px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; font-weight: 300; color: var(--sage); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; }

/* CTA */
.cta {
  position: relative; overflow: hidden; text-align: center;
  padding: 88px 24px; border-radius: 32px; background: var(--ink); color: var(--white);
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(50% 60% at 50% 0%, rgba(66, 107, 79, 0.45), transparent 70%);
}
.cta > * { position: relative; }
.cta img { width: 56px; margin: 0 auto 24px; filter: brightness(0) invert(1); opacity: 0.9; }
.cta p { color: rgba(255, 255, 255, 0.65); margin: 16px auto 0; max-width: 30rem; }
.cta .hero-actions { margin-top: 36px; }

/* Footer */
footer { padding: 64px 0 40px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-row nav { display: flex; gap: 28px; font-size: 0.9rem; color: var(--muted); }
.footer-row nav a:hover { color: var(--charcoal); }
.footer-bottom {
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--stone);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--muted);
}

/* Legal pages (terms.html, privacy.html) */
.legal-head {
  margin-top: 8px; padding: 64px 24px 56px; text-align: center; border-radius: 32px; border: 1px solid var(--stone);
  background:
    radial-gradient(50% 80% at 10% 100%, rgba(219, 228, 214, 0.9), transparent 70%),
    radial-gradient(45% 70% at 95% 90%, rgba(219, 228, 214, 0.7), transparent 70%),
    linear-gradient(180deg, var(--white), #f3f5ef);
}
.legal-head .overline { display: block; margin-bottom: 16px; }
.legal-head p { color: var(--muted); margin-top: 16px; font-size: 0.95rem; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-top: 64px; align-items: start; }
.toc { position: sticky; top: 24px; display: grid; gap: 2px; font-size: 0.85rem; }
.toc strong { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); margin-bottom: 10px; }
.toc a { color: var(--muted); padding: 6px 12px; border-left: 2px solid var(--stone); }
.toc a:hover { color: var(--charcoal); border-color: var(--sage); }
.legal-doc { max-width: 720px; color: #374151; }
.legal-doc h2 { font-size: 1.6rem; color: var(--charcoal); margin: 56px 0 16px; scroll-margin-top: 24px; }
.legal-doc h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--charcoal); margin: 24px 0 8px; }
.legal-doc p, .legal-doc li { font-size: 0.97rem; }
.legal-doc p + p, .legal-doc p + ul, .legal-doc ul + p { margin-top: 14px; }
.legal-doc ul { padding-left: 20px; display: grid; gap: 8px; }
.legal-doc li::marker { color: var(--sage); }
.legal-doc a { color: var(--sage); text-decoration: underline; text-underline-offset: 3px; }
.legal-doc .caps { text-transform: uppercase; font-size: 0.88rem; letter-spacing: 0.01em; }
.summary { padding: 28px; border-radius: 24px; background: var(--light-sage); border: 1px solid #cdd9c6; }
.summary h2 { margin-top: 0; font-size: 1.35rem; }
.summary p { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }
.table-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--stone); border-radius: 16px; background: var(--white); }
.legal-doc .table-wrap + p { margin-top: 16px; }
.legal-doc table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.88rem; }
.legal-doc th, .legal-doc td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--stone); }
.legal-doc th { font-weight: 600; color: var(--charcoal); background: #f3f2ee; }
.legal-doc tr:last-child td { border-bottom: 0; }
.ph { background: #fff4d6; color: #7a5b00; border-radius: 6px; padding: 1px 6px; font-weight: 500; }

/* Responsive */
@media (max-width: 960px) {
  .legal-layout { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
  .toc { position: static; grid-template-columns: 1fr 1fr; }
  .toc strong { grid-column: 1 / -1; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card-tall { grid-row: auto; grid-column: span 2; min-height: 420px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps-visual { min-height: 300px; }
  .chip { display: none; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding-top: 48px; }
  .strip { flex-direction: column; align-items: flex-start; gap: 16px; }
  .strip p { border: 0; padding: 0; }
  section { padding-top: 80px; }
  .bento, .stats { grid-template-columns: 1fr; }
  .card-tall, .card-wide { grid-column: auto; }
  .card-wide { flex-direction: column; align-items: stretch; }
  .stat { min-height: 160px; }
  .stat:nth-child(even) { margin-top: 0; }
  .footer-bottom { flex-direction: column; }
  .toc { display: none; }
  .legal-head { padding: 48px 20px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
