/* PaperDrop website. "Paper & Ink" design system: neutrals, one accent (Mint),
   lines instead of shadows. Token names match the app (see DESIGN.md). */
/* Pretendard, self-hosted (SIL OFL 1.1, fonts/LICENSE.txt). The subset covers
   the 2,350 common Hangul syllables plus Latin; other characters fall back to
   the system font. */
@font-face {
  font-family: "Pretendard";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Pretendard-Regular.subset.woff2") format("woff2");
}

@font-face {
  font-family: "Pretendard";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Pretendard-SemiBold.subset.woff2") format("woff2");
}

@font-face {
  font-family: "Pretendard";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Pretendard-Bold.subset.woff2") format("woff2");
}

:root {
  --canvas: #f6f6f3;
  --surface: #ffffff;
  --surface-sunken: #eeeeea;
  --line: #e4e4df;
  --line-strong: #c8c8c1;
  --ink: #17191c;
  --ink-2: #5a6067;
  --ink-3: #8a9097;
  --accent: #0b7a5c;
  --on-accent: #ffffff;
  --accent-tint: #e3f4ee;
  --warn: #946200;
  --danger: #c2412d;
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 20px;
  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo",
    "Noto Sans KR", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0f1113;
    --surface: #17191c;
    --surface-sunken: #1f2226;
    --line: #2a2e33;
    --line-strong: #3a3f45;
    --ink: #eceef0;
    --ink-2: #a1a7ae;
    --ink-3: #6e747b;
    --accent: #3dd9a4;
    --on-accent: #06231a;
    --accent-tint: #12332a;
    --warn: #e8b84a;
    --danger: #f2877a;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
.button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: var(--radius-s);
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
}

.brand:hover {
  text-decoration: none;
}

.brand svg {
  width: 28px;
  height: 28px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

.nav a {
  color: var(--ink-2);
}

.nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav .lang {
  padding: 4px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
}

.nav .hide-s {
  display: none;
}

/* Hero */
.hero {
  padding: 64px 0 48px;
}

.hero .wrap {
  display: grid;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.lead {
  margin: 0 0 32px;
  max-width: 34em;
  color: var(--ink-2);
  font-size: 19px;
}

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

/* One accent-filled button per view; the rest are outlined */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 15px;
}

.button:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.button.ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.button.ghost:hover {
  background: var(--surface);
  filter: none;
}

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

/* Phone mockup, drawn in CSS with the app's tokens */
.phone {
  width: 280px;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 36px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.screen {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 27px;
  background: var(--canvas);
  color: var(--ink);
  font-size: 12px;
}

.screen-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px 16px 12px;
  font-weight: 700;
  font-size: 18px;
}

.screen-bar span:last-child {
  color: var(--ink-2);
  font-weight: 400;
  font-size: 12px;
}

.chips {
  display: flex;
  gap: 6px;
  padding: 0 16px;
}

.chip {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-sunken);
  color: var(--ink-2);
  white-space: nowrap;
}

.chip.on {
  background: var(--ink);
  color: var(--canvas);
}

.field {
  margin: 12px 16px 0;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--surface);
}

.field small {
  display: block;
  color: var(--ink-2);
  font-size: 10px;
}

.field code {
  font-family: var(--mono);
  font-size: 11px;
}

.segments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 12px 16px 0;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-sunken);
  text-align: center;
}

.segments span {
  padding: 5px 0;
  border-radius: 999px;
  color: var(--ink-2);
}

.segments .on {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}

.pages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 16px;
}

.page {
  position: relative;
  aspect-ratio: 0.72;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: #ffffff;
}

.page i {
  display: block;
  height: 4px;
  margin-bottom: 7px;
  border-radius: 2px;
  background: #17191c;
  opacity: 0.75;
}

.page i:nth-child(1) {
  width: 55%;
  height: 6px;
  margin-bottom: 12px;
}

.page i:nth-child(3) {
  width: 80%;
}

.page i:nth-child(4) {
  width: 65%;
}

.page i:nth-child(5) {
  width: 90%;
}

.page i:nth-child(6) {
  width: 40%;
  margin-left: auto;
}

.page b {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-weight: 500;
  font-size: 10px;
}

.screen-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.screen-foot .discard {
  color: var(--danger);
  font-weight: 600;
}

.screen-foot .send {
  padding: 8px 16px;
  border-radius: var(--radius-s);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

/* Sections: divided by lines, no boxes */
section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 36em;
  margin-bottom: 40px;
}

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

.steps,
.features {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.card p {
  margin: 0;
  max-width: 30em;
  color: var(--ink-2);
  font-size: 16px;
}

.step-number {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 14px;
}

/* Pricing */
.price {
  display: grid;
  gap: 32px;
  align-items: center;
}

.price-tag {
  font-family: var(--mono);
  font-size: clamp(48px, 9vw, 72px);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price-tag small {
  display: block;
  margin-top: 12px;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
}

.checks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-top: 1px solid var(--line);
}

.checks li:last-child {
  border-bottom: 1px solid var(--line);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 21px;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* FAQ */
details {
  border-top: 1px solid var(--line);
}

details:last-of-type {
  border-bottom: 1px solid var(--line);
}

summary {
  padding: 18px 0;
  cursor: pointer;
  font-weight: 600;
}

details p {
  margin: 0 0 20px;
  max-width: 40em;
  color: var(--ink-2);
}

/* Footer */
.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

.site-footer a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Text pages (privacy) */
.prose {
  max-width: 40em;
  padding: 48px 0 64px;
}

.prose h1 {
  font-size: clamp(28px, 5vw, 40px);
}

.prose h2 {
  margin-top: 40px;
  font-size: 20px;
}

.prose p,
.prose li {
  color: var(--ink-2);
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

@media (min-width: 720px) {
  .nav .hide-s {
    display: inline;
  }

  /* Columns separated by vertical lines */
  .steps {
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
  }

  .steps .card {
    padding: 28px 28px 8px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .steps .card:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 48px;
  }

  .price {
    grid-template-columns: 1fr 1.2fr;
  }
}

@media (min-width: 960px) {
  .hero {
    padding: 96px 0 80px;
  }

  .hero .wrap {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .features {
    grid-template-columns: repeat(3, 1fr);
  }

  section {
    padding: 96px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
