:root {
  color-scheme: dark;
  --ink: #f8f7f4;
  --muted: #aaa7a2;
  --paper: #0c0d0f;
  --panel: #15171b;
  --line: #2b2d33;
  --hot: #ff6f61;
  --sun: #ffc857;
  --sky: #5dd9c1;
  --shadow: 0 24px 80px rgb(0 0 0 / 35%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% -10%, rgb(255 111 97 / 16%), transparent 36rem),
    radial-gradient(circle at -10% 24%, rgb(93 217 193 / 11%), transparent 30rem),
    var(--paper);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  line-height: 1.7;
}

a { color: inherit; }

button, input { font: inherit; }

.shell { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
}

.brand { font-weight: 900; letter-spacing: .12em; text-decoration: none; }
.brand span { color: var(--hot); }
.top-link { color: var(--muted); text-decoration: none; font-size: .9rem; }

.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 64px;
  align-items: center;
  min-height: 72vh;
  padding-block: 64px 92px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sky);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(2.7rem, 7vw, 6.6rem); line-height: .99; letter-spacing: -.065em; }
h1 em { color: var(--hot); font-style: normal; }
.hero-copy { max-width: 43rem; color: #d1cfca; font-size: clamp(1rem, 2vw, 1.2rem); }

.hero-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(145deg, #1a1c21, #111215);
  box-shadow: var(--shadow);
}

.orbit { position: absolute; border: 1px solid rgb(255 255 255 / 12%); border-radius: 50%; }
.orbit-one { width: 420px; height: 420px; top: -90px; right: -190px; }
.orbit-two { width: 250px; height: 250px; bottom: -130px; left: -70px; }
.ticket {
  position: absolute;
  inset: 70px 48px;
  display: grid;
  align-content: space-between;
  padding: 30px;
  border-radius: 22px;
  color: #121315;
  background: linear-gradient(135deg, var(--sun), #ff8f70);
  transform: rotate(-4deg);
}
.ticket small { font-weight: 900; letter-spacing: .12em; }
.ticket strong { font-size: clamp(2rem, 5vw, 4rem); line-height: 1; }
.ticket span { font-weight: 700; }

.section { padding-block: 96px; }
.section-heading { max-width: 700px; margin-bottom: 38px; }
.section h2 { font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.08; letter-spacing: -.045em; }
.section-heading > p:last-child { color: var(--muted); }

.planner-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.form-card, .result-card, .product-card, .faq-item {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgb(21 23 27 / 88%);
}
.form-card, .result-card { padding: clamp(22px, 4vw, 36px); }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { color: #c8c6c1; font-size: .86rem; font-weight: 700; }
.field input {
  width: 100%;
  border: 1px solid #3a3d44;
  border-radius: 12px;
  padding: 13px 14px;
  color: var(--ink);
  background: #0f1013;
  outline: none;
}
.field input:focus { border-color: var(--sky); box-shadow: 0 0 0 3px rgb(93 217 193 / 12%); }
.field.wide { grid-column: 1 / -1; }

.result-card { display: flex; flex-direction: column; justify-content: space-between; }
.countdown { color: var(--sky); font-weight: 800; }
.result-list { display: grid; gap: 14px; margin: 24px 0; }
.result-row { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.result-row.total { align-items: end; border: 0; padding-top: 12px; }
.result-row.total strong { color: var(--sun); font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1; }
#difference[data-state="safe"] { color: var(--sky); }
#difference[data-state="over"] { color: var(--hot); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  color: #111214;
  background: var(--sun);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { transform: translateY(-2px); }
.button.secondary { color: var(--ink); background: #26282e; }
.button.is-disabled { color: #777; background: #24252a; cursor: not-allowed; transform: none; }
.copy-wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.share-link { color: var(--sky); font-size: .88rem; font-weight: 800; text-underline-offset: .2em; }
#copy-status { color: var(--sky); font-size: .86rem; }

.product-section { border-block: 1px solid var(--line); background: #101114; }
.product-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; padding: clamp(28px, 5vw, 64px); }
.product-badge { display: grid; place-items: center; min-height: 340px; border-radius: 20px; background: linear-gradient(145deg, #272a31, #17181c); }
.product-badge span { display: grid; place-items: center; width: 190px; aspect-ratio: 1; border: 2px solid var(--hot); border-radius: 50%; color: var(--hot); font-size: 1.6rem; font-weight: 900; letter-spacing: .08em; transform: rotate(-8deg); }
.feature-list { padding: 0; list-style: none; }
.feature-list li { padding: 11px 0 11px 30px; border-bottom: 1px solid var(--line); position: relative; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--sky); font-weight: 900; }
.price { margin: 28px 0 20px; font-size: 1rem; }
.price strong { margin-right: 8px; font-size: 2.5rem; }
.note { margin-top: 14px; color: var(--muted); font-size: .78rem; }

.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.faq-item { padding: 24px; }
.faq-item p { margin-bottom: 0; color: var(--muted); }

footer { padding-block: 46px; color: var(--muted); font-size: .82rem; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 800px) {
  .hero, .planner-grid, .product-card { grid-template-columns: 1fr; }
  .hero { gap: 28px; padding-top: 32px; }
  .hero-card { min-height: 310px; }
  .ticket { inset: 54px 40px; }
  .field-grid, .faq-grid { grid-template-columns: 1fr; }
  .field.wide { grid-column: auto; }
  .section { padding-block: 68px; }
}

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