@font-face {
  font-family: "Paperlogy";
  src: url("fonts/Paperlogy-8ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  --paper: #F3F0E8;
  --paper-2: #EAE5D9;
  --surface: #FBF9F4;
  --ink: #141311;
  --ink-2: #3A3832;
  --muted: #6B665C;
  --line: #DDD6C6;
  --red: #E8452A;
  --amber: #FFB000;
  --film: #141311;
  --radius: 18px;
  --max: 1080px;
  --display: "Paperlogy", "Pretendard Variable", "Pretendard", system-ui, sans-serif;
  --body: "Pretendard Variable", "Pretendard", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

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

/* ---------- film strip ---------- */
.strip {
  height: 34px;
  background-color: var(--film);
  background-image: linear-gradient(90deg, var(--paper) 0 16px, transparent 16px 40px);
  background-size: 40px 12px;
  background-repeat: repeat-x;
  background-position: 12px center;
}
.strip.thin { height: 26px; background-size: 32px 9px; background-image: linear-gradient(90deg, var(--paper) 0 12px, transparent 12px 32px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 240, 232, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo svg { height: 44px; width: auto; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; color: var(--ink-2); font-size: 15px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--red); }
.lang {
  font: inherit; font-size: 14px; font-weight: 600;
  padding: 7px 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow { font-weight: 700; letter-spacing: 0.14em; font-size: 12px; color: var(--muted); text-transform: uppercase; }
.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(44px, 7vw, 78px); line-height: 1.08; letter-spacing: -0.02em;
  margin: 14px 0 0;
}
.underline { position: relative; display: inline-block; }
.underline svg { position: absolute; left: -2%; bottom: -10px; width: 104%; height: 18px; overflow: visible; }
.hero .lead { margin-top: 26px; font-size: 19px; color: var(--ink-2); max-width: 32em; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 700;
  transition: transform .15s ease;
}
.badge:hover { transform: translateY(-2px); }
.badge svg { width: 20px; height: 20px; }
.badge.soon { background: transparent; color: var(--ink-2); border: 1.5px dashed var(--muted); cursor: default; }
.badge.soon:hover { transform: none; }
.badge small { display: block; font-size: 11px; font-weight: 600; opacity: .75; line-height: 1.1; }
.badge span { line-height: 1.15; }
.age { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* contact sheet of phone screens */
.sheet { position: relative; height: 560px; }
.frame {
  position: absolute; width: 230px;
  background: var(--film); border-radius: 14px; padding: 22px 8px;
  box-shadow: 0 24px 50px rgba(20, 19, 17, 0.22);
}
.frame::before, .frame::after {
  content: ""; position: absolute; left: 12px; right: 12px; height: 8px;
  background-image: linear-gradient(90deg, var(--paper) 0 9px, transparent 9px 20px);
  background-size: 20px 8px; background-repeat: repeat-x;
}
.frame::before { top: 7px; }
.frame::after { bottom: 7px; }
.frame img { border-radius: 6px; }
.frame .edge {
  position: absolute; bottom: -22px; left: 4px;
  font-family: ui-monospace, monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--amber);
}
.frame.f1 { left: 0; top: 40px; transform: rotate(-6deg); }
.frame.f2 { left: 30%; top: 0; z-index: 2; }
.frame.f3 { right: 0; top: 60px; transform: rotate(6deg); }

/* ---------- sections ---------- */
section { padding: 80px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 {
  font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.15; letter-spacing: -0.015em; margin-top: 8px;
}
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 17px; }

/* three ways to ask = contact sheet cells */
.cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cell { background: var(--film); border-radius: var(--radius); padding: 26px 10px 32px; position: relative; }
.cell .inner { background: var(--surface); border-radius: 10px; padding: 24px 22px; height: 100%; }
.cell .num {
  position: absolute; bottom: 9px; left: 18px;
  font-family: ui-monospace, monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--amber);
}
.cell h3 { font-size: 20px; font-weight: 800; }
.cell p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }
.cell .glyph { font-size: 28px; margin-bottom: 10px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.feature .tag {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--amber); color: var(--ink); padding: 4px 9px; border-radius: 6px; transform: rotate(-2deg);
}
.feature h3 { margin-top: 14px; font-size: 19px; font-weight: 800; }
.feature p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }

/* screens row */
.screens { display: flex; gap: 18px; overflow-x: auto; padding: 6px 2px 22px; scroll-snap-type: x mandatory; }
.screens .frame { position: relative; flex: 0 0 210px; scroll-snap-align: start; transform: none; }

/* dark safety band */
.dark { background: var(--ink); color: var(--paper); }
.dark .section-head p, .dark .feature p { color: #CFC8B8; }
.dark .rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; list-style: none; }
.dark .rules li { padding-left: 34px; position: relative; font-size: 16.5px; }
.dark .rules li::before {
  content: "✓"; position: absolute; left: 0; top: -1px; color: var(--red); font-weight: 900; font-size: 20px;
}

/* name story */
.story { text-align: center; }
.story .big { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 10vw, 120px); line-height: 1; position: relative; display: inline-block; }
.story .big svg { position: absolute; inset: -18% -16%; width: 132%; height: 136%; overflow: visible; }
.story p { margin: 26px auto 0; max-width: 36em; color: var(--ink-2); font-size: 18px; }

/* ---------- document pages (privacy, terms, support) ---------- */
.doc { padding: 56px 0 40px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5vw, 48px); line-height: 1.15; letter-spacing: -0.015em; }
.doc .updated { margin-top: 8px; color: var(--muted); font-size: 14px; }
.doc .intro { margin-top: 20px; font-size: 18px; color: var(--ink-2); }
.doc h2 { margin-top: 36px; font-size: 21px; font-weight: 800; }
.doc h2::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--red); margin-right: 10px; vertical-align: 2px; }
.doc p, .doc li { margin-top: 10px; color: var(--ink-2); font-size: 16.5px; }
.doc ol, .doc ul { padding-left: 22px; }
.doc .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-top: 24px; }
.doc .note { margin-top: 30px; font-size: 13.5px; color: var(--muted); }
.doc a { color: var(--red); font-weight: 600; }
.mail-btn {
  display: inline-block; margin-top: 14px; padding: 12px 22px; border-radius: 999px;
  background: var(--ink); color: var(--paper) !important; text-decoration: none; font-weight: 700;
}
[data-lang-block] { display: none; }
[data-lang-block].active { display: block; }

/* ---------- footer ---------- */
footer { margin-top: 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: flex-start; justify-content: space-between; padding: 36px 20px 48px; }
footer .links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
footer .links a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14.5px; }
footer .links a:hover { color: var(--red); }
footer .legal { color: var(--muted); font-size: 13.5px; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw .9s .35s ease-out forwards; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .draw { animation: none; stroke-dashoffset: 0; }
}

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .sheet { height: 470px; max-width: 420px; margin: 10px auto 0; width: 100%; }
  .frame { width: 180px; }
  .cells, .features { grid-template-columns: 1fr; }
  .dark .rules { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .nav .wrap { gap: 12px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 14px; }
  .logo svg { height: 38px; }
  .hero { padding: 44px 0 32px; }
  .sheet { height: 380px; }
  .frame { width: 140px; padding: 16px 6px; }
  section { padding: 60px 0; }
}

/* the tilted hero frames overlap, so their edge labels would land on each other */
.sheet .edge { display: none; }
