/* ============================================================================
 * restoapi.org — modern landing + dashboard styles
 * No CSS framework, no JS. Pure CSS3 with custom properties.
 * ========================================================================== */

:root {
  /* Tokyo-style palette: deep indigo + crimson accent + sumi-e neutrals.
     Inspired by Tokyo street design — clean, technical, with sharp red accents. */
  --bg:           #fafafa;
  --bg-alt:       #f5f5f7;
  --bg-dark:      #0a0a0f;       /* near-black for hero/cta sections */
  --fg:           #0f0f14;
  --fg-muted:     #6b6b75;
  --fg-soft:      #9a9aa3;
  --border:       #e5e5ea;
  --border-soft:  #f0f0f3;
  --hairline:     #d4d4d8;
  --primary:      #4338ca;       /* deep indigo (Tokyo blue) */
  --primary-hover:#3730a3;
  --primary-soft: #e0e7ff;
  --accent:       #dc2626;       /* crimson red (hinomaru) */
  --accent-soft:  #fee2e2;
  --success:      #059669;
  --success-soft: #d1fae5;
  --warning:      #d97706;
  --warning-soft: #fed7aa;
  --danger:       #dc2626;
  --danger-soft:  #fee2e2;
  --code-bg:      #f5f5f7;
  --code-fg:      #1e1b4b;

  /* Layout */
  --maxw:         1200px;
  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;
  --shadow-sm:    0 1px 2px rgba(0,0,0,.04);
  --shadow:       0 4px 12px rgba(0,0,0,.06);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

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

h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.02em; margin-top: 0; }
h1 { font-size: 32px; font-weight: 700; }
h2 { font-size: 24px; font-weight: 600; }
h3 { font-size: 18px; font-weight: 600; }

/* ── Topbar ─────────────────────────────────────────────────────────────── */
.topbar {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky; top: 0; z-index: 100;
}
.topbar .container { display: flex; align-items: center; gap: 32px; }
.logo {
  font-weight: 700; font-size: 20px; color: var(--fg);
  letter-spacing: -.02em;
}
.logo span { color: var(--primary); }
.logo .pill {
  display: inline-block; margin-left: 8px; padding: 2px 8px;
  background: var(--primary-soft); color: var(--primary);
  border-radius: 999px; font-size: 11px; font-weight: 600;
  vertical-align: 3px; letter-spacing: 0;
}

nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
nav a {
  color: var(--fg); font-size: 14px; font-weight: 500;
  transition: color .15s;
}
nav a:hover { color: var(--primary); }
.user-chip {
  font-size: 13px; color: var(--fg-muted); padding: 5px 12px;
  background: var(--bg-alt); border-radius: 999px;
  font-family: -apple-system, system-ui, sans-serif;
}
.user-chip b { color: var(--fg); font-weight: 600; }
.admin-link {
  color: var(--warning) !important; font-weight: 600 !important;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn-primary, .btn-secondary, .btn-ghost, button.primary, button {
  display: inline-block; padding: 11px 22px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px; cursor: pointer;
  text-decoration: none; border: 1px solid transparent;
  transition: all .15s ease;
  font-family: inherit; line-height: 1;
}
.btn-primary, button.primary, button[type=submit].primary {
  background: var(--primary); color: white;
}
.btn-primary:hover, button.primary:hover {
  background: var(--primary-hover); color: white; transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,.25);
}
.btn-secondary {
  background: white; color: var(--fg); border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--fg-muted); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--fg-muted); border-color: transparent;
}
.btn-ghost:hover { color: var(--fg); }
.btn-danger {
  background: var(--danger); color: white;
  padding: 6px 12px; font-size: 12px;
}
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* ── Hero — clean gradient (no photo backdrop) ─────────────────────────── */
.hero {
  padding: 120px 0 100px;
  background:
    radial-gradient(ellipse at top, rgba(67,56,202,.07), transparent 65%),
    radial-gradient(ellipse at bottom right, rgba(220,38,38,.05), transparent 55%),
    var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(transparent 95%, rgba(67,56,202,.05) 95%),
    linear-gradient(90deg, transparent 95%, rgba(67,56,202,.05) 95%);
  background-size: 40px 40px;
  pointer-events: none; opacity: .5;
}
.hero h1 {
  background: linear-gradient(180deg, var(--fg) 0%, #2a2a35 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 .accent {
  color: var(--accent); -webkit-text-fill-color: var(--accent);
}
.hero .lead {
  color: var(--fg-muted);
}
.hero > .container { position: relative; z-index: 1; }
.hero .badge-row {
  margin-bottom: 24px;
}
.hero .badge {
  display: inline-block; padding: 6px 14px;
  background: white; border: 1px solid var(--border);
  border-radius: 999px; font-size: 13px; color: var(--fg-muted);
  box-shadow: var(--shadow-sm);
}
.hero .badge .dot {
  display: inline-block; width: 6px; height: 6px;
  background: var(--success); border-radius: 50%;
  margin-right: 8px; vertical-align: 2px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}
.hero h1 {
  font-size: 56px; font-weight: 800; margin: 0 0 20px;
  letter-spacing: -.03em;
  background: linear-gradient(135deg, var(--fg) 0%, #3b3b3f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 .accent { color: var(--primary); -webkit-text-fill-color: var(--primary); }
.hero .lead {
  font-size: 20px; color: var(--fg-muted);
  max-width: 720px; margin: 0 auto 40px;
  line-height: 1.5;
}
.cta-row {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.cta-meta {
  margin-top: 16px; color: var(--fg-muted); font-size: 13px;
}
.cta-meta b { color: var(--fg); }

/* ── Sections ───────────────────────────────────────────────────────────── */
section { padding: 64px 0; }
section.tight { padding: 40px 0; }
section h2.section-title {
  text-align: center; font-size: 36px; font-weight: 700;
  margin-bottom: 12px; letter-spacing: -.02em;
}
section .section-subtitle {
  text-align: center; color: var(--fg-muted); font-size: 17px;
  max-width: 600px; margin: 0 auto 48px;
}

/* ── Features grid ──────────────────────────────────────────────────────── */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature {
  background: white; padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all .2s;
}
.feature:hover {
  border-color: var(--primary-soft);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.feature .icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.feature h3 { margin: 0 0 8px; }
.feature p { color: var(--fg-muted); font-size: 14px; margin: 0; }
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .hero .lead { font-size: 17px; }
}

/* ── Code blocks ────────────────────────────────────────────────────────── */
code {
  font-family: ui-monospace, "SF Mono", Menlo, "Cascadia Code", Consolas, monospace;
  font-size: 13px;
  background: var(--code-bg); color: var(--code-fg);
  padding: 2px 6px; border-radius: 4px;
}
pre.code, .code-block {
  background: #0f172a; color: #e2e8f0;
  padding: 20px 24px; border-radius: var(--radius);
  overflow-x: auto; font-size: 13px; line-height: 1.6;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  border: 1px solid #1e293b;
  margin: 16px 0;
}
pre.code .c { color: #94a3b8; }   /* comment */
pre.code .s { color: #86efac; }   /* string */
pre.code .k { color: #f0abfc; }   /* keyword */
pre.code .n { color: #fef08a; }   /* number */
pre.code .p { color: #fb923c; }   /* path / URL */

.code-tabs {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin: 16px 0;
}
.code-tabs > .tab-headers {
  display: flex; gap: 0; background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.code-tabs > .tab-headers > * {
  padding: 10px 18px; font-size: 13px; font-weight: 600;
  color: var(--fg-muted); cursor: pointer;
}
.code-tabs > .tab-headers > .active {
  background: white; color: var(--fg);
  border-bottom: 2px solid var(--primary); margin-bottom: -1px;
}
.code-tabs > .tab-content { padding: 0; }
.code-tabs > .tab-content pre.code { margin: 0; border-radius: 0; }

/* ── Pricing card-grid ──────────────────────────────────────────────────── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin: 40px 0;
}
.pricing-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px;
  position: relative;
  transition: all .2s;
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(37,99,235,.12);
  transform: scale(1.02);
}
.pricing-card.featured::before {
  content: "Most popular";
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: white;
  padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
}
.pricing-card h3 {
  font-size: 16px; color: var(--fg-muted); margin: 0 0 8px;
  text-transform: uppercase; letter-spacing: .04em;
}
.pricing-card .price {
  font-size: 48px; font-weight: 800; margin: 8px 0;
  letter-spacing: -.03em;
}
.pricing-card .price .currency {
  font-size: 24px; vertical-align: 24px; color: var(--fg-muted);
}
.pricing-card .price .per { font-size: 14px; color: var(--fg-muted); font-weight: 500; }
.pricing-card .est {
  color: var(--fg-muted); font-size: 13px; margin-bottom: 24px;
}
.pricing-card ul {
  list-style: none; padding: 0; margin: 0 0 28px;
}
.pricing-card ul li {
  padding: 8px 0; padding-left: 26px; position: relative;
  font-size: 14px; color: var(--fg);
}
.pricing-card ul li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--success); font-weight: 700;
}
.pricing-card ul li.no::before { content: "—"; color: var(--fg-soft); }
.pricing-card .cta {
  display: block; text-align: center; padding: 12px;
  background: var(--bg-alt); color: var(--fg);
  border-radius: var(--radius-sm); font-weight: 600;
  transition: all .15s;
}
.pricing-card.featured .cta {
  background: var(--primary); color: white;
}
.pricing-card .cta:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
}

/* ── Comparison / Platforms table ───────────────────────────────────────── */
.cmp-table {
  width: 100%; border-collapse: collapse; background: white;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  font-size: 14px;
}
.cmp-table th, .cmp-table td {
  padding: 14px 18px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.cmp-table th {
  background: var(--bg-alt); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: var(--fg-muted);
}
.cmp-table td.center { text-align: center; }
.cmp-table tr:last-child td { border-bottom: none; }
.cmp-table .check { color: var(--success); font-size: 18px; }
.cmp-table .x { color: var(--fg-soft); }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px;
}
@media (max-width: 768px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-item {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
}
.faq-item h4 { margin: 0 0 8px; font-size: 16px; }
.faq-item p { color: var(--fg-muted); font-size: 14px; margin: 0; }

/* ── CTA banner ─────────────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white; padding: 64px 40px;
  border-radius: var(--radius-lg);
  text-align: center; margin: 64px 0;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.1), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.1), transparent 40%);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: white; font-size: 32px; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,.9); font-size: 17px; margin-bottom: 28px; }
.cta-banner .btn-primary {
  background: white; color: var(--primary);
}
.cta-banner .btn-primary:hover { background: var(--bg); color: var(--primary-hover); }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.form-card {
  max-width: 440px; margin: 80px auto; padding: 40px;
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.form-card h1 { margin: 0 0 8px; font-size: 28px; }
.form-card p.subtitle { color: var(--fg-muted); margin: 0 0 28px; font-size: 14px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; margin-bottom: 8px;
  font-size: 13px; font-weight: 600; color: var(--fg);
}
.form-group input[type=text], .form-group input[type=email],
.form-group input[type=number], .form-group select,
.form-group textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit;
  transition: all .15s;
}
.form-group textarea { min-height: 140px; resize: vertical; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-error {
  background: var(--danger-soft); color: var(--danger);
  padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px;
  margin-bottom: 16px;
}
.form-success {
  background: var(--success-soft); color: #14532d;
  padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px;
  margin-bottom: 16px;
}

/* ── Dashboard layout ───────────────────────────────────────────────────── */
.dash-grid {
  display: grid; grid-template-columns: 240px 1fr; gap: 36px;
  padding: 32px 24px;
  max-width: var(--maxw); margin: 0 auto;
}
.dash-sidebar { display: flex; flex-direction: column; gap: 2px; }
.dash-sidebar a {
  display: block; padding: 10px 14px; border-radius: var(--radius-sm);
  color: var(--fg); font-size: 14px; font-weight: 500;
  transition: all .12s;
}
.dash-sidebar a:hover { background: var(--bg-alt); color: var(--fg); }
.dash-sidebar a.active {
  background: var(--primary); color: white;
  box-shadow: 0 2px 8px rgba(37,99,235,.2);
}
.dash-content h1 { margin: 0 0 24px; }

.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 32px;
}
.stat {
  background: white; padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all .2s;
}
.stat:hover { box-shadow: var(--shadow); }
.stat-label {
  font-size: 11px; color: var(--fg-muted);
  text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
}
.stat-value {
  font-size: 28px; font-weight: 700; margin-top: 4px;
  letter-spacing: -.02em;
}

@media (max-width: 768px) {
  .dash-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Data tables ────────────────────────────────────────────────────────── */
.data-table {
  width: 100%; border-collapse: collapse; background: white;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); font-size: 14px;
}
.data-table th, .data-table td {
  padding: 11px 16px; text-align: left;
  border-bottom: 1px solid var(--border-soft);
}
.data-table th {
  background: var(--bg-alt); font-size: 11px;
  text-transform: uppercase; letter-spacing: .06em; color: var(--fg-muted); font-weight: 700;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-alt); }
.data-table td.mono {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
}
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.badge.queued    { background: #e0e7ff; color: #3730a3; }
.badge.running   { background: #fef3c7; color: #92400e; }
.badge.completed { background: var(--success-soft); color: #166534; }
.badge.failed    { background: var(--danger-soft); color: #991b1b; }
.badge.refund,
.badge.bonus_trial,
.badge.topup_manual,
.badge.topup_stripe { background: var(--success-soft); color: #166534; }
.badge.charge      { background: var(--danger-soft); color: #991b1b; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer {
  margin-top: 80px; padding: 48px 0 32px;
  background: white; border-top: 1px solid var(--border);
  color: var(--fg-muted); font-size: 13px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
  margin-bottom: 32px;
}
.footer-col h5 {
  font-size: 12px; text-transform: uppercase;
  letter-spacing: .06em; color: var(--fg); margin: 0 0 12px; font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--fg-muted); }
.footer-col ul li a:hover { color: var(--primary); }
.footer-brand p { margin: 8px 0; font-size: 13px; }
.footer-brand .logo { font-size: 18px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Tiny utilities ─────────────────────────────────────────────────────── */
.muted { color: var(--fg-muted); }
.tiny  { font-size: 12px; }
.center { text-align: center; }
.mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }

/* ── Anchor offset for sticky topbar ────────────────────────────────────── */
.anchor { display: block; position: relative; top: -80px; visibility: hidden; }


/* ═══════════════════════════════════════════════════════════════════════════
 * TOKYO style additions — hinomaru accents, sumi-e neutrals, mono labels
 * ═════════════════════════════════════════════════════════════════════════ */

/* Section labels — small mono uppercase labels like Japanese tech sites */
.eyebrow {
  display: inline-block; padding: 6px 14px;
  background: var(--bg-alt); border: 1px solid var(--hairline);
  border-radius: 999px; font-size: 11px; font-weight: 700;
  color: var(--fg-muted); text-transform: uppercase; letter-spacing: .12em;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  margin-bottom: 16px;
}
.eyebrow .dot {
  display: inline-block; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  margin-right: 8px; vertical-align: 2px;
}

/* Section heading — generous spacing, optional accent line */
.section-head {
  text-align: center; margin-bottom: 56px;
  position: relative;
}
.section-head::after {
  content: ""; display: block;
  width: 32px; height: 2px;
  background: var(--accent);
  margin: 16px auto 0;
}
.section-head h2 {
  font-size: 38px; font-weight: 700; letter-spacing: -.025em;
}
.section-head p.lead {
  color: var(--fg-muted); font-size: 17px;
  max-width: 640px; margin: 12px auto 0; line-height: 1.6;
}

/* Hero hinomaru accent — small red dot to the left of CTA */
.hinomaru {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; background: white;
  border: 1px solid var(--hairline); border-radius: 999px;
  font-size: 12px; font-weight: 700;
  color: var(--fg); letter-spacing: .04em;
  font-family: ui-monospace, Menlo, monospace;
}
.hinomaru .circle {
  width: 8px; height: 8px; background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(220,38,38,.15);
}

/* Hero refined */
.hero h1 {
  background: linear-gradient(180deg, var(--fg) 0%, #2a2a35 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 .accent {
  color: var(--accent); -webkit-text-fill-color: var(--accent);
}

/* Code blocks — dark Tokyo midnight */
pre.code, .code-block {
  background: #0a0a0f; color: #e8e8ed;
  border: 1px solid #1a1a23;
  position: relative;
}
pre.code::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .4;
}
pre.code.titled {
  padding-top: 36px;
}
pre.code.titled::after {
  content: attr(data-title);
  position: absolute; top: 8px; left: 24px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px; color: #6b7280;
  text-transform: uppercase; letter-spacing: .1em;
}

/* Feature card — Tokyo style mono labels */
.feature .feature-label {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10px; font-weight: 700;
  color: var(--accent); letter-spacing: .15em;
  margin-bottom: 6px;
}

/* Trust strip — "Built for X" badges row */
.trust-strip {
  padding: 32px 0;
  border-top: 1px dashed var(--hairline);
  border-bottom: 1px dashed var(--hairline);
  text-align: center;
}
.trust-strip .label {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px; color: var(--fg-muted);
  text-transform: uppercase; letter-spacing: .15em;
  margin-bottom: 16px;
}
.trust-strip .badges {
  display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
  font-size: 14px; color: var(--fg); font-weight: 600;
}

/* Data card — for sample JSON output preview */
.data-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  overflow: hidden;
  margin: 32px 0;
}
.data-card > .left, .data-card > .right {
  padding: 32px 36px;
}
.data-card > .left {
  background: var(--bg-alt); border-right: 1px solid var(--border);
}
.data-card > .right pre.code { margin: 0; }
.data-card h3 { margin-top: 0; }
.data-card ul.bullets { list-style: none; padding: 0; margin: 16px 0; }
.data-card ul.bullets li {
  padding: 6px 0 6px 22px; position: relative;
  font-size: 14px; color: var(--fg);
}
.data-card ul.bullets li::before {
  content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}
@media (max-width: 900px) {
  .data-card { grid-template-columns: 1fr; }
  .data-card > .left { border-right: none; border-bottom: 1px solid var(--border); }
}

/* Use-case cards */
.use-cases {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.use-case {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  position: relative;
}
.use-case::before {
  content: ""; position: absolute; top: 0; left: 32px; right: 32px;
  height: 2px; background: var(--accent);
}
.use-case h3 {
  margin: 16px 0 12px;
  display: flex; align-items: center; gap: 12px;
}
.use-case h3 .num {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px; border-radius: 4px;
}
.use-case p { color: var(--fg-muted); margin: 0 0 12px; }
.use-case .tags {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px;
}
.use-case .tags span {
  font-size: 11px; padding: 3px 8px;
  background: var(--bg-alt); color: var(--fg-muted);
  border-radius: 999px; font-family: ui-monospace, Menlo, monospace;
}
@media (max-width: 768px) { .use-cases { grid-template-columns: 1fr; } }

/* Stats counter row */
.metrics-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin: 48px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.metrics-row > div {
  padding: 32px 24px; text-align: center;
  border-right: 1px solid var(--border);
}
.metrics-row > div:last-child { border-right: none; }
.metrics-row .v {
  font-size: 36px; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(180deg, var(--fg) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.metrics-row .l {
  font-size: 12px; color: var(--fg-muted);
  text-transform: uppercase; letter-spacing: .1em;
  margin-top: 4px; font-family: ui-monospace, Menlo, monospace;
}
.metrics-row .v {
  transition: color .15s, transform .15s;
}
.metrics-row .v.counter-bump {
  color: var(--success);
  transform: scale(1.05);
}
.eyebrow .dot.pulse-red {
  background: var(--accent);
  animation: pulse-red 1.2s infinite;
  box-shadow: 0 0 0 0 rgba(220,38,38,.5);
}
@keyframes pulse-red {
  0%   { box-shadow: 0 0 0 0 rgba(220,38,38,.6); }
  70%  { box-shadow: 0 0 0 6px rgba(220,38,38,0); }
  100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
}
@media (max-width: 768px) {
  .metrics-row { grid-template-columns: repeat(2, 1fr); }
  .metrics-row > div { border-right: none; border-bottom: 1px solid var(--border); }
}

/* Two-column step list */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin: 48px 0;
}
.step {
  padding: 24px;
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}
.step .num {
  display: inline-block; width: 32px; height: 32px;
  background: var(--primary); color: white;
  border-radius: 50%; line-height: 32px; text-align: center;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 14px; font-weight: 700;
  margin-bottom: 12px;
}
.step h4 { margin: 0 0 8px; font-size: 15px; }
.step p { color: var(--fg-muted); font-size: 13px; margin: 0; line-height: 1.55; }
@media (max-width: 768px) { .steps { grid-template-columns: 1fr; } }

/* Comparison "vs others" — Tokyo style */
.vs-table {
  width: 100%; border-collapse: collapse;
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  font-size: 14px;
}
.vs-table th, .vs-table td {
  padding: 14px 18px; border-bottom: 1px solid var(--border-soft);
}
.vs-table th {
  background: var(--bg-alt); color: var(--fg-muted);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
}
.vs-table th.us { color: var(--accent); }
.vs-table td.us { background: rgba(220,38,38,.03); }
.vs-table td.center { text-align: center; }
.vs-table .yes { color: var(--success); font-weight: 700; }
.vs-table .no  { color: var(--fg-soft); }

/* Highlight box — for important callouts */
.highlight-box {
  background: linear-gradient(135deg, var(--primary-soft) 0%, white 100%);
  border: 1px solid var(--primary-soft);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 24px 0;
}
.highlight-box h4 { margin: 0 0 8px; color: var(--primary); }
.highlight-box p { margin: 0; }

/* Hero CTA: red accent button (hinomaru-style) */
.btn-accent {
  display: inline-block; padding: 14px 28px;
  background: var(--accent); color: white;
  border-radius: var(--radius-sm); font-weight: 600;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(220,38,38,.25);
  transition: all .15s;
}
.btn-accent:hover {
  background: #b91c1c; color: white; transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(220,38,38,.35);
}


/* ═══════════════════════════════════════════════════════════════════════════
 * Logo, Trial bar, Mobile burger, Footer extras
 * ═════════════════════════════════════════════════════════════════════════ */

/* Trial bar — sticky promo at top of page (visible to logged-out visitors) */
.trial-bar {
  background: linear-gradient(135deg, var(--accent) 0%, #b91c1c 100%);
  color: white; padding: 10px 0;
  font-size: 13px; text-align: center;
  position: relative;
}
.trial-bar .container {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  flex-wrap: wrap;
}
.trial-bar b { font-weight: 700; }
.trial-bar .trial-cta {
  display: inline-block;
  background: white; color: var(--accent);
  padding: 5px 14px; border-radius: 999px;
  font-weight: 700; font-size: 12px;
  text-decoration: none;
  transition: all .15s;
}
.trial-bar .trial-cta:hover {
  background: var(--fg); color: white; transform: translateY(-1px);
}

/* Logo refined — SVG mark + text */
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 19px; color: var(--fg);
  letter-spacing: -.02em; line-height: 1;
}
.logo-mark { flex-shrink: 0; }
.logo .logo-accent { color: var(--primary); }
.logo .logo-tld {
  color: var(--accent); font-weight: 600; font-size: 16px;
}

/* Topbar — refined mobile-ready */
.topbar { padding: 14px 0; }
.topbar .container {
  display: flex; align-items: center; gap: 24px;
}
.burger {
  display: none; background: transparent; border: 0; cursor: pointer;
  padding: 8px; color: var(--fg); margin-left: auto;
}

/* Mobile nav */
@media (max-width: 880px) {
  .burger { display: flex; align-items: center; }
  nav {
    display: none; position: fixed;
    inset: 64px 0 0 0;
    background: white; flex-direction: column;
    align-items: stretch; gap: 0;
    padding: 24px; margin: 0;
    border-top: 1px solid var(--border);
    overflow-y: auto;
    z-index: 99;
  }
  body.nav-open nav { display: flex; }
  nav a, nav .user-chip {
    padding: 14px 0; border-bottom: 1px solid var(--border-soft);
    width: 100%; text-align: left; border-radius: 0;
  }
  nav .btn-primary { margin-top: 12px; }
}

/* User chip with icon */
.user-chip {
  display: inline-flex; align-items: center; gap: 6px;
}

/* Footer — Japanese tech-site style */
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1fr 1fr;
  gap: 36px; margin-bottom: 40px;
}
.footer-col ul li a code {
  color: var(--fg-muted); padding: 1px 4px;
  font-family: ui-monospace, Menlo, monospace;
  transition: color .15s;
}
.footer-col ul li a:hover code {
  color: var(--primary); background: var(--primary-soft);
}
.footer-brand .logo { display: inline-flex; font-size: 22px; margin-bottom: 12px; }
.footer-brand p { margin: 6px 0; font-size: 13px; color: var(--fg-muted); }

.social-row {
  display: flex; gap: 12px; margin-top: 16px;
}
.social-row a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: 999px; font-size: 12px; color: var(--fg);
  text-decoration: none; transition: all .15s;
}
.social-row a:hover {
  border-color: var(--primary); color: var(--primary);
  background: var(--primary-soft);
}

.footer-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px;
}
.footer-status a { color: var(--fg-muted); text-decoration: none; }
.dot-live {
  display: inline-block; width: 8px; height: 8px;
  background: var(--success); border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(5,150,105,.15);
  animation: pulse 2s infinite;
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: span 3; }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: span 2; }
}

/* ═══════════════════════════════════════════════════════════════════════════
 * Photo strip — Tokyo / food photography
 * ═════════════════════════════════════════════════════════════════════════ */
.photo-strip { padding: 56px 0; }
.photo-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
.photo-tile {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 5;
  position: relative;
  transition: transform .25s ease;
  background: var(--bg-alt);
}
.photo-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
  filter: saturate(.95);
}
.photo-tile:hover img {
  transform: scale(1.04); filter: saturate(1.1);
}

@media (max-width: 880px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .photo-tile { aspect-ratio: 1/1; }
  .photo-tile:nth-child(5) { display: none; }   /* 4 tiles on mobile, 2x2 */
}

/* ═══════════════════════════════════════════════════════════════════════════
 * Platform tabs — CSS-only via radio inputs + sibling selector
 * ═════════════════════════════════════════════════════════════════════════ */

.platforms-tabs {
  padding: 56px 0 64px;
  background: white;
  border-top: 1px solid var(--border);
}
.platforms-tabs > .container > .label {
  text-align: center;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px; color: var(--fg-muted);
  text-transform: uppercase; letter-spacing: .15em;
  margin-bottom: 24px;
}
/* Hide the radios — out of flow but still focusable via labels.
   display:none + Chrome :checked sibling selector breaks; use position:absolute + opacity:0 */
.platforms-tabs input[type="radio"] {
  position: absolute; opacity: 0;
  pointer-events: none; width: 0; height: 0;
}

/* Tab panel — hidden by default, shown when corresponding radio is :checked */
.platforms-tabs .tab-panel {
  display: none;
  margin-top: 32px;
  padding: 32px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  animation: fadeIn .2s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

/* CSS-only tab switching — :checked → matching panel + active label */
#tab-wolt:checked     ~ .tab-panels [data-tab="wolt"],
#tab-gmaps:checked    ~ .tab-panels [data-tab="gmaps"],
#tab-ubereats:checked ~ .tab-panels [data-tab="ubereats"],
#tab-bolt:checked     ~ .tab-panels [data-tab="bolt"],
#tab-doordash:checked ~ .tab-panels [data-tab="doordash"],
#tab-yelp:checked     ~ .tab-panels [data-tab="yelp"] {
  display: block;
}
#tab-wolt:checked     ~ .platform-logos [for="tab-wolt"],
#tab-gmaps:checked    ~ .platform-logos [for="tab-gmaps"],
#tab-ubereats:checked ~ .platform-logos [for="tab-ubereats"],
#tab-bolt:checked     ~ .platform-logos [for="tab-bolt"],
#tab-doordash:checked ~ .platform-logos [for="tab-doordash"],
#tab-yelp:checked     ~ .platform-logos [for="tab-yelp"] {
  border-color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(67,56,202,.18);
}
#tab-wolt:checked     ~ .platform-logos [for="tab-wolt"]::after,
#tab-gmaps:checked    ~ .platform-logos [for="tab-gmaps"]::after,
#tab-ubereats:checked ~ .platform-logos [for="tab-ubereats"]::after,
#tab-bolt:checked     ~ .platform-logos [for="tab-bolt"]::after,
#tab-doordash:checked ~ .platform-logos [for="tab-doordash"]::after,
#tab-yelp:checked     ~ .platform-logos [for="tab-yelp"]::after {
  content: "";
  position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 16px; background: var(--primary-soft);
  border-top: 1px solid var(--primary);
  border-left: 1px solid var(--primary);
  rotate: 45deg;
  z-index: 1;
}

.platforms-tabs .platform-logos {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  position: relative;
}
.platforms-tabs .platform {
  cursor: pointer;
}

/* Panel layout — 2-column on desktop, 1 on mobile */
.platforms-tabs .panel-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px;
  align-items: center;
}
.platforms-tabs .panel-grid h3 {
  margin: 0 0 12px; font-size: 22px;
}
.platforms-tabs .panel-grid p {
  color: var(--fg-muted); line-height: 1.65; font-size: 14.5px; margin: 12px 0;
}
.platforms-tabs .panel-grid p code {
  color: var(--primary); background: white;
}
.platforms-tabs .panel-grid .btn-primary,
.platforms-tabs .panel-grid .btn-secondary {
  margin-top: 12px;
}
.platforms-tabs .panel-grid pre.code {
  margin: 0; font-size: 12px; line-height: 1.6;
}
@media (max-width: 880px) {
  .platforms-tabs .panel-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
 * Platform logos strip — Wolt, Google Maps, UberEats etc
 * ═════════════════════════════════════════════════════════════════════════ */
.platforms-strip {
  padding: 48px 0;
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.platforms-strip .label {
  text-align: center;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px; color: var(--fg-muted);
  text-transform: uppercase; letter-spacing: .15em;
  margin-bottom: 24px;
}
.platform-logos {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.platform {
  display: flex; flex-direction: column; align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 18px 14px;
  width: 132px;
  min-height: 132px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: white;
  color: var(--fg); text-decoration: none;
  font-size: 13px; font-weight: 600;
  transition: all .15s;
  position: relative;
}
.platform .logo-icon {
  height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.platform iconify-icon { color: var(--fg); }
.platform .name {
  font-size: 13px; font-weight: 600;
  text-align: center;
  line-height: 1.2;
  min-height: 32px;
  display: flex; align-items: center; justify-content: center;
}
.platform .status {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 9px; padding: 2px 6px;
  background: var(--bg-alt); color: var(--fg-muted);
  border-radius: 999px; text-transform: uppercase; letter-spacing: .05em;
}
.platform.live .status {
  background: var(--success-soft); color: #14532d;
}
.platform.live:hover {
  border-color: var(--success);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(5,150,105,.12);
}
.platform.live iconify-icon { color: var(--primary); }
.platform.soon {
  opacity: .55;
  cursor: default;
}
.platform.soon iconify-icon { color: var(--fg-muted); }
.platform.soon .status { background: var(--warning-soft); color: #92400e; }

/* Trust strip badges with iconify icons */
.trust-strip .badges span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: white;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
}
.trust-strip .badges iconify-icon { flex-shrink: 0; }

/* Long-form article styling — for SEO-heavy platform pages */
.article {
  max-width: 820px; margin: 0 auto;
}
.article h2 {
  margin-top: 56px; margin-bottom: 16px;
  font-size: 28px; padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}
.article h2:first-of-type { border-top: none; padding-top: 0; }
.article h3 { margin-top: 32px; margin-bottom: 12px; font-size: 20px; }
.article p { margin: 14px 0; font-size: 15px; line-height: 1.7; }
.article ul, .article ol { padding-left: 24px; margin: 14px 0; }
.article ul li, .article ol li { margin: 6px 0; line-height: 1.7; }
.article .lead-large {
  font-size: 18px; color: var(--fg-muted); line-height: 1.6;
  margin: 16px 0 32px;
}
.article blockquote {
  margin: 24px 0; padding: 20px 24px;
  background: var(--bg-alt); border-left: 4px solid var(--primary);
  border-radius: 6px; font-style: normal;
}
.article blockquote p { margin: 0; }

/* Platform hero — for /wolt /googlemaps landing pages */
.platform-hero {
  padding: 80px 0 56px;
  background:
    radial-gradient(ellipse at top right, rgba(67,56,202,.06), transparent 60%);
  text-align: center;
}
.platform-hero iconify-icon { color: var(--primary); }
.platform-hero h1 {
  margin: 16px 0 12px;
  font-size: 44px;
}
.platform-hero .lead-large {
  max-width: 640px; margin: 0 auto 28px;
  font-size: 18px; color: var(--fg-muted);
}

/* Country chips for "we tested in 23 countries" */
.countries {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin: 20px 0;
}
.countries span {
  font-size: 12px; padding: 4px 10px;
  background: var(--bg-alt); color: var(--fg);
  border-radius: 4px;
  font-family: ui-monospace, Menlo, monospace;
  border: 1px solid var(--border);
}
.countries span.verified { border-color: var(--success); color: var(--success); }

/* ── Admin catalog (sitemap browser) ─────────────────────────────────── */
.dash-sidebar-sep { font-size:11px; text-transform:uppercase; letter-spacing:.04em;
  color:var(--muted); margin:14px 0 4px; padding-top:10px; border-top:1px solid var(--border); }
.catalog-filters { background:var(--surface,#fff); border:1px solid var(--border);
  border-radius:10px; padding:14px; margin:14px 0; display:flex; flex-direction:column; gap:10px; }
.catalog-filters .cf-row { display:flex; gap:12px; flex-wrap:wrap; }
.catalog-filters label { display:flex; flex-direction:column; gap:4px; font-size:12px;
  color:var(--muted); flex:1; min-width:160px; }
.catalog-filters select, .catalog-filters input[type=search] {
  padding:7px 9px; border:1px solid var(--border); border-radius:7px; font-size:13px;
  background:var(--bg,#fff); color:var(--text); }
.catalog-filters .cf-checks { display:flex; gap:18px; flex-wrap:wrap; font-size:13px;
  padding:8px 0; border-top:1px dashed var(--border); }
.catalog-filters .cf-checks label { flex-direction:row; align-items:center; gap:6px;
  min-width:auto; color:var(--text); cursor:pointer; }
.catalog-found { font-size:14px; margin:8px 0; }
.catalog-found strong { font-size:18px; color:var(--accent,#4338ca); }
.catalog-table { width:100%; font-size:13px; table-layout:auto; }
.catalog-table code { font-size:12px; }
.catalog-table .catalog-url { font-family:ui-monospace,monospace; font-size:11px;
  color:var(--accent,#4338ca); text-decoration:none; }
.catalog-table .catalog-url:hover { text-decoration:underline; }
.tag-brand { background:#fff7ed; color:#9a3412; padding:1px 6px; border-radius:3px; font-size:11px; }
.tag-cuisine { background:#ecfdf5; color:#065f46; padding:1px 6px; border-radius:3px; font-size:11px; }
.catalog-pager { display:flex; gap:14px; align-items:center; margin:14px 0; }
.catalog-pager a { padding:6px 14px; border:1px solid var(--border); border-radius:7px;
  text-decoration:none; color:var(--text); }
.catalog-refstats { margin-top:18px; }
.catalog-refstats summary { cursor:pointer; font-weight:500; }
.catalog-refstats table { width:auto; min-width:320px; margin-top:8px; }

/* ── Catalog "processed" column + jobs url-filter ────────────────────── */
.cell-processed { white-space:nowrap; }
.proc-yes { background:#ecfdf5; color:#065f46; padding:1px 7px; border-radius:10px; font-size:12px; font-weight:600; }
.proc-no { color:var(--muted); }
.proc-dl, .proc-hist { text-decoration:none; font-size:14px; margin-left:5px; color:var(--accent,#4338ca); }
.proc-dl:hover, .proc-hist:hover { opacity:.7; }
.url-filter-banner { background:#eef2ff; border:1px solid #c7d2fe; border-radius:8px;
  padding:10px 14px; margin:10px 0; font-size:13px; display:flex; align-items:center; gap:6px; }
.url-filter-banner code { background:#fff; padding:2px 6px; border-radius:4px; }
