/* RECRE8 BOX — shared stylesheet
 *
 * 팔레트는 취향이 아니라 제품에서 나왔다. 앱 아이콘 6개 중 4개가 크림·아이보리 바탕에
 * 골드나 오렌지를 쓰고(알람방9·myAethel·Moxory·Caption Hero), 어두운 것은 Pingra 하나뿐이다.
 * 이전 팔레트(딥퍼플 배경 + 핫핑크)는 그 여섯 개 중 하나하고만 어울렸고 나머지 다섯은
 * 배경과 싸웠다 — 아이콘을 올려놓는 순간 드러나는 문제였다.
 *
 * 그래서 종이 같은 따뜻한 오프화이트를 바탕으로 두고, 잉크는 Moxory·Caption Hero 의
 * 네이비에서, 강조색은 두 앱의 오렌지에서, 보조 강조는 알람방9·myAethel 의 골드에서 가져왔다.
 *
 * 이 파일은 14개 페이지가 공유한다(법적 문서 포함). 클래스명을 지우면 그 페이지들이
 * 조용히 무너지므로, 이름은 유지하고 값만 바꾼다.
 */

:root {
  --paper: #faf6f0;
  --paper-2: #ffffff;
  --paper-3: #f3ece2;
  --ink: #17223b;
  --muted: #5d6884;
  --line: rgba(23, 34, 59, 0.1);
  --line-strong: rgba(23, 34, 59, 0.18);
  --accent: #d9541e;
  --accent-soft: rgba(217, 84, 30, 0.09);
  --gold: #a8811c;
  --shadow: 0 18px 44px rgba(23, 34, 59, 0.09);
  --shadow-sm: 0 6px 18px rgba(23, 34, 59, 0.07);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  background-image:
    radial-gradient(1100px 600px at 12% -10%, rgba(217, 84, 30, 0.07), transparent 60%),
    radial-gradient(900px 520px at 92% 4%, rgba(168, 129, 28, 0.09), transparent 62%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 72px;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 0 34px;
}

.brandwrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brandicon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.brandicon-small {
  width: 20px;
  height: 20px;
}

.brandmark {
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
}

.topnav {
  display: flex;
  gap: 26px;
}

.topnav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
}

.topnav a:hover {
  color: var(--ink);
}

/* ---------- type ---------- */

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
  /* Cormorant 는 기본이 올드스타일 숫자라 "알람방9" 의 9 가 베이스라인 아래로 처져
     아래첨자처럼 보인다. 제품명에 숫자가 들어가므로 라이닝 숫자로 고정한다. */
  font-variant-numeric: lining-nums;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.04;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.12;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.2;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

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

.hero {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: clamp(34px, 5vw, 64px);
}

.hero-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  margin-bottom: 20px;
}

.hero-copy {
  max-width: 660px;
  margin: 22px 0 0;
  font-size: 1.06rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px rgba(217, 84, 30, 0.26);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.button-secondary:hover {
  background: var(--paper-3);
}

/* ---------- signal cards ---------- */

.signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.signal-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

.signal-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.signal-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- sections ---------- */

.section {
  margin-top: 64px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-contrast {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: clamp(28px, 4vw, 48px);
}

.products-shell {
  margin-top: 4px;
}

.products-intro {
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 640px;
}

/* 카드 수가 늘어도 무너지지 않게 auto-fit 으로 둔다. 예전에는 1.2fr 0.8fr 고정이라
   제품이 정확히 2개일 때만 맞았고, 세 번째를 추가하는 순간 한 칸이 비어 보였다. */
.product-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  align-items: start;
}

.product-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.product-card p {
  color: var(--muted);
  margin: 12px 0 0;
  font-size: 0.96rem;
}

/* 가장 많이 쓰이는 앱 하나만 넓게 잡는다. 칸이 두 개 이상일 때만 걸어서,
   좁은 화면에서 혼자 늘어나 어색해지지 않게 한다. */
.product-card-featured {
  background: linear-gradient(180deg, #ffffff, #fdf8f1);
  border-color: var(--line-strong);
}

@media (min-width: 900px) {
  .product-card-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    padding: 30px;
  }

  .product-card-featured .product-topline {
    grid-column: 1 / -1;
  }
}

/* 앱 아이콘 — 이 사이트의 유일한 이미지이므로 크게, 그리고 실물 비율대로 둔다.
   iOS 아이콘의 모서리 반경(약 22%)을 맞춰야 스토어에서 본 것과 같은 물건으로 읽힌다. */
.app-icon {
  width: 44px;
  height: 44px;
  border-radius: 22%;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  flex: 0 0 auto;
  display: block;
}

.product-card-featured .app-icon {
  width: 52px;
  height: 52px;
}

.product-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.product-topline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.product-tag,
.product-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.product-tag {
  background: var(--accent-soft);
  color: var(--accent);
}

.product-status {
  background: rgba(23, 34, 59, 0.06);
  color: var(--muted);
}

/* 링크가 여러 개일 때 공백만으로는 "App Store Google Play Privacy" 처럼 한 문장으로
   읽힌다. flex + gap 으로 확실히 떼어 놓는다. */
.product-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.product-links a {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 84, 30, 0.3);
  padding-bottom: 1px;
}

.product-links a:hover {
  border-bottom-color: var(--accent);
}

.product-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
}

.product-card li {
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- company / support ---------- */

.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}

.company-grid p {
  color: var(--muted);
  margin: 0 0 14px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.support-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

.support-card h3 {
  font-size: 1.22rem;
  margin-bottom: 8px;
}

.support-card p {
  color: var(--muted);
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.support-note {
  margin-top: 14px;
}

.contact-block {
  margin-top: 18px;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.contact-block h3 {
  font-size: 1.18rem;
  margin-bottom: 12px;
}

.contact-block p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.93rem;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 22px;
}

.legal-links a {
  color: var(--muted);
  font-size: 0.92rem;
}

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

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
}

/* ---------- legal pages ---------- */

.legal-page {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: clamp(26px, 4vw, 52px);
  margin-top: 24px;
}

.legal-page h2 {
  margin-top: 34px;
  font-size: 1.65rem;
}

.legal-page h3 {
  margin-top: 24px;
  font-size: 1.24rem;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.93rem;
}

.legal-page th,
.legal-page td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  color: var(--muted);
}

.legal-page th {
  background: var(--paper-3);
  color: var(--ink);
}

/* ---------- responsive ---------- */

@media (max-width: 920px) {
  .topnav {
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 20px 16px 56px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .app-icon,
  .product-card-featured .app-icon {
    width: 40px;
    height: 40px;
  }
}
