/*
Theme Name: SEOtomatic
Theme URI: https://seotomatic.nl
Description: Het marketingthema van seotomatic.nl — de tomaat als huisstijl, de groeimetafoor als verhaal. Gebouwd om zijn eigen product te dragen: de SEOtomatic-plugin publiceert artikelen als posts, en dit thema toont ze.
Author: SEOtomatic
Version: 0.11.0
Requires at least: 6.4
Requires PHP: 8.1
License: Proprietary
Text Domain: seotomatic-theme
*/

/* ─────────────────────────────────────────────────────────────
   SEOtomatic — "Vers & Licht" (redesign 1a, docs/REDESIGN-1A.md)
   Identity: the tomato, on warmer paper with softer greens.
   Tomato red is still THE accent, spent only on: the mark,
   primary CTAs, and ripeness states.
   Type: Quicksand (display) + Nunito Sans (body) — Google Fonts,
   the <link> lives in header.php. No monospace in the UI anymore.
   Light only: this direction deliberately drops dark mode.
   ───────────────────────────────────────────────────────────── */
:root{
  --paper:#fdfcf9;
  --surface:#ffffff;
  --soft:#f2f7ee;
  --ink:#24312a;
  --ink-soft:#56675a;
  --muted:#7c8a7f;
  --line:#e2e9dc;
  --tomato:#e2543f;
  --tomato-deep:#c73f2c;
  --tomato-soft:#fdeae5;
  --leaf:#4f8f54;
  --leaf-soft:#e8f3e4;
  --sun:#eeae4c;
  --on-tomato:#ffffff;

  --round:"Quicksand",ui-rounded,-apple-system,"SF Pro Rounded",system-ui,sans-serif;
  --sans:"Nunito Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace; /* no longer used in the UI — kept only if something else needs it */
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:var(--paper);color:var(--ink);
  font-family:var(--sans);font-size:16px;line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.wrap{max-width:1120px;margin:0 auto;padding:0 24px}
a{color:var(--leaf)}
a:focus-visible,button:focus-visible{outline:3px solid var(--tomato);outline-offset:2px;border-radius:6px}

/* ── nav ── */
header.nav{position:sticky;top:0;background:color-mix(in srgb,var(--paper) 92%,transparent);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);z-index:9}
.navrow{display:flex;align-items:center;gap:28px;padding:16px 0}
.brand{display:flex;align-items:center;gap:10px;font-family:var(--round);font-weight:700;font-size:1.3rem;letter-spacing:-.01em;color:var(--ink);text-decoration:none}
.navlinks{display:flex;gap:26px;margin-left:auto;font-size:.95rem}
.navlinks a{color:var(--ink-soft);text-decoration:none;font-weight:700}
.navlinks a:hover{color:var(--tomato)}
/* On narrow screens the link row squeezes the CTA off the edge; the sections
   are one scroll away anyway, so the links yield and the CTA stays. */
@media(max-width:760px){.navlinks{display:none}}
.btn{
  display:inline-block;font-family:var(--round);font-weight:700;text-decoration:none;
  border-radius:999px;padding:13px 26px;font-size:1.05rem;border:2px solid transparent;cursor:pointer;
}
.btn-tomato{background:var(--tomato);color:var(--on-tomato)}
.btn-tomato:hover{background:var(--tomato-deep)}
.btn-ghost{border-color:var(--line);color:var(--ink)}
.btn-ghost:hover{border-color:var(--leaf);color:var(--leaf)}
.btn-sm{padding:9px 20px;font-size:.95rem}

/* ── hero ── */
.hero{padding:64px 0 48px;display:grid;gap:48px;align-items:center}
@media(min-width:900px){.hero{grid-template-columns:1.1fr .9fr}}
.kicker{display:inline-flex;align-items:center;gap:8px;background:var(--leaf-soft);color:var(--leaf);font-weight:700;font-size:.85rem;border-radius:999px;padding:6px 16px;margin-bottom:22px}
h1{
  font-family:var(--round);font-weight:700;letter-spacing:-.02em;line-height:1.06;
  font-size:clamp(2.3rem,5vw,3.4rem);margin:0 0 22px;text-wrap:balance;
}
h1 em{font-style:normal;color:var(--tomato)}
.sub{font-size:1.2rem;line-height:1.6;color:var(--ink-soft);max-width:32em;margin:0 0 30px}
.cta-row{display:flex;gap:14px;flex-wrap:wrap;align-items:center;margin-bottom:16px}
.cta-note{font-size:.9rem;color:var(--muted);margin:0}

/* hero visual: the "today" card */
.plant{background:var(--surface);border:1px solid var(--line);border-radius:28px;padding:30px;box-shadow:0 20px 40px -28px rgba(36,49,42,.18)}
.plant h3{font-family:var(--round);font-size:1.05rem;margin:0 0 3px}
.plant p{font-size:.88rem;color:var(--muted);margin:0 0 20px}
.vine{display:flex;justify-content:space-between;gap:8px;margin-bottom:22px}
.stage{display:grid;justify-items:center;gap:8px;font-size:.8rem;color:var(--ink-soft);text-align:center;flex:1}
.stage b{font-family:var(--round);color:var(--ink)}
.stage svg{width:36px;height:40px}

/* The activity checklist — plain-language rows with a round icon badge.
   Replaces the old monospace terminal-style ticker (redesign 1a). */
.ticker{border-top:1px solid var(--line);padding-top:18px;display:grid;gap:11px}
.tick{display:flex;gap:10px;align-items:center;font-size:.88rem;color:var(--ink-soft)}
.tick .ic{flex:none;width:18px;height:18px;border-radius:50%;background:var(--leaf-soft);color:var(--leaf);display:grid;place-items:center;font-size:.7rem}
.tick .ic.hot{background:var(--tomato-soft);color:var(--tomato)}

/* platform strip under the hero: what we run on today (logos) and what the
   API layer can connect on request (plain chips, logos follow per launch). */
.platforms{padding:0 0 16px}
.platrow{display:grid;gap:16px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:22px 0}
@media(min-width:900px){.platrow{grid-template-columns:auto 1fr;align-items:center;gap:28px}}
.plat-now{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.plat-label{font-size:.82rem;color:var(--muted);font-weight:700;margin-right:4px}
.platchip{display:inline-flex;align-items:center;gap:9px;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:9px 16px;font-family:var(--round);font-weight:700;font-size:.95rem;color:var(--ink)}
.platchip svg{width:20px;height:20px;flex:none}
.platchip small{font-family:var(--sans);font-weight:400;color:var(--muted);font-size:.8rem}
.plat-soon{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.plat-soon span{font-size:.82rem;color:var(--muted);border:1px dashed var(--line);border-radius:999px;padding:5px 12px}
.plat-soon .lbl{border:0;padding:0;font-weight:700;margin-right:2px}
.plat-note{grid-column:1/-1;margin:0;font-size:.92rem;color:var(--ink-soft)}
.plat-note a{color:var(--leaf)}

/* ── sections ── */
section{padding:56px 0}
.sec-head{max-width:640px;margin:0 0 36px}
h2{font-family:var(--round);font-weight:700;letter-spacing:-.02em;font-size:clamp(1.7rem,3vw,2.1rem);line-height:1.15;margin:0 0 12px;text-wrap:balance}
.sec-head p{color:var(--ink-soft);font-size:1.05rem;margin:0}

/* how it works: the garden row */
.steps{display:grid;gap:18px}
@media(min-width:820px){.steps{grid-template-columns:repeat(4,1fr)}}
.step{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:26px 22px}
.step .art{height:52px;display:flex;align-items:flex-end;margin-bottom:12px}
.step h3{font-family:var(--round);font-size:1.1rem;margin:0 0 8px}
.step p{font-size:.96rem;color:var(--ink-soft);margin:0}
.step .tag{font-weight:700;font-size:.78rem;color:var(--leaf);letter-spacing:.04em;display:block;margin-bottom:14px}

/* features */
.feats{display:grid;gap:18px}
@media(min-width:820px){.feats{grid-template-columns:repeat(2,1fr)}}
.feat{display:flex;gap:18px;background:var(--soft);border-radius:22px;padding:24px}
.feat svg{flex:none}
.feat h3{font-family:var(--round);font-size:1.08rem;margin:0 0 6px}
.feat p{font-size:.96rem;color:var(--ink-soft);margin:0}

/* pricing */
.price-note{display:inline-block;background:var(--tomato-soft);color:var(--tomato-deep);font-weight:700;font-size:.82rem;border-radius:999px;padding:5px 16px;margin-bottom:26px}
.plans{display:grid;gap:20px;align-items:stretch;margin-bottom:20px}
@media(min-width:960px){.plans{grid-template-columns:repeat(3,1fr)}}
.plan{background:var(--surface);border:1.5px solid var(--line);border-radius:26px;padding:28px;display:flex;flex-direction:column}
.plan.popular{border-color:var(--tomato);position:relative;box-shadow:0 20px 40px -28px rgba(226,84,63,.35)}
.plan .pop{position:absolute;top:-13px;left:26px;background:var(--tomato);color:var(--on-tomato);font-family:var(--round);font-weight:700;font-size:.78rem;border-radius:999px;padding:4px 14px}
.plan .fruit{margin-bottom:14px}
.plan h3{font-family:var(--round);font-size:1.4rem;margin:0}
.plan .ras{font-size:.85rem;color:var(--muted);margin:2px 0 16px}
.plan .price{font-family:var(--round);font-weight:700;font-size:2.1rem;letter-spacing:-.01em}
.plan .per{font-size:.85rem;color:var(--muted);margin:2px 0 18px}
.plan ul{list-style:none;margin:0 0 24px;padding:0;display:grid;gap:9px;font-size:.94rem}
.plan li{display:flex;gap:9px}
.plan li::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--leaf);margin-top:8px}
.plan .btn{margin-top:auto;text-align:center;padding:12px;font-size:1rem}
.kas{
  background:var(--soft);border:1.5px dashed var(--leaf);
  border-radius:26px;padding:28px 30px;display:grid;gap:20px;align-items:center;
}
@media(min-width:820px){.kas{grid-template-columns:auto 1fr auto}}
.kas h3{font-family:var(--round);font-size:1.25rem;margin:0}
.kas p{margin:4px 0 0;font-size:.95rem;color:var(--ink-soft)}
.kas .btn-ghost{border-color:var(--leaf);color:var(--leaf);white-space:nowrap}
.kas .btn-ghost:hover{background:var(--leaf-soft)}

/* use-cases: testimonial cards from the shops already running the engine */
.cases{display:grid;gap:18px}
@media(min-width:820px){.cases{grid-template-columns:repeat(2,1fr)}}
/* Equal blocks, kept compact: the grid stretches both cards to the tallest
   and the quote absorbs the difference, but tight padding and type keep the
   leftover space small. */
.cases{gap:16px}
.case{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:20px 22px;display:flex;flex-direction:column;gap:10px}
.case .stars{display:flex;gap:3px}
.case .stars svg{fill:var(--sun)}
.case blockquote{margin:0;font-size:.98rem;line-height:1.62;color:var(--ink-soft);flex:1}
.case footer{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);padding-top:12px}
.case footer img{width:auto;height:auto;max-height:22px;max-width:130px;flex:none}
/* The digitalefotolijst wordmark is inlined (an external SVG kept collapsing
   behind caches and img sizing quirks); explicit heights per context. */
.case footer .dfl-logo{height:15px;width:auto;flex:none}
.shopchip .dfl-logo{height:17px;width:auto;display:block}
.case footer b{font-family:var(--round);display:block;color:var(--ink)}
.case footer span{font-size:.88rem;color:var(--muted)}
.case footer a{color:var(--leaf);text-decoration:none}
.case footer a:hover{color:var(--tomato)}

/* over ons: story rows with a friendly visual next to each block, on the
   same full wrap width as the homepage. Text-only pages read as unfinished. */
.hero-slim{padding:64px 0 0;max-width:760px;margin:0 auto;text-align:center}
.hero-slim .sub{margin-left:auto;margin-right:auto}
.story-sec{display:grid;gap:64px;padding-top:40px}
.duo{display:grid;gap:32px;align-items:center}
@media(min-width:900px){
  .duo{grid-template-columns:1.05fr .95fr;gap:48px}
  .duo.flip{grid-template-columns:.95fr 1.05fr}
  .duo.flip .duo-text{order:2}
}
.duo-text h2{margin:0 0 12px}
.duo-text p{font-size:1.05rem;line-height:1.75;color:var(--ink-soft);margin:0 0 14px}
.duo-text p:last-child{margin-bottom:0}
.duo-text a{color:var(--tomato);text-decoration-thickness:1.5px;text-underline-offset:3px}
.viscard{background:var(--soft);border-radius:26px;padding:36px 28px;display:grid;gap:16px;justify-items:center;text-align:center}
/* Equal, stacked chips: the two wordmarks differ wildly in proportions, so
   identical chip boxes in a centered column keep the image balanced. */
.shoprow{display:flex;flex-direction:column;align-items:center;gap:8px}
.shopchip{background:var(--surface);border:1px solid var(--line);border-radius:16px;width:230px;height:52px;display:grid;place-items:center}
.shopchip img{max-height:28px;max-width:180px;width:auto;height:auto}
.amp{font-family:var(--round);font-weight:700;color:var(--muted);font-size:1.15rem}
.enginechip{display:inline-flex;align-items:center;gap:9px;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:10px 18px;font-family:var(--round);font-weight:700}
.viscap{font-size:.88rem;color:var(--muted);margin:0}
.growcard{background:var(--surface);border:1px solid var(--line);border-radius:26px;padding:26px;box-shadow:0 20px 40px -28px rgba(36,49,42,.18)}
.growcard h3{font-family:var(--round);font-size:1.05rem;margin:0 0 3px}
.growcard>p{font-size:.88rem;color:var(--muted);margin:0 0 14px}
.growcard svg{width:100%;height:auto;display:block}
.growstats{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.growstats span{background:var(--leaf-soft);color:var(--ink-soft);border-radius:999px;padding:6px 14px;font-size:.82rem}
.growstats b{color:var(--leaf);font-family:var(--round)}
.viscard .farm{width:min(250px,80%);height:auto}
.founders{display:grid;gap:18px}
@media(min-width:820px){.founders{grid-template-columns:repeat(2,1fr)}}
.founder{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:24px;display:flex;gap:18px;align-items:flex-start}
.founder img{width:88px;height:88px;border-radius:50%;object-fit:cover;flex:none}
.founder h3{font-family:var(--round);font-size:1.2rem;margin:0 0 2px}
.founder .rol{margin:0;font-size:.88rem;color:var(--muted)}
.founder .bio{margin:10px 0 0;font-size:.95rem;line-height:1.6;color:var(--ink-soft)}
.founder a{color:var(--leaf);text-decoration:none}
.founder a:hover{color:var(--tomato)}

/* waitlist signup — the section that replaced pricing for the launch
   (pricing itself is parked in template-parts/pricing.php) */
.signup{background:var(--soft);border-radius:26px;padding:48px 32px;display:grid;gap:14px;justify-items:center;text-align:center}
.signup h2{margin:0;max-width:18em}
.signup-sub{color:var(--ink-soft);font-size:1.05rem;margin:0;max-width:36em}
.signup-form{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;width:100%;max-width:540px;margin-top:8px}
.signup-form input[type=email]{flex:1;min-width:230px;border:2px solid var(--line);border-radius:999px;padding:13px 22px;font-family:var(--sans);font-size:1rem;background:var(--surface);color:var(--ink)}
.signup-form input[type=email]:focus{outline:none;border-color:var(--leaf)}
.signup .farm{width:180px;height:auto;margin-bottom:4px}
.signup-note{font-size:.85rem;color:var(--muted);margin:0}
.signup-fout{color:var(--tomato-deep)}
.signup-done{font-family:var(--round);font-weight:700;color:var(--leaf);font-size:1.1rem;margin:6px 0 0}
.hp{position:absolute;left:-9999px;width:1px;height:1px}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* quote-ish strip */
.strip{background:var(--soft);border-radius:26px;padding:40px;display:grid;gap:10px;justify-items:start}
.strip p{font-family:var(--round);font-weight:700;font-size:clamp(1.25rem,2.4vw,1.5rem);line-height:1.35;margin:0;max-width:26em;letter-spacing:-.01em}
.strip p em{font-style:normal;color:var(--tomato);font-size:1.25em}
.strip span{color:var(--muted);font-size:.9rem}

/* footer */
footer{border-top:1px solid var(--line);padding:32px 0 48px;margin-top:24px;font-size:.9rem;color:var(--muted)}
.footrow{display:flex;flex-wrap:wrap;gap:20px;align-items:center;justify-content:space-between}
.footbrand{display:flex;align-items:center;gap:10px;font-family:var(--round);font-weight:700;color:var(--ink);text-decoration:none}
footer nav{display:flex;gap:20px}
footer a{color:var(--muted);text-decoration:none}
footer a:hover{color:var(--tomato)}
footer p{margin:0;font-size:.85rem}
svg .lf{fill:var(--leaf)}
svg .tm{fill:var(--tomato)}
svg .st{stroke:var(--leaf);fill:none;stroke-width:2.4;stroke-linecap:round}

/* ── article prose — the posts SEOtomatic itself publishes ──
   The engine writes H2/H3 sections, lists and a FAQ. This is where its own
   output gets rendered, so the measure of "does our content look good" is
   literally this block. Redesign 1a renders the article as a white card. */
.prose{width:min(760px,calc(100% - 32px));margin:40px auto 80px;background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:44px}
@media(max-width:640px){.prose{padding:28px 22px}}
.prose h1{font-size:clamp(1.6rem,3.4vw,1.9rem);margin:0 0 10px}
.prose h2{font-size:1.35rem;margin-top:1.6em}
.prose h3{font-family:var(--round);font-weight:700;font-size:1.1rem;margin:1.8em 0 .5em}
.prose p,.prose li{font-size:1.05rem;line-height:1.75;color:var(--ink-soft)}
.prose ul,.prose ol{padding-left:1.2em}
.prose a{color:var(--tomato);text-decoration-thickness:1.5px;text-underline-offset:3px}
.prose .meta{font-size:.85rem;color:var(--muted);margin:0 0 24px}

/* The engine appends a "Lees ook" block after the seotomatic:related marker:
   an h2 + ul of internal links, always at the very end of the body. The marker
   is an HTML comment, so the card is drawn purely from that tail shape — the
   closing h2+ul pair gets a soft card split across the two elements. CSS-only
   on purpose: the HTML contract with the plugin must stay untouched. */
.prose article>h2:has(+ul:last-child){
  background:var(--soft);border-radius:16px 16px 0 0;margin:2.2em 0 0;
  padding:22px 24px 0;font-family:var(--round);font-size:1rem;
}
.prose article>h2+ul:last-child{
  background:var(--soft);border-radius:0 0 16px 16px;margin:0;
  padding:10px 24px 22px 2.5em;display:grid;gap:6px;
}
.prose article>h2+ul:last-child li{font-size:.95rem}

/* blog listing: card grid on the same content width as the homepage.
   A single 760px column read as cramped once real articles landed. */
.postlist{max-width:1120px;margin:0 auto;padding:48px 24px 80px;display:grid;gap:18px}
@media(min-width:700px){.postlist{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1020px){.postlist{grid-template-columns:repeat(3,1fr)}}
.postlist>p,.postlist .pagination,.postlist nav{grid-column:1/-1}
.postcard{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:24px}
.postcard h2{font-size:1.1rem;margin:0 0 8px}
.postcard a{color:var(--ink);text-decoration:none}
.postcard a:hover{color:var(--tomato)}
.postcard p{margin:0;font-size:.92rem;color:var(--ink-soft)}
