/* Marketing and content pages (Lovable/Bolt/Replit pages, blog, docs) in the Groovy look.
   Loaded after ui.css; styles the class names these pages already use. */

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); line-height: 1.6; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 760px) { .container { padding: 0 18px; } }

/* Sand header with waves (platform heroes, blog and article headers). */
.hero, .page-header, .article-header { position: relative; background: var(--sand); overflow: hidden; overflow: clip; }
.hero .band__waves, .page-header .band__waves, .article-header .band__waves { height: 64px; }
.page-sun { position: absolute; z-index: 0; right: 6vw; top: 0; width: min(340px, 30vw); pointer-events: none; }
.page-sun svg { width: 100%; height: auto; display: block; }
@media (max-width: 860px) { .page-sun { opacity: 0.35; right: -50px; } }
.hero .container, .page-header .container, .article-header .container { position: relative; z-index: 1; }

/* ── Platform pages (Lovable, Bolt, Replit) ── */
.hero { padding: 40px 0 150px; }
.builder-badge { display: inline-block; transform: rotate(-3deg); font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--ink); background: var(--pink); margin-bottom: 18px; }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(42px, 6vw, 72px); line-height: 1.02; max-width: 760px; margin-bottom: 18px; }
.hero h1 .gold { color: var(--ink); background: linear-gradient(transparent 62%, var(--mustard) 62%); }
.hero__sub { font-size: 19px; line-height: 1.55; max-width: 620px; margin-bottom: 26px; }
.hero__sub strong { font-weight: 700; }
.hero__cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero__cta-row .btn:first-child { box-shadow: 4px 4px 0 var(--orange); background: var(--ink); color: var(--bg); }
.hero__cta-row .btn--outline { background: transparent; }

.pain, .how, .keep, .pricing, .faq { padding-top: 90px; }
.section-head { text-align: center; margin-bottom: 40px; }
.eyebrow { display: block; font-size: 14px; font-weight: 700; color: var(--orange-ink); letter-spacing: 0; text-transform: none; }
.heading { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 4.6vw, 52px); line-height: 1.05; }
.heading .it { font-style: normal; }

.pain-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.pain-item { background: #fff; border: 2px solid var(--rule); border-radius: var(--r); padding: 20px 22px; }
.pain-item__label { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-ink); margin-bottom: 10px; }
.pain-item:nth-child(4n+2) .pain-item__label { background: var(--mustard-soft); color: var(--mustard-ink); }
.pain-item:nth-child(4n+3) .pain-item__label { background: var(--pink-soft); color: var(--pink-ink); }
.pain-item:nth-child(4n+4) .pain-item__label { background: var(--olive-soft); color: var(--olive-ink); }
.pain-item__text { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.pain-item__text strong { color: var(--ink); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.how .step { background: #fff; border: 2px solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--pop); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.step__num { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--ink); background: var(--orange); color: #fff; font: 700 20px var(--font); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step:nth-child(3n+2) .step__num { background: var(--mustard); color: var(--ink); }
.step:nth-child(3n+3) .step__num { background: var(--olive); }
.step__body h3, .step__content h3 { font-size: 20px; margin-bottom: 6px; }
.step__body p, .step__content p { font-size: 15px; color: var(--ink-2); line-height: 1.6; }

.keep__body { font-size: 18px; line-height: 1.6; max-width: 720px; margin: 0 auto 30px; text-align: center; }
.keep__features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.keep__features > div { background: var(--paper); border-radius: var(--r); padding: 20px 22px; }
.keep__feat-label { font-family: var(--font-display); font-size: 22px; margin-bottom: 6px; }
.keep__feat-text { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.keep__feat-text strong { color: var(--ink); }

.price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; max-width: 880px; margin: 0 auto; }
.price-card { position: relative; background: #fff; border: 2px solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--pop); padding: 30px; display: flex; flex-direction: column; gap: 6px; }
.price-card--featured { background: var(--paper); box-shadow: 7px 7px 0 var(--orange); }
.price-card__label { font-weight: 700; font-size: 17px; }
.price-card__price { font-family: var(--font-display); font-size: 60px; line-height: 1.05; }
.price-card__cadence { font-weight: 700; margin-bottom: 12px; }
.price-card__list { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; margin-bottom: 22px; }
.price-card__list li::before { content: "✓"; font-weight: 700; margin-right: 8px; color: var(--olive); }
.price-card__cta { margin-top: auto; }
.price-card__cta .btn { width: 100%; }
.price-card--featured .price-card__cta .btn { box-shadow: 4px 4px 0 var(--orange); background: var(--ink); color: var(--bg); }
.price-card:not(.price-card--featured) .price-card__cta .btn { background: transparent; color: var(--ink); }
.pricing__cta-error { text-align: center; color: var(--red-ink); min-height: 1em; margin-top: 12px; font-size: 14px; }

.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 2px solid var(--rule); border-radius: 22px; }
.faq-item.open { border-color: var(--ink); box-shadow: var(--pop-sm); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 18px 22px; font: 700 17px var(--font); color: var(--ink); display: flex; justify-content: space-between; gap: 12px; }
.faq-q::after { content: "+"; font-family: var(--font-display); font-size: 22px; line-height: 1; flex-shrink: 0; }
.faq-item.open .faq-q::after { content: "–"; }
.faq-a { display: none; padding: 0 22px 18px; }
.faq-item.open .faq-a { display: block; }
.faq-a p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.faq-a strong { color: var(--ink); }

.cross-links { padding: 80px 0 90px; text-align: center; }
.cross-links__label { font-weight: 700; margin-bottom: 14px; }
.cross-links__grid { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cross-link { display: inline-block; font-weight: 700; color: var(--ink); text-decoration: none; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; }
.cross-link:nth-child(3n+1) { background: var(--pink-soft); transform: rotate(-2deg); }
.cross-link:nth-child(3n+2) { background: var(--mustard-soft); transform: rotate(2deg); }
.cross-link:nth-child(3n+3) { background: var(--olive-soft); transform: rotate(-1deg); }
.cross-link:hover { color: var(--ink); box-shadow: var(--pop-sm); }

/* ── Blog index ── */
.page-header { padding: 30px 0 130px; }
.page-header h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(48px, 7vw, 76px); line-height: 1; margin-bottom: 12px; }
.page-header p { font-size: 18px; max-width: 560px; }
.articles { padding: 30px 0 90px; }
.articles .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.article-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--pop); padding: 24px; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.article-card:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.article-card__date { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: var(--olive-soft); color: var(--olive-ink); }
.article-card:nth-child(3n+2) .article-card__date { background: var(--pink-soft); color: var(--pink-ink); }
.article-card:nth-child(3n+3) .article-card__date { background: var(--mustard-soft); color: var(--mustard-ink); }
.article-card__title { font-family: var(--font-display); font-weight: 400; font-size: 25px; line-height: 1.12; }
.article-card__excerpt { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.article-card__read { margin-top: auto; font-weight: 700; color: var(--orange-ink); }

/* ── Articles ── */
.article-header { padding: 26px 0 130px; }
.article-header .container, .article-body .container { max-width: 800px; }
.article-header__breadcrumb { font-size: 14px; margin-bottom: 16px; }
.article-header__breadcrumb a { font-weight: 700; color: var(--ink); }
.article-header h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; margin-bottom: 16px; }
.article-header__meta { display: flex; gap: 10px; flex-wrap: wrap; }
.article-header__meta span { font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--bg); border: 2px solid var(--ink); }

.article-body { padding: 30px 0 80px; }
.article-body p, .article-body li { font-size: 17px; line-height: 1.75; color: #4E392D; }
.article-body p { margin-bottom: 20px; }
.article-body strong { color: var(--ink); }
.article-body h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.6vw, 36px); line-height: 1.12; margin: 52px 0 16px; }
.article-body h3 { font-size: 21px; margin: 32px 0 10px; }
.article-body ul, .article-body ol { margin: 0 0 22px 24px; }
.article-body li { margin-bottom: 10px; }
.article-body a { font-weight: 700; }
.article-body img { max-width: 100%; height: auto; border: 2px solid var(--ink); border-radius: var(--r); }
.article-body code { font-size: 14px; }

.comparison-table, .article-body table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 10px 0 30px; font-size: 15px; background: #fff; border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; display: block; overflow-x: auto; }
.comparison-table th, .comparison-table td, .article-body table th, .article-body table td { text-align: left; padding: 12px 14px; border-bottom: 1px dashed var(--rule); vertical-align: top; min-width: 120px; }
.comparison-table thead th, .article-body table thead th { background: var(--paper); font-size: 13px; font-weight: 700; color: var(--ink); }
.comparison-table tr:last-child td { border-bottom: 0; }
.comparison-table th:nth-child(2), .comparison-table td:nth-child(2) { background: var(--olive-soft); }
.yes { color: var(--olive-ink); font-weight: 700; }
.no { color: var(--red-ink); font-weight: 700; }

.cta-box { position: relative; overflow: hidden; overflow: clip; background: var(--ink); color: var(--bg); border-radius: var(--r-lg); padding: 38px 34px; margin: 48px 0; text-align: center; box-shadow: 6px 6px 0 var(--orange); }
.cta-box h3 { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.1; color: var(--bg); margin: 0 0 10px; }
.cta-box p { color: var(--rule) !important; max-width: 480px; margin: 0 auto 22px !important; font-size: 16px !important; }
.cta-box .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.cta-box .btn:hover { background: #fff; color: var(--ink); }

.highlight-box, .info-box { background: var(--paper); border-radius: var(--r); padding: 20px 24px; margin: 0 0 24px; border: 2px dashed var(--rule-strong); }
.info-box { background: var(--olive-soft); border-style: solid; border-color: transparent; }
.highlight-box p:last-child, .info-box p:last-child { margin-bottom: 0; }
.highlight-box strong { color: var(--orange-ink); }

.article-body .steps { display: flex; flex-direction: column; gap: 16px; margin: 0 0 28px; }
.article-body .step { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 2px solid var(--rule); border-radius: var(--r); padding: 18px 20px; }
.article-body .step__content p { font-size: 16px; margin-bottom: 0; }

.step-card { display: flex; gap: 16px; background: #fff; border: 2px solid var(--rule); border-radius: var(--r); padding: 18px 20px; margin-bottom: 14px; }
.step-card--highlight { border-color: var(--ink); box-shadow: var(--pop-sm); }
.step-card__number { width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: #fff; border: 2px solid var(--ink); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-card__title { font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.step-card__desc { font-size: 15px; color: var(--ink-2); }

.cost-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 0 0 28px; }
.cost-card, .cost-item { background: #fff; border: 2px solid var(--rule); border-radius: var(--r); padding: 18px 20px; }
.cost-card--highlight { border-color: var(--ink); background: var(--olive-soft); box-shadow: var(--pop-sm); }
.cost-card__label, .cost-item__label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.cost-card__price, .cost-item__price { font-family: var(--font-display); font-size: 30px; line-height: 1.15; margin: 4px 0; }
.cost-card__note, .cost-item__note { font-size: 14px; color: var(--ink-2); }
.cost-summary { background: var(--paper); border-radius: var(--r); padding: 18px 22px; margin: 0 0 28px; }

.timeline { display: flex; flex-direction: column; gap: 14px; margin: 0 0 28px; padding-left: 18px; border-left: 3px solid var(--mustard); }
.timeline__item { position: relative; padding-left: 14px; }
.timeline__item::before { content: ""; position: absolute; left: -27px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); border: 2px solid var(--ink); }
.timeline__label { font-size: 13px; font-weight: 700; color: var(--orange-ink); }
.timeline__title { font-weight: 700; font-size: 18px; }
.timeline__desc { font-size: 15px; color: var(--ink-2); }

.guideline { background: #fff; border: 2px solid var(--rule); border-radius: var(--r); padding: 16px 20px; margin-bottom: 12px; }
.guideline__id { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--pink-soft); color: var(--pink-ink); margin-bottom: 6px; }
.guideline__title { font-weight: 700; font-size: 17px; margin-bottom: 4px; }

.code-block { background: var(--ink); color: var(--bg); border-radius: var(--r-sm); padding: 18px 20px; overflow-x: auto; margin: 0 0 24px; font-family: var(--mono); font-size: 13px; line-height: 1.6; white-space: pre; }
.code-block .keyword { color: var(--pink); }
.code-block .string { color: var(--mustard); }
.code-block .func { color: #9FD3C7; }
.code-block .comment { color: #B59C8A; font-style: italic; }

.related { margin-top: 56px; padding: 24px; background: var(--paper); border-radius: var(--r-lg); }
.related h2 { margin: 0 0 14px !important; font-size: 28px !important; }
.related a { display: block; padding: 10px 0; border-bottom: 1px dashed var(--rule); color: var(--ink); text-decoration: none; }
.related a:last-child { border-bottom: 0; }
.related a:hover { color: var(--orange-ink); }

/* ── Docs ── */
.docs-head { padding: 26px 0 120px; }
.layout { max-width: 1120px; margin: 0 auto; padding: 30px 40px 96px; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; }
.toc { position: sticky; top: 24px; align-self: start; font-size: 14px; background: var(--paper); border-radius: var(--r); padding: 18px; }
.toc__label { font-family: var(--font-display); font-size: 20px; margin-bottom: 10px; }
.toc a { display: block; color: var(--ink); font-weight: 700; text-decoration: none; padding: 5px 0; }
.toc a:hover { color: var(--orange-ink); }
.toc .sub { padding-left: 14px; font-weight: 500; font-size: 13px; }
.layout main h1 { margin-bottom: 12px; }
.layout main h1 .it { font-style: normal; }
.layout main .lede { font-size: 18px; max-width: 640px; margin-bottom: 36px; }
.layout main h2 { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1.1; margin: 56px 0 14px; padding-top: 28px; border-top: 2px dashed var(--rule); }
.layout main h3 { font-size: 17px; margin: 28px 0 8px; }
.layout main p, .layout main li { font-size: 15px; color: #4E392D; }
.layout main p { margin-bottom: 14px; }
.layout main ul, .layout main ol { margin: 0 0 16px 22px; }
.layout main li { margin-bottom: 6px; }
.layout main a { font-weight: 700; }
.layout main code { font-size: 13px; background: #fff; }
.layout main pre { background: var(--ink); color: var(--bg); border-radius: var(--r-sm); padding: 18px 20px; overflow-x: auto; margin: 0 0 18px; font-size: 13px; line-height: 1.6; }
.layout main pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.layout main table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 18px; font-size: 14px; background: #fff; border: 2px solid var(--ink); border-radius: var(--r-sm); overflow: hidden; display: block; overflow-x: auto; }
.layout main th, .layout main td { text-align: left; padding: 10px 12px; border-bottom: 1px dashed var(--rule); vertical-align: top; color: #4E392D; }
.layout main th { font-size: 13px; font-weight: 700; color: var(--ink); background: var(--paper); }
.layout main td code { white-space: nowrap; }
.note { background: var(--mustard-soft); border-radius: var(--r-sm); padding: 14px 18px; margin: 0 0 18px; }
.note p:last-child { margin-bottom: 0; }
.copy-wrap { position: relative; }
.copy-btn { position: absolute; top: 10px; right: 10px; background: var(--bg); color: var(--ink); border: 0; border-radius: 999px; padding: 5px 12px; font: 700 12px var(--font); cursor: pointer; }
@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px 18px 72px; }
  .toc { position: static; }
}

/* ── Phones ── */
@media (max-width: 760px) {
  .site-nav { flex-wrap: nowrap; padding: 16px 18px; }
  .site-nav .brand__name { font-size: 19px; }
  .site-nav .brand__mark { width: 30px; height: 30px; }
  .site-nav__links { gap: 12px; flex-wrap: nowrap; white-space: nowrap; }
  .site-nav__links .btn { padding: 8px 13px; font-size: 13px; }
  .hero { padding: 16px 0 110px; }
  .hero h1 { font-size: clamp(34px, 10vw, 44px); }
  .hero__sub { font-size: 17px; }
  .hero__cta-row .btn { flex: 1 1 auto; }
  .pain, .how, .keep, .pricing, .faq { padding-top: 64px; }
  .section-head { margin-bottom: 28px; }
  .price-card { padding: 24px 22px; }
  .price-card__price { font-size: 52px; }
  .cross-links { padding: 60px 0 70px; }
  .page-header { padding: 16px 0 110px; }
  .article-header { padding: 12px 0 110px; }
  .article-body p, .article-body li { font-size: 16px; }
  .cta-box { padding: 30px 22px; }
}
/* Docs: the guide's contents become a sticky row of chips. */
@media (max-width: 860px) {
  .toc { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 10px 18px; border-radius: 0; background: var(--bg); border-bottom: 1px solid var(--rule); }
  .toc::-webkit-scrollbar { display: none; }
  .toc__label, .toc .sub { display: none; }
  .toc a { flex-shrink: 0; white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: #fff; border: 2px solid var(--rule); font-size: 13px; }
}
