@import url('https://fonts.googleapis.com/css2?family=DotGothic16&family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

:root {
  --bg: #fff9ef;
  --paper: rgba(255,255,255,.74);
  --paper-solid: #fffdf8;
  --ink: #253043;
  --muted: #6c7280;
  --line: rgba(37,48,67,.14);
  --primary: #ff7a59;
  --primary-dark: #e55335;
  --mint: #9be7c4;
  --sky: #9fd9ff;
  --violet: #b9a7ff;
  --yellow: #ffe082;
  --danger: #ff6b6b;
  --shadow: 0 22px 70px rgba(52,45,35,.14);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --pixel-border: 3px solid #253043;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(255,122,89,.22), transparent 28rem),
    radial-gradient(circle at 84% 6%, rgba(159,217,255,.40), transparent 25rem),
    radial-gradient(circle at 70% 68%, rgba(185,167,255,.22), transparent 28rem),
    linear-gradient(135deg, #fff9ef 0%, #fffdf8 42%, #eef9ff 100%);
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .08;
  z-index: 0;
  background-image:
    linear-gradient(90deg, rgba(37,48,67,.12) 1px, transparent 1px),
    linear-gradient(rgba(37,48,67,.12) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px clamp(18px, 4vw, 58px);
  background: rgba(255,249,239,.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: var(--pixel-border);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--yellow), var(--primary));
  box-shadow: 5px 5px 0 #253043;
  font-family: "DotGothic16", sans-serif;
  font-size: 28px;
  font-weight: 900;
}
.brand strong { display: block; letter-spacing: .04em; font-weight: 900; }
.brand small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .08em; }

.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}
.site-nav a:hover { color: var(--ink); background: rgba(255,255,255,.72); }

.nav-toggle {
  display: none;
  border: var(--pixel-border);
  background: var(--paper-solid);
  border-radius: 12px;
  padding: 8px 11px;
  font-size: 20px;
}

.section {
  position: relative;
  z-index: 1;
  padding: clamp(72px, 9vw, 130px) clamp(18px, 5vw, 72px);
}

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, .72fr);
  align-items: center;
  gap: clamp(38px, 7vw, 100px);
  padding-top: clamp(48px, 7vw, 92px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: var(--yellow);
}

h1, h2, h3, h4, p { margin-top: 0; }

h1 {
  margin-bottom: 22px;
  font-size: clamp(48px, 9vw, 116px);
  line-height: .94;
  letter-spacing: -.07em;
  font-weight: 900;
}
h1 span {
  display: inline-block;
  color: var(--primary-dark);
  text-shadow: 5px 5px 0 rgba(255,224,130,.86);
}
.lead {
  max-width: 710px;
  color: #4d5667;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 2;
  font-weight: 500;
}

.hero-actions, .trust-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-actions { margin-top: 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 20px;
  border: var(--pixel-border);
  border-radius: 16px;
  box-shadow: 5px 5px 0 #253043;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
  text-align: center;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 #253043; }
.btn.primary { color: white; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.btn.secondary { background: var(--paper-solid); }
.btn.danger { color: white; background: linear-gradient(135deg, var(--danger), #d64242); }
.btn.full { width: 100%; }

.trust-row { margin-top: 24px; }
.trust-row span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hero-device { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: min(100%, 390px);
  min-height: 640px;
  padding: 20px;
  border: 5px solid #253043;
  border-radius: 44px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.55)),
    radial-gradient(circle at 70% 20%, rgba(255,122,89,.28), transparent 35%),
    radial-gradient(circle at 18% 82%, rgba(155,231,196,.52), transparent 35%);
  box-shadow: 18px 22px 0 #253043, var(--shadow);
  transform: rotate(2deg);
}
.phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 120px;
  height: 24px;
  transform: translateX(-50%);
  background: #253043;
  border-radius: 0 0 18px 18px;
}
.phone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding: 16px;
  border: 2px solid rgba(37,48,67,.14);
  border-radius: 24px;
  background: rgba(255,255,255,.68);
}
.dot { width: 12px; height: 12px; border-radius: 50%; background: #35c779; box-shadow: 0 0 0 6px rgba(53,199,121,.14); }
.status { font-weight: 900; }
.pill { padding: 5px 10px; border-radius: 999px; background: var(--yellow); font-size: 12px; font-weight: 900; }
.pill.ok { background: var(--mint); }
.pill.bad { background: #ffe4e1; }

.chat-preview { display: grid; gap: 14px; padding: 28px 0; }
.bubble {
  max-width: 86%;
  padding: 14px 16px;
  border: 2px solid #253043;
  border-radius: 18px;
  font-weight: 700;
  line-height: 1.65;
  box-shadow: 4px 4px 0 rgba(37,48,67,.18);
}
.bubble.ai { background: #fffdf8; }
.bubble.user { justify-self: end; background: #dff4ff; }

.mood-card {
  position: absolute;
  right: -24px;
  bottom: 36px;
  width: 230px;
  padding: 20px;
  border: var(--pixel-border);
  border-radius: 24px;
  background: #fffdf8;
  box-shadow: 8px 8px 0 #253043;
}
.mood-card span { color: var(--muted); font-size: 13px; font-weight: 700; }
.mood-card strong { display: block; margin: 8px 0 14px; font-size: 22px; }
.mood-line { height: 10px; border: 2px solid #253043; border-radius: 999px; overflow: hidden; background: #f2f0eb; }
.mood-line i { display: block; width: 58%; height: 100%; background: linear-gradient(90deg, var(--sky), var(--primary)); }

.hero-bg-orb {
  position: absolute;
  border-radius: 42% 58% 68% 32% / 38% 40% 60% 62%;
  filter: blur(.2px);
  z-index: -1;
  animation: float 8s ease-in-out infinite;
}
.orb-a { width: 180px; height: 180px; background: rgba(255,224,130,.65); top: 18%; right: 44%; }
.orb-b { width: 120px; height: 120px; background: rgba(155,231,196,.75); bottom: 8%; left: 8%; animation-delay: -3s; }

.section-head { max-width: 880px; margin: 0 auto 42px; text-align: center; }
.section-head.compact { max-width: 760px; }
.section-head h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.12;
  letter-spacing: -.05em;
}
.section-head p { color: var(--muted); line-height: 1.9; font-size: 17px; }

.mvp-shell {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 22px;
  max-width: 1220px;
  margin: 0 auto;
  align-items: start;
}

.control-panel,
.chat-app,
.stat-card,
.chart-card,
.log-list-card,
.account-card,
.setup-card,
.code-panel,
.safety-panel {
  border: var(--pixel-border);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.control-panel { padding: 18px; background: rgba(255,255,255,.7); }
.account-card { padding: 16px; margin-bottom: 18px; background: rgba(255,253,248,.72); box-shadow: none; }
.account-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.big-avatar { font-size: 46px; }
.account-head strong { display: block; font-size: 20px; }
.account-head small { color: var(--muted); font-weight: 800; }

.field { display: grid; gap: 10px; margin-top: 16px; font-weight: 900; }
.field input, .field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: var(--pixel-border);
  border-radius: 14px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}
input[type="range"] { width: 100%; accent-color: var(--primary); }

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  padding: 14px;
  border: 2px solid #253043;
  border-radius: 14px;
  background: #fffdf8;
  font-weight: 900;
}
.check-row input { width: 19px; height: 19px; accent-color: var(--primary); }

.risk-box {
  margin-top: 20px;
  padding: 18px;
  border: var(--pixel-border);
  border-radius: 18px;
  background: #e9fbf2;
}
.risk-box.warn { background: #fff3d1; }
.risk-box.danger { background: #ffe4e1; }
.risk-box strong { display: block; margin-bottom: 6px; }
.risk-box p { margin: 0; color: var(--muted); line-height: 1.65; }

.chat-app { overflow: hidden; background: rgba(255,255,255,.72); }
.chat-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 22px;
  border-bottom: var(--pixel-border);
  background: #fffdf8;
}
.chat-head strong { display: block; font-size: 20px; }
.chat-head small { color: var(--muted); font-weight: 700; }
.chat-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.ghost-btn {
  align-self: center;
  padding: 9px 12px;
  border: 2px solid #253043;
  border-radius: 12px;
  background: white;
  font-weight: 900;
  cursor: pointer;
}

.chat-log {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 500px;
  max-height: 500px;
  overflow-y: auto;
  padding: 22px;
}

.message { display: flex; gap: 10px; max-width: 84%; }
.message span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid #253043;
  border-radius: 12px;
  background: #fffdf8;
}
.message p {
  margin: 0;
  padding: 14px 16px;
  border: 2px solid #253043;
  border-radius: 18px;
  background: #fffdf8;
  line-height: 1.75;
  font-weight: 700;
  box-shadow: 4px 4px 0 rgba(37,48,67,.18);
}
.user-message { justify-self: end; flex-direction: row-reverse; }
.user-message p { background: #dff4ff; }
.system-message p { background: #fff3d1; }

.safety-alert {
  margin: 0 18px 16px;
  padding: 14px 16px;
  border: 3px solid #253043;
  border-radius: 16px;
  background: #ffe4e1;
}
.safety-alert.hidden { display: none; }
.safety-alert strong { display: block; margin-bottom: 4px; }
.safety-alert p { margin: 0; color: #783232; line-height: 1.65; font-weight: 800; }

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 18px;
  border-top: var(--pixel-border);
  background: rgba(255,253,248,.86);
}
.chat-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: var(--pixel-border);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto 22px;
}
.stat-card { padding: 22px; background: rgba(255,255,255,.66); }
.stat-card span { color: var(--muted); font-weight: 900; }
.stat-card strong { display: block; margin-top: 8px; font-size: 38px; letter-spacing: -.04em; }

.log-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}
.chart-card, .log-list-card { padding: 22px; background: rgba(255,255,255,.66); }
.chart-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 18px; }
.chart-head h3 { margin: 0; }
.chart-head small { color: var(--muted); font-weight: 800; }

.bar-chart {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 10px;
  align-items: end;
  min-height: 260px;
  padding: 18px;
  border: 2px dashed rgba(37,48,67,.25);
  border-radius: 20px;
  background: rgba(255,253,248,.58);
}
.bar {
  position: relative;
  min-height: 12px;
  border: 2px solid #253043;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, var(--primary), var(--yellow));
  box-shadow: 3px 3px 0 rgba(37,48,67,.18);
}
.bar::after {
  content: attr(data-value);
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 900;
}

.empty-state {
  padding: 26px;
  border: 2px dashed rgba(37,48,67,.3);
  border-radius: 18px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}
.log-list { display: grid; gap: 12px; max-height: 360px; overflow-y: auto; }
.log-item {
  padding: 14px;
  border: 2px solid #253043;
  border-radius: 16px;
  background: #fffdf8;
  box-shadow: 4px 4px 0 rgba(37,48,67,.16);
}
.log-item strong { display: block; margin-bottom: 6px; }
.log-item p { margin: 0; color: var(--muted); line-height: 1.65; font-weight: 700; }
.log-item small { display: block; margin-top: 8px; color: #8b91a0; font-weight: 800; }

.setup-grid, .safety-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto 24px;
}
.safety-layout { grid-template-columns: repeat(2, minmax(0,1fr)); }

.setup-card, .safety-panel, .code-panel {
  padding: 24px;
  background: rgba(255,255,255,.68);
}
.setup-card span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border: var(--pixel-border);
  border-radius: 16px;
  background: var(--yellow);
  font-weight: 900;
}
.setup-card h3, .safety-panel h3 { font-size: 23px; margin-bottom: 10px; }
.setup-card p, .safety-panel p { color: var(--muted); line-height: 1.8; }
code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(37,48,67,.08);
  font-weight: 900;
}
.code-panel {
  max-width: 1180px;
  margin: 0 auto;
}
.code-panel pre {
  overflow-x: auto;
  padding: 18px;
  border: 2px solid #253043;
  border-radius: 16px;
  background: #253043;
  color: #fffdf8;
  line-height: 1.7;
}

.check-list { display: grid; gap: 12px; }
.check-list label {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  font-weight: 800;
}
.danger-list label { background: #ffe4e1; }

.cta-box {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(32px,6vw,64px);
  border: var(--pixel-border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 12% 20%, rgba(255,224,130,.52), transparent 28%),
    radial-gradient(circle at 92% 70%, rgba(155,231,196,.48), transparent 30%),
    rgba(255,255,255,.74);
  box-shadow: 12px 12px 0 #253043;
  text-align: center;
}
.cta-box h2 { margin-bottom: 16px; font-size: clamp(34px,6vw,70px); letter-spacing: -.06em; }
.cta-box p { max-width: 700px; margin-inline: auto; color: var(--muted); line-height: 1.9; }

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  max-width: min(420px, calc(100vw - 36px));
  padding: 14px 18px;
  border: var(--pixel-border);
  border-radius: 16px;
  background: #fffdf8;
  box-shadow: 6px 6px 0 #253043;
  font-weight: 900;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: .25s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px,5vw,72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .16s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(8deg); }
}

@media (max-width: 1060px) {
  .hero, .mvp-shell, .log-layout { grid-template-columns: 1fr; }
  .setup-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dashboard-grid, .safety-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-header { align-items: flex-start; }
  .nav-toggle { display: inline-grid; }
  .site-nav {
    position: absolute;
    top: 82px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: var(--pixel-border);
    border-radius: 20px;
    background: #fffdf8;
    box-shadow: 8px 8px 0 #253043;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 14px; }
  .hero { padding-top: 56px; }
  h1 { font-size: clamp(44px,16vw,72px); }
  .phone {
    width: min(92vw,350px);
    min-height: 520px;
    transform: none;
    box-shadow: 10px 12px 0 #253043, var(--shadow);
  }
  .mood-card { right: 12px; bottom: -40px; width: 210px; }
  .chat-head, .chart-head { flex-direction: column; align-items: flex-start; }
  .chat-actions { width: 100%; justify-content: flex-start; }
  .chat-form { grid-template-columns: 1fr; }
  .message { max-width: 96%; }
  .bar-chart { gap: 5px; padding: 12px; }
  .setup-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}


/* v3.2 service sections */
.feature-grid,
.business-row,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.business-row,
.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.business-card,
.price-card {
  border: var(--pixel-border);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  padding: 26px;
}

.feature-card span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border: var(--pixel-border);
  border-radius: 18px;
  background: var(--paper-solid);
  font-size: 28px;
  box-shadow: 5px 5px 0 #253043;
}

.feature-card h3,
.business-card h3,
.price-card h3 {
  margin-bottom: 10px;
  font-size: 23px;
}

.feature-card p,
.business-card p,
.price-card p {
  color: var(--muted);
  line-height: 1.85;
}

.price-card.featured {
  transform: translateY(-12px);
  background: linear-gradient(135deg, #253043, #3a4053);
  color: white;
}

.price-card.featured p,
.price-card.featured li {
  color: rgba(255,255,255,.75);
}

.tag {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink) !important;
  font-size: 12px;
  font-weight: 900;
}

.price {
  margin-bottom: 12px;
  color: var(--primary-dark) !important;
  font-size: 34px;
  font-weight: 900;
}

.featured .price {
  color: var(--yellow) !important;
}

.price span {
  font-size: 15px;
}

.price-card ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.6;
}

@media (max-width: 1060px) {
  .feature-grid,
  .business-row,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .price-card.featured {
    transform: none;
  }
}

@media (max-width: 720px) {
  .feature-grid,
  .business-row,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}


/* v3.3 monetization, articles, entry gate */
.ad-section {
  position: relative;
  z-index: 1;
  padding: 0 clamp(18px, 5vw, 72px) clamp(36px, 5vw, 72px);
}

.ad-container {
  max-width: 1180px;
  margin: 0 auto;
}

.ad-container.inline {
  margin-top: 28px;
}

.ad-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 22px;
  border: 3px dashed rgba(37,48,67,.32);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.54);
  text-align: center;
}

.ad-slot.horizontal {
  min-height: 96px;
}

.ad-slot span {
  display: block;
  font-weight: 900;
  font-size: 20px;
}

.ad-slot small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.article-card {
  display: block;
  min-height: 260px;
  padding: 26px;
  border: var(--pixel-border);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  transition: transform .2s ease, box-shadow .2s ease;
}

.article-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 8px 8px 0 rgba(37,48,67,.22);
}

.article-card span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border: var(--pixel-border);
  border-radius: 18px;
  background: var(--paper-solid);
  font-size: 28px;
  box-shadow: 5px 5px 0 #253043;
}

.article-card h3 {
  margin-bottom: 12px;
  font-size: 23px;
  line-height: 1.45;
}

.article-card p {
  color: var(--muted);
  line-height: 1.85;
}

.entry-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,224,130,.32), transparent 30rem),
    radial-gradient(circle at 80% 80%, rgba(159,217,255,.30), transparent 30rem),
    rgba(37,48,67,.62);
  backdrop-filter: blur(12px);
}

.entry-gate.show {
  display: grid;
}

.gate-card {
  width: min(100%, 520px);
  padding: clamp(26px, 5vw, 42px);
  border: var(--pixel-border);
  border-radius: var(--radius-xl);
  background: #fffdf8;
  box-shadow: 12px 12px 0 #253043;
  text-align: center;
}

.gate-badge {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--yellow);
  font-weight: 900;
  letter-spacing: .08em;
}

.gate-card h2 {
  margin-bottom: 12px;
  font-size: clamp(32px, 6vw, 54px);
  letter-spacing: -.05em;
}

.gate-card p {
  color: var(--muted);
  line-height: 1.9;
}

.turnstile-box {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding: 18px;
  border: 2px solid rgba(37,48,67,.16);
  border-radius: 18px;
  background: rgba(255,255,255,.74);
}

#turnstileMount {
  display: grid;
  place-items: center;
  min-height: 68px;
}

#gateStatus {
  color: var(--muted);
  font-weight: 800;
}

.gate-check {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
}

.gate-check input {
  accent-color: var(--primary);
}

.legal-page {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) clamp(18px, 5vw, 72px);
}

.legal-card {
  border: var(--pixel-border);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 56px);
  backdrop-filter: blur(16px);
}

.legal-card h1 {
  font-size: clamp(38px, 7vw, 72px);
}

.legal-card h2 {
  margin-top: 34px;
  font-size: 28px;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 2;
  font-weight: 700;
}

.legal-card a {
  color: var(--primary-dark);
  font-weight: 900;
}

.contact-form-demo {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.contact-form-demo input,
.contact-form-demo textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: var(--pixel-border);
  border-radius: 14px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

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

@media (max-width: 1060px) {
  .article-grid {
    grid-template-columns: 1fr;
  }
}
