/* Sageway landing — implemented from "Sageway Landing v3" (Modernist design system).
   Fonts (Archivo, Noto Sans KR) are loaded from index.html <head> so they start
   downloading in parallel with this stylesheet. */

/* ── Tokens (Modernist) ─────────────────────────────────────────────── */
:root {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201e1d;
  --color-accent: #ec3013;
  --color-accent-600: #dd2b0f;
  --color-accent-700: #ae1800;
  --color-accent-900: #4d170e;
  --color-divider: color-mix(in srgb, #201e1d 40%, transparent);
  --text-78: color-mix(in srgb, var(--color-text) 78%, transparent);
  --text-70: color-mix(in srgb, var(--color-text) 70%, transparent);

  --font: "Archivo", "Noto Sans KR", system-ui, sans-serif;
  --font-latin: "Archivo", system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --container: 1280px;
}

/* ── Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 28px;
  font-weight: 400;
  text-wrap: pretty;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
h1, h2, h3 { font-family: var(--font); font-weight: 800; margin: 0; }
p { margin: 0; }
a { color: var(--color-accent-700); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-900); }
img { display: block; max-width: 100%; }
figure { margin: 0; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Shared type styles ─────────────────────────────────────────────── */
.eyebrow {
  display: block;
  font-size: 13px; line-height: 14px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--color-accent-700);
}
.eyebrow--muted { color: var(--text-70); }
.display {
  font-size: clamp(32px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -.025em;
}
.display span { display: block; }
.num-mark {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-latin); font-weight: 800; font-size: 15px; line-height: 20px;
  font-feature-settings: 'tnum' 1;
}
.dot { display: block; width: 10px; height: 10px; background: var(--color-accent); flex: none; }
.rule-top { border-top: 2px solid var(--color-divider); }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  font-family: var(--font); font-weight: 800; font-size: 14px; line-height: 1.2;
  color: var(--color-text);
  background: transparent; border: 1px solid transparent;
  padding: 8px 14.4px; border-radius: 0;
}
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); color: var(--color-bg); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); color: var(--color-text); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-ghost { color: var(--color-accent); padding-inline: 4px; }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); color: var(--color-accent); }
.btn-ghost:active { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }
.btn-lg { min-height: 48px; padding: 12px 20px; font-size: 15px; }

/* ── Nav ────────────────────────────────────────────────────────────── */
.nav {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: clamp(12px, 2vw, 24px);
  padding: 16px var(--gutter);
  border-bottom: 2px solid var(--color-divider);
}
.nav a { color: inherit; text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--color-accent); }
.nav-brand {
  margin-right: auto;
  font-family: var(--font); font-weight: 800; font-size: 20px; letter-spacing: -.01em;
  color: var(--color-text);
}
.nav .btn-primary { min-height: 40px; padding-inline: 16px; font-size: 14px; }
.nav .btn-primary:hover { color: var(--color-bg); }

/* Mobile menu — a <details> so it needs no JavaScript. Hidden on wide
   screens where the links sit inline; below 760px the inline links hide and
   the "메뉴" toggle drops a list under the bar. */
.nav-menu { display: none; }
.nav-menu > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 4px;
  font-family: var(--font); font-weight: 800; font-size: 14px;
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary .bars { display: block; width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
.nav-menu[open] > summary .bars { box-shadow: none; transform: rotate(45deg); }
.nav-menu[open] > summary .bars::after { content: ""; display: block; width: 18px; height: 2px; background: currentColor; transform: rotate(90deg); }
.nav-menu-list {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
  margin: 0; padding: 4px var(--gutter) 12px; list-style: none;
  background: var(--color-bg);
  border-bottom: 2px solid var(--color-divider);
}
.nav-menu-list a {
  display: block; padding: 12px 0; min-height: 44px;
  font-size: 17px; font-weight: 800;
  border-top: 2px solid var(--color-divider);
}
.nav-menu-list li:first-child a { border-top: 0; }
@media (max-width: 760px) {
  .nav { position: relative; flex-wrap: nowrap; gap: 12px; }
  .nav > a:not(.nav-brand):not(.btn) { display: none; }
  .nav-menu { display: block; }
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { padding: clamp(64px, 9vw, 128px) 0 clamp(48px, 6vw, 80px); }
.hero h1 {
  font-size: clamp(38px, 6.4vw, 76px); line-height: 1.08; letter-spacing: -.025em;
}
.hero h1 span { display: block; }
.hero-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 28px clamp(24px, 5vw, 96px);
  align-items: end;
  margin-top: clamp(32px, 4vw, 52px);
}
.hero-row p { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; max-width: 40ch; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-photo {
  width: 100%; aspect-ratio: 16 / 7; max-height: 720px;
  background: var(--color-surface);
}
.hero-photo img, .field-photo img, .process-photo img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ── Fields ─────────────────────────────────────────────────────────── */
.fields { padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); }
.fields > .eyebrow {
  padding-bottom: 14px; border-bottom: 2px solid var(--color-divider);
  margin-bottom: clamp(28px, 4vw, 48px);
}
.fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 56px);
}
.field { display: block; text-decoration: none; color: var(--color-text); }
.field:hover { color: var(--color-text); }
.field-photo { margin: 0 0 24px; aspect-ratio: 4 / 3; background: var(--color-surface); }
.field-body { border-top: 2px solid var(--color-divider); padding-top: 20px; display: grid; gap: 14px; }
.field h2 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.12; letter-spacing: -.02em; }
.field p { font-size: 16px; line-height: 1.6; max-width: 44ch; color: var(--text-78); }
.field-more { font-family: var(--font-latin); font-weight: 800; font-size: 15px; color: var(--color-accent-700); }

/* ── Service sections (Store / Goods) ───────────────────────────────── */
.service { padding: clamp(48px, 6vw, 80px) 0; border-top: 2px solid var(--color-divider); }
.section-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 28px clamp(24px, 5vw, 96px);
  align-items: end;
}
.section-head .eyebrow { margin-bottom: 24px; }
.section-head > p { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; max-width: 40ch; }

.cols-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 28px clamp(24px, 4vw, 48px);
  margin-top: clamp(36px, 5vw, 64px);
}
.col { border-top: 2px solid var(--color-divider); padding-top: 18px; display: grid; gap: 10px; align-content: start; }
.col h3 { font-size: 22px; line-height: 1.2; letter-spacing: -.015em; }
.col p { font-size: 16px; line-height: 1.55; }
.col p.sub { font-size: 15px; color: var(--text-70); }

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 24px clamp(24px, 4vw, 48px);
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: 18px; border-top: 2px solid var(--color-divider);
}
.timeline .eyebrow { grid-column: 1 / -1; }
.timeline-item { display: grid; gap: 6px; }
.timeline-item .num {
  font-family: var(--font); font-weight: 800;
  font-size: clamp(30px, 3vw, 40px); line-height: 1; letter-spacing: -.02em;
  color: var(--color-accent);
}
.timeline-item .label { font-size: 15px; line-height: 1.5; }

.section-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px 32px; flex-wrap: wrap;
  margin-top: clamp(28px, 4vw, 40px);
}
.section-foot p { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.5; }
.section-foot .btn-ghost { min-height: 44px; font-size: 15px; }

.uses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 24px clamp(24px, 4vw, 48px);
  margin-top: clamp(36px, 5vw, 64px);
}
.use { border-top: 2px solid var(--color-divider); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.use h3 { font-size: 20px; line-height: 1.2; letter-spacing: -.015em; }
.use p { font-size: 15px; line-height: 1.55; color: var(--text-70); }

.steps-wrap { margin-top: clamp(36px, 5vw, 64px); padding-top: 18px; border-top: 2px solid var(--color-divider); }
.steps-wrap .eyebrow { margin-bottom: 24px; }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 24px clamp(16px, 3vw, 40px);
}
.step { display: grid; gap: 10px; align-content: start; }
.step .num {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-latin); font-weight: 800;
  font-size: clamp(30px, 3vw, 40px); line-height: 1; letter-spacing: -.02em;
  font-feature-settings: 'tnum' 1;
}
.step .title { font-family: var(--font); font-weight: 800; font-size: 18px; line-height: 1.2; }
.step .days { font-size: 14px; line-height: 1.5; color: var(--text-70); }

.terms {
  display: flex; gap: 10px 28px; flex-wrap: wrap;
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: 18px; border-top: 2px solid var(--color-divider);
  font-size: 15px; line-height: 1.5;
}
.terms .label { color: var(--text-70); }

/* ── How we work ────────────────────────────────────────────────────── */
.how { background: var(--color-surface); }
.how .container { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.how h2 { font-size: clamp(36px, 5.2vw, 68px); line-height: 1.06; letter-spacing: -.025em; }
.process-photo { aspect-ratio: 4 / 1; background: var(--color-bg); }
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 28px clamp(24px, 4vw, 48px);
  margin-top: clamp(36px, 5vw, 64px);
}
.principle { border-top: 2px solid var(--color-divider); padding-top: 18px; display: grid; gap: 10px; align-content: start; }
.principle .num { font-family: var(--font-latin); font-weight: 800; font-size: 15px; line-height: 20px; font-feature-settings: 'tnum' 1; }
.principle h3 { font-size: clamp(22px, 2vw, 26px); line-height: 1.2; letter-spacing: -.015em; }
.principle p { font-size: 16px; line-height: 1.6; max-width: 36ch; color: var(--text-78); }

/* ── FAQ ────────────────────────────────────────────────────────────── */
.faq {
  padding: clamp(56px, 7vw, 96px) 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 28px clamp(24px, 5vw, 96px);
  align-items: start;
}
.faq .eyebrow { margin-bottom: 24px; }
.faq h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.08; letter-spacing: -.025em; }
.faq h2 span { display: block; }
.faq-list { border-top: 2px solid var(--color-divider); }
.faq-list details { border-bottom: 2px solid var(--color-divider); }
.faq-list summary {
  display: flex; justify-content: space-between; gap: 24px; align-items: baseline;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-family: var(--font); font-weight: 800;
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.35; letter-spacing: -.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .plus { color: var(--color-accent); flex: none; }
.faq-list details[open] summary .plus { transform: rotate(45deg); }
.faq-list details p {
  padding: 0 0 22px; max-width: 58ch;
  font-size: 16px; line-height: 1.65; color: var(--text-78);
}

/* ── Contact (red block) ────────────────────────────────────────────── */
.contact { background: var(--color-accent); color: var(--color-bg); }
.contact .container { padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); }
.contact h2 { font-size: clamp(36px, 5.6vw, 80px); line-height: 1.06; letter-spacing: -.025em; }
.contact h2 span { display: block; }
.contact .btn-row { margin-top: clamp(32px, 4vw, 48px); }
.contact .btn-ghost { color: var(--color-bg); border: 1px solid var(--color-bg); }
.contact .btn-ghost:hover { background: color-mix(in srgb, var(--color-bg) 12%, transparent); color: var(--color-bg); }

/* ── Contact details + footer ───────────────────────────────────────── */
.details { padding: clamp(40px, 5vw, 64px) 0 0; }
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 24px clamp(24px, 4vw, 48px);
}
.detail { border-top: 2px solid var(--color-divider); padding-top: 16px; }
.detail .eyebrow { margin-bottom: 12px; }
.detail .value, .detail a {
  font-family: var(--font); font-weight: 800; font-size: 18px;
  text-decoration: none; color: var(--color-text);
}
.detail a { font-family: var(--font-latin); display: inline-flex; align-items: center; min-height: 28px; }
.details address { font-style: normal; display: contents; }
.brief {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 16px clamp(24px, 4vw, 48px);
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 16px; border-top: 2px solid var(--color-divider);
}
.brief .eyebrow { grid-column: 1 / -1; }
.brief p { font-size: 15px; line-height: 1.6; }
.brief strong { font-weight: 800; }

.footer {
  padding: clamp(40px, 5vw, 64px) 0 48px;
  display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
  font-size: 13px; line-height: 1.6; color: var(--text-70);
}
.footer .brand { font-family: var(--font-latin); font-weight: 800; color: var(--color-text); }
.footer .legal { max-width: 70ch; font-style: normal; }
