/* Gram Shield — white page matching Gram Detect visual language */
:root {
  --ig: linear-gradient(100deg, #ffd600, #ff7a00 27%, #ff0069 66%, #7638fa);
  --bg: linear-gradient(180deg, #f6eef8 0%, #fce8f0 45%, #f3e8ff 100%);
  --bg-solid: #f5eaf5;
  --card: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --radius: 32px;
  --radius-sm: 16px;
  --max: 430px;
  --shadow: 0 8px 32px rgba(150, 47, 191, 0.08);
  --font: Inter, system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  background-color: var(--bg-solid);
  color: var(--ink);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}

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

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

button,
input {
  font-family: inherit;
}

#app {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 100dvh;
  padding: 18px 16px 40px;
}

.brand-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 4px 0 18px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-gram {
  color: var(--ink);
}

.brand-detect {
  background: linear-gradient(90deg, #ffd600, #ff7a00 40%, #ff0069 75%, #7638fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ig-gradient-text {
  background: var(--ig);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ig-line {
  height: 3px;
  border-radius: 99px;
  background: var(--ig);
  margin: 0 0 18px;
}

.card {
  background: var(--card);
  border-radius: 30px;
  padding: 18px 18px 20px;
  box-shadow: 0 10px 36px rgba(150, 47, 191, 0.1);
  margin-bottom: 14px;
}

.section-card.soft {
  background: linear-gradient(180deg, #ffffff 0%, #fff7fb 100%);
  border: 1px solid #fce7f3;
}

.hero-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 18px;
  border-radius: 20px;
  overflow: hidden;
  background: #1a1028;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, #ff2d8d, transparent);
  box-shadow:
    0 0 8px 2px rgba(255, 45, 141, 0.85),
    0 0 18px 4px rgba(255, 45, 141, 0.4);
  animation: heroScan 3.2s linear infinite;
}

@keyframes heroScan {
  0% {
    top: 0;
    opacity: 0.85;
  }
  100% {
    top: 100%;
    opacity: 0.85;
  }
}

.live-pill {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulse 1.6s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.landing-h1 {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}

.landing-sub {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 14px;
}

.free-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 auto 16px;
  width: fit-content;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
}

.cta-row {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.btn-gradient {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--ig);
  box-shadow: 0 10px 24px rgba(214, 41, 118, 0.28);
}

.btn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid #f9a8d4;
  background: #fff;
  color: #9d174d;
  font-size: 14px;
  font-weight: 700;
}

.pen-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 16px;
  padding: 12px 14px;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.45;
}

.pen-note b {
  color: #111827;
}

.pn-ic {
  flex-shrink: 0;
}

.section-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 18px;
  line-height: 1.45;
}

.technique-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.technique-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: #fff7fb;
  border: 1px solid #fce7f3;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  background: var(--ig);
}

.technique-list h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 4px;
}

.technique-list p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.habit-grid {
  list-style: none;
  display: grid;
  gap: 10px;
}

.habit-grid li {
  border-radius: 16px;
  padding: 14px;
  background: #fff;
  border: 1px solid #f9a8d4;
  box-shadow: var(--shadow);
}

.habit-grid strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 4px;
}

.habit-grid span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.checks {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.checks label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff7fb;
  border: 1px solid #fce7f3;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.checks input {
  margin-top: 2px;
  accent-color: #d62976;
  flex-shrink: 0;
}

.progress {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #9d174d;
}

.faq-section {
  margin-top: 8px;
  padding-bottom: 8px;
}

.faq-title {
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  margin: 10px 0 14px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-box {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-box-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.faq-q {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.faq-x {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fce7f3;
  color: #9d174d;
  font-size: 18px;
  font-weight: 700;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-box.open .faq-x {
  transform: rotate(0deg);
}

.faq-box-body {
  display: none;
  padding: 0 16px 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.faq-box.open .faq-box-body {
  display: block;
}

.site-foot {
  margin-top: 18px;
  padding: 18px 8px 8px;
  text-align: center;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.site-foot .brand-name {
  font-size: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-scan-line,
  .live-dot {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
