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

:root {
  --primary: #1565c0;
  --primary-light: #eaf2fc;
  --primary-pale: #dcebfb;
  --primary-dark: #003c8f;
  --teal: #00897b;
  --teal-light: #e0f2f0;
  --blue: #5e92f3;
  --bg: #ffffff;
  --bg-cool: #f5f8fc;
  --bg-gray: #f7f6f4;
  --surface: #ffffff;
  --text: #212121;
  --text-muted: #757575;
  --radius: 20px;
  --radius-sm: 12px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Zen Maru Gothic', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

.nobr {
  display: inline-block;
  white-space: nowrap;
}

.text-primary {
  color: var(--primary);
}

.text-teal {
  color: var(--teal);
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 24px;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 900;
  text-align: center;
}

.section-lead {
  text-align: center;
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 0.95rem;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}

.nav-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.3s;
  display: inline-block;
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-cool);
  padding-top: 68px;
  overflow: hidden;
}

.hero-speedlines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.speed-line {
  position: absolute;
  right: -10%;
  height: 14px;
  border-radius: 8px;
  background: var(--primary-pale);
  transform: skewX(-24deg);
}

.line-1 {
  top: 14%;
  width: 46%;
  background: var(--teal-light);
}

.line-2 {
  top: 22%;
  width: 62%;
}

.line-3 {
  top: 29%;
  width: 34%;
  background: var(--teal-light);
}

.speed-block {
  position: absolute;
  top: -10%;
  right: -18%;
  width: 60%;
  height: 130%;
  background: linear-gradient(160deg, var(--primary-pale), var(--teal-light));
  transform: skewX(-14deg);
  opacity: 0.6;
}

@media (max-width: 899px) {
  .speed-block {
    width: 90%;
    right: -40%;
  }

  .hero-visual {
    margin-top: 56px;
  }
}

.hero-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  z-index: 0;
  background: repeating-linear-gradient(
    -45deg,
    var(--primary) 0,
    var(--primary) 24px,
    var(--teal) 24px,
    var(--teal) 48px
  );
  opacity: 0.9;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-bubble {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.4;
}

.hero-desc {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 1rem;
}

.hero-buttons {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-stack {
  position: relative;
  width: 280px;
  height: 400px;
}

.phone-mockup {
  position: absolute;
  width: 220px;
  height: 460px;
  background: #1a1a2e;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 30px 60px rgba(21, 101, 192, 0.25);
}

.phone-back {
  top: 0;
  left: 0;
  transform: rotate(-8deg);
  opacity: 0.85;
}

.phone-front {
  bottom: 0;
  right: 0;
  transform: rotate(6deg);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: #fff;
}

.placeholder-screen {
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-content {
  text-align: center;
  color: var(--primary);
}

.placeholder-content .ph-icon {
  width: 48px;
  height: 48px;
  fill: currentColor;
  opacity: 0.5;
}

.placeholder-content p {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.placeholder-content p span {
  font-size: 0.65rem;
}

/* ===== Problems ===== */
.problems {
  background: var(--bg);
}

.problems-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .problems-row {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

.problems-illust {
  text-align: center;
}

.problems-thought p {
  font-size: 1.2rem;
  font-weight: 700;
}

.problems-illust-img {
  margin-top: 20px;
  width: 100%;
  max-width: 280px;
  height: auto;
}

.problems-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.problems-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-gray);
  padding: 18px 20px;
  border-radius: var(--radius-sm);
}

.problems-num {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-style: italic;
  color: var(--teal);
  font-size: 1.1rem;
}

.problems-list p {
  font-weight: 700;
}

/* ===== Features ===== */
.features {
  background: var(--bg-cool);
}

.feature-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 700px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(21, 101, 192, 0.06);
}

.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.icon-primary {
  background: var(--primary-light);
  color: var(--primary);
}

.icon-teal {
  background: var(--teal-light);
  color: var(--teal);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== How ===== */
.how {
  background: var(--bg);
}

.how-steps {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 700px) {
  .how-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.how-step {
  text-align: center;
}

.step-phone {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 360px;
  margin-bottom: 24px;
}

.step-screen {
  width: 180px;
  height: 360px;
  background: #1a1a2e;
  border-radius: 26px;
  padding: 10px;
  box-shadow: 0 16px 32px rgba(21, 101, 192, 0.15);
}

.step-screen::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: var(--bg-cool);
}

.step-illust-only {
  box-shadow: none;
}

.step-illust {
  width: auto;
  height: 280px;
  max-width: 100%;
  object-fit: contain;
}

.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.how-step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.how-step p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== Plans ===== */
.plans {
  background: var(--bg-cool);
}

.plan-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 800px) {
  .plan-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.plan-card {
  position: relative;
  background: var(--surface);
  padding: 32px 28px;
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(21, 101, 192, 0.06);
  border: 2px solid transparent;
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 28px;
  background: var(--teal);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
}

.plan-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.02em;
  margin-top: 12px;
}

.plan-price {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--primary);
  margin: 12px 0 20px;
}

.plan-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-card li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}

.plan-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.plan-note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== FAQ ===== */
.faq {
  background: var(--bg);
}

.faq-list {
  margin-top: 40px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-gray);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  float: right;
  font-family: 'Poppins', sans-serif;
  color: var(--primary);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ===== Download ===== */
.download {
  background: var(--primary);
  color: #fff;
  text-align: center;
}

.download .section-title,
.download .section-lead {
  color: #fff;
}

.download-badges {
  margin-top: 32px;
}

.badge-soon {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ===== Footer ===== */
.footer {
  background: #0d1b2a;
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

.footer-brand img {
  width: 24px;
  height: 24px;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.82rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* ===== Mobile nav ===== */
@media (max-width: 700px) {
  .nav-links {
    display: none;
  }
}

:focus-visible {
  outline: 3px solid #142d4e;
  outline-offset: 4px;
}

.footer :focus-visible {
  outline-color: #fff;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 12px 20px;
  background: #fff;
  color: #142d4e;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
