/* ============================================================================
   FocusQuiz — "Calm-Tech Editorial"
   Concept: 集中・没入を、静謐な編集デザインで。紙白×インク×タイプ別アクセント。
   Signature motif: 集中の同心円（focus rings）— CSS/SVGで全面展開。
   Type system: Zen Old Mincho (display) / Zen Kaku Gothic New (body) / DM Mono (labels)
   ============================================================================ */

:root {
  /* Canvas */
  --paper: #f7f5f0;
  --paper-deep: #efece3;
  --card: #fffdf9;
  --ink: #1a1a17;
  --ink-soft: #57534e;
  --ink-faint: #8a847a;
  --line: #e4dfd5;
  --line-strong: #d6cfc1;

  /* Accent (overridden per result type via JS) */
  --accent: #27408b;
  --accent-soft: #e7ebf4;
  --accent-ink: #1d3066;

  /* Type palette (for static reference) */
  --deep: #27408b;
  --rhythm: #c2552f;
  --comfort: #3f7355;
  --mobile: #6b4e8e;

  /* Typography */
  --serif: "Zen Old Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Zen Kaku Gothic New", -apple-system, "Hiragino Kaku Gothic ProN", sans-serif;
  --mono: "DM Mono", "SFMono-Regular", ui-monospace, monospace;

  /* Rhythm */
  --maxw: 1080px;
  --readw: 720px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(26, 26, 23, 0.04), 0 12px 40px -16px rgba(26, 26, 23, 0.18);
  --shadow-lift: 0 2px 6px rgba(26, 26, 23, 0.06), 0 28px 60px -24px rgba(26, 26, 23, 0.28);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.01em;
  position: relative;
  overflow-x: hidden;
}

/* Grain overlay — subtle paper texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

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

/* ---- Ad disclosure (PR表記・法定) ---- */
.ad-disclosure-bar {
  background: var(--ink);
  color: #d9d4c8;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 7px 16px;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark {
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 1.5px solid var(--ink); border-radius: 50%;
  font-size: 13px; position: relative;
}
.logo-mark::after { content: ""; position: absolute; width: 11px; height: 11px; border: 1.5px solid var(--ink); border-radius: 50%; }
.logo-text { font-family: var(--mono); font-weight: 500; letter-spacing: 0.02em; font-size: 16px; }
.header-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--ink-faint); text-transform: uppercase; }
.header-nav { display: flex; gap: 20px; align-items: center; }
.header-nav a { color: var(--ink-soft); text-decoration: none; font-size: 13px; }
.header-nav a:hover { color: var(--accent); }

/* ---- Shared section bits ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-heading {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(20px, 3vw, 26px);
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}
.hidden { display: none !important; }

/* ============================ HERO ============================ */
.intro { position: relative; padding: clamp(40px, 6vw, 72px) 0 64px; min-height: 84vh; display: flex; align-items: center; }
.intro > .container { width: 100%; }
/* Focus-rings backdrop */
.intro::before {
  content: "";
  position: absolute;
  top: -8%;
  right: -14%;
  width: min(760px, 86vw);
  height: min(760px, 86vw);
  z-index: 0;
  pointer-events: none;
  background:
    repeating-radial-gradient(circle at center,
      transparent 0 38px,
      color-mix(in srgb, var(--accent) 16%, transparent) 38px 39px);
  -webkit-mask-image: radial-gradient(circle at center, #000 35%, transparent 72%);
          mask-image: radial-gradient(circle at center, #000 35%, transparent 72%);
  opacity: 0.42;
  animation: ringIn 1.4s var(--ease) both;
}
/* Crafted hero aperture (vector art) */
.hero-art {
  position: absolute; right: 3%; top: 50%; transform: translateY(-50%);
  width: min(460px, 42vw); z-index: 0; pointer-events: none;
  animation: ringIn 1.6s var(--ease) both;
}
.hero-art svg { width: 100%; height: auto; display: block; }
.hero-art svg { position: relative; z-index: 1; }
.hero-iris { transform-origin: 200px 200px; animation: spin 80s linear infinite; }
.hero-ticks { transform-origin: 200px 200px; animation: spin 120s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Workspace photo as a circular "lens" inside the aperture */
.hero-art-photo {
  position: absolute; inset: 11%; width: 78%; height: 78%; object-fit: cover; object-position: 50% 35%; border-radius: 50%;
  z-index: 0; opacity: 1; filter: saturate(1.02) contrast(1.04);
  -webkit-mask-image: radial-gradient(circle, #000 60%, transparent 73%);
          mask-image: radial-gradient(circle, #000 60%, transparent 73%);
}
@media (max-width: 900px) { .hero-art { display: none; } }
/* Result hero: type illustration as a circular medallion at the centre of the rings */
.result-hero-art {
  display: block; position: relative; z-index: 1;
  width: clamp(116px, 24vw, 168px); height: clamp(116px, 24vw, 168px);
  object-fit: cover; border-radius: 50%; margin: 0 auto;
  border: 3px solid var(--card);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 38%, transparent),
              0 16px 44px -14px color-mix(in srgb, var(--accent) 65%, transparent);
  animation: bounceIn 0.8s var(--ease) both;
}
.result-hero-art[src=""] { display: none; }
.intro::after {
  content: "";
  position: absolute;
  left: -20%;
  bottom: -30%;
  width: 540px; height: 540px;
  z-index: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 10%, transparent), transparent 65%);
  pointer-events: none;
}
.intro-content { position: relative; z-index: 1; max-width: 760px; }
.intro-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 6.6vw, 64px);
  line-height: 1.18;
  letter-spacing: 0.005em;
  margin: 20px 0 22px;
}
.intro-title .highlight {
  position: relative;
  color: var(--accent);
  white-space: nowrap;
}
.intro-title .highlight::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.08em; height: 0.34em;
  background: color-mix(in srgb, var(--accent) 18%, transparent); z-index: -1; border-radius: 2px;
}
.intro-lead { font-size: clamp(15px, 1.8vw, 17px); color: var(--ink-soft); max-width: 620px; margin-bottom: 36px; }
.intro-lead strong { color: var(--ink); font-weight: 700; }

.intro-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; max-width: 660px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 16px; display: flex; flex-direction: column; gap: 8px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.feature:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.feature-icon { font-size: 22px; }
/* Preview the 4-type accent palette on the landing page */
.intro-features .feature:nth-child(1) .feature-icon { color: var(--deep); }
.intro-features .feature:nth-child(2) .feature-icon { color: var(--comfort); }
.intro-features .feature:nth-child(3) .feature-icon { color: var(--mobile); }
.feature-text { display: flex; flex-direction: column; }
.feature-text strong { font-size: 14px; }
.feature-text span { font-size: 12px; color: var(--ink-faint); line-height: 1.5; }

/* ---- Buttons ---- */
.cta-btn {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  color: var(--paper);
  background: var(--ink);
  border: none;
  border-radius: 100px;
  padding: 17px 38px;
  cursor: pointer;
  letter-spacing: 0.03em;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  box-shadow: var(--shadow);
}
.cta-btn::before {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  transform: translateX(-101%); transition: transform 0.45s var(--ease); z-index: 0;
}
.cta-btn:hover::before { transform: translateX(0); }
.cta-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.cta-btn > * { position: relative; z-index: 1; }
.cta-label { position: relative; z-index: 1; }
.intro-note { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); margin-top: 16px; letter-spacing: 0.02em; }

/* ============================ QUIZ ============================ */
.quiz { padding: clamp(40px, 7vw, 80px) 0; max-width: var(--readw); }
.progress { margin-bottom: 38px; }
.progress-track { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width 0.5s var(--ease); }
.progress-text { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; color: var(--ink-faint); margin-top: 12px; text-transform: uppercase; }

.question-card { animation: fadeUp 0.55s var(--ease) both; }
.question-icon { font-size: 38px; margin-bottom: 14px; }
.question-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(24px, 4vw, 34px); line-height: 1.35; margin-bottom: 30px; letter-spacing: 0.01em;
}
.options { display: flex; flex-direction: column; gap: 12px; }
.option-btn {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 20px; cursor: pointer; font-family: var(--sans); font-size: 15.5px; color: var(--ink);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  animation: slideIn 0.5s var(--ease) both; animation-delay: var(--delay, 0s);
}
.option-btn:hover { border-color: var(--accent); transform: translateX(5px); box-shadow: var(--shadow); }
.option-index {
  flex: none; width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%;
  font-family: var(--mono); font-size: 13px; color: var(--ink-soft); transition: all 0.3s var(--ease);
}
.option-btn:hover .option-index { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.option-label { line-height: 1.5; }
.quiz-controls { margin-top: 28px; }
.back-btn {
  background: none; border: none; color: var(--ink-faint); font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.08em; cursor: pointer; padding: 8px 0; transition: color 0.3s;
}
.back-btn:hover:not(:disabled) { color: var(--accent); }
.back-btn:disabled { opacity: 0.35; cursor: default; }

/* ============================ RESULT ============================ */
.result { padding: clamp(36px, 6vw, 72px) 0 80px; }
.result-hero {
  position: relative; text-align: center; padding: clamp(40px, 7vw, 76px) 24px;
  margin-bottom: 48px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, var(--accent-soft), var(--card));
  border: 1px solid var(--line);
}
.result-hero::before {
  content: ""; position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%);
  width: 620px; height: 620px; pointer-events: none;
  background: repeating-radial-gradient(circle at center,
    transparent 0 30px,
    color-mix(in srgb, var(--accent) 22%, transparent) 30px 31px);
  -webkit-mask-image: radial-gradient(circle, #000 12%, transparent 60%);
          mask-image: radial-gradient(circle, #000 12%, transparent 60%);
  animation: ringPulse 6s var(--ease) infinite alternate;
}
.result-hero > * { position: relative; z-index: 1; }
.result-icon { font-size: clamp(52px, 10vw, 76px); animation: bounceIn 0.8s var(--ease) both; }
.result-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-ink); margin: 18px 0 6px; }
.result-name { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 6vw, 52px); letter-spacing: 0.01em; }
.result-catch { font-family: var(--serif); font-weight: 600; font-size: clamp(15px, 2.4vw, 20px); color: var(--accent-ink); margin-top: 12px; font-style: italic; }
.result .section-heading::before { content: ""; display: inline-block; width: 22px; height: 3px; background: var(--accent); margin-right: 12px; vertical-align: middle; border-radius: 2px; }
.result-description { max-width: 620px; margin: 22px auto 0; color: var(--ink-soft); font-size: 15.5px; }

.result-scores, .result-offers, .result-products, .result-share, .result-lead { margin-bottom: 52px; }

/* Scores */
.score-breakdown { display: flex; flex-direction: column; gap: 14px; }
.score-row { display: grid; grid-template-columns: 150px 1fr 34px; align-items: center; gap: 14px; }
.score-label { font-size: 13px; color: var(--ink-soft); }
.score-bar-wrap { height: 8px; background: var(--line); border-radius: 8px; overflow: hidden; }
.score-bar { height: 100%; width: 0; border-radius: 8px; transition: width 1s var(--ease); }
.score-value { font-family: var(--mono); font-size: 13px; color: var(--ink-faint); text-align: right; }

/* Offers (high-value ASP) */
.result-offers { padding: 28px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); }
.offers-grid { display: flex; flex-direction: column; gap: 14px; }
.offer-card { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; }
.offer-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.offer-badge { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--accent); color: var(--paper); padding: 4px 9px; border-radius: 100px; }
.offer-provider { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }
.offer-title { font-family: var(--serif); font-weight: 600; font-size: 18px; }
.offer-blurb { font-size: 14px; color: var(--ink-soft); }
.offer-link { align-self: flex-start; margin-top: 4px; font-weight: 700; font-size: 14px; color: var(--accent); text-decoration: none; border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; }
.offer-pr { font-family: var(--mono); font-size: 10px; color: var(--ink-faint); }

/* Products */
.products-lead { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 22px; max-width: 620px; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 20px; }
.product-card {
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 22px 22px 21px; display: flex; flex-direction: column; gap: 10px;
  animation: fadeUp 0.5s var(--ease) both; animation-delay: var(--delay, 0s);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.product-category { align-self: flex-start; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); padding: 4px 11px; border-radius: 100px; }
.product-name { font-family: var(--serif); font-weight: 600; font-size: 17px; line-height: 1.45; }
.product-reason { font-size: 13.5px; color: var(--ink-soft); flex-grow: 1; }
.product-price { font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); letter-spacing: 0.04em; }
.product-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.product-link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  text-decoration: none; font-weight: 700; font-size: 13.5px; padding: 11px 16px; border-radius: 100px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.product-link.amazon { background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); }
.product-link.amazon:hover { background: var(--ink); color: var(--paper); }
.product-link.rakuten { background: var(--card); color: #bf0000; border: 1.5px solid #bf0000; }
.product-link.rakuten:hover { background: #bf0000; color: #fff; }
.product-link:hover { transform: translateY(-2px); }
.product-pr { font-family: var(--mono); font-size: 9.5px; color: var(--ink-faint); text-align: center; }
.product-card.is-collapsed { display: none; }
.show-more-btn { display: block; width: 100%; margin-top: 20px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 100px; padding: 14px; font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease); }
.show-more-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Lead capture */
.result-lead { text-align: center; padding: 40px 28px; border-radius: var(--radius); background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.result-lead::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 80% 20%, transparent 0 26px, rgba(255,255,255,0.05) 26px 27px); pointer-events: none; }
.result-lead > * { position: relative; z-index: 1; }
.lead-title { font-family: var(--serif); font-weight: 600; font-size: clamp(20px, 3.4vw, 26px); margin-bottom: 10px; }
.lead-sub { color: #c9c4b8; font-size: 14.5px; max-width: 520px; margin: 0 auto 22px; }
.lead-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lead-btn { text-decoration: none; font-weight: 700; font-size: 14px; padding: 13px 26px; border-radius: 100px; }
.lead-btn.line { background: #06c755; color: #fff; }
.lead-btn.email { background: var(--paper); color: var(--ink); }

/* Share */
.result-share .section-heading { font-size: clamp(16px, 2.2vw, 19px); }
.share-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 12.5px; font-weight: 500; color: var(--ink-soft); background: transparent; border: 1px solid var(--line); padding: 9px 16px; border-radius: 100px; transition: border-color 0.3s, transform 0.3s, color 0.3s; }
.share-btn:hover { border-color: var(--accent); transform: translateY(-2px); }
.share-icon { font-family: var(--mono); font-weight: 700; }

/* Result footer */
.result-footer { text-align: center; border-top: 1px solid var(--line); padding-top: 32px; }
.restart-btn { background: none; border: 1px solid var(--line-strong); border-radius: 100px; padding: 12px 28px; font-family: var(--sans); font-size: 14px; cursor: pointer; color: var(--ink); transition: border-color 0.3s, color 0.3s; }
.restart-btn:hover { border-color: var(--accent); color: var(--accent); }
.disclaimer { font-size: 11.5px; color: var(--ink-faint); max-width: 640px; margin: 24px auto 0; line-height: 1.7; }

/* Saved-result banner */
.saved-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 30px; font-size: 13.5px; flex-wrap: wrap; }
.saved-banner button { background: var(--accent); color: var(--paper); border: none; border-radius: 100px; padding: 8px 18px; font-size: 12.5px; cursor: pointer; font-family: var(--sans); }

/* ============================ ARTICLES / LEGAL (shared) ============================ */
.page { padding: clamp(40px, 7vw, 72px) 0; }
.page-narrow { max-width: var(--readw); }
.article-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.article-title { font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 5vw, 44px); line-height: 1.3; margin: 14px 0 10px; }
.article-meta { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); margin-bottom: 36px; }
.prose { max-width: 680px; }
.prose > p:first-of-type { font-size: 17px; color: var(--ink); }
.prose h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(22px, 3.4vw, 30px); margin: 48px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.prose h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; margin: 32px 0 12px; }
.prose p { margin-bottom: 18px; color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 18px 1.3em; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); }
.prose strong { font-weight: 700; }
.compare-table { width: 100%; border-collapse: collapse; margin: 22px 0 28px; font-size: 14px; }
.compare-table th, .compare-table td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.compare-table th { background: var(--accent-soft); color: var(--accent-ink); font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; border-bottom: 2px solid var(--accent); }
.callout { background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 18px 20px; margin: 24px 0; font-size: 14.5px; }
.inline-cta { display: block; text-align: center; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 700; padding: 16px 24px; border-radius: 100px; margin: 28px 0; }
.inline-cta:hover { background: var(--accent); }
.to-quiz { display: block; text-align: center; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 28px; margin: 40px 0; text-decoration: none; color: var(--ink); transition: border-color 0.3s; }
.to-quiz:hover { border-color: var(--accent); }
.to-quiz strong { font-family: var(--serif); font-size: 20px; display: block; margin-bottom: 6px; }

/* ============================ FOOTER ============================ */
.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: var(--paper-deep); padding: 48px 0 40px; margin-top: 40px; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: url("docs/images/pattern-rings.webp") center / 540px; opacity: 0.07; pointer-events: none; }
.site-footer .container { position: relative; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { font-family: var(--mono); font-weight: 500; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: var(--accent); }
.footer-note { font-size: 11.5px; color: var(--ink-faint); margin-top: 26px; line-height: 1.85; letter-spacing: 0.03em; }

/* ============================ ANIMATIONS ============================ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes bounceIn { 0% { opacity: 0; transform: scale(0.5); } 60% { transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
@keyframes ringIn { from { opacity: 0; transform: scale(0.85) rotate(-6deg); } to { opacity: 0.7; transform: none; } }
@keyframes ringPulse { from { opacity: 0.5; transform: translate(-50%, -50%) scale(0.96); } to { opacity: 0.9; transform: translate(-50%, -50%) scale(1.04); } }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .intro-features { grid-template-columns: 1fr; gap: 12px; }
  .feature { flex-direction: row; align-items: center; }
  .score-row { grid-template-columns: 110px 1fr 30px; gap: 10px; }
  .score-label { font-size: 12px; }
  .header-tag { display: none; }
  .footer-grid { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
