:root {
  --bg: #f5efe2;
  --bg-soft: #f1e8d6;
  --bg-card: #ffffff;
  --ink: #3b2f26;
  --ink-soft: #6b5a45;
  --ink-faint: #8a6f4f;
  --line: #e4d8c3;
  --bronze: #a9783f;
  --bronze-deep: #8a5f35;
  --bronze-dark: #6f4a2a;
  --gold: #c9a24b;
  --cream: #f0e6d3;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Header */
header.site {
  background: linear-gradient(135deg, #a9783f, #8a5f35 55%, #6f4a2a);
  color: #fff;
  padding: 18px 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 6px 24px rgba(111, 74, 42, .18);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, #c2986a, #a9783f);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.brand .name { font-family: 'Fraunces', ui-serif, Georgia, serif; font-size: 24px; font-weight: 700; letter-spacing: .2px; }
.brand .dot { color: var(--gold); }
nav.site { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
nav.site a {
  color: rgba(255,255,255,.88);
  font-weight: 600;
  font-size: 15px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
nav.site a:hover { color: #fff; }
nav.site a.active { color: #fff; border-bottom-color: var(--gold); }
nav.site a.ecosystem {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  padding: 7px 15px;
  color: #fff;
}
nav.site a.ecosystem:hover { background: rgba(255,255,255,.26); border-color: #fff; }

/* Hero */
.hero {
  text-align: center;
  padding: 64px 24px 40px;
  max-width: 760px;
  margin: 0 auto;
}
.hero h1 { font-size: 44px; line-height: 1.1; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--bronze); }
.hero p { color: var(--ink-soft); font-size: 18px; line-height: 1.55; margin: 0 auto; max-width: 620px; }
.hero p.hero-sub { font-size: 18px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; margin: 26px 0 0; flex-wrap: wrap; }
.btn-primary {
  display: inline-block; background: linear-gradient(135deg, #a9783f, #8a5f35);
  color: #fff; padding: 13px 30px; border-radius: 12px; font-weight: 700; font-size: 16px;
  box-shadow: 0 8px 22px rgba(111,74,42,.28); transition: transform .15s, filter .15s;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-ghost {
  display: inline-block; background: transparent; color: var(--bronze-deep);
  padding: 13px 30px; border-radius: 12px; font-weight: 700; font-size: 16px;
  border: 1.5px solid var(--bronze); transition: background .15s, color .15s;
}
.btn-ghost:hover { background: var(--bg-soft); }

/* Search */
.search-wrap { max-width: 560px; margin: 26px auto 0; position: relative; }
.search-wrap input {
  width: 100%; padding: 15px 20px 15px 48px;
  font-size: 16px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--bg-card);
  color: var(--ink); outline: none;
  box-shadow: 0 4px 16px rgba(111,74,42,.06);
}
.search-wrap input:focus { border-color: var(--bronze); }
.search-wrap .icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--ink-faint); font-size: 18px;
}

/* Section headings */
.section-title { text-align: center; margin: 48px 0 28px; }
.section-title h2 { font-size: 30px; }
.section-title p { color: var(--ink-soft); margin-top: 8px; }

/* Category grid */
.grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  cursor: pointer;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(111,74,42,.12); border-color: var(--bronze); }
.card .emoji { font-size: 30px; margin-bottom: 12px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 14px; line-height: 1.5; margin: 0; }
.card p.desc-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.empty { text-align: center; color: var(--ink-faint); padding: 30px; }

/* Tier badges (Free / Pro) */
.badge {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 999px; margin-bottom: 10px; text-transform: uppercase;
}
.badge-free { background: #e8f5e9; color: #1b7f2a; border: 1px solid #bfe3c3; }
.badge-pro { background: linear-gradient(135deg, #a9783f, #8a5f35); color: #fff; border: 1px solid transparent; }
.cost-badge { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 700; color: var(--bronze-deep); background: var(--bg-soft); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.unlock-note { font-size: 13px; color: var(--ink-soft); margin-top: 10px; }

/* Category cards */
a.card.cat-card { display: block; }
.card .cat-count {
  display: inline-block; background: var(--bg-soft); color: var(--bronze-deep);
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  margin-bottom: 10px;
}
.hero .crumb { color: var(--ink-faint); font-size: 14px; margin-bottom: 14px; }
.hero .crumb a { color: var(--bronze); font-weight: 600; }

/* Blog list — 2-column grid (Owner 2026-09-08) */
.blog-list { max-width: 1240px; margin: 0 auto; padding: 0 24px 60px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.post {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; padding: 26px;
  transition: box-shadow .18s, border-color .18s;
  display: flex; flex-direction: column;
}
.post .more { margin-top: auto; padding-top: 10px; }
.post:hover { box-shadow: 0 10px 24px rgba(111,74,42,.1); border-color: var(--bronze); }
.post .date { color: var(--bronze); font-weight: 600; font-size: 13px; letter-spacing: .3px; text-transform: uppercase; }
.post h3 { font-size: 22px; margin: 10px 0; }
.post p { color: var(--ink-soft); line-height: 1.6; margin: 0; }
.post .more { color: var(--bronze); font-weight: 600; margin-top: 12px; display: inline-block; }

/* Image gallery — large tiles that fill the platform (Owner 2026-09-08) */
.gallery {
  max-width: 1240px; margin: 0 auto; padding: 0 24px 60px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 22px;
}
.tile {
  position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  background: var(--bg-soft); aspect-ratio: 16/10;
}
.tile .cap { font-size: 15px; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.tile:hover img { transform: scale(1.05); }
.tile .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(59,47,38,.85));
  color: #fff; padding: 26px 16px 12px; font-size: 14px; font-weight: 600;
}

/* Footer */
footer.site {
  background: linear-gradient(135deg, #a9783f, #8a5f35 55%, #6f4a2a);
  color: var(--cream);
  padding: 34px 24px 30px;
}
.footer-inner { max-width: 1240px; margin: 0 auto; text-align: center; }
footer.site .brand-name { font-family: 'Fraunces', ui-serif, Georgia, serif; font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 8px; }
footer.site .tagline { color: var(--cream); font-size: 14px; margin-bottom: 14px; }
footer.site .legal { color: rgba(240,230,211,.75); font-size: 13px; line-height: 1.6; }
footer.site .legal a { color: var(--gold); }
footer.site .foot-nav { display: flex; gap: 20px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
footer.site .foot-nav a { color: var(--cream); font-size: 14px; font-weight: 600; }
footer.site .foot-nav a:hover { color: #fff; }
footer.site .divider { border-top: 1px solid rgba(122,90,54,.5); margin: 20px auto 0; max-width: 520px; padding-top: 16px; }

/* ---------- About page ---------- */
.feature-band { background: var(--bg-soft); padding: 56px 24px; }
.feature-grid {
  max-width: 1120px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
}
.feature {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px; transition: transform .18s, box-shadow .18s;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(111,74,42,.12); }
.feature-icon { font-size: 34px; margin-bottom: 14px; }
.feature h3 { font-size: 20px; margin-bottom: 10px; }
.feature p { color: var(--ink-soft); line-height: 1.6; margin: 0; }

.how-section { padding: 60px 24px 40px; }
.how-grid {
  max-width: 1120px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
}
.how-step { text-align: center; padding: 8px; }
.step-num {
  width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%;
  background: linear-gradient(135deg, #a9783f, #8a5f35); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-size: 22px; font-weight: 700;
  box-shadow: 0 8px 20px rgba(111,74,42,.22);
}
.how-step h3 { font-size: 20px; margin-bottom: 10px; }
.how-step p { color: var(--ink-soft); line-height: 1.6; margin: 0; }

.faq-section { padding: 20px 24px 56px; }
.faq-grid {
  max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px;
}
.faq-item {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; padding: 24px 28px;
}
.faq-item h3 { font-size: 19px; margin-bottom: 8px; }
.faq-item p { color: var(--ink-soft); line-height: 1.6; margin: 0; }
.faq-item a { color: var(--bronze); font-weight: 600; }

.cta-section {
  text-align: center; padding: 56px 24px; max-width: 720px; margin: 0 auto;
}
.cta-section h2 { font-size: 30px; margin-bottom: 12px; }
.cta-section p { color: var(--ink-soft); font-size: 17px; line-height: 1.55; margin: 0 auto 26px; }
.cta-section .btn-primary { margin-top: 4px; }

/* ---------- Pricing page ---------- */
.pricing-section { padding: 16px 24px 48px; }
.pricing-grid {
  max-width: 1180px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.plan-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 20px;
  padding: 30px 26px; position: relative; display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.plan-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(111,74,42,.14); border-color: var(--bronze); }
.plan-card.featured { border: 2px solid var(--bronze); box-shadow: 0 12px 30px rgba(111,74,42,.14); }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #a9783f, #8a5f35); color: #fff;
  font-size: 12px; font-weight: 700; padding: 5px 16px; border-radius: 999px; white-space: nowrap;
}
.plan-name { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.plan-price { font-size: 40px; font-weight: 700; font-family: 'Fraunces', serif; margin-bottom: 4px; }
.plan-price .per { font-size: 14px; color: var(--ink-faint); font-weight: 600; margin-left: 6px; }
.plan-desc { color: var(--ink-soft); line-height: 1.5; min-height: 44px; margin-bottom: 16px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.plan-features li {
  padding: 8px 0 8px 28px; color: var(--ink-soft); font-size: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a9783f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") left center no-repeat;
}
.btn-block { width: 100%; text-align: center; display: block; cursor: pointer; }
.btn-block:disabled { opacity: .6; cursor: default; }
.pricing-note { text-align: center; color: var(--ink-soft); font-size: 14px; margin-top: 28px; }
.pricing-note a { color: var(--bronze); font-weight: 600; }

.credits-section { background: var(--bg-soft); padding: 56px 24px; }
.credits-grid {
  max-width: 980px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.credit-item {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; padding: 26px;
}
.credit-item h3 { font-size: 19px; margin-bottom: 8px; }
.credit-item p { color: var(--ink-soft); line-height: 1.6; margin: 0; }

/* ---------- Responsive (Owner 2026-09-08: friendly on tablet + phone) ---------- */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-list { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .hero h1 { font-size: 36px; }
}
@media (max-width: 720px) {
  header.site { padding: 14px 16px; }
  .header-inner { gap: 10px; }
  .brand .name { font-size: 20px; }
  nav.site { gap: 14px; }
  nav.site a { font-size: 14px; }
  .hero { padding: 40px 18px 30px; }
  .hero h1 { font-size: 29px; }
  .hero p { font-size: 16px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .credits-grid { grid-template-columns: 1fr; }
  .blog-list { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery .cap { font-size: 12px; padding: 16px 10px 8px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 14px 40px; }
  .section-title h2 { font-size: 24px; }
  .feature-grid, .how-grid { grid-template-columns: 1fr; }
  footer.site .foot-nav { gap: 14px; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
}
