/* ===========================================================
   출석지기 홍보 홈페이지 — 미니멀 스타일
   =========================================================== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.css');

:root {
  --bg: #faf8f3;
  --surface: #ffffff;
  --surface-sunk: #f2efe6;
  --ink: #1c2230;
  --ink-soft: #5c6472;
  --ink-faint: #8a90a0;
  --line: #e7e2d6;
  --line-strong: #d9d2c2;

  --navy: #1d3557;
  --navy-deep: #142743;
  --green: #2f7d5f;
  --green-soft: #e6f2ec;
  --mint: #4fb787;
  --mint-soft: #eaf7f1;

  --shadow: 0 24px 50px -28px rgba(28, 34, 48, 0.28);
  --shadow-sm: 0 12px 26px -18px rgba(28, 34, 48, 0.24);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --nav-bg: rgba(250, 248, 243, 0.88);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12151c;
    --surface: #191d26;
    --surface-sunk: #0e1116;
    --ink: #eef0f5;
    --ink-soft: #a9b0bf;
    --ink-faint: #767e8e;
    --line: #2a2f3a;
    --line-strong: #383f4d;

    --navy: #7ea3d6;
    --navy-deep: #a9c3e8;
    --green: #59b98c;
    --green-soft: #182821;
    --mint: #6ecca0;
    --mint-soft: #142621;

    --shadow: 0 24px 55px -24px rgba(0, 0, 0, 0.65);
    --shadow-sm: 0 14px 28px -18px rgba(0, 0, 0, 0.55);
    --nav-bg: rgba(18, 21, 28, 0.82);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #12151c;
  --surface: #191d26;
  --surface-sunk: #0e1116;
  --ink: #eef0f5;
  --ink-soft: #a9b0bf;
  --ink-faint: #767e8e;
  --line: #2a2f3a;
  --line-strong: #383f4d;

  --navy: #7ea3d6;
  --navy-deep: #a9c3e8;
  --green: #59b98c;
  --green-soft: #182821;
  --mint: #6ecca0;
  --mint-soft: #142621;

  --shadow: 0 24px 55px -24px rgba(0, 0, 0, 0.65);
  --shadow-sm: 0 14px 28px -18px rgba(0, 0, 0, 0.55);
  --nav-bg: rgba(18, 21, 28, 0.82);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s ease, color 0.2s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}
.wrap-wide {
  max-width: 1520px;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
}
.nav-brand img { width: 28px; height: 28px; border-radius: 8px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--ink); }
.nav-mobile-hide { display: flex; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover { background: var(--navy-deep); }
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink-soft); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-primary { color: #0e1421; }
}
:root[data-theme="dark"] .btn-primary { color: #0e1421; }

/* ---------- eyebrow / section heading ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}
.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head.align-left { margin-left: 0; text-align: left; }
.section-head h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  margin-bottom: 16px;
  font-weight: 800;
}
.section-head p {
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.8;
}

section { padding: 108px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- hero ---------- */
.hero {
  padding: 88px 0 110px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mint-soft);
  color: var(--green);
  border-radius: 999px;
  padding: 7px 16px 7px 8px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 26px;
}
.hero-badge img { width: 20px; height: 20px; border-radius: 6px; }
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.28;
  max-width: 800px;
  margin: 0 auto 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--green);
}
.hero-sub {
  max-width: 560px;
  margin: 0 auto 40px;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.85;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.hero-note {
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.hero-frame-wrap {
  margin: 64px auto 0;
  max-width: 980px;
}

/* ---------- app screenshot frame ---------- */
.app-frame {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.app-frame img { width: 100%; height: auto; }

/* ---------- pain point (prose) ---------- */
.prose-block {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.prose-block .eyebrow { justify-content: center; }
.prose-block h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  font-weight: 800;
  margin-bottom: 24px;
}
.prose-block p {
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.95;
}
.prose-block p + p { margin-top: 18px; }

/* ---------- feature rows ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 0.68fr 1.32fr;
  gap: 40px;
  align-items: center;
}
.feature-row + .feature-row { margin-top: 128px; }
.feature-row.reverse {
  grid-template-columns: 1.32fr 0.68fr;
}
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-shot { order: 1; }

.feature-index {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.feature-copy h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 800;
  margin-bottom: 18px;
}
.feature-copy p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.9;
}
.feature-copy .feature-tag {
  display: inline-block;
  margin-top: 20px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---------- trust / privacy strip ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 780px;
  margin: 0 auto;
}
.trust-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 26px;
}
.trust-card .trust-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--mint-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 18px;
  font-size: 1.05rem;
}
.trust-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.trust-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ---------- pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  max-width: 780px;
  margin: 0 auto;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
}
.price-card.is-pro {
  border-color: var(--navy);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.price-card.is-pro::before {
  content: "추천";
  position: absolute;
  top: -13px;
  right: 28px;
  background: var(--navy);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .price-card.is-pro::before { color: #0e1421; }
}
:root[data-theme="dark"] .price-card.is-pro::before { color: #0e1421; }

.price-plan-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.price-amount {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.price-amount span {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.price-desc {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 26px;
}
.price-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--ink);
}
.price-features li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
  flex-shrink: 0;
}
.price-card .btn { width: 100%; }

/* ---------- faq ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  padding: 22px 4px;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink-faint);
  margin-left: 20px;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  padding: 0 4px 24px;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.85;
}

/* ---------- legal footer (이용약관 / 개인정보처리방침) ---------- */
.legal-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
}
.legal-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
}
.legal-column {
  flex: 1 1 380px;
  min-width: 260px;
}
.legal-column-right { text-align: right; }
.legal-column-right .legal-item summary { flex-direction: row-reverse; }
.legal-column-right .legal-item summary::after { margin-left: 0; margin-right: 20px; }
.legal-column-right .legal-body { text-align: left; }
.legal-item { border-bottom: none; }
.legal-body p {
  margin: 0 0 10px;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.8;
}
.legal-body .legal-note {
  margin-top: 18px;
  color: var(--ink-faint);
  font-size: 0.8rem;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  section { padding: 76px 0; }
  .hero { padding: 60px 0 76px; }
  .nav-links.nav-mobile-hide { display: none; }
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .feature-row + .feature-row { margin-top: 76px; }
  .feature-row.reverse .feature-copy { order: 1; }
  .feature-row.reverse .feature-shot { order: 2; }
  .trust-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .legal-footer-row { flex-direction: column; gap: 8px; }
  .legal-column-right,
  .legal-column-right .legal-body { text-align: left; }
  .legal-column-right .legal-item summary { flex-direction: row; }
  .legal-column-right .legal-item summary::after { margin-left: 20px; margin-right: 0; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
}
