/* Hoorai — 공통 스타일
   팔레트는 앱 디자인 시스템(AppColors)과 동일하게 유지합니다. */

:root {
  --cream: #FFFDF8;
  --cream-2: #FBF7EF;
  --card: #F2EDE2;
  --line: #E7DDCB;
  --ink: #2B2521;
  --body: #6E6458;
  --muted: #8A8073;
  --yolk: #FFC64D;
  --cta: #E8A317;
  --deep: #B87A08;
  --pink: #F79BC4;
  --purple: #A98CF0;

  --maxw: 1080px;
  --r-pill: 999px;
  --r-card: 24px;
  --r-box: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo",
    "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

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

a { color: var(--deep); }

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

.num {
  font-family: "Baloo 2", Pretendard, sans-serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-head .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand img { width: 32px; height: 32px; }

.site-head nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}

.site-head nav a {
  color: var(--body);
  text-decoration: none;
}

.site-head nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */

.hero { padding: 72px 0 8px; }

.hero .inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--deep);
  background: #FDF0D2;
  border-radius: var(--r-pill);
  padding: 6px 14px;
  margin: 0 0 22px;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 1.16;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.hero h1 .accent { color: var(--cta); }

.hero p.lede {
  margin: 0 0 32px;
  font-size: 18px;
  color: var(--body);
  max-width: 30em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--yolk);
  color: var(--deep);
  box-shadow: 0 6px 18px rgba(232, 163, 23, 0.22);
}

.btn-primary:hover { transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--body);
  border-color: var(--line);
}

.btn-ghost:hover { border-color: var(--deep); color: var(--deep); }

.btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.55;
}

.note-small {
  font-size: 14px;
  color: var(--muted);
  margin: 16px 0 0;
}

/* ---------- 시그니처: 반반 로그 카드 ---------- */

.device {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin-left: auto;
  aspect-ratio: 9 / 16;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 44px;
  padding: 18px 14px;
  box-shadow: 0 24px 60px rgba(43, 37, 33, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.device .dday {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 2px 8px 0;
}

.device .dday b {
  font-family: "Baloo 2", sans-serif;
  color: var(--cta);
  font-size: 20px;
}

.device .dday span { font-size: 12px; color: var(--muted); }

.slot-time {
  text-align: center;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.half {
  position: relative;
  flex: 1;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}

.half.me { background: linear-gradient(150deg, #FFE9BC, #F7D98E); }
.half.you { background: linear-gradient(150deg, #F3E7DC, #E7D6C4); }

.half .who {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--r-pill);
  padding: 4px 12px;
}

.half .stamp {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 30px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 10px rgba(43, 37, 33, 0.25);
}

/* 5초 링 — 앱의 러닝 보더와 같은 성격의 요소 */
.ring-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
}

.ring-wrap svg { position: absolute; inset: 0; transform: rotate(-90deg); }

.ring-track { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 4; }

.ring-run {
  fill: none;
  stroke: url(#hoorai-run);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 245;
  stroke-dashoffset: 245;
  animation: tick 5s linear infinite;
}

.ring-core {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--cream);
  display: grid;
  place-items: center;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--cta);
  box-shadow: 0 4px 14px rgba(43, 37, 33, 0.14);
}

@keyframes tick { to { stroke-dashoffset: 0; } }

/* ---------- 하루 24칸 ---------- */

.slots { padding: 84px 0 0; }

.section-head { max-width: 34em; margin: 0 0 28px; }

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.2vw, 34px);
  letter-spacing: -0.03em;
  font-weight: 800;
}

.section-head p { margin: 0; color: var(--body); }

.slot-strip {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 5px;
  padding: 20px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}

.slot-strip i {
  display: block;
  height: 46px;
  border-radius: 7px;
  background: #EFE7D8;
}

.slot-strip i.on { background: var(--yolk); }
.slot-strip i.half-on { background: linear-gradient(180deg, var(--yolk) 50%, #EFE7D8 50%); }

.slot-legend {
  display: flex;
  gap: 20px;
  margin: 14px 2px 0;
  font-size: 14px;
  color: var(--muted);
}

.slot-legend span { display: flex; align-items: center; gap: 8px; }
.slot-legend b { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }

/* ---------- features ---------- */

.features { padding: 84px 0 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 30px 28px;
}

.feature .icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-box);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 22px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 19px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.feature p { margin: 0; color: var(--body); font-size: 16px; }

/* ---------- 마무리 ---------- */

.closing {
  margin: 84px 0 0;
  padding: 64px 32px;
  background: var(--card);
  border-radius: var(--r-card);
  text-align: center;
}

.closing h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.03em;
  font-weight: 800;
}

.closing p { margin: 0 auto 26px; color: var(--body); max-width: 26em; }

/* ---------- footer ---------- */

.site-foot {
  margin-top: 84px;
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  font-size: 14px;
  color: var(--muted);
}

.foot-top {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a { color: var(--body); text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }

.biz { line-height: 1.9; }
.biz b { color: var(--body); font-weight: 600; }

/* ---------- 문서 페이지 ---------- */

.doc { padding: 56px 0 0; max-width: 760px; }

.doc h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 40px);
  letter-spacing: -0.03em;
  font-weight: 800;
}

.doc .updated {
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 15px;
}

.doc h2 {
  margin: 44px 0 14px;
  font-size: 20px;
  letter-spacing: -0.02em;
  font-weight: 700;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.doc h3 {
  margin: 26px 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.doc p, .doc li { color: var(--body); font-size: 16px; }
.doc ul, .doc ol { padding-left: 20px; }
.doc li { margin-bottom: 7px; }

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}

.doc th, .doc td {
  border: 1px solid var(--line);
  padding: 11px 13px;
  text-align: left;
  vertical-align: top;
  color: var(--body);
}

.doc th { background: var(--cream-2); color: var(--ink); font-weight: 700; }

.callout {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--yolk);
  border-radius: var(--r-box);
  padding: 18px 20px;
  margin: 20px 0;
}

.callout p { margin: 0; }

.doc-back {
  display: inline-block;
  margin-top: 48px;
  color: var(--body);
  text-decoration: none;
  font-size: 15px;
}

.doc-back:hover { color: var(--ink); }

/* ---------- 반응형 ---------- */

@media (max-width: 880px) {
  .hero { padding-top: 48px; }
  .hero .inner { grid-template-columns: 1fr; gap: 44px; }
  .device { margin: 0 auto; }
  .feature-grid { grid-template-columns: 1fr; }
  .slot-strip { grid-template-columns: repeat(12, 1fr); }
  .site-head nav { gap: 16px; font-size: 14px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .site-head nav a.nav-about { display: none; }
  .btn { width: 100%; }
  .closing { padding: 44px 22px; }
}

/* ---------- 접근성 ---------- */

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--cta);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring-run { animation: none; stroke-dashoffset: 60; }
  .btn { transition: none; }
}
