/* tripclear.site landing. */
:root {
  --brand: #091e3b;          /* icon navy */
  --brand-coral: #fd5b58;    /* icon coral (decor only) */
  --brand-ink: #c93a37;      /* coral darkened for text, AA on tint */
  --ink: #222222;
  --ink-strong: #292929;
  --gray-700: #616161;
  --gray-300: #dfdfdf;
  --footer-ink: #6b7684;
  --section: #f8fafb;
  --header-height: 60px;
  --inner-width: 1140px;
  --pad-x: 20px;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
@media (min-width: 768px) {
  :root { --header-height: 80px; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body { margin: 0; background: #fff; color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased; word-break: keep-all; }
h1, h2, p, ul { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
a:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 10000; padding: 10px 14px; background: var(--brand); color: #fff; border-radius: 0 0 10px 10px; }
.skip-link:focus { top: 0; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 9999; height: calc(var(--header-height) + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); background: #fff; border-bottom: 1px solid var(--gray-300); }
.header-inner { max-width: var(--inner-width); height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding-right: var(--pad-x); }
.header-left { display: flex; align-items: center; gap: 36px; padding-left: var(--pad-x); height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; color: var(--brand); }
.brand img { border-radius: 8px; }
.main-nav { display: none; align-items: center; gap: 8px; height: 100%; }
.main-nav a { position: relative; display: flex; align-items: center; height: 100%; padding: 0 16px; font-size: 16px; font-weight: 500; color: var(--gray-700); transition: color .3s ease; }
.main-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand); transform: scaleX(0); transition: transform .3s ease; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--brand); font-weight: 600; }
.main-nav a:hover::after, .main-nav a[aria-current]::after { transform: scaleX(1); }
@media (min-width: 768px) {
  .main-nav { display: flex; }
}

main { padding-top: calc(var(--header-height) + env(safe-area-inset-top)); }

/* Shared */
/* Google's official "Google Play에서 다운로드" badge, used as-is (no recolor
   or extra frame), at least 52px tall so its text stays legible. */
.play-badge { display: inline-block; width: max-content; border-radius: 10px; transition: opacity .2s ease; }
.play-badge img { width: auto; height: 56px; }
.play-badge:hover { opacity: .85; }

/* Phone mockup: white bezel + soft offset shadow, like the reference renders */
.device-stage { display: flex; align-items: center; justify-content: center; padding: 24px 0 48px; }
.device { position: relative; width: 290px; padding: 10px; border-radius: 46px; background: #fff; box-shadow: 0 0 0 1px #eceff3, 0 2px 6px rgba(9, 30, 59, .05); }
.device::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: rgba(9, 30, 59, .14); filter: blur(22px); transform: translate(26px, 30px); }
.device::after { content: ''; position: absolute; top: 118px; right: -3px; width: 3px; height: 56px; border-radius: 0 3px 3px 0; background: #e3e6ea; }
.device img { width: 100%; height: auto; border-radius: 36px; }

/* Hero */
.hero, .features { overflow-x: clip; }
.hero-inner { max-width: var(--inner-width); margin: 0 auto; padding: 0 var(--pad-x) 36px; margin-top: 56px; display: flex; flex-direction: column; }
.hero-kicker { font-size: 16px; font-weight: 400; line-height: 1.5; color: var(--gray-700); }
.hero-title { margin-top: 12px; font-size: 28px; font-weight: 700; line-height: 1.4; letter-spacing: -0.02em; color: var(--ink); }
.hero-copy .play-badge { margin-top: 28px; }
.hero .device-stage { order: 2; padding: 40px 0 56px; }

@media (min-width: 768px) {
  .hero-inner { flex-direction: row; justify-content: space-between; gap: 60px; }
  .hero-kicker { font-size: 20px; font-weight: 600; line-height: 1.4; }
  .hero-title { font-size: 56px; }
  .hero-copy .play-badge { margin-top: 40px; }
  .play-badge img { height: 60px; }
  .hero .device-stage { width: 448px; height: 702px; padding: 0; flex-shrink: 0; }
  .device { width: 320px; }
}
@media (min-width: 768px) and (max-width: 1080px) {
  .hero-title { font-size: 44px; }
  .hero .device-stage { width: 360px; }
}

/* Feature rows */
.features { background: var(--section); }
.features-inner { max-width: var(--inner-width); margin: 0 auto; }
.feature-row { display: flex; flex-direction: column-reverse; gap: 40px; padding: 40px var(--pad-x) 0; }
.feature-row.is-reversed { flex-direction: column; }
.feature-row:last-child { padding-bottom: 20px; }
.feature-copy { display: flex; flex-direction: column; gap: 32px; }
.feature-heading { display: flex; flex-direction: column; gap: 8px; }
.eyebrow { font-size: 16px; font-weight: 700; color: var(--brand-ink); }
.feature-heading h2 { font-size: 28px; font-weight: 700; line-height: 1.4; letter-spacing: -0.02em; color: var(--ink-strong); }
.feature-list { display: flex; flex-direction: column; gap: 16px; padding: 0; list-style: none; }
.feature-list li { display: flex; flex-direction: column; gap: 4px; font-size: 16px; color: var(--ink); }
.feature-list strong { font-weight: 700; }
.feature-list span { font-weight: 400; }

@media (min-width: 768px) {
  .feature-row, .feature-row.is-reversed { flex-direction: row; align-items: center; gap: 80px; padding: 60px var(--pad-x); }
  .feature-row.is-reversed { gap: 40px; }
  .feature-row:last-child { padding-bottom: 60px; }
  .feature-row .device-stage { width: 448px; height: 702px; padding: 0; flex-shrink: 0; }
  .feature-row.is-reversed .device-stage { padding: 0 36px; }
  .feature-copy { flex: 1; gap: 48px; }
  .eyebrow { font-size: 20px; }
  .feature-heading h2 { font-size: 48px; }
  .feature-list { gap: 28px; }
  .feature-list li { font-size: 20px; }
}
@media (min-width: 768px) and (max-width: 1080px) {
  .feature-row .device-stage { width: 340px; }
  .feature-heading h2 { font-size: 38px; }
}

/* Closing band */
.closing { position: relative; overflow: hidden; color: #fff; }
.closing picture, .closing picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.closing::after { content: ''; position: absolute; inset: 0; background: rgba(9, 30, 59, .66); }
.closing-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 48px; padding: 60px var(--pad-x) 80px; text-align: center; }
.closing-copy { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.closing-title { font-size: 24px; font-weight: 700; line-height: 1.4; }
.closing-lede { font-size: 17px; line-height: 1.4; }
@media (min-width: 768px) {
  .closing-title { font-size: 32px; }
  .closing-lede { font-size: 20px; }
}

/* Footer */
.site-footer { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding: 20px; background: var(--section); }
.footer-meta { display: flex; flex-direction: column; gap: 16px; font-size: 12px; color: var(--footer-ink); }
.divided { display: flex; flex-wrap: wrap; align-items: center; row-gap: 2px; }
.divided > * { display: inline-flex; align-items: center; }
.divided > *:not(:last-child)::after { content: ''; display: block; width: 1px; height: 1em; margin: 0 4px; background: currentColor; opacity: .6; }
.divided a:hover { color: var(--ink); }
@media (min-width: 768px) {
  .site-footer { align-items: center; padding: 60px var(--pad-x) 80px; }
  .footer-meta { align-items: center; padding-top: 24px; font-size: 14px; }
  .divided { justify-content: center; }
  .divided > *:not(:last-child)::after { margin: 0 8px; }
}
