/* =========================================================================
   휴학 (休學) — 앱 소개 사이트
   디자인: 한지(paper) × 먹(ink), 절제된 에메랄드 액센트
   ========================================================================= */

:root {
  /* paper / ink palette (warm-tinted neutrals) */
  --paper:   #f2eee5;
  --paper-2: #ece7da;
  --card:    #f8f5ef;
  --ink:     #221e17;
  --ink-2:   #57503f; /* secondary copy, tinted toward bg */
  --ink-3:   #8c8473;
  --line:    #ddd5c4;
  --line-2:  #c9c0ab;

  --accent:      #1c8f62;
  --accent-deep: #145a3f;
  --accent-soft: #e2ece0;

  --night:   #262119; /* dark "ink" section, echoes the app icon */
  --night-2: #312b21;
  --paper-on-night: #ede7d8;

  --font-serif: "Noto Serif KR", "Apple SD Gothic Neo", serif;
  --font-sans:  "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
                "Apple SD Gothic Neo", system-ui, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 18px;

  --shadow-soft: 0 1px 2px rgba(34,30,23,.04), 0 12px 32px -16px rgba(34,30,23,.18);
  --shadow-lift: 0 2px 6px rgba(34,30,23,.06), 0 40px 80px -36px rgba(34,30,23,.34);
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

::selection { background: var(--accent); color: #fff; }

/* ---- layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; }

.eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 700; line-height: 1.18; letter-spacing: -0.02em; }

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--paper) 80%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 700; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand b { font-family: var(--font-serif); font-size: 1.15rem; letter-spacing: -0.02em; }
.brand span { color: var(--ink-3); font-size: .82rem; font-weight: 500; letter-spacing: .02em; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); }
.nav__links a { font-size: .92rem; color: var(--ink-2); font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__links a.nav__cta { color: var(--paper); } /* override .nav__links a so ink button keeps light text */
.nav__cta { display: none; }
@media (min-width: 720px) { .nav__cta { display: inline-flex; } }
@media (max-width: 560px) { .nav__links a.hide-sm { display: none; } }

/* =========================================================================
   BUTTONS / STORE BADGES
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-sans); font-weight: 600; font-size: .95rem;
  padding: .7rem 1.2rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), background .25s, box-shadow .25s, border-color .25s;
}
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }

.stores { display: flex; flex-wrap: wrap; gap: .8rem; }
.store {
  display: inline-flex; align-items: center; gap: .7rem;
  background: var(--ink); color: var(--paper-on-night);
  padding: .7rem 1.15rem .75rem; border-radius: 14px;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s;
}
.store:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.store svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
.store small { display: block; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; opacity: .72; line-height: 1.2; }
.store b { display: block; font-size: 1.02rem; font-weight: 600; font-family: var(--font-sans); line-height: 1.15; letter-spacing: -0.01em; }
.store.is-soon { opacity: .9; }

.avail { margin-top: .85rem; font-size: .82rem; color: var(--ink-3); }
.avail b { color: var(--accent-deep); font-weight: 600; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { padding-top: clamp(2.5rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 8vw, 6rem); overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}
@media (min-width: 920px) { .hero__grid { grid-template-columns: 1.05fr .95fr; } }

.hero__copy { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(2.7rem, 7vw, 4.6rem);
  margin: 1.2rem 0 1.3rem;
}
.hero h1 .em { color: var(--accent); font-style: normal; }
.hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--ink-2); max-width: 30ch; margin-bottom: 2rem;
}
.hero__meta {
  margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .55rem 1.1rem;
  font-size: .86rem; color: var(--ink-2); font-weight: 500;
}
.hero__meta span { display: inline-flex; align-items: center; gap: .5rem; }
.hero__meta span::before { content: "·"; color: var(--accent); font-weight: 800; }

/* decorative giant 休 behind hero */
.hero__char {
  position: absolute; right: -6%; top: 50%; transform: translateY(-50%);
  font-family: var(--font-serif); font-weight: 700;
  font-size: 44vw; line-height: 1; color: var(--ink);
  opacity: .035; z-index: 0; pointer-events: none; user-select: none;
}
@media (min-width: 920px) { .hero__char { right: 30%; font-size: 26rem; } }

/* phone visual */
.hero__visual { position: relative; justify-self: center; z-index: 2; }
.phone {
  position: relative;
  width: clamp(230px, 64vw, 300px);
  border-radius: 40px;
  padding: 10px;
  background: linear-gradient(150deg, #34302a, #1f1b16);
  box-shadow: var(--shadow-lift);
}
.phone::before {
  content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 7px; border-radius: 99px; background: rgba(0,0,0,.35); z-index: 3;
}
.phone img { border-radius: 31px; width: 100%; }
.hero__visual .seal {
  position: absolute; left: -34px; bottom: 38px; z-index: 3;
  width: 92px; height: 92px; border-radius: 22px;
  display: grid; place-items: center;
  background: var(--night); color: var(--paper-on-night);
  font-family: var(--font-serif); font-size: 2.8rem; font-weight: 700;
  box-shadow: var(--shadow-lift);
  transform: rotate(-6deg);
}

/* =========================================================================
   SECTION HEADERS
   ========================================================================= */
.shead { max-width: 40ch; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.shead h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-top: .8rem; }
.shead p { color: var(--ink-2); margin-top: 1rem; font-size: 1.05rem; }

/* =========================================================================
   FEATURES (editorial alternating rows)
   ========================================================================= */
.features { padding-block: clamp(3rem, 8vw, 6rem); }
.frow {
  display: grid; grid-template-columns: 1fr; gap: clamp(1.8rem, 5vw, 4rem);
  align-items: center; padding-block: clamp(2rem, 5vw, 3.4rem);
  border-top: 1px solid var(--line);
}
.frow:first-of-type { border-top: none; }
@media (min-width: 880px) {
  .frow { grid-template-columns: 1fr 1fr; }
  .frow--flip .frow__media { order: -1; }
}
.frow__num {
  font-family: var(--font-serif); font-size: .95rem; color: var(--accent);
  letter-spacing: .1em; font-weight: 700;
}
.frow__body h3 { font-size: clamp(1.5rem, 3vw, 2.15rem); margin: .7rem 0 1rem; }
.frow__body p { color: var(--ink-2); font-size: 1.04rem; max-width: 40ch; }
.frow__list { list-style: none; margin-top: 1.4rem; display: grid; gap: .55rem; }
.frow__list li { position: relative; padding-left: 1.5rem; color: var(--ink-2); font-size: .96rem; }
.frow__list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg);
}
.frow__media { justify-self: center; }
.frow .phone { width: clamp(210px, 52vw, 256px); }

/* =========================================================================
   VALUES band
   ========================================================================= */
.values { background: var(--paper-2); border-block: 1px solid var(--line); padding-block: clamp(2.6rem, 6vw, 4rem); }
.values__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { .values__grid { grid-template-columns: repeat(4, 1fr); } }
.value { background: var(--paper-2); padding: clamp(1.4rem, 3vw, 2rem); }
.value h4 { font-family: var(--font-serif); font-size: 1.15rem; margin-bottom: .4rem; }
.value p { font-size: .9rem; color: var(--ink-2); }
.value .ic { font-family: var(--font-serif); font-size: 1.4rem; color: var(--accent); display: block; margin-bottom: .7rem; }

/* =========================================================================
   GALLERY
   ========================================================================= */
.gallery { padding-block: clamp(3rem, 8vw, 6rem); }
.gallery__track {
  display: flex; gap: 1.2rem; overflow-x: auto; padding-bottom: 1.4rem;
  scroll-snap-type: x mandatory; scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.gallery__track::-webkit-scrollbar { height: 6px; }
.gallery__track::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }
.shot {
  flex: 0 0 auto; width: clamp(200px, 56vw, 248px); scroll-snap-align: center;
}
.shot img { border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.shot figcaption { margin-top: .9rem; font-size: .85rem; color: var(--ink-2); text-align: center; }
.shot figcaption b { display:block; font-family: var(--font-serif); color: var(--ink); font-size: .98rem; }

/* =========================================================================
   INK (dark) section + stats
   ========================================================================= */
.ink {
  background: var(--night); color: var(--paper-on-night);
  padding-block: clamp(4rem, 10vw, 7rem); position: relative; overflow: hidden;
}
.ink::after {
  content: "休"; position: absolute; right: -4vw; bottom: -8vw;
  font-family: var(--font-serif); font-weight: 700; font-size: 40vw; line-height: 1;
  color: #fff; opacity: .04; pointer-events: none;
}
.ink h2 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); max-width: 18ch; }
.ink .eyebrow { color: #7fc8a6; }
.ink .eyebrow::before { background: #7fc8a6; }
.ink p { color: color-mix(in oklab, var(--paper-on-night) 82%, transparent); max-width: 46ch; margin-top: 1.3rem; font-size: 1.08rem; }
.stats {
  margin-top: clamp(2.6rem, 6vw, 4rem);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 3rem) 1rem;
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat .n { font-family: var(--font-serif); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.1rem); color: #fff; line-height: 1; }
.stat .n em { font-style: normal; color: #7fc8a6; font-size: .55em; }
.stat .l { margin-top: .6rem; font-size: .9rem; color: color-mix(in oklab, var(--paper-on-night) 70%, transparent); }

/* =========================================================================
   CTA
   ========================================================================= */
.cta { padding-block: clamp(4rem, 9vw, 7rem); text-align: center; }
.cta h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.cta .char { font-family: var(--font-serif); font-size: 3.2rem; color: var(--accent); margin-bottom: .4rem; }
.cta p { color: var(--ink-2); margin: 1rem auto 2rem; max-width: 34ch; }
.cta .stores { justify-content: center; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.foot { border-top: 1px solid var(--line); padding-block: clamp(2.4rem, 5vw, 3.5rem); }
.foot__grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot .brand { margin-bottom: .9rem; }
.foot p { font-size: .85rem; color: var(--ink-3); max-width: 34ch; }
.foot h5 { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); margin-bottom: .9rem; }
.foot ul { list-style: none; display: grid; gap: .5rem; }
.foot ul a { font-size: .92rem; color: var(--ink-2); }
.foot ul a:hover { color: var(--accent-deep); }
.foot__bar { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; justify-content: space-between; font-size: .8rem; color: var(--ink-3); }

/* =========================================================================
   PROSE (privacy / terms)
   ========================================================================= */
.subhero { padding-block: clamp(2.6rem, 6vw, 4.2rem) clamp(1.5rem, 3vw, 2.2rem); border-bottom: 1px solid var(--line); }
.subhero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.subhero .eyebrow { margin-bottom: 1rem; }
.subhero .meta { margin-top: 1rem; color: var(--ink-3); font-size: .9rem; }

.prose { max-width: 760px; padding-block: clamp(2.4rem, 5vw, 3.6rem) clamp(4rem, 8vw, 6rem); }
.prose h2 { font-size: 1.4rem; margin-top: 2.6rem; margin-bottom: .8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.prose h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.prose h3 { font-size: 1.08rem; font-family: var(--font-sans); font-weight: 700; margin-top: 1.5rem; margin-bottom: .4rem; }
.prose p { color: var(--ink-2); margin-bottom: 1rem; }
.prose ul { margin: 0 0 1.2rem 0; padding-left: 0; list-style: none; display: grid; gap: .55rem; }
.prose ul li { position: relative; padding-left: 1.4rem; color: var(--ink-2); }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--accent); border-radius: 2px; transform: rotate(45deg); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.prose .lead { font-size: 1.1rem; color: var(--ink); margin-bottom: 1.8rem; }
.callout { background: var(--accent-soft); border: 1px solid color-mix(in oklab, var(--accent) 30%, var(--line)); border-radius: 14px; padding: 1.1rem 1.3rem; margin: 1.6rem 0; }
.callout p { color: var(--accent-deep); margin: 0; font-size: .96rem; }
.tocnote { color: var(--ink-3); font-size: .84rem; }

/* =========================================================================
   REVEAL animation
   ========================================================================= */
.reveal { transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
