/* Swecasting design system */
:root {
  --bg: #0c0c11;
  --bg-2: #14141c;
  --surface: #181822;
  --surface-2: #20202c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 107, 157, 0.45);
  --text: #f6f6f8;
  --muted: #c2c2d2;
  --faint: #9b9bb0;
  --pink: #ff4d78;
  --pink-2: #ff8aab;
  --gold: #e2b15a;
  --ok: #7ddeaf;
  --danger: #ff8b9a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --max: 1080px;
  --sans: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background:
    radial-gradient(900px 420px at 50% -80px, rgba(255, 77, 120, 0.16), transparent 60%),
    linear-gradient(180deg, #14141d 0%, var(--bg) 280px);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
}
img { max-width: 100%; height: auto; }
a { color: var(--pink-2); }
a:hover { color: #ffd0de; }
:focus-visible {
  outline: 2px solid var(--pink-2);
  outline-offset: 3px;
}
::selection { background: rgba(255, 77, 120, 0.35); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  color: #111;
  padding: 8px 12px;
  z-index: 1000;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.age-bar {
  background: #120f14;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}
.age-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.age-bar button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
}
.age-bar button:hover { border-color: var(--pink); }

.site-header {
  text-align: center;
  padding: 54px 20px 36px;
}
.logo-wrap { margin-bottom: 8px; }
.logo { width: min(340px, 78vw); height: auto; }
.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
}
.site-header h1,
.page-title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.lede {
  max-width: 720px;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 1.05rem;
}
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--pink), #ff6f93);
  color: white;
  box-shadow: 0 8px 24px rgba(255, 77, 120, 0.28);
}
.btn-primary:hover { color: white; transform: translateY(-1px); }
.btn-ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { border-color: var(--pink-2); color: white; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 28px 20px 64px; }
.stack { display: grid; gap: 18px; }
.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 16px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card, .panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card h2, .card h3, .panel h2, .panel h3 { margin-top: 0; }
.card p, .panel p, .prose p { color: var(--muted); }
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }

.section-title {
  margin: 8px 0 8px;
  font-size: clamp(1.5rem, 2vw, 2rem);
  letter-spacing: -0.03em;
}
.section-intro { color: var(--muted); max-width: 70ch; margin-top: 0; }

.notice {
  border-radius: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: #1a1720;
}
.notice strong { color: white; }
.notice p { margin: 6px 0 0; color: var(--muted); }
.notice.important { border-color: rgba(255, 77, 120, 0.45); }
.notice.warn { border-color: rgba(226, 177, 90, 0.45); }

.stat {
  text-align: center;
  padding: 22px 12px;
  border-radius: 16px;
  background: #14141c;
  border: 1px solid var(--line);
}
.stat b {
  display: block;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}
.stat span { color: var(--faint); font-size: 0.88rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 18px 0;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
}
.steps .n {
  width: 28px;
  height: 28px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pink);
  font-size: 0.8rem;
  font-weight: 800;
}
.steps strong { display: block; font-size: 0.92rem; }
.steps span { color: var(--faint); font-size: 0.78rem; }

.promo {
  border: 1px solid rgba(255, 77, 120, 0.4);
  background:
    linear-gradient(135deg, rgba(255, 77, 120, 0.12), rgba(255,255,255,0.02) 42%);
}
.kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink-2);
  margin-bottom: 8px;
}
.points { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.points span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.88rem;
  background: rgba(0,0,0,0.18);
}
.fine { color: var(--faint); font-size: 0.86rem; }

.breadcrumb {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 20px 0;
  color: var(--faint);
  font-size: 0.86rem;
}
.breadcrumb a { text-decoration: none; font-weight: 650; }

.timeline { display: grid; gap: 12px; }
.timeline article {
  border-left: 3px solid var(--pink);
  padding: 4px 0 4px 16px;
}
.timeline h3 { margin: 0 0 4px; font-size: 1rem; }
.timeline p { margin: 0; color: var(--muted); }

.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.values article {
  background: #14141c;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.values h3 { margin: 0 0 6px; font-size: 1rem; }
.values p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.news { display: grid; gap: 12px; }
.news article {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  background: var(--surface);
}
.news article.important { border-color: rgba(255, 77, 120, 0.4); }
.news time { color: var(--pink-2); font-size: 0.82rem; font-weight: 700; }
.news h2 { margin: 6px 0 8px; font-size: 1.12rem; }
.news p { margin: 0; color: var(--muted); }

.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 0 18px;
}
.faq details + details { margin-top: 10px; }
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after { content: "+"; float: right; color: var(--pink-2); }
.faq details[open] summary:after { content: "–"; }
.faq details p, .faq details li { color: var(--muted); }
.faq details p:last-child { margin-bottom: 16px; }

.prose h2 {
  font-size: 1.25rem;
  margin: 32px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.prose ul, .prose ol { color: var(--muted); padding-left: 1.2rem; }
.prose li { margin: 0 0 8px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { color: var(--pink-2); background: #14141c; }
td { color: var(--muted); }
.update-date { color: var(--faint); font-size: 0.9rem; }

.contact-box {
  border-left: 3px solid var(--pink);
  padding: 8px 0 8px 16px;
  margin-top: 24px;
}

.calculator { display: grid; gap: 10px; }
.option-item, .option-item.addon {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #14141c;
  padding: 14px;
}
.option-item.selected, .option-item:has(input:checked) {
  border-color: var(--pink);
  background: #221821;
}
.option-item.disabled { opacity: 0.55; }
.option-checkbox { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.option-content { display: flex; justify-content: space-between; gap: 12px; width: 100%; align-items: center; }
.option-title { font-weight: 700; }
.option-description, .eligibility-note { color: var(--faint); font-size: 0.86rem; }
.option-amount { color: var(--pink-2); font-weight: 800; white-space: nowrap; }
.option-section-title {
  margin: 16px 0 8px;
  color: var(--faint);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}
.total-section {
  margin-top: 8px;
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  background: linear-gradient(135deg, #ff4d78, #ff8aab);
  color: white;
}
.total-amount { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.04em; }
.total-breakdown { font-size: 0.88rem; }

.form-container { display: grid; gap: 14px; max-width: 680px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #101017;
  color: white;
  padding: 12px 14px;
  font: inherit;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.help { color: var(--faint); font-size: 0.8rem; margin-top: 6px; }
.submit-btn {
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pink), #ff8aab);
  color: white;
  font-weight: 800;
  cursor: pointer;
  font: inherit;
}
.submit-btn:disabled { opacity: 0.7; cursor: wait; }
.form-loading { display: none; }
.form-loading.show { display: block; }
.form-loading-track { height: 6px; background: #2a2a3d; border-radius: 999px; overflow: hidden; position: relative; }
.form-loading-bar {
  position: absolute; top: 0; left: -35%; width: 35%; height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--pink-2));
  animation: loadingSweep 1.2s ease-in-out infinite;
}
@keyframes loadingSweep { to { left: 100%; } }
.form-dialog { display: none; margin-top: 8px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); }
.form-dialog.show { display: block; }
.form-dialog.success { border-color: rgba(125, 222, 175, 0.5); }
.form-dialog.error { border-color: rgba(255, 139, 154, 0.5); }
.form-dialog-title { display: block; font-weight: 800; margin-bottom: 4px; }
.form-dialog-detail { color: var(--muted); font-size: 0.9rem; }
.form-note { color: var(--faint); font-size: 0.84rem; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 20px 40px;
  text-align: center;
  color: var(--faint);
  font-size: 0.86rem;
}
.site-footer a { color: var(--faint); }
.site-footer a:hover { color: var(--pink-2); }

@media (max-width: 900px) {
  .grid-4, .grid-3, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .values, .steps { grid-template-columns: 1fr; }
  .option-content, .age-bar-inner { flex-direction: column; align-items: flex-start; }
  .site-header { padding-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .form-loading-bar { animation: none; left: 0; width: 100%; }
  .btn-primary:hover { transform: none; }
}
