/* =========================================================
   Growie — 앱 소개 페이지 스타일
   팔레트: 새싹 그린 + 따뜻한 브라운 + 크림
   PC 우선, 모바일 적응형
   ========================================================= */

:root {
  --green: #5FB84E;
  --green-dark: #3E9B3A;
  --green-soft: #EAF6E3;
  --green-mint: #F4FBEF;
  --brown: #9C6B3F;
  --brown-dark: #6E4A29;
  --cream: #FDF9F1;
  --cream-2: #FFFDF8;
  --card: #FFFFFF;
  --ink: #3A2E23;
  --ink-soft: #5C5044;
  --muted: #94897B;
  --line: #EFE7DA;
  --amber: #F4B740;
  --rare: #5AA9F0;
  --legend: #B57BE0;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 4px 14px rgba(90, 66, 40, 0.06);
  --shadow: 0 12px 30px rgba(90, 66, 40, 0.10);
  --shadow-lg: 0 24px 60px rgba(90, 66, 40, 0.14);
  --header-h: 68px;
  --maxw: 1120px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic",
    Meiryo, "Noto Sans JP", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.02em; margin: 0; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--green-dark);
  background: var(--green-soft);
  padding: 7px 14px;
  border-radius: 999px;
}

.section {
  padding: 96px 0;
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-size: 34px;
  font-weight: 800;
  margin: 18px 0 14px;
}
.section-head p {
  color: var(--ink-soft);
  font-size: 17px;
  margin: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(253, 249, 241, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(240, 140, 90, 0.35);
}
.brand__icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand__name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.help-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px 9px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  transition: border-color .2s, color .2s, transform .1s;
}
.help-link:hover { border-color: var(--green); color: var(--green-dark); }
.help-link:active { transform: scale(.97); }
.help-link svg { width: 20px; height: 20px; }
.help-link .help-text { display: inline; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 96px;
  background:
    radial-gradient(1100px 480px at 78% -8%, var(--green-soft), transparent 60%),
    radial-gradient(900px 500px at 8% 12%, #FFF6E6, transparent 55%),
    var(--cream);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: 52px;
  font-weight: 800;
  margin: 20px 0 20px;
}
.hero h1 .accent { color: var(--green-dark); }
.hero__lead {
  font-size: 19px;
  color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 520px;
}
.hero__sub {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 500px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .12s, box-shadow .2s, background .2s;
}
.btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(95, 184, 78, 0.4);
}
.btn--primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn--ghost {
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { border-color: var(--green); color: var(--green-dark); }

.hero__badges {
  display: flex;
  gap: 22px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.hero__badge { display: flex; flex-direction: column; }
.hero__badge b { font-size: 22px; font-weight: 800; color: var(--ink); }
.hero__badge span { font-size: 13px; color: var(--muted); }

/* Hero art — mascot on a soft stage */
.hero__art { position: relative; display: grid; place-items: center; }
.hero__stage {
  position: relative;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fff, var(--green-soft));
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
}
.hero__mascot {
  width: 260px;
  height: 260px;
  object-fit: contain;
  animation: float 4.5s ease-in-out infinite;
  filter: drop-shadow(0 18px 20px rgba(90, 66, 40, 0.18));
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.chip {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 700;
  animation: float 5s ease-in-out infinite;
}
.chip img { width: 26px; height: 26px; }
.chip--1 { top: 26px; left: -16px; animation-delay: .3s; }
.chip--2 { bottom: 60px; right: -22px; animation-delay: 1.1s; }
.chip--3 { bottom: 8px; left: 24px; animation-delay: 1.8s; }
.chip .streak { color: var(--amber); }

/* ---------- Intro (앱 소개) ---------- */
.intro { background: var(--cream-2); }
.intro__summary {
  max-width: 780px;
  margin: 0 auto 56px;
  text-align: center;
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.6;
}
.intro__summary b { color: var(--green-dark); }
.loop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.loop__node {
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 999px;
  white-space: nowrap;
}
.loop__arrow { color: var(--green); font-size: 20px; font-weight: 800; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pillar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}
.pillar__ico {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--green-soft);
  display: grid; place-items: center;
  margin-bottom: 16px;
  font-size: 26px;
}
.pillar h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.pillar p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- Screenshots (실제 앱 화면) ---------- */
.shots { background: var(--green-mint); overflow: hidden; }
.shots__scroller {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 24px 28px;
  margin: 0 -24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(95, 184, 78, 0.55) transparent;
}
.shots__scroller::-webkit-scrollbar { height: 8px; }
.shots__scroller::-webkit-scrollbar-thumb { background: rgba(95, 184, 78, 0.5); border-radius: 999px; }
.shots__scroller::-webkit-scrollbar-track { background: transparent; }
/* 항목이 넘치지 않을 때는 가운데 정렬처럼 보이도록 */
.shots__scroller::before,
.shots__scroller::after { content: ""; flex: 0 0 auto; margin: auto; }

.shot {
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: 234px;
  text-align: center;
}
.phone {
  width: 234px;
  background: #26211b;
  border-radius: 42px;
  padding: 9px;
  box-shadow: var(--shadow-lg);
  border: 1px solid #38312a;
}
.phone__screen {
  border-radius: 33px;
  overflow: hidden;
  background: #eef0f5;
  aspect-ratio: 1140 / 2622;
}
.phone__screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot__cap { margin-top: 16px; padding: 0 6px; }
.shot__cap b { display: block; font-size: 15px; font-weight: 800; }
.shot__cap span { font-size: 13px; color: var(--muted); }
.shots__hint {
  text-align: center;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}
.shots__hint::after { content: " →"; }

/* ---------- Features ---------- */
.features { background: var(--cream-2); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.fcard {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .2s;
  overflow: hidden;
}
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.fcard__num {
  position: absolute; top: 20px; right: 24px;
  font-size: 40px; font-weight: 800; color: var(--green-soft);
  line-height: 1;
}
.fcard__ico {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(150deg, var(--green-soft), #DDF2D2);
  display: grid; place-items: center;
  font-size: 28px;
  margin-bottom: 18px;
}
.fcard h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.fcard p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.fcard .tags { margin-top: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: var(--green-soft); color: var(--green-dark);
}

/* ---------- Materials strip ---------- */
.mats { background: var(--green-mint); }
.mat-rarity {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}
.rarity {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--line);
}
.rarity--common { border-top-color: #8BB98A; }
.rarity--uncommon { border-top-color: var(--green); }
.rarity--rare { border-top-color: var(--rare); }
.rarity--legend { border-top-color: var(--legend); }
.rarity__imgs { display: flex; justify-content: center; gap: 4px; margin-bottom: 12px; }
.rarity__imgs img { width: 46px; height: 46px; object-fit: contain; }
.rarity b { display: block; font-size: 15px; font-weight: 800; }
.rarity span { font-size: 12px; color: var(--muted); }

/* ---------- How to (사용 방법) ---------- */
.howto { background: var(--cream-2); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px 26px;
  box-shadow: var(--shadow-sm);
}
.step__badge {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 18px;
  margin-bottom: 16px;
  box-shadow: 0 6px 14px rgba(95,184,78,.35);
}
.step h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.step p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.step:not(:last-child)::after {
  content: "→";
  position: absolute; top: 44px; right: -14px;
  color: var(--green); font-weight: 800; font-size: 20px;
  z-index: 2;
}

/* ---------- Pets showcase ---------- */
.pets { background: var(--green-mint); }
.pet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pet {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .18s;
}
.pet:hover { transform: translateY(-6px) rotate(-1deg); }
.pet__ring {
  width: 120px; height: 120px; margin: 0 auto 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fff, var(--green-soft));
  display: grid; place-items: center;
}
.pet__ring img { width: 96px; height: 96px; object-fit: contain; }
.pet b { font-size: 15px; }
.pet span { display: block; font-size: 12px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  text-align: center;
  padding: 80px 0;
}
.cta-band h2 { font-size: 32px; font-weight: 800; margin-bottom: 14px; }
.cta-band p { font-size: 17px; opacity: .92; margin: 0 0 30px; }
.cta-band .btn--primary { background: #fff; color: var(--green-dark); box-shadow: 0 12px 26px rgba(0,0,0,.2); }
.cta-band .btn--primary:hover { background: #F4FFEF; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: 26px 0;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer .copy { color: #666; font-size: 14px; }
.site-footer a.privacy {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}
.site-footer a.privacy:hover { color: var(--green-dark); text-decoration: underline; }

/* ---------- Privacy page ---------- */
.doc {
  padding: calc(var(--header-h) + 56px) 0 80px;
  background: var(--cream-2);
  min-height: 70vh;
}
.doc__inner { max-width: 800px; margin: 0 auto; }
.doc h1 { font-size: 32px; font-weight: 800; margin-bottom: 10px; }
.doc .doc__meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.doc__notice {
  background: #FFF7E6;
  border: 1px solid #F3E2B8;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 14px;
  color: #8a6d1f;
  margin-bottom: 34px;
}
.doc h2 { font-size: 20px; font-weight: 800; margin: 32px 0 10px; }
.doc h3 { font-size: 17px; font-weight: 800; margin: 28px 0 10px; }
.doc h4 { font-size: 15px; font-weight: 800; margin: 22px 0 10px; color: var(--ink); }
.doc p, .doc li { color: var(--ink-soft); font-size: 15px; }
.doc ul { padding-left: 20px; }
.doc a { color: var(--green-dark); font-weight: 600; text-decoration: underline; }
.doc a:hover { color: var(--brown-dark); }
.doc__lead {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
  margin: 0 0 12px;
}
.doc section { scroll-margin-top: calc(var(--header-h) + 20px); }
.doc__placeholder {
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 22px;
  color: var(--muted);
  background: var(--cream);
}

/* 番号付きリスト（(1) / ①） */
.doc__list { list-style: none; padding-left: 0; margin: 12px 0 0; }
.doc__list > li {
  position: relative;
  padding-left: 2.6em;
  margin-bottom: 10px;
}
.doc__list > li > .n {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green-dark);
  font-weight: 700;
}
.doc__list > li > p { margin: 6px 0 0; }
.doc__list--sub { margin: 10px 0 4px; }
.doc__list--sub > li { padding-left: 1.8em; margin-bottom: 6px; }
.doc__list--sub > li > .n { color: var(--brown); }

/* 制定・署名ブロック */
.doc__sign {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.doc__sign p { margin: 0 0 6px; font-size: 14px; }
.doc__sign-label { color: var(--muted); font-weight: 700; }

/* 別紙：他社モジュール */
.doc__part { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.doc__part-title { font-size: 26px; margin: 0 0 14px; }
.doc__table-wrap { overflow-x: auto; margin-top: 12px; -webkit-overflow-scrolling: touch; }
.doc__table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.doc__table th,
.doc__table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  font-size: 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}
.doc__table tr:last-child th,
.doc__table tr:last-child td { border-bottom: 0; }
.doc__table th {
  width: 190px;
  background: var(--green-soft);
  color: var(--ink);
  font-weight: 700;
  border-right: 1px solid var(--line);
}
.doc__table td { color: var(--ink-soft); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   반응형 — 태블릿
   ========================================================= */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__art { order: -1; }
  .hero h1 { font-size: 42px; }
  .hero__lead, .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__cta, .hero__badges { justify-content: center; }
  .pillars { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .pet-grid { grid-template-columns: repeat(3, 1fr); }
  .mat-rarity { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   반응형 — 모바일
   ========================================================= */
@media (max-width: 620px) {
  :root { --header-h: 60px; }
  .container { padding: 0 18px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 38px; }
  .section-head h2 { font-size: 27px; }
  .section-head p { font-size: 15px; }

  .brand__name { font-size: 19px; }
  .help-link .help-text { display: none; }
  .help-link { padding: 9px; }

  .hero { padding: calc(var(--header-h) + 40px) 0 64px; }
  .hero h1 { font-size: 32px; }
  .hero__lead { font-size: 17px; }
  .hero__stage { width: 260px; height: 260px; }
  .hero__mascot { width: 200px; height: 200px; }
  .chip { font-size: 12px; padding: 8px 11px; }
  .chip--2 { right: -6px; }
  .btn { width: 100%; justify-content: center; }
  .hero__cta { width: 100%; }

  .intro__summary { font-size: 18px; }
  .loop__node { font-size: 13px; padding: 10px 14px; }

  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none !important; }
  .pet-grid { grid-template-columns: repeat(2, 1fr); }
  .mat-rarity { grid-template-columns: repeat(2, 1fr); }

  .shots__scroller { gap: 20px; padding: 10px 18px 24px; margin: 0 -18px; }
  .shot { width: 208px; }
  .phone { width: 208px; }

  .cta-band h2 { font-size: 25px; }
  .site-footer .container { justify-content: center; text-align: center; }

  .doc { padding: calc(var(--header-h) + 40px) 0 64px; }
  .doc h1 { font-size: 26px; }
  .doc__part-title { font-size: 22px; }
  .doc__lead { padding: 16px 18px; }
  .doc__list > li { padding-left: 2.3em; }
  .doc__table { min-width: 460px; }
  .doc__table th { width: 130px; }
  .doc__table th, .doc__table td { padding: 12px 13px; font-size: 13.5px; }
}
