/* Growbig100 — site styles. One file, no framework. Mobile-first. */

@font-face { font-family: "Kanit"; font-weight: 600; font-display: swap; src: url("/assets/fonts/kanit-600.woff2") format("woff2"); }
@font-face { font-family: "Kanit"; font-weight: 700; font-display: swap; src: url("/assets/fonts/kanit-700.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url("/assets/fonts/dm-sans-400.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url("/assets/fonts/dm-sans-500.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url("/assets/fonts/dm-sans-700.woff2") format("woff2"); }

:root {
  --lime: #c9f31d;
  --lime-dark: #a8cc0f;
  --black: #000;
  --ink: #121212;
  --ink-2: #1c1c1c;
  --gray: #555;
  --muted: #999;
  --line: #e4e4e0;
  --paper: #fff;
  --paper-2: #f6f6f2;
  --radius: 16px;
  --wrap: 1200px;
  --head: "Kanit", "Arial Narrow", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font: 400 1.0625rem/1.65 var(--body); color: var(--ink); background: var(--paper); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.25rem, 6vw, 4.25rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--lime); color: var(--black); padding: .75rem 1rem; z-index: 100; font-weight: 700; }
.skip:focus { left: 1rem; top: 1rem; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Links inside content: dark text, lime underline (never lime text on white). */
.prose a, .link { text-decoration: underline; text-decoration-color: var(--lime-dark); text-decoration-thickness: 3px; text-underline-offset: 3px; font-weight: 500; }
.prose a:hover, .link:hover { text-decoration-color: var(--ink); }
.dark .prose a, .dark .link { text-decoration-color: var(--lime); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.3rem; border-radius: 999px; font: 600 1rem/1.2 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: var(--black); }
.btn-lime:hover { background: #d8ff3a; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--black); color: #fff; border-bottom: 1px solid #222; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand img { width: 168px; height: auto; }
.nav-toggle { background: none; border: 2px solid #333; color: #fff; border-radius: 10px; padding: .45rem .7rem; font: 600 .95rem var(--body); cursor: pointer; }
.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--black); border-bottom: 1px solid #222; padding: .5rem 16px 1.25rem; }
.nav.open { display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a { display: block; padding: .7rem 0; text-decoration: none; color: #eee; font-weight: 500; border-bottom: 1px solid #1d1d1d; }
.nav a[aria-current="page"] { color: var(--lime); }
.nav .btn { margin-top: 1rem; border-bottom: 0; color: var(--black); padding: .8rem 1.3rem; justify-content: center; }
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav { display: flex; position: static; padding: 0; border: 0; background: none; align-items: center; gap: 1.5rem; }
  .nav ul { display: flex; gap: 1.4rem; }
  .nav a { padding: .4rem 0; border: 0; font-size: .97rem; }
  .nav a:hover { color: var(--lime); }
  .nav .btn { margin: 0; padding: .6rem 1.1rem; }
  .nav .btn:hover { color: var(--black); }
}

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section.tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.alt { background: var(--paper-2); }
.dark { background: var(--ink); color: #f1f1f1; }
.dark .lead, .dark p { color: #cfcfcf; }
.black { background: var(--black); color: #f1f1f1; }
.section-head { max-width: 760px; margin-bottom: 2.5rem; }
.section-head p { color: var(--gray); font-size: 1.1rem; }
.dark .section-head p { color: #cfcfcf; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--gray); }
.hl { color: var(--lime); }
.mark { background: linear-gradient(transparent 62%, var(--lime) 62%); padding: 0 .1em; }

/* Hero */
.hero { background: var(--black); color: #fff; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 70px solid #161616; pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 16ch; }
.hero.page h1 { max-width: 22ch; font-size: clamp(2rem, 5vw, 3.6rem); }
.hero .lead { color: #d0d0d0; max-width: 62ch; }
.hero .lead strong { color: #fff; }
.hero-points { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: .5rem; color: #d6d6d6; }
.hero-points li::before { content: "→ "; color: var(--lime); font-weight: 700; }
@media (min-width: 760px) { .hero-points { grid-template-columns: repeat(3, auto); justify-content: start; gap: .5rem 2rem; } }

/* Breadcrumbs */
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1.25rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: #666; }
.crumbs a { color: #d0d0d0; text-decoration: none; }
.crumbs a:hover { color: var(--lime); }
.crumbs [aria-current] { color: #fff; }

/* Answer-first block (AEO) */
.answer { border-left: 5px solid var(--lime); background: var(--paper-2); padding: 1.1rem 1.3rem; border-radius: 0 12px 12px 0; font-size: 1.12rem; margin: 0 0 2rem; }
.answer p:last-child { margin: 0; }
.dark .answer, .hero .answer { background: #1b1b1b; color: #e8e8e8; }
.updated { font-size: .9rem; color: var(--gray); margin: 0 0 1.5rem; }
.hero .updated { color: #aaa; margin-top: 1.25rem; }

/* Grids and cards */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; position: relative; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--gray); margin-bottom: .75rem; }
.card.link-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.08); border-color: #cfcfc8; }
.card .stretched::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card .more { font-weight: 600; text-decoration: none; }
.card .more::after { content: " →"; }
.icon { width: 48px; height: 48px; border-radius: 12px; background: var(--black); color: var(--lime); display: grid; place-items: center; margin-bottom: 1.1rem; }
.icon svg { width: 26px; height: 26px; }
.dark .card { background: var(--ink-2); border-color: #2c2c2c; color: #eee; }
.dark .card p { color: #c9c9c9; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--lime); color: var(--black); border-radius: 999px; padding: .2rem .6rem; margin-bottom: .8rem; }

/* Product cards */
.product { display: grid; gap: 1.25rem; align-items: start; }
.product img { width: 72px; height: 72px; border-radius: 16px; }
@media (min-width: 640px) { .product { grid-template-columns: 72px 1fr; } }
.operated { font-size: .92rem; color: var(--gray); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 640px) { .steps.cols-5, .steps.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps.cols-5 { grid-template-columns: repeat(5, 1fr); } .steps.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; margin: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 700 2rem/1 var(--head); color: var(--ink); margin-bottom: .6rem; -webkit-text-stroke: 0; background: var(--lime); width: max-content; padding: .2rem .45rem; border-radius: 8px; }
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--gray); margin: 0; font-size: .98rem; }
.dark .steps li { background: var(--ink-2); border-color: #2c2c2c; }
.dark .steps p { color: #c9c9c9; }

/* Proof tiles */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { border: 1px solid #2c2c2c; border-radius: var(--radius); padding: 1.4rem; }
.stat b { display: block; font: 700 clamp(1.8rem, 4vw, 2.6rem)/1 var(--head); color: var(--lime); margin-bottom: .4rem; }
.stat span { color: #cfcfcf; font-size: .95rem; }


/* Prose (long-form) */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose li::marker { color: var(--ink); font-weight: 700; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .97rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--paper-2); font-family: var(--body); font-weight: 700; }
.prose blockquote { margin: 1.5em 0; padding: 1rem 1.25rem; border-left: 4px solid var(--ink); background: var(--paper-2); }
.two-col { display: grid; gap: 2.5rem; }
@media (min-width: 1000px) { .two-col { grid-template-columns: minmax(0, 1fr) 320px; } }
.aside { align-self: start; position: sticky; top: 90px; display: grid; gap: 1rem; }
.aside .card { padding: 1.3rem; }
.aside ul { list-style: none; padding: 0; margin: 0; }
.aside li { margin: 0; border-top: 1px solid var(--line); }
.aside li a { display: block; padding: .55rem 0; text-decoration: none; font-weight: 500; }
.aside li a:hover { text-decoration: underline; text-decoration-color: var(--lime-dark); text-decoration-thickness: 3px; }

/* Checklist */
.checks { list-style: none; padding: 0; }
.checks li { padding-left: 1.9rem; position: relative; margin-bottom: .6rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }

/* FAQ */
.faq { display: grid; gap: .75rem; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.25rem; font: 600 1.08rem/1.35 var(--body); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--black); color: var(--lime); display: grid; place-items: center; font-size: 1.2rem; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 1.25rem 1.1rem; color: var(--gray); }
.faq .a p:last-child { margin: 0; }

/* CTA band */
.cta-band { background: var(--black); color: #fff; border-radius: 24px; padding: clamp(2rem, 5vw, 3.5rem); display: grid; gap: 1.25rem; align-items: center; }
.cta-band p { color: #cfcfcf; margin: 0; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; } .cta-band .btn-row { margin: 0; } }

/* Blog */
.post-meta { color: #bdbdbd; font-size: .95rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: 1rem; }
.post-card time { font-size: .9rem; color: var(--gray); }
.toc { background: var(--paper-2); border-radius: 14px; padding: 1.1rem 1.3rem; margin-bottom: 2rem; }
.toc ul { margin: .5rem 0 0; padding: 0; list-style: none; }
.toc li { margin: .3rem 0; }
.author-box { display: grid; gap: .25rem; border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 3rem; color: var(--gray); }
.author-box strong { color: var(--ink); }

/* Forms */
.form { display: grid; gap: 1rem; }
.form .row { display: grid; gap: 1rem; }
@media (min-width: 700px) { .form .row { grid-template-columns: 1fr 1fr; } }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: .8rem .9rem; border: 1.5px solid #cfcfc8; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--lime); outline-offset: 1px; border-color: var(--ink); }
.form textarea { min-height: 150px; resize: vertical; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .consent { font-weight: 400; display: flex; gap: .6rem; align-items: start; }
.form .consent input { width: auto; margin-top: .3rem; }
.form-status { padding: .9rem 1rem; border-radius: 10px; display: none; }
.form-status.ok { display: block; background: #eefbc4; color: #2b3a00; }
.form-status.err { display: block; background: #ffe3e0; color: #7a1408; }
.contact-list { list-style: none; padding: 0; display: grid; gap: 1rem; }
.contact-list li { margin: 0; }
.contact-list b { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gray); }

/* Footer */
.site-footer { background: var(--black); color: #cfcfcf; padding: 4rem 0 2rem; font-size: .97rem; }
.site-footer a { color: #e9e9e9; text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: 1rem; font-family: var(--body); font-weight: 700; color: #fff; letter-spacing: .02em; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.foot-brand img { width: 180px; margin-bottom: 1rem; }
.foot-legal { border-top: 1px solid #262626; margin-top: 2.5rem; padding-top: 1.5rem; display: grid; gap: .8rem; font-size: .92rem; color: #b5b5b5; }
.foot-legal nav ul { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }

/* Cookie banner */
.consent-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; background: #111; color: #eee; border: 1px solid #333; border-radius: 16px; padding: 1.1rem 1.2rem; box-shadow: 0 12px 40px rgba(0,0,0,.35); display: grid; gap: .9rem; max-width: 560px; font-size: .95rem; }
.consent-banner[hidden] { display: none; }
.consent-banner p { margin: 0; color: #d6d6d6; }
.consent-banner a { color: #fff; text-decoration: underline; text-decoration-color: var(--lime); }
.consent-banner .btn { padding: .6rem 1rem; font-size: .95rem; }
.consent-banner .btn-ghost { color: #fff; }

/* 404 */
.notfound { min-height: 60vh; display: grid; align-items: center; }

/* Utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-2 { margin-top: 2rem; } .center { text-align: center; }
.muted { color: var(--gray); }
.foot-legal p a { text-decoration: underline; text-decoration-color: #555; text-underline-offset: 3px; }
.foot-legal p a:hover { text-decoration-color: var(--lime); }
.form [aria-invalid="true"] { border-color: #c0261a; outline-color: #c0261a; }
