/* 토치의 화분 · Tochi's Flowerpot — app page and privacy policy.
   Colours follow the app theme (flutter_app/lib/core/theme/app_theme.dart). */
:root {
  --cream: #fffcf4;
  --paper: #f6f5ef;
  --ink: #23312b;
  --ink-soft: #55645d;
  --navy: #071f2b;
  --slate: #103746;
  --cyan: #28d7e5;
  --lime: #8ce65b;
  --lime-deep: #4f9e2b;
  --sky: #00aeef;
  --red: #f04438;
  --gold: #ffc400;
  --green: #00a86b;
  --line: rgba(35, 49, 43, 0.12);
  --card: #ffffff;
  --shadow: 0 18px 40px -22px rgba(7, 31, 43, 0.45);
  --radius: 22px;
  --display: "Jua", "Nunito", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --body: "Nunito", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; }
@media (max-width: 640px) { [id] { scroll-margin-top: 120px; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 252, 244, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 18px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 1.25rem; color: var(--navy); }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 4px 10px -4px rgba(7,31,43,.4); }
.nav-links { display: flex; gap: 18px; margin-left: auto; font-weight: 700; font-size: .95rem; }
.nav-links a { text-decoration: none; color: var(--ink-soft); }
.nav-links a:hover { color: var(--navy); }
.languages { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .85rem; font-weight: 800; }
.languages a { text-decoration: none; padding: 4px 11px; border-radius: 999px; color: var(--ink-soft); }
.languages a[aria-current="page"] { background: var(--navy); color: #fff; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 800; text-decoration: none;
  background: var(--lime); color: var(--navy); border: 2px solid var(--lime);
  box-shadow: 0 10px 22px -12px rgba(79, 158, 43, .9);
  transition: transform .15s ease, box-shadow .15s ease;
}
.button:hover { transform: translateY(-2px); }
.button.secondary { background: transparent; color: var(--navy); border-color: var(--navy); box-shadow: none; }
.button.soon { background: var(--paper); color: var(--ink-soft); border-color: var(--line); box-shadow: none; cursor: default; }
.button.soon:hover { transform: none; }
.button .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(255,196,0,.25); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: var(--hero-bg, none) center / cover no-repeat;
  opacity: .22; filter: saturate(1.1);
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,252,244,.2), var(--cream) 92%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px; background: rgba(40, 215, 229, .16); color: #0b6f78; font-weight: 800; font-size: .88rem; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--navy); line-height: 1.25; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); letter-spacing: -.01em; }
h1 .accent { color: var(--lime-deep); }
.lead { font-size: 1.12rem; color: var(--ink-soft); margin: 18px 0 0; max-width: 34em; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 22px 0 0; list-style: none; font-weight: 700; color: var(--ink-soft); font-size: .95rem; }
.hero-note li::before { content: "✿"; color: var(--red); margin-right: 6px; }

.hero-art { position: relative; min-height: 560px; }
.phone {
  position: absolute; width: 250px; border-radius: 34px; padding: 9px; background: var(--navy);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.phone img { border-radius: 26px; }
.phone-main { left: 50%; top: 10px; transform: translateX(-34%) rotate(2deg); z-index: 2; }
.phone-side { left: 50%; top: 70px; transform: translateX(-108%) rotate(-7deg); width: 220px; opacity: .96; }
.hero-tochi { position: absolute; z-index: 3; width: 190px; left: -6px; bottom: -10px; filter: drop-shadow(0 14px 18px rgba(7,31,43,.25)); animation: bob 4s ease-in-out infinite; }
.hero-pot { position: absolute; z-index: 3; width: 108px; right: 4px; bottom: 30px; filter: drop-shadow(0 10px 14px rgba(7,31,43,.2)); }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .hero-tochi { animation: none; } html { scroll-behavior: auto; } }

/* Strip */
.trust { margin-top: -28px; position: relative; z-index: 2; }
.trust-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.trust-item { display: flex; gap: 14px; align-items: center; padding: 18px 20px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.trust-item strong { display: block; color: var(--navy); font-size: 1.02rem; }
.trust-item span { color: var(--ink-soft); font-size: .92rem; }
.trust-icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-family: var(--display); font-size: 1.25rem; color: var(--navy); background: var(--paper); }
.trust-icon img { width: 34px; }

/* Sections */
.section { padding: 88px 0; }
.section-tint { background: var(--paper); }
.section-dark { background: radial-gradient(1200px 500px at 80% -10%, rgba(40,215,229,.18), transparent 60%), var(--navy); color: #d9e6ea; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.kicker { margin: 0 0 10px; font-weight: 800; color: var(--lime-deep); letter-spacing: .02em; }
.section-dark .kicker { color: var(--lime); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.section-head p:not(.kicker) { color: var(--ink-soft); margin: 14px 0 0; font-size: 1.05rem; }
.section-dark .section-head p:not(.kicker) { color: #b9cdd3; }

/* Feature cards */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 1px 0 rgba(7,31,43,.04); }
.card h3 { font-size: 1.35rem; margin: 14px 0 8px; }
.card p { margin: 0; color: var(--ink-soft); }
.card.wide { grid-column: span 3; }
.card.third { grid-column: span 2; }
.card .badge-icons { display: flex; gap: 8px; }
.card .badge-icons img { width: 46px; height: 46px; padding: 6px; border-radius: 14px; background: var(--paper); }
.card.navy { background: var(--slate); border-color: transparent; }
.card.navy h3 { color: #fff; }
.card.navy p { color: #c5d6db; }
.card.lime { background: #effbe6; border-color: rgba(79,158,43,.25); }
.big-number { font-family: var(--display); font-size: 3rem; color: var(--navy); line-height: 1; }
.big-number small { font-size: 1.1rem; color: var(--ink-soft); font-family: var(--body); font-weight: 800; }
.mini-board { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 18px; max-width: 220px; }
.mini-board i { aspect-ratio: 1; border-radius: 5px; background: #e8eef0; display: grid; place-items: center; font-style: normal; font-size: .7rem; }
.mini-board i.b { background: var(--sky); } .mini-board i.r { background: var(--red); } .mini-board i.y { background: var(--gold); } .mini-board i.g { background: var(--green); }
.mini-board i.f::after { content: "✿"; color: #fff; }
.seed-row { display: grid; grid-template-columns: repeat(5, minmax(0, 64px)); gap: 8px; margin-top: 18px; }
.seed-row span { aspect-ratio: 4 / 5; border-radius: 12px; background: #fffdf6; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.seed-row img { width: 100%; height: 100%; object-fit: contain; }
.seed-row span.locked { background: #dfe8e4; color: #8aa39b; font-weight: 800; font-size: 1.1rem; }
.scene-tiles { display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(2, 1fr); gap: 3px; margin-top: 18px; max-width: 280px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background-size: cover; background-position: center; }
.scene-tiles i { background: #2c5466; display: grid; place-items: center; font-style: normal; color: rgba(255,255,255,.35); }
.scene-tiles i::after { content: "✿"; }
.scene-tiles i.open::after { content: none; }
.scene-tiles i.open { background: transparent; }

/* Chapters */
.chapters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.chapter { border-radius: 20px; overflow: hidden; background: var(--slate); border: 1px solid rgba(255,255,255,.08); }
.chapter .art { aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
.chapter div.text { padding: 14px 16px 18px; }
.chapter .num { color: var(--lime); font-weight: 800; font-size: .85rem; }
.chapter h3 { font-size: 1.1rem; margin: 2px 0 6px; }
.chapter p { margin: 0; font-size: .9rem; color: #b9cdd3; }
.lists { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.lists span { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); font-weight: 700; font-size: .92rem; color: #e6f0f2; }

/* Journey */
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { text-align: left; }
.step .frame { border-radius: 24px; padding: 7px; background: var(--navy); box-shadow: var(--shadow); }
.step .frame img { border-radius: 18px; }
.step .num { display: inline-block; margin: 16px 0 4px; font-family: var(--display); color: var(--lime-deep); font-size: 1.1rem; }
.step h3 { font-size: 1.2rem; }
.step p { margin: 6px 0 0; color: var(--ink-soft); font-size: .95rem; }

/* Privacy note */
.safe { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; padding: 34px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.safe img { width: 120px; }
.safe p { color: var(--ink-soft); margin: 10px 0 0; }

/* Footer */
.footer { padding: 34px 0 44px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .92rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: var(--navy); }

/* Privacy policy page */
.policy { padding: 48px 0 80px; max-width: 820px; }
.policy h1 { font-size: clamp(2rem, 4.6vw, 2.8rem); }
.policy .meta { color: var(--ink-soft); margin: 12px 0 0; font-size: .95rem; }
.policy h2 { font-size: 1.45rem; margin: 40px 0 10px; padding-top: 4px; }
.policy h3 { font-family: var(--body); font-weight: 800; font-size: 1.05rem; margin: 22px 0 6px; }
.policy p, .policy li { color: #36443e; }
.policy ul { padding-left: 1.2em; }
.policy li { margin: 4px 0; }
.notice { margin: 26px 0 8px; padding: 18px 22px; border-radius: 18px; background: #effbe6; border: 1px solid rgba(79,158,43,.28); color: #2c4a22; }
.notice strong { color: var(--navy); }
.toc { margin: 22px 0 0; padding: 18px 22px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 28px; }
.toc a { text-decoration: none; font-weight: 700; color: var(--ink-soft); }
.toc a:hover { color: var(--navy); }
.table-wrap { overflow-x: auto; margin: 12px 0; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: .93rem; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--paper); color: var(--navy); font-weight: 800; }
tr:last-child td { border-bottom: 0; }
.policy a { color: #0b6f78; font-weight: 700; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 520px; max-width: 520px; margin: 10px auto 0; width: 100%; }
  .chapters { grid-template-columns: repeat(3, 1fr); }
  .journey { grid-template-columns: repeat(2, 1fr); }
  .card.wide, .card.third { grid-column: span 6; }
}
@media (max-width: 640px) {
  .nav { gap: 10px; padding: 8px 0; }
  .nav-links { order: 3; width: 100%; margin-left: 0; gap: 16px; font-size: .9rem; }
  .languages { margin-left: auto; }
  .hero { padding: 36px 0 56px; }
  .hero-art { min-height: 440px; }
  .phone { width: 200px; border-radius: 28px; padding: 7px; }
  .phone img { border-radius: 22px; }
  .phone-side { width: 170px; top: 56px; }
  .hero-tochi { width: 130px; }
  .hero-pot { width: 78px; bottom: 16px; }
  .trust-list { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .chapters { grid-template-columns: repeat(2, 1fr); }
  .journey { grid-template-columns: 1fr 1fr; gap: 14px; }
  .safe { grid-template-columns: 1fr; padding: 24px; }
  .safe img { width: 90px; }
  .toc ol { columns: 1; }
}
