/* Claude Pack — Gumroad-style landing. Dark theme. Single CSS, ~350 lines. */

:root {
  --bg: #0a0a0a;
  --card: #161616;
  --elevated: #1f1f1f;
  --ink: #ffffff;
  --body: #c8c8c8;
  --muted: #7a7a7a;
  --hairline: #2a2a2a;
  --accent: #cc785c;
  --accent-2: #e88f6f;
  --star: #f5b800;
  --verify: #4c95ff;
  --red: #d64545;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--body);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* SVG safety: every SVG has explicit dimensions */
svg { width: 16px; height: 16px; flex-shrink: 0; display: inline-block; vertical-align: middle; }

/* TYPO */
h1, h2, h3 { color: var(--ink); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(56px, 9vw, 112px); letter-spacing: -0.04em; }
h2 { font-size: 22px; margin-bottom: 14px; }
p { margin-bottom: 14px; }
strong { color: var(--ink); font-weight: 600; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: 'SF Mono', Menlo, monospace; font-size: 0.92em; background: var(--elevated); padding: 2px 6px; border-radius: 4px; color: var(--accent-2); }

/* TOP NAV */
.top-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.top-nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand-wordmark { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; font-size: 16px; }
.brand-wordmark svg { color: var(--accent); width: 16px; height: 16px; }
.lang-switch { display: flex; gap: 4px; background: var(--card); border: 1px solid var(--hairline); border-radius: 999px; padding: 3px; }
.lang-switch a { padding: 5px 12px; border-radius: 999px; font-size: 12px; color: var(--muted); font-weight: 600; }
.lang-switch a.active { background: var(--accent); color: #fff; }

/* PAGE CONTAINER */
.page-wrap { max-width: 980px; margin: 32px auto 80px; padding: 0 24px; }

/* PRODUCT CARD (with rotated badge) */
.product-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 56px 56px 48px;
  overflow: visible;
}
.urgency-tag {
  position: absolute;
  top: 22px; left: -18px;
  background: var(--verify);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 4px;
  text-transform: uppercase;
  transform: rotate(-12deg);
  box-shadow: 0 4px 12px rgba(76, 149, 255, 0.4);
  z-index: 5;
}

/* HERO */
.hero { text-align: center; margin-bottom: 56px; }
.premium-pill {
  display: inline-block;
  background: var(--elevated);
  border: 1px solid var(--hairline);
  color: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero h1 {
  background: linear-gradient(180deg, #ffffff 0%, #f0d4c1 70%, #cc785c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 32px;
  text-transform: uppercase;
}
.root-tile {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #cc785c 0%, #b8654a 100%);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 24px;
  border-radius: 12px;
  margin-bottom: 28px;
  box-shadow: 0 8px 24px rgba(204, 120, 92, 0.3);
}
.root-tile svg { color: #fff; width: 18px; height: 18px; }

/* TREE: lines + 5 round leaf tiles with face avatars */
.tree-svg {
  width: 100%;
  max-width: 560px;
  height: 60px;
  margin: 0 auto;
  display: block;
}
.tree-svg path { stroke: #3a3a3a; stroke-width: 1.5; fill: none; }
.leaves-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
}
.leaf { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.leaf-tile {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #cc785c 0%, #a85540 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(204, 120, 92, 0.35), inset 0 -4px 8px rgba(0,0,0,0.2);
  position: relative;
}
/* Robot face inside leaf tile via SVG */
.leaf-tile svg { width: 44px; height: 44px; color: #fff; }
.leaf-name { font-size: 12px; font-weight: 600; color: var(--body); letter-spacing: 0.02em; }

/* CONTENT GRID: main + sidebar (sticky) */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}
.sidebar { position: sticky; top: 80px; }

/* MAIN COLUMN */
.main p { color: var(--body); font-size: 16px; line-height: 1.65; }
.lead-text { font-size: 17px; color: var(--ink); margin-bottom: 28px; }

.arrow-list { list-style: none; padding: 0; margin: 0 0 32px; }
.arrow-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: flex-start;
}
.arrow-list li:last-child { border-bottom: none; }
.arrow-list .arrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1.6;
}
.arrow-list .item-content { color: var(--body); font-size: 15.5px; line-height: 1.55; }

/* BONUS CARD */
.bonus-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--elevated);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 16px;
  margin: 32px 0;
  position: relative;
}
.bonus-thumb {
  width: 88px;
  height: 88px;
  background: linear-gradient(135deg, var(--red) 0%, #a83333 100%);
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.04em;
}
.bonus-info { flex: 1; min-width: 0; }
.bonus-title { color: var(--ink); font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.bonus-meta { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.bonus-meta .stars { color: var(--star); }
.bonus-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--verify);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

/* DIVIDER */
.divider { border: none; border-top: 1px solid var(--hairline); margin: 36px 0; }

/* PRICING */
.pricing-block {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0 20px;
}
.pricing-card {
  background: var(--elevated);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  position: relative;
}
.pricing-card.featured { border-color: var(--accent); background: linear-gradient(180deg, rgba(204,120,92,0.08) 0%, var(--elevated) 100%); }
.pricing-card .badge {
  position: absolute;
  top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}
.pricing-card .tier-name { color: var(--ink); font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.pricing-card .tier-tag { color: var(--muted); font-size: 11px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
.pricing-card .price { color: var(--ink); font-size: 28px; font-weight: 800; margin-bottom: 2px; }
.pricing-card .price-alt { color: var(--muted); font-size: 11px; margin-bottom: 14px; }
.pricing-card .feat-count { color: var(--body); font-size: 13px; margin-bottom: 16px; line-height: 1.4; }

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); text-decoration: none; }
.btn-secondary { background: var(--elevated); color: var(--ink); border: 1px solid var(--hairline); }
.btn-secondary:hover { background: #2a2a2a; text-decoration: none; }
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* TRUST ROW */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.trust-row span { display: flex; align-items: center; gap: 6px; }
.trust-row svg { color: var(--accent); width: 14px; height: 14px; }

/* CAPTURE FORM */
.capture-form { display: flex; gap: 8px; margin-top: 12px; }
.capture-form input[type=email] {
  flex: 1;
  background: var(--elevated);
  border: 1px solid var(--hairline);
  color: var(--ink);
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}
.capture-form input[type=email]:focus { outline: none; border-color: var(--accent); }
.form-status { font-size: 13px; margin-top: 10px; min-height: 18px; color: var(--muted); }
.form-status.ok { color: #4cd17b; }
.form-status.err { color: #ff6b6b; }

/* CTA BLOCK */
.cta-block { text-align: center; margin-top: 36px; padding: 32px; background: var(--elevated); border-radius: 12px; }
.cta-block h2 { margin-bottom: 12px; }

/* HOW IT WORKS — horizontal layout, number on left, content on right */
.how-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0 8px;
}
.step {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: start;
  column-gap: 14px;
  row-gap: 4px;
  background: var(--elevated);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 18px;
  text-align: left;
  transition: border-color 0.15s, transform 0.15s;
}
.step:hover { border-color: var(--accent); transform: translateY(-1px); }
.step .num {
  grid-row: 1 / span 2;
  grid-column: 1;
  align-self: start;
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #b8654a 100%);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(204, 120, 92, 0.3);
}
.step .step-title {
  grid-column: 2;
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  margin: 0;
}
.step .step-desc {
  grid-column: 2;
  color: var(--body);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
}
.step .step-desc code {
  font-size: 0.88em;
  padding: 1px 5px;
}

/* FAQ */
.faq { margin-top: 16px; }
.faq details { background: var(--elevated); border: 1px solid var(--hairline); border-radius: 10px; padding: 14px 16px; margin-bottom: 8px; }
.faq summary { color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 20px; line-height: 1; transition: transform 0.15s; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--body); font-size: 13.5px; margin-top: 10px; line-height: 1.55; }

/* SIDEBAR */
.sidebar { display: flex; flex-direction: column; gap: 12px; }
.testimonial {
  background: var(--elevated);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 16px;
}
.t-stars { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.t-stars .s { color: var(--star); font-size: 14px; line-height: 1; }
.t-stars .new {
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.06em;
  margin-left: 4px;
}
.t-title { color: var(--ink); font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.t-author { display: flex; align-items: center; gap: 8px; }
.t-author .avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.t-author .name { color: var(--body); font-size: 12px; flex: 1; }
.t-author .verified { color: var(--verify); font-size: 11px; display: flex; align-items: center; gap: 3px; }
.t-author .verified svg { width: 12px; height: 12px; }

/* DOC PAGE (legal/thanks) */
.doc-wrap { max-width: 760px; margin: 32px auto 80px; padding: 0 24px; }
.doc-card { background: var(--card); border: 1px solid var(--hairline); border-radius: 16px; padding: 48px 44px; }
.doc-card h1 { font-size: 32px; margin-bottom: 24px; }
.doc-card h2 { font-size: 18px; margin: 28px 0 10px; color: var(--ink); }
.doc-card h3 { font-size: 15px; margin: 20px 0 6px; color: var(--ink); font-weight: 700; }
.doc-card p, .doc-card li { color: var(--body); font-size: 14.5px; line-height: 1.7; }
.doc-card ul, .doc-card ol { padding-left: 22px; margin-bottom: 14px; }
.doc-card li { margin-bottom: 6px; }
.doc-card .meta { color: var(--muted); font-size: 12px; margin-bottom: 28px; }
.doc-card .download-tile { display: flex; align-items: center; gap: 14px; background: var(--elevated); border: 1px solid var(--hairline); border-radius: 10px; padding: 14px; margin: 8px 0; }
.doc-card .download-tile .pack-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.doc-card .download-tile .pack-info { flex: 1; }
.doc-card .download-tile .pack-name { color: var(--ink); font-weight: 700; font-size: 14px; }
.doc-card .download-tile .pack-meta { color: var(--muted); font-size: 12px; }
.doc-card .download-tile .btn { padding: 8px 16px; font-size: 13px; }
.doc-card .back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.doc-card .back-link:hover { color: var(--accent-2); }

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 32px 24px;
  margin-top: 64px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--hairline);
}
.site-footer .powered { color: var(--ink); font-weight: 700; }
.site-footer .legal { margin-top: 8px; font-size: 12px; }
.site-footer .legal a { color: var(--muted); margin: 0 8px; }

/* TABLET — single-column for how-steps gives bigger room */
@media (max-width: 1024px) {
  .how-steps { grid-template-columns: 1fr; gap: 10px; }
  .step { padding: 16px; }
}

/* MOBILE */
@media (max-width: 900px) {
  .product-card { padding: 36px 20px 32px; }
  .content-grid { grid-template-columns: 1fr; gap: 36px; }
  .sidebar { position: static; }
  .pricing-block { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; gap: 10px; }
  .step { padding: 14px 16px; column-gap: 12px; }
  .step .num { width: 32px; height: 32px; line-height: 32px; font-size: 14px; }
  .step .step-title { font-size: 14.5px; }
  .step .step-desc { font-size: 13px; }
  .leaves-row { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .leaf-tile { width: 56px; height: 56px; }
  .leaf-tile svg { width: 32px; height: 32px; }
  .leaf-name { font-size: 10px; }
  .urgency-tag { left: -8px; top: 12px; transform: rotate(-8deg); font-size: 10px; padding: 4px 10px; }
  /* Hero text scaling for small screens */
  .hero h1 { font-size: clamp(48px, 14vw, 80px); }
  .root-tile { font-size: 14px; padding: 12px 20px; }
  .premium-pill { font-size: 11px; padding: 6px 14px; }
  /* Doc pages mobile */
  .doc-card { padding: 32px 20px; }
  .doc-card h1 { font-size: 26px; }
  .doc-card .download-tile { flex-wrap: wrap; }
  .doc-card .download-tile .btn { width: 100%; margin-top: 8px; }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
  .arrow-list .item-content { font-size: 14px; }
  .lead-text { font-size: 15px; }
  .pricing-card .price { font-size: 26px; }
  .testimonial { padding: 14px; }
  .t-title { font-size: 13.5px; }
}
