/*
Theme Name: Pivot QR
Theme URI: https://pivot-qr.uuuu.to/
Author: foryou, inc.
Author URI: https://uuuu.to/
Description: Pivot QR 公式ランディングページテーマ。印刷後もリンク先を変えられるWordPress動的QRコードプラグイン + iPhoneアプリの紹介サイト。
Version: 1.0.23
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pivot-qr
*/

/* ============================================================
   Pivot QR — Landing Page (v2, plugin + iPhone app)
   ============================================================ */

:root {
  --brand-100: #9BC93A;
  --brand-300: #7ABD35;
  --brand-500: #3CA737;
  --brand-600: #339432;
  --brand-700: #1A7B3A;
  --brand-800: #0F6D37;
  --brand-900: #064425;
  --ink:       #0a1629;
  --ink-2:     #33415a;
  --muted:     #566477;
  --soft:      #8896a7;
  --line:      #e7ecf3;
  --paper:     #ffffff;
  --paper-2:   #f7f9fc;
  --dark:      #0b1f12;   /* deep green-black hero */
  --dark-2:    #0e2818;
  --radius:    16px;
  --sans: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Sticky footer: keep the footer pinned to the bottom of the viewport
     even when a page's content is shorter than the screen. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Proportional metrics: tighten the built-in whitespace of full-width
     Japanese brackets and punctuation (「」（）、。 etc). */
  font-feature-settings: "palt" 1;
  text-spacing-trim: space-first;
}
/* the footer absorbs all leftover vertical space above it */
.footer { margin-top: auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
/* Pull the trailing whitespace of full-width 、and 。 tighter
   (wrapped by the small script at the end of the page). */
.yakumono { margin-right: -0.12em; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 800px; }
.pc { display: inline; }
@media (max-width: 720px) { .pc { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 15px;
  border-radius: 12px;
  padding: 14px 26px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn i { font-size: 18px; line-height: 1; }
.btn--large { padding: 16px 30px; font-size: 16px; }
.btn--small { padding: 9px 18px; font-size: 13px; border-radius: 9px; }
.btn--primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  box-shadow: 0 6px 20px rgba(60, 167, 55, .35);
}
.btn--primary:hover { box-shadow: 0 10px 26px rgba(60, 167, 55, .45); }
.btn--ghost {
  background: rgba(255,255,255,.07);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(255,255,255,.14); }
.btn--light { background: #fff; color: var(--dark); }
.btn--light:hover { box-shadow: 0 8px 22px rgba(0,0,0,.28); }
.btn--outline {
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: #fff;
}
.btn--outline:hover { border-color: var(--brand-500); color: var(--brand-600); }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 32px;
}
.header__logo img { height: 34px; width: auto; }
.header__nav { display: flex; gap: 26px; margin-left: auto; }
.header__nav a { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.header__nav a:hover { color: var(--brand-600); }
@media (max-width: 860px) {
  .header__nav { display: none; }
  .header__cta { margin-left: auto; }
}

/* ---------- hero (dark) ---------- */
.hero {
  padding: 0;   /* the section's own vertical padding is handled by .hero__inner */
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(122, 189, 53, .22), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(15, 109, 55, .35), transparent 60%),
    var(--dark);
  color: #fff;
  overflow: hidden;
}
.hero__inner {
  max-width: 1120px; margin: 0 auto;
  padding: 96px 24px 110px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 14px; font-weight: 800; letter-spacing: .02em;
  color: #fff;
  border: 1px solid rgba(155, 201, 58, .55);
  background: linear-gradient(120deg, rgba(60, 167, 55, .28), rgba(155, 201, 58, .16));
  border-radius: 16px;
  padding: 11px 20px;
  margin-bottom: 26px;
  box-shadow: 0 4px 20px rgba(60, 167, 55, .25), inset 0 1px 0 rgba(255,255,255,.12);
}
/* Each product stays on one line; the two segments wrap as whole units. */
.hero__eyebrow-seg { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.hero__eyebrow i { color: var(--brand-100); font-size: 16px; }
.hero__eyebrow-plus { color: var(--brand-100); font-weight: 700; opacity: .85; }
@media (max-width: 480px) {
  /* Shorten to "WordPress プラグイン + iPhone アプリ" so it fits on one line. */
  .hero__eyebrow { font-size: 12px; gap: 4px 8px; padding: 10px 14px; flex-wrap: nowrap; }
  .hero__eyebrow-seg { gap: 6px; }
  .hero__eyebrow-long { display: none; }
}
.hero__title {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 900;
  line-height: 1.36;
  letter-spacing: .01em;
  margin-bottom: 22px;
  white-space: nowrap;
}
@media (max-width: 560px) { .hero__title { white-space: normal; } }
.hero__accent {
  background: linear-gradient(120deg, var(--brand-100), var(--brand-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: 16.5px;
  color: rgba(255,255,255,.78);
  margin-bottom: 34px;
}
.hero__lead strong { color: #fff; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__actions--center { justify-content: center; }
/* SP: keep the two CTA buttons side by side on one row (hero + footer CTA). */
@media (max-width: 640px) {
  .hero__actions { flex-wrap: nowrap; gap: 10px; }
  .hero__actions .btn { flex: 1 1 0; min-width: 0; padding: 14px 10px; font-size: 13.5px; gap: 6px; }
  .hero__actions .btn i { font-size: 15px; }
}
.hero__note { margin-top: 16px; font-size: 12.5px; color: rgba(255,255,255,.55); }

/* pivot animation */
.hero__visual { display: flex; justify-content: center; }
.pivot {
  display: grid;
  grid-template-columns: auto 64px 1fr;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  padding: 38px 34px;
  width: 100%;
  max-width: 520px;
}
.pivot__qr { text-align: center; }
.pivot__qr svg { width: 92px; height: auto; margin: 0 auto 12px; filter: drop-shadow(0 6px 24px rgba(155,201,58,.35)); }
.pivot__url { font-size: 12.5px; color: rgba(255,255,255,.6); font-weight: 500; display: block; }
.pivot__url strong { color: var(--brand-100); }
.pivot__beam {
  height: 2px;
  background: linear-gradient(90deg, rgba(155,201,58,.15), var(--brand-100));
  position: relative;
}
.pivot__beam::after {
  content: "";
  position: absolute; right: -1px; top: 50%;
  width: 8px; height: 8px;
  border-top: 2px solid var(--brand-100);
  border-right: 2px solid var(--brand-100);
  transform: translateY(-50%) rotate(45deg);
}
.pivot__targets { list-style: none; display: grid; gap: 10px; padding-left: 20px; }
.pivot__target {
  font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 11px 16px;
  display: flex; align-items: center; gap: 10px;
  animation: pivotOn 12s infinite;
  animation-delay: calc(var(--i) * 3s);
}
.pivot__date {
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.07);
  border-radius: 6px;
  padding: 2px 8px;
  flex-shrink: 0;
}
@keyframes pivotOn {
  0%, 22% {
    color: #fff;
    background: rgba(155, 201, 58, .16);
    border-color: rgba(155, 201, 58, .55);
    transform: translateX(6px);
  }
  27%, 100% {
    color: rgba(255,255,255,.4);
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.08);
    transform: translateX(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pivot__target { animation: none; }
  .pivot__target[style="--i:0"] { color: #fff; background: rgba(155,201,58,.16); border-color: rgba(155,201,58,.55); }
}
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; padding: 56px 24px 72px; gap: 40px; align-items: start; }
  .pivot { max-width: 480px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .pivot { grid-template-columns: auto 30px 1fr; padding: 26px 20px; }
  .pivot__qr svg { width: 64px; }
  .pivot__target { font-size: 12.5px; padding: 9px 12px; }
  .pivot__date { display: none; }
}

/* ---------- sections common ---------- */
section { padding: 96px 0; }
/* SP: tighten the space above each section title and below its items. */
@media (max-width: 640px) {
  section { padding: 52px 0; }
  .section__title { margin-bottom: 32px; }
}
.section__eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 10px;
}
.section__eyebrow--light { color: var(--brand-100); }
.section__title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 48px;
}
.section__title--light { color: #fff; }

/* ---------- how ---------- */
.how { background: var(--paper); }
.how__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.how__step {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px 30px;
}
.how__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff; font-weight: 800; font-size: 18px;
  margin-bottom: 18px;
}
.how__step h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.how__step p { font-size: 14.5px; color: var(--muted); }
@media (max-width: 860px) { .how__grid { grid-template-columns: 1fr; } }

/* ---------- features ---------- */
.features { background: var(--paper-2); }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(10, 22, 41, .08); }
.feature__icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--brand-50, #f3faeb), #e4f2d0);
  color: var(--brand-700);
  font-size: 20px;
  margin-bottom: 16px;
}
.feature--new .feature__icon {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
}
.feature h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--muted); }
.feature--new { border-color: rgba(60, 167, 55, .45); }
.badge-new {
  display: inline-block;
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  border-radius: 6px;
  padding: 2px 7px;
  vertical-align: 2px;
  margin-left: 6px;
}
@media (max-width: 960px) { .features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features__grid { grid-template-columns: 1fr; } }

/* ---------- app (dark) ---------- */
.app {
  background:
    radial-gradient(800px 500px at 110% 20%, rgba(122, 189, 53, .18), transparent 60%),
    radial-gradient(600px 480px at -10% 90%, rgba(15, 109, 55, .3), transparent 60%),
    var(--dark);
  color: #fff;
  overflow: hidden;
}
.app__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.app__lead { font-size: 16px; color: rgba(255,255,255,.75); margin-bottom: 26px; }
.app__points { list-style: none; display: grid; gap: 13px; margin-bottom: 34px; }
.app__points li {
  font-size: 14.5px;
  color: rgba(255,255,255,.72);
  padding-left: 30px;
  position: relative;
}
.app__points li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(155, 201, 58, .18);
  border: 1.5px solid var(--brand-100);
}
.app__points li::after {
  content: "";
  position: absolute; left: 5.5px; top: 11.5px;
  width: 7px; height: 4.5px;
  border-left: 2px solid var(--brand-100);
  border-bottom: 2px solid var(--brand-100);
  transform: rotate(-45deg);
}
.app__points strong { color: #fff; }
.app__note { margin-top: 16px; font-size: 12.5px; color: rgba(255,255,255,.5); }

/* Try-it QR card (dark app section) */
.app__try {
  display: flex; align-items: center; gap: 22px;
  background: #fff; border-radius: 14px; padding: 18px 22px;
  max-width: 540px; margin-bottom: 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}
.app__try img {
  width: 128px; height: 128px; flex: 0 0 auto; display: block; border-radius: 8px;
}
.app__try-title {
  font-size: 13.5px; font-weight: 700; color: var(--ink);
  letter-spacing: .02em; margin-bottom: 10px;
}
.app__try-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; line-height: 1.6; color: var(--ink-2);
}
.app__try-row + .app__try-row { margin-top: 7px; }
.app__try-row i {
  color: var(--brand-500); font-size: 13px;
  width: 16px; text-align: center; margin-top: 4px; flex: 0 0 auto;
}
.app__try-row strong { color: var(--ink); }
@media (max-width: 560px) {
  .app__try { flex-direction: column; align-items: center; text-align: left; gap: 14px; }
  .app__try img { width: 148px; height: 148px; }
}

.app__visual {
  position: relative;
  display: flex; justify-content: center; align-items: flex-start;
  min-height: 560px;
}
.phone {
  width: 250px;
  border-radius: 38px;
  border: 6px solid #1c1f26;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  background: #000;
}
.phone img { width: 100%; height: auto; }
.phone--front { position: relative; z-index: 2; align-self: flex-start; margin-top: 40px; margin-left: -110px; }
.phone--back { position: relative; z-index: 1; align-self: flex-start; transform: rotate(-5deg) translateX(30px); opacity: .9; }
@media (max-width: 960px) {
  .app__inner { grid-template-columns: 1fr; }
  .app__visual { min-height: auto; margin-top: 10px; }
  .phone { width: 210px; }
}

/* ---------- usecases ---------- */
.usecases { background: var(--paper); }
.usecases__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.usecase {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px;
  background: #fff;
  display: grid;
  grid-template-columns: 62px 1fr;
  grid-template-rows: auto auto;
  grid-template-areas: "illust title" "illust text";
  column-gap: 14px;
  align-items: center;
}
.usecase__illust {
  grid-area: illust;
  width: 62px; height: 62px;
  align-self: center;
}
.usecase__illust svg { width: 100%; height: 100%; display: block; }
.usecase h3 { grid-area: title; font-size: 15.5px; font-weight: 800; margin-bottom: 5px; color: var(--brand-700); align-self: end; }
.usecase p { grid-area: text; font-size: 13.5px; color: var(--muted); align-self: start; }
@media (max-width: 960px) { .usecases__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .usecases__grid { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */
.pricing { background: var(--paper-2); }
.pricing__cards {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px;
}
.pricing__card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex; flex-direction: column;
}
.pricing__card--main {
  border: 2px solid var(--brand-500);
  box-shadow: 0 18px 50px rgba(60, 167, 55, .16);
}
.pricing__flag {
  position: absolute; top: -13px; left: 30px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .05em;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  border-radius: 999px;
  padding: 4px 14px;
}
.pricing__card h3 { font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.pricing__price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.pricing__amount { font-size: 42px; font-weight: 900; letter-spacing: -.01em; }
.pricing__per { font-size: 13px; color: var(--muted); font-weight: 600; }
.pricing__sub { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.pricing__list { list-style: none; display: grid; gap: 10px; margin-bottom: 28px; }
.pricing__list li {
  font-size: 14px; color: var(--ink-2);
  padding-left: 26px; position: relative;
}
.pricing__list li::before {
  content: "✓";
  position: absolute; left: 2px;
  color: var(--brand-600); font-weight: 800;
}
.pricing__card .btn { margin-top: auto; }
.pricing__note {
  margin-top: 18px;
  font-size: 12px; line-height: 1.8;
  color: var(--soft);
  background: var(--paper-2);
  border-radius: 10px;
  padding: 12px 14px;
}
@media (max-width: 820px) { .pricing__cards { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq { background: var(--paper); }
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  font-size: 15.5px; font-weight: 700;
  padding: 20px 44px 20px 4px;
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px; font-weight: 500;
  color: var(--brand-600);
  transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p {
  font-size: 14.5px; color: var(--muted);
  padding: 0 4px 22px;
  max-width: 720px;
}

/* ---------- cta ---------- */
.cta {
  background:
    radial-gradient(700px 400px at 50% -20%, rgba(122, 189, 53, .25), transparent 65%),
    var(--dark);
  color: #fff;
  text-align: center;
}
.cta__inner h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; margin-bottom: 14px; }
.cta__inner > p { color: rgba(255,255,255,.7); margin-bottom: 36px; font-size: 16px; }

/* ---------- footer ---------- */
.footer { background: var(--dark); border-top: 1px solid rgba(255,255,255,.08); padding: 34px 0; }
.footer__inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer__logo { height: 26px; width: auto; filter: brightness(0) invert(1); opacity: .85; }
.footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__nav a { font-size: 13px; color: rgba(255,255,255,.6); }
.footer__nav a:hover { color: #fff; }
.footer__copy { margin-left: auto; font-size: 12.5px; color: rgba(255,255,255,.4); }
.footer__legal { margin-top: 18px; font-size: 11px; color: rgba(255,255,255,.35); }
@media (max-width: 640px) {
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer__nav { flex-direction: column; gap: 12px; }
  .footer__copy { margin-left: 0; }
}

/* SP-only line break (e.g. CTA heading). Hidden on wider screens. */
.sp-br { display: none; }
@media (max-width: 640px) {
  .sp-br { display: inline; }
}

/* ============================================================
   Blog (list / single)
   ============================================================ */
/* Tag-qualified so these DON'T also match the <body>, which WordPress
   body_class() tags with "single"/"blog" on those views (that accidental
   match added 72px/96px padding to the body → white gap below the footer). */
section.blog, article.single { padding: 72px 0 96px; background: var(--paper); }
.blog .section__title, .single__title { color: var(--ink); }

/* list */
.post-list { display: grid; gap: 18px; margin-top: 8px; }
.post-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(10,22,41,.08); }
.post-card__link { display: grid; grid-template-columns: 240px 1fr; }
.post-card__thumb { background: var(--paper-2); }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 22px 24px; }
.post-card__meta { font-size: 12px; color: var(--soft); margin-bottom: 6px; }
.post-card__title { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 8px; line-height: 1.5; }
.post-card__excerpt { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.post-card__more { font-size: 13px; font-weight: 700; color: var(--brand-600); }
.post-card:not(:has(.post-card__thumb)) .post-card__link { grid-template-columns: 1fr; }
@media (max-width: 640px) {
  .post-card__link { grid-template-columns: 1fr; }
  .post-card__thumb { aspect-ratio: 16/9; }
}

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 9px;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.pagination .page-numbers.current { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--brand-500); color: var(--brand-600); }
.post-empty { color: var(--muted); padding: 40px 0; }

/* single */
.single__head { margin-bottom: 22px; }
.single__meta { font-size: 13px; color: var(--soft); margin-bottom: 12px; }
.single__meta a { color: var(--brand-600); font-weight: 600; }
.single__title { font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; line-height: 1.5; }
.single__thumb { margin: 8px 0 28px; border-radius: 14px; overflow: hidden; }
.single__thumb img { width: 100%; height: auto; }
.single__body { font-size: 16px; line-height: 1.95; color: var(--ink-2); }
.single__body h2 { font-size: 22px; font-weight: 800; color: var(--ink); margin: 40px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--brand-50, #f3faeb); }
.single__body h3 { font-size: 18px; font-weight: 800; color: var(--ink); margin: 28px 0 10px; }
.single__body p { margin: 0 0 18px; }
.single__body ul, .single__body ol { margin: 0 0 18px; padding-left: 1.4em; }
.single__body li { margin-bottom: 8px; }
.single__body a { color: var(--brand-600); text-decoration: underline; }
.single__body strong { color: var(--ink); }
.single__body blockquote {
  margin: 20px 0; padding: 14px 20px;
  border-left: 4px solid var(--brand-500); background: var(--paper-2);
  color: var(--muted); border-radius: 0 8px 8px 0;
}
.single__body img { border-radius: 10px; margin: 10px 0; }
.single__body table {
  width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14.5px;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.single__body th, .single__body td {
  text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.single__body th {
  background: var(--paper-2); color: var(--ink); font-weight: 700;
  white-space: nowrap; width: 1%;
}
.single__body tr:last-child th, .single__body tr:last-child td { border-bottom: 0; }
.single__body table a { word-break: break-all; }
.single__foot { margin-top: 52px; }

/* rich end-of-article CTA card — introduces Pivot QR to cold readers */
.postcta {
  background:
    radial-gradient(620px 340px at 50% -30%, rgba(122, 189, 53, .28), transparent 62%),
    var(--dark);
  color: #fff;
  border-radius: 20px;
  padding: 44px 40px 40px;
  text-align: center;
}
.postcta__logo { height: 30px; width: auto; margin: 0 auto 22px; filter: brightness(0) invert(1); }
.postcta__title { font-size: clamp(22px, 3vw, 30px); font-weight: 900; line-height: 1.5; margin: 0 0 16px; color: #fff; border: 0; padding: 0; }
.postcta__lead { max-width: 620px; margin: 0 auto 26px; font-size: 15px; line-height: 1.9; color: rgba(255,255,255,.72); }
.postcta__points {
  list-style: none; margin: 0 auto 28px; padding: 0;
  display: inline-flex; flex-direction: column; gap: 12px;
  text-align: left;
}
.postcta__points li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: rgba(255,255,255,.92); margin: 0; }
.postcta__points i { color: var(--brand-400, #a7d474); font-size: 18px; width: 22px; text-align: center; flex-shrink: 0; }
.postcta__price { font-size: 15px; color: rgba(255,255,255,.7); margin: 0 0 26px; }
.postcta__amount { font-size: 30px; font-weight: 900; color: #fff; margin-right: 4px; }
.postcta__note { color: rgba(255,255,255,.5); font-size: 13px; }
.postcta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.single__back { display: inline-block; margin-top: 28px; font-size: 14px; font-weight: 600; color: var(--brand-600); }
.single__back:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .postcta { padding: 34px 22px 32px; border-radius: 16px; }
  .postcta__title { font-size: 20px; }
  .postcta__lead { font-size: 14px; }
  .postcta__points li { font-size: 14px; }
  .postcta__amount { font-size: 26px; }
  .postcta__note { display: block; margin-top: 4px; }
  .postcta__actions { flex-direction: column; }
  .postcta__actions .btn { width: 100%; }
}

/* ---------- cases (social proof) ---------- */
.cases { background: var(--paper-2); }
.cases__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 24px; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.case__tag {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  font-size: 12px; font-weight: 700; color: var(--brand-700);
  background: var(--brand-50, #f3faeb); border-radius: 999px; padding: 5px 12px;
}
.case blockquote {
  margin: 0; font-size: 15px; line-height: 1.9; color: var(--ink-2); font-weight: 600;
}
.case figcaption { font-size: 12.5px; color: var(--soft); margin-top: auto; }
.cases__note { margin-top: 24px; font-size: 12px; color: var(--soft); }
.cases__note a { color: var(--brand-600); }
@media (max-width: 960px) { .cases__grid { grid-template-columns: 1fr; } }

/* ---------- blog teaser (front page) ---------- */
.blogteaser { background: var(--paper); }
.blogteaser__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 34px; }
.blogteaser__head > div { flex-shrink: 0; }
.blogteaser__head .section__title { margin-bottom: 0; white-space: nowrap; }
@media (max-width: 560px) {
  .blogteaser__head { flex-direction: column; align-items: flex-start; gap: 10px; }
}
.blogteaser__all { font-size: 14px; font-weight: 700; color: var(--brand-600); white-space: nowrap; }
.blogteaser__all:hover { color: var(--brand-700); }
.blogteaser__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blogteaser__card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.blogteaser__card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(10,22,41,.08); }
.blogteaser__thumb { aspect-ratio: 16/9; background: var(--paper-2); }
.blogteaser__thumb img { width: 100%; height: 100%; object-fit: cover; }
.blogteaser__body { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blogteaser__meta { font-size: 12px; color: var(--soft); }
.blogteaser__title { font-size: 16px; font-weight: 800; line-height: 1.6; color: var(--ink); }
.blogteaser__more { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--brand-600); }
@media (max-width: 900px) { .blogteaser__grid { grid-template-columns: 1fr; } }

/* Click-to-zoom lightbox (a[data-lightbox]) */
a[data-lightbox] { cursor: zoom-in; display: block; }
.lb-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10, 22, 41, .88);
  display: flex; align-items: center; justify-content: center;
  padding: 28px; cursor: zoom-out;
  opacity: 0; transition: opacity .18s ease;
}
.lb-overlay.is-open { opacity: 1; }
.lb-overlay img {
  max-width: 100%; max-height: 100%;
  border-radius: 10px; box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
}
