/* ============================================================
   CladPilot LP — design system
   Palette: indigo #4F46E5 / bg #ffffff / ink #111827
   Type: Noto Sans JP
   ============================================================ */

:root {
  --indigo: #4f46e5;
  --indigo-600: #4338ca;
  --indigo-700: #3730a3;
  --indigo-050: #eef2ff;
  --bg: #ffffff;
  --ink: #111827;
  --muted: #4b5563;
  --faint: #6b7280;
  --line: #e5e7eb;
  --navy: #0e1020;
  --navy-2: #161a30;

  --radius: 8px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --container: 1120px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06), 0 4px 14px rgba(17, 24, 39, 0.05);
  --shadow-md: 0 10px 30px rgba(17, 24, 39, 0.1);
  --shadow-indigo: 0 16px 40px rgba(79, 70, 229, 0.28);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: 'Noto Sans JP', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Eyebrow / section titles ---------- */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--indigo);
  margin: 0 0 14px;
}
.eyebrow--light {
  color: #b9b6ff;
}

.section {
  padding-block: clamp(64px, 10vw, 120px);
}

.section__title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--indigo);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s var(--ease);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.btn:hover {
  background: var(--indigo-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-indigo);
}
.btn:active {
  transform: translateY(0);
}
.btn:focus-visible {
  outline: 3px solid #a5b4fc;
  outline-offset: 2px;
}
.btn__arrow {
  transition: transform 0.25s var(--ease);
}
.btn:hover .btn__arrow {
  transform: translateX(4px);
}
.btn--sm {
  padding: 10px 18px;
  font-size: 0.9rem;
}
.btn--lg {
  padding: 18px 34px;
  font-size: 1.06rem;
}
.btn--block {
  width: 100%;
  justify-content: center;
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--indigo);
  border-color: var(--line);
  box-shadow: none;
}
.btn--ghost:hover {
  --btn-bg: var(--indigo-050);
  background: var(--indigo-050);
  box-shadow: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.01em;
}
.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.brand__name {
  font-size: 1.15rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.55;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 120% at 12% 18%, rgba(79, 70, 229, 0.55) 0%, rgba(14, 16, 32, 0) 55%),
    linear-gradient(180deg, rgba(14, 16, 32, 0.62) 0%, rgba(14, 16, 32, 0.86) 100%);
}
.hero__inner {
  padding-block: clamp(96px, 16vw, 168px);
  max-width: 820px;
}
.hero__title {
  font-size: clamp(2.3rem, 6.4vw, 4.1rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
}
.hero__sub {
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  color: #d7d9ef;
  max-width: 38em;
  margin: 0 0 2.2em;
  line-height: 1.95;
}
.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.hero__note {
  font-size: 0.88rem;
  color: #aeb1d6;
}

/* ---------- Problem ---------- */
.problem {
  background: var(--bg);
}
.problem__inner {
  max-width: 800px;
}
.problem__lead {
  font-size: clamp(1.02rem, 2.1vw, 1.2rem);
  color: var(--muted);
  margin: 0;
  line-height: 2;
}

/* ---------- Features ---------- */
.features {
  background: var(--indigo-050);
  background-image: linear-gradient(180deg, #f7f8ff 0%, #eef1ff 100%);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 14px;
}
.feature-card {
  position: relative;
  background: #fff;
  border: 1px solid #e6e8f5;
  border-radius: var(--radius-lg);
  padding: 34px 30px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--indigo), #8b85ff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: #c9ccf3;
}
.feature-card:hover::before {
  transform: scaleX(1);
}
.feature-card__index {
  display: block;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--indigo);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.feature-card__title {
  font-size: 1.22rem;
  font-weight: 700;
  margin: 0 0 0.6em;
  line-height: 1.5;
}
.feature-card__body {
  font-size: 0.96rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.95;
}
.features__note {
  margin: 22px 0 0;
  font-size: 0.9rem;
  color: var(--faint);
  text-align: center;
}

/* ---------- Showcase / screenshots ---------- */
.showcase {
  background: var(--navy);
  background-image:
    radial-gradient(80% 60% at 50% -10%, rgba(79, 70, 229, 0.35), rgba(14, 16, 32, 0) 60%);
  color: #fff;
}
.showcase .eyebrow {
  color: #b9b6ff;
}
.showcase .section__title {
  color: #fff;
}
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 40px;
}
.shot {
  margin: 0;
  text-align: center;
}
/* smartphone device frame: dark bezel + rounded screen */
.shot__frame {
  position: relative;
  margin-inline: auto;
  max-width: 300px;
  padding: 26px 12px;
  border-radius: 44px;
  background: #15171e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45), inset 0 0 0 2px rgba(255, 255, 255, 0.05);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.shot:hover .shot__frame {
  transform: translateY(-8px);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5), inset 0 0 0 2px rgba(255, 255, 255, 0.05);
}
/* speaker pill sitting in the top bezel */
.shot__bar {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 60px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}
.shot__bar::before {
  content: none;
}
.shot__frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
}
.shot figcaption {
  margin-top: 20px;
  font-size: 0.96rem;
  font-weight: 400;
  color: #c8cbed;
}

/* ---------- Pricing ---------- */
.pricing {
  background: var(--bg);
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 860px;
  margin: 24px auto 0;
}
.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 38px 34px;
  display: flex;
  flex-direction: column;
}
.plan--featured {
  border-color: var(--indigo);
  box-shadow: var(--shadow-indigo);
}
.plan__badge {
  position: absolute;
  top: 22px;
  right: 24px;
  background: var(--indigo);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 999px;
}
.plan__name {
  font-size: 1.25rem;
  font-weight: 900;
  margin: 0 0 12px;
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 22px;
}
.plan__amount {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}
.plan__cycle {
  font-size: 0.98rem;
  color: var(--faint);
  font-weight: 400;
}
.plan__list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  flex: 1;
}
.plan__list li {
  position: relative;
  padding-left: 30px;
  padding-block: 9px;
  color: var(--muted);
  border-top: 1px solid #f1f2f7;
}
.plan__list li:first-child {
  border-top: none;
}
.plan__list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  width: 16px;
  height: 9px;
  border-left: 2.5px solid var(--indigo);
  border-bottom: 2.5px solid var(--indigo);
  transform: translateY(-65%) rotate(-45deg);
}

/* ---------- Story / note link ---------- */
.story {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  padding-block: clamp(48px, 7vw, 72px);
}
.story__inner {
  max-width: 560px;
  margin-inline: auto;
}
.story__eyebrow {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0 0 8px;
}
.story__title {
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 12px;
}
.story__lead {
  font-size: 0.95rem;
  color: #475569;
  max-width: 480px;
  margin: 0 auto 26px;
  line-height: 1.9;
}
.story__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: var(--indigo);
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.story__link:hover {
  border-color: var(--indigo);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.story__link:focus-visible {
  outline: 3px solid #a5b4fc;
  outline-offset: 2px;
}
.story__link:hover .btn__arrow {
  transform: translateX(4px);
}

/* ---------- Final CTA ---------- */
.final-cta {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-700) 100%);
  color: #fff;
  text-align: center;
}
.final-cta__title {
  font-size: clamp(1.5rem, 3.6vw, 2.3rem);
  font-weight: 900;
  line-height: 1.5;
  margin: 0 0 1.2em;
}
.final-cta .btn {
  --btn-bg: #fff;
  --btn-fg: var(--indigo-700);
}
.final-cta .btn:hover {
  --btn-bg: #f3f3ff;
  background: #f3f3ff;
}
.cta-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}
.cta-qr__card {
  background: #fff;
  padding: 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  line-height: 0;
}
.cta-qr__img {
  width: 180px;
  height: 180px;
  display: block;
}
.cta-qr__note {
  margin: 0;
  font-size: 0.95rem;
  color: #e7e7ff;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #c8cbed;
  padding-block: 48px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #fff;
}
.footer__brand img {
  border-radius: 7px;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.footer__links a {
  font-size: 0.9rem;
  color: #aeb1d6;
  transition: color 0.2s var(--ease);
}
.footer__links a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer__copy {
  margin: 0;
  margin-left: auto;
  font-size: 0.86rem;
  color: #8a8eb4;
}
.footer__ai {
  width: 100%;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: #8a8eb4;
}

/* ---------- Reveal animation (only when JS is on) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
.js [data-reveal]:nth-child(2) { transition-delay: 0.06s; }
.js [data-reveal]:nth-child(3) { transition-delay: 0.12s; }
.js [data-reveal]:nth-child(4) { transition-delay: 0.18s; }
.js .feature-grid [data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.js .feature-grid [data-reveal]:nth-child(3) { transition-delay: 0.2s; }
.js .shots [data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.js .shots [data-reveal]:nth-child(3) { transition-delay: 0.2s; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .feature-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
  .shots {
    grid-template-columns: 1fr;
    gap: 44px;
    max-width: 300px;
    margin-inline: auto;
  }
  .plan-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
  }
  .footer__copy {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .container {
    padding-inline: 18px;
  }
  .hero__inner {
    padding-block: 96px;
  }
  .btn--lg {
    width: 100%;
    justify-content: center;
  }
  .hero__actions {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
