/* ========================================
   LINE Page: Twilight Storybook Theme
   Standalone — does NOT depend on style.css
   ======================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Twilight palette */
  --tw-deep:    #3E2F52;
  --tw-mid:     #5E4B72;
  --tw-mauve:   #7E6488;
  --tw-warm:    #A07868;
  --tw-amber:   #C4956A;
  --tw-amber-l: #D8AE80;
  --tw-glow:    #E8C898;

  /* Accent */
  --moonlight:  #F5E6C8;
  --starlight:  #FFFDE8;
  --parchment:  #FBF3E6;
  --parchment-a: rgba(251, 243, 230, 0.82);

  /* Text */
  --ink:        #2E2228;
  --ink-soft:   #5A4444;
  --ink-muted:  #8A7070;
  --ink-cream:  #F0E0D0;

  /* Botanical */
  --leaf:       #5A4050;
  --leaf-light: #7A6070;

  /* Functional */
  --line-green: #06C755;
  --error-red:  #C05050;
  --radius:     14px;
  --radius-sm:  8px;
  --radius-lg:  20px;

  /* Fonts */
  --font-heading: 'Shippori Mincho B1', serif;
  --font-body:    'Zen Maru Gothic', sans-serif;

  /* Shadow */
  --shadow-card: 0 4px 24px rgba(62, 47, 82, 0.18);
  --shadow-soft: 0 2px 12px rgba(62, 47, 82, 0.12);
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--tw-deep);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--tw-amber); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Page Atmosphere ---------- */
.page-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.twilight-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    175deg,
    var(--tw-deep) 0%,
    var(--tw-mid) 22%,
    var(--tw-mauve) 40%,
    var(--tw-warm) 60%,
    var(--tw-amber) 78%,
    var(--tw-amber-l) 100%
  );
}

.grain-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* Stars */
.stars-field { position: absolute; inset: 0; }

.star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--sz, 5px);
  height: var(--sz, 5px);
  background: var(--starlight);
  clip-path: polygon(
    50% 0%, 62% 35%, 100% 50%, 62% 65%,
    50% 100%, 38% 65%, 0% 50%, 38% 35%
  );
  animation: twinkle var(--dur, 4s) ease-in-out var(--del, 0s) infinite;
  opacity: 0;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.8); }
  50%      { opacity: var(--peak, 0.9); transform: scale(1); }
}

/* Crescent Moon */
.crescent-moon {
  position: absolute;
  width: 56px;
  height: 56px;
  top: 8%;
  left: 12%;
  border-radius: 50%;
  box-shadow: -14px 10px 0 3px var(--moonlight);
  filter: drop-shadow(0 0 12px rgba(245, 230, 200, 0.35))
          drop-shadow(0 0 40px rgba(245, 230, 200, 0.15));
  animation: moonFloat 8s ease-in-out infinite;
}

@keyframes moonFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* Botanical silhouettes */
.botanical {
  position: absolute;
  bottom: 0;
  width: 180px;
  height: 300px;
  opacity: 0.25;
  pointer-events: none;
}

.botanical-left  {
  left: -20px;
  transform: scaleX(-1);
}
.botanical-right {
  right: -20px;
}

/* ---------- Scrollable content layer ---------- */
.page-content {
  position: relative;
  z-index: 1;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  transition: background 0.3s;
}

.navbar.scrolled {
  background: rgba(62, 47, 82, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--moonlight);
  letter-spacing: 0.02em;
}

.beta-badge {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--tw-glow);
  background: rgba(245, 230, 200, 0.15);
  border: 1px solid rgba(245, 230, 200, 0.2);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  letter-spacing: 0.05em;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 3rem;
  text-align: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--moonlight);
  background: rgba(245, 230, 200, 0.1);
  border: 1px solid rgba(245, 230, 200, 0.15);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.5rem;
  animation: fadeSlideUp 0.8s ease-out both;
}

.hero-badge .sparkle-icon {
  font-size: 0.9rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  line-height: 1.5;
  color: var(--parchment);
  margin-bottom: 1.25rem;
  animation: fadeSlideUp 0.8s ease-out 0.15s both;
}

.title-line { display: block; }

.title-line.gradient-text {
  background: linear-gradient(135deg, var(--moonlight) 0%, var(--tw-glow) 50%, var(--tw-amber-l) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 0.95rem;
  color: var(--ink-cream);
  margin-bottom: 2rem;
  animation: fadeSlideUp 0.8s ease-out 0.3s both;
}

.hero-description .solution {
  margin-bottom: 0.75rem;
  opacity: 0.85;
  line-height: 1.8;
}

.hero-description .solution p { margin-bottom: 0.25rem; }

.call-to-action-text {
  font-weight: 500;
  color: var(--tw-glow);
  font-size: 0.9rem;
}

.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  background: linear-gradient(135deg, var(--moonlight) 0%, var(--tw-glow) 100%);
  border: none;
  border-radius: 999px;
  padding: 0.85rem 2rem;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 20px rgba(245, 230, 200, 0.25);
  animation: fadeSlideUp 0.8s ease-out 0.45s both;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(245, 230, 200, 0.35);
}

.cta-button:active { transform: translateY(0); }

.cta-button .button-text { position: relative; z-index: 1; }

.cta-button .button-label {
  position: relative;
  z-index: 1;
  font-size: 0.7rem;
  background: rgba(62, 47, 82, 0.12);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

.button-glow {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.cta-button:hover .button-glow { opacity: 1; }

.scroll-indicator {
  margin-top: 2.5rem;
  animation: fadeSlideUp 0.8s ease-out 0.6s both;
}

.scroll-icon {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(245, 230, 200, 0.3);
  border-radius: 12px;
  margin: 0 auto;
  position: relative;
}

.scroll-icon::after {
  content: '';
  width: 3px;
  height: 8px;
  background: var(--moonlight);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50%      { transform: translateX(-50%) translateY(10px); opacity: 0.3; }
}

/* ---------- Form Section ---------- */
.form-section {
  position: relative;
  padding: 3rem 1.25rem 4rem;
}

.form-container {
  max-width: 560px;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--parchment);
  margin-bottom: 0.5rem;
}

.form-subtitle {
  font-size: 0.85rem;
  color: var(--ink-cream);
  opacity: 0.7;
}

.input-form { display: flex; flex-direction: column; gap: 0; }

.form-section-block {
  background: var(--parchment-a);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 230, 200, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-card);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(90, 64, 80, 0.12);
}

.form-group {
  margin-bottom: 1.25rem;
  position: relative;
}

.form-group:last-child { margin-bottom: 0; }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.form-label.required::after {
  content: '必須';
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--tw-warm);
  background: rgba(160, 120, 104, 0.12);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.form-input,
.form-select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(90, 64, 80, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--tw-amber);
  box-shadow: 0 0 0 3px rgba(196, 149, 106, 0.15);
  background: rgba(255, 255, 255, 0.85);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A4444' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}

.field-hint {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 0.3rem;
}

.input-decoration { display: none; }

/* Radio group */
.radio-group {
  display: flex;
  gap: 0.75rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(90, 64, 80, 0.15);
  background: rgba(255, 255, 255, 0.5);
  transition: border-color 0.2s, background 0.2s;
  flex: 1;
  justify-content: center;
}

.radio-option:hover {
  background: rgba(255, 255, 255, 0.7);
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-custom {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(90, 64, 80, 0.25);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.radio-custom::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tw-amber);
  transform: scale(0);
  transition: transform 0.2s;
}

.radio-option input[type="radio"]:checked ~ .radio-custom {
  border-color: var(--tw-amber);
}

.radio-option input[type="radio"]:checked ~ .radio-custom::after {
  transform: scale(1);
}

.radio-option input[type="radio"]:checked ~ .radio-label {
  color: var(--ink);
  font-weight: 500;
}

.radio-label {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Form actions */
.form-actions {
  text-align: center;
  margin-top: 0.5rem;
}

.submit-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  background: linear-gradient(135deg, var(--moonlight) 0%, var(--tw-glow) 100%);
  border: none;
  border-radius: 999px;
  padding: 0.9rem 2rem;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 20px rgba(245, 230, 200, 0.2);
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(245, 230, 200, 0.3);
}

.submit-button:active { transform: translateY(0); }

.submit-button .button-text { position: relative; z-index: 1; }
.submit-button .button-glow {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.submit-button:hover .button-glow { opacity: 1; }

.terms-notice {
  font-size: 0.7rem;
  color: var(--ink-cream);
  opacity: 0.5;
  margin-top: 1rem;
  line-height: 1.6;
}

.terms-notice a {
  color: var(--moonlight);
  text-decoration: underline;
  text-decoration-color: rgba(245, 230, 200, 0.3);
}

/* ---------- Loading Section ---------- */
.loading-section {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    175deg,
    rgba(62, 47, 82, 0.95) 0%,
    rgba(94, 75, 114, 0.95) 40%,
    rgba(160, 120, 104, 0.95) 80%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.loading-container {
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 420px;
  width: 100%;
}

/* Moon loader */
.loading-orb {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.orb-core {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  box-shadow: -10px 7px 0 2px var(--moonlight);
  animation: moonFloat 4s ease-in-out infinite;
}

.orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(245, 230, 200, 0.15);
}

.ring-1 {
  animation: ringPulse 3s ease-in-out infinite;
}
.ring-2 {
  inset: -10px;
  animation: ringPulse 3s ease-in-out 1s infinite;
}
.ring-3 {
  inset: -20px;
  animation: ringPulse 3s ease-in-out 2s infinite;
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(1.05); }
}

.loading-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--moonlight);
  margin-bottom: 1.5rem;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(245, 230, 200, 0.12);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--tw-amber) 0%, var(--moonlight) 100%);
  border-radius: 3px;
  transition: width 0.4s ease-out;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-glow { display: none; }

.progress-label {
  font-size: 0.8rem;
  color: var(--ink-cream);
  opacity: 0.6;
  margin-top: 0.5rem;
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: rgba(240, 224, 208, 0.35);
  transition: color 0.3s;
}

.step-active {
  color: var(--moonlight);
}

.step-completed {
  color: var(--tw-glow);
}

.step-icon {
  font-size: 0.9rem;
  width: 1.5rem;
  text-align: center;
  flex-shrink: 0;
}

.step-text { text-align: left; }

.loading-tip {
  margin-top: 1.5rem;
  padding: 0.8rem 1rem;
  background: rgba(245, 230, 200, 0.08);
  border-left: 3px solid var(--tw-amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.8rem;
  color: var(--ink-cream);
  opacity: 0.6;
  text-align: left;
}

/* ---------- Error Section ---------- */
.error-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
}

.error-container {
  max-width: 480px;
  width: 100%;
}

.error-card {
  background: var(--parchment-a);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 230, 200, 0.18);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.error-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.error-card p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

/* ---------- Result Section ---------- */
.result-section {
  position: relative;
  padding: 3rem 1.25rem 4rem;
}

.result-container {
  max-width: 600px;
  margin: 0 auto;
}

.result-header {
  text-align: center;
  margin-bottom: 2rem;
}

.success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  color: var(--tw-glow);
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes popIn {
  0%   { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.result-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--parchment);
  margin-bottom: 0.4rem;
}

.result-subtitle {
  font-size: 0.85rem;
  color: var(--ink-cream);
  opacity: 0.65;
}

.result-step {
  background: var(--parchment-a);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 230, 200, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-card);
}

.result-step .step-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1rem;
}

.step-description {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

/* Report content (LLM teaser) */
.report-content {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--ink);
}

.report-content h2,
.report-content h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  color: var(--ink);
}

.report-content h2 { font-size: 1.05rem; }
.report-content h3 { font-size: 0.95rem; }
.report-content p  { margin-bottom: 0.6rem; }

.report-content ul,
.report-content ol {
  padding-left: 1.2rem;
  margin-bottom: 0.6rem;
}

.report-content li { margin-bottom: 0.3rem; }

/* Teaser benefit list */
.teaser-list {
  list-style: none;
  padding: 0;
}

.teaser-list > li {
  position: relative;
  padding: 0.75rem 0 0.75rem 1.5rem;
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.7;
}

.teaser-list > li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0.75rem;
  color: var(--tw-amber);
  font-size: 0.7rem;
}

.teaser-list > li + li {
  border-top: 1px solid rgba(90, 64, 80, 0.08);
}

.teaser-list strong {
  display: block;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.teaser-sub-list {
  list-style: none;
  padding: 0.35rem 0 0 0;
}

.teaser-sub-list li {
  font-size: 0.8rem;
  color: var(--ink-soft);
  padding: 0.15rem 0 0.15rem 1rem;
  position: relative;
}

.teaser-sub-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--ink-muted);
}

/* Link steps */
.link-step {
  margin-bottom: 1.25rem;
}

.link-step:last-child { margin-bottom: 0; }

.link-step-label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.link-step-hint {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}

.prompt-display {
  display: flex;
  justify-content: center;
}

.line-code-display {
  font-family: 'Courier New', monospace;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--tw-amber);
  background: rgba(196, 149, 106, 0.08);
  border: 2px dashed rgba(196, 149, 106, 0.3);
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  text-align: center;
}

.button-center {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
}

/* Action buttons */
.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.75rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.action-button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.action-button:active { transform: translateY(0); }

.action-button.primary {
  color: #fff;
  background: var(--line-green);
  box-shadow: 0 3px 16px rgba(6, 199, 85, 0.25);
}

.action-button.primary:hover {
  box-shadow: 0 5px 24px rgba(6, 199, 85, 0.35);
}

.action-button.secondary {
  color: var(--ink);
  background: linear-gradient(135deg, var(--moonlight) 0%, var(--tw-glow) 100%);
  box-shadow: 0 3px 12px rgba(245, 230, 200, 0.2);
}

.action-button.secondary:hover {
  box-shadow: 0 5px 20px rgba(245, 230, 200, 0.3);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding: 2rem 1.25rem;
  text-align: center;
}

.footer-legal { }

.footer-content { }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--ink-cream);
  opacity: 0.45;
  text-decoration: none;
}

.footer-links a:hover { opacity: 0.7; text-decoration: underline; }

.footer-copyright {
  font-size: 0.7rem;
  color: var(--ink-cream);
  opacity: 0.3;
}

/* ---------- Scroll Reveal ---------- */
.scroll-reveal,
.scroll-reveal-left,
.scroll-reveal-right {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal-left  { transform: translateX(-24px); }
.scroll-reveal-right { transform: translateX(24px); }

.scroll-reveal.is-visible,
.scroll-reveal-left.is-visible,
.scroll-reveal-right.is-visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ---------- Entrance Animations ---------- */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .hero-title { font-size: 2.2rem; }
  .form-section-block { padding: 2rem; }
  .crescent-moon {
    width: 70px;
    height: 70px;
    box-shadow: -16px 12px 0 4px var(--moonlight);
  }
  .result-step { padding: 2rem; }
  .line-code-display { font-size: 2.5rem; }
}

@media (max-width: 380px) {
  .radio-group { flex-direction: column; }
  .line-code-display {
    font-size: 1.6rem;
    letter-spacing: 0.2em;
    padding: 0.6rem 1rem;
  }
}

/* ---------- Date input fix (iOS/Android) ---------- */
input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
}

input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}

/* Has-detail list tweak */
.teaser-list.has-detail > li {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

/* ========================================
   Report / Survey page additions
   ======================================== */

/* Report page body — standalone (no hero, atmosphere via _wrap_page) */
body.report-page {
  padding-top: 4.5rem;
}

body.report-page .result-section {
  display: block;
  padding: 2rem 1.25rem 4rem;
}

/* Report content extended (full-length reports) */
.report-content h1 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1.25rem 0 0.6rem;
}

.report-content blockquote {
  margin: 0.75rem 0;
  padding: 0.6rem 1rem;
  border-left: 3px solid var(--tw-amber);
  background: rgba(196, 149, 106, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.report-content hr {
  border: none;
  border-top: 1px solid rgba(90, 64, 80, 0.1);
  margin: 1.5rem 0;
}

/* ---------- Survey: Rating Scale ---------- */
.rating-scale {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.rating-label-low,
.rating-label-high {
  font-size: 0.7rem;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.rating-options {
  display: flex;
  gap: 0.35rem;
}

.rating-option {
  cursor: pointer;
}

.rating-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(90, 64, 80, 0.15);
  border-radius: 50%;
  transition: all 0.2s;
}

.rating-option:hover span {
  background: rgba(255, 255, 255, 0.75);
  border-color: var(--tw-amber);
}

.rating-option input[type="radio"]:checked + span {
  color: #fff;
  background: var(--tw-amber);
  border-color: var(--tw-amber);
  box-shadow: 0 2px 8px rgba(196, 149, 106, 0.3);
}

/* ---------- Survey: Checkbox group ---------- */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--ink);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(90, 64, 80, 0.12);
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.checkbox-option:hover {
  background: rgba(255, 255, 255, 0.65);
}

.checkbox-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--tw-amber);
  flex-shrink: 0;
}

/* ---------- Survey: Textarea ---------- */
textarea.form-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(90, 64, 80, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

textarea.form-input:focus {
  outline: none;
  border-color: var(--tw-amber);
  box-shadow: 0 0 0 3px rgba(196, 149, 106, 0.15);
  background: rgba(255, 255, 255, 0.85);
}

textarea.form-input::placeholder {
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.form-input::placeholder {
  color: var(--ink-muted);
  font-size: 0.82rem;
}
