/* ============================================================
   ツグレット サイト共通スタイル
   ============================================================ */

:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-light: #eff6ff;
  --color-accent: #f97316;
  --color-accent-dark: #c2410c;

  --color-text: #111827;
  --color-text-muted: #4b5563;
  --color-text-subtle: #6b7280;

  --color-bg: #ffffff;
  --color-bg-muted: #f9fafb;
  --color-bg-inverse: #0f172a;

  --color-border: #e5e7eb;

  --font-sans:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Hiragino Kaku Gothic ProN',
    'Noto Sans JP', 'Yu Gothic', Meiryo, sans-serif;

  --container-width: 1080px;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --shadow-soft: 0 2px 12px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 4px 20px rgba(15, 23, 42, 0.08);
}

/* -------------------- Reset -------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  padding-left: 1.2em;
}

h1,
h2,
h3,
h4 {
  line-height: 1.4;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7em 1.4em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-outline {
  background: var(--color-bg);
  color: var(--color-primary-dark);
  border: 1.5px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary-dark);
  color: var(--color-primary-dark);
}

.btn-lg {
  padding: 0.9em 1.8em;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* -------------------- Header -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.logo:hover {
  text-decoration: none;
  color: var(--color-primary);
}

.logo-mark {
  display: block;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-text);
  transition: transform 0.15s ease;
}

/* -------------------- Hero -------------------- */
.hero {
  padding: 72px 0;
  background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-bg) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  text-align: left;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  margin: 0 0 0.5em;
}

.hero p.lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 0 2em;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 1.2em;
  font-size: 0.85rem;
  color: var(--color-text-subtle);
}

/* Hero product mockup (placeholder for a real product screenshot) */
.mockup-window {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.mockup-topbar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: var(--color-bg-muted);
  border-bottom: 1px solid var(--color-border);
}

.mockup-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
}

.mockup-body {
  padding: 24px;
}

.mockup-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.mockup-kpi {
  background: var(--color-bg-muted);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mockup-kpi-label {
  font-size: 0.7rem;
  color: var(--color-text-subtle);
}

.mockup-kpi-value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-text);
}

.mockup-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 120px;
  padding: 12px;
  background: var(--color-bg-muted);
  border-radius: var(--radius-md);
}

.mockup-bar {
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.mockup-bar:nth-child(even) {
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
}

/* -------------------- Sections -------------------- */
section {
  padding: 72px 0;
}

.section-alt {
  background: var(--color-bg-muted);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.8em;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}

.section-header p {
  color: var(--color-text-muted);
  margin: 0;
}

/* -------------------- Problem cards -------------------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.problem-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}

.problem-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.problem-icon svg {
  width: 24px;
  height: 24px;
}

.problem-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.problem-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* -------------------- Feature list -------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-grid > .feature-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.feature-grid > .feature-card:last-child:nth-child(odd) p {
  max-width: 640px;
}

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card .badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25em 0.8em;
  border-radius: 999px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  margin-bottom: 0.8em;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.feature-card p {
  color: var(--color-text-muted);
  margin: 0;
}

.feature-card ul {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0.6em 0 0;
  padding-left: 1.1em;
}

/* -------------------- Local-first banner -------------------- */
.local-first {
  background: var(--color-bg-inverse);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.local-first-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-accent);
}

.local-first-icon svg {
  width: 22px;
  height: 22px;
}

.local-first h2 {
  font-size: 1.6rem;
  font-weight: 800;
}

.local-first p {
  color: #cbd5e1;
  margin: 0 0 1em;
}

.local-first ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.local-first ul li {
  padding-left: 1.6em;
  position: relative;
  color: #e2e8f0;
  font-size: 0.95rem;
}

.local-first ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* -------------------- Pricing -------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.price-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.price-card.is-featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card);
  position: relative;
}

.price-card.is-featured::before {
  content: 'おすすめ';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25em 1em;
  border-radius: 999px;
}

.price-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4em;
}

.price-amount {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.2em;
}

.price-amount span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-subtle);
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 1.2em 0;
  flex: 1;
  display: grid;
  gap: 10px;
}

.price-card ul li {
  padding-left: 1.5em;
  position: relative;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.price-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.price-card ul li.is-disabled {
  color: var(--color-text-subtle);
  text-decoration: line-through;
}

.price-card ul li.is-disabled::before {
  content: '–';
  color: var(--color-text-subtle);
}

.pricing-note {
  text-align: center;
  margin-top: 28px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* -------------------- FAQ -------------------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 4px 20px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 16px;
  font-size: 1.3rem;
  color: var(--color-text-subtle);
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  color: var(--color-text-muted);
  padding-bottom: 16px;
  margin: 0;
}

/* -------------------- CTA banner -------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
}

.cta-banner h2 {
  font-size: 1.6rem;
  font-weight: 800;
}

.cta-banner p {
  color: #dbeafe;
  margin-bottom: 1.6em;
}

.cta-banner .btn-outline {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}

/* -------------------- Footer -------------------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-muted);
  padding: 48px 0 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 24px;
}

.footer-tagline {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  max-width: 320px;
  margin: 0.4em 0 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.footer-nav a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--color-primary);
}

.footer-copyright {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-text-subtle);
  text-align: center;
}

/* -------------------- Simple page header (help / legal) -------------------- */
.page-hero {
  padding: 56px 0 40px;
  background: var(--color-bg-muted);
  border-bottom: 1px solid var(--color-border);
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 0.3em;
}

.page-hero p {
  color: var(--color-text-muted);
  margin: 0;
  max-width: 640px;
}

.page-content {
  padding: 48px 0 88px;
}

.page-content.narrow .container {
  max-width: 760px;
}

/* Table of contents (help page) */
.toc {
  background: var(--color-bg-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 48px;
}

.toc h2 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-subtle);
  margin-bottom: 0.8em;
}

.toc ol {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 6px;
}

/* Help center index */
.help-index-intro {
  color: var(--color-text-muted);
  margin-bottom: 2.5em;
  max-width: 640px;
}

.help-category {
  margin-bottom: 2.5em;
}

.help-category:last-child {
  margin-bottom: 0;
}

.help-category-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-subtle);
  margin-bottom: 1em;
}

.help-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.help-card {
  display: block;
  position: relative;
  padding: 20px 40px 20px 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.help-card::after {
  content: '→';
  position: absolute;
  top: 22px;
  right: 20px;
  color: var(--color-primary);
  font-weight: 700;
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

.help-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
  text-decoration: none;
}

.help-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.help-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--color-text);
}

.help-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* Help article pages */
.help-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-subtle);
  text-decoration: none;
  margin-bottom: 1.2em;
}

.help-breadcrumb:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.help-article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 3em;
}

.help-article-nav a {
  flex: 1;
  max-width: 48%;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 600;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.help-article-nav a:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card);
  text-decoration: none;
}

.help-article-nav .nav-next {
  text-align: right;
  margin-left: auto;
}

.help-article-nav .nav-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-subtle);
  margin-bottom: 4px;
}

/* Help sections */
.help-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--color-border);
}

.help-section:first-of-type {
  padding-top: 0;
}

.help-section:last-of-type {
  border-bottom: none;
}

.help-section h2 {
  font-size: 1.3rem;
  font-weight: 800;
  scroll-margin-top: 90px;
}

.help-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 1.2em;
}

.help-section p,
.help-section li {
  color: var(--color-text-muted);
}

.note-box {
  background: var(--color-primary-light);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 0.92rem;
  color: var(--color-text);
  margin: 1em 0;
}

/* Legal pages (terms / privacy / tokushoho) */
.legal-section {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.legal-section:last-child {
  border-bottom: none;
}

.legal-section h2 {
  font-size: 1.05rem;
  font-weight: 700;
}

.legal-section p,
.legal-section li {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.legal-updated {
  color: var(--color-text-subtle);
  font-size: 0.85rem;
  margin-bottom: 2em;
}

.legal-placeholder {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.88rem;
  margin-bottom: 2em;
}

.definition-list {
  display: grid;
  gap: 0;
}

.definition-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.definition-row:last-child {
  border-bottom: none;
}

.definition-row dt {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.definition-row dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text);
}

.pending {
  color: var(--color-text-subtle);
  font-style: italic;
}

.screenshot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 180px;
  margin: 1.4em 0;
  padding: 24px;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-muted);
  text-align: center;
}

.screenshot-placeholder-icon {
  font-size: 2rem;
  line-height: 1;
  opacity: 0.5;
}

.screenshot-placeholder-label {
  font-size: 0.85rem;
  color: var(--color-text-subtle);
}

/* -------------------- Contact form -------------------- */
.contact-form {
  display: grid;
  gap: 20px;
  margin-top: 1.5em;
  max-width: 560px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-field .required {
  color: var(--color-accent-dark);
  font-weight: 400;
  font-size: 0.8rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  padding: 0.7em 0.9em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form .btn {
  justify-self: start;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.9rem;
  margin: 0;
}

.form-status.is-success {
  display: block;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.form-status.is-error {
  display: block;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* -------------------- Plan badges -------------------- */
.plan-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  padding: 0.2em 0.75em;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.plan-badge-free {
  background: var(--color-bg-muted);
  color: var(--color-text-subtle);
  border: 1px solid var(--color-border);
}

.plan-badge-standard {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.plan-badge-premium {
  background: #fff7ed;
  color: var(--color-accent-dark);
}

/* -------------------- Data tables (help page) -------------------- */
.data-table-wrap {
  overflow-x: auto;
  margin: 1.2em 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px 0;
  font-size: 0.8rem;
  color: var(--color-text-subtle);
}

.data-table th,
.data-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.data-table thead th {
  background: var(--color-bg-muted);
  font-weight: 700;
  color: var(--color-text-subtle);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table td code,
.data-table th code {
  font-size: 0.85em;
}

.data-table .req {
  color: var(--color-accent-dark);
  font-weight: 700;
  font-size: 0.8rem;
  white-space: nowrap;
}

.data-table .opt {
  color: var(--color-text-subtle);
  font-size: 0.8rem;
  white-space: nowrap;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .problem-grid,
  .feature-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .local-first {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .cta-banner {
    padding: 40px 24px;
  }
}

@media (max-width: 720px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 20px 16px;
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 0;
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }

  .header-actions .btn-primary {
    padding: 0.6em 1em;
    font-size: 0.85rem;
  }

  .definition-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* -------------------- Dark mode -------------------- */
@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: #3b82f6;
    --color-primary-dark: #7cb0fb;
    --color-primary-light: rgba(59, 130, 246, 0.16);
    --color-accent: #fb923c;
    --color-accent-dark: #fdba74;

    --color-text: #f1f5f9;
    --color-text-muted: #cbd5e1;
    --color-text-subtle: #94a3b8;

    --color-bg: #0f172a;
    --color-bg-muted: #1a2436;
    --color-bg-inverse: #020617;

    --color-border: #30415c;

    --shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.35);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.45);
  }

  .site-header {
    background: rgba(15, 23, 42, 0.85);
  }

  .note-box {
    border-color: rgba(59, 130, 246, 0.4);
  }

  .legal-placeholder {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.35);
    color: #fcd34d;
  }

  .form-status.is-success {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
  }

  .form-status.is-error {
    background: rgba(248, 113, 113, 0.14);
    border-color: rgba(248, 113, 113, 0.4);
    color: #fca5a5;
  }

  .plan-badge-premium {
    background: rgba(251, 146, 60, 0.16);
  }

  img {
    opacity: 0.92;
  }
}
