:root {
  color-scheme: light;
  --bg: #f4f7fa;
  --surface: #ffffff;
  --surface-soft: #edf4f9;
  --surface-blue: #e5f1fb;
  --primary: #005da7;
  --primary-strong: #00497f;
  --primary-light: #2976c7;
  --text: #16283b;
  --text2: #526578;
  --line: #d8e3eb;
  --frame: #101820;
  --coral: #e86447;
  --success: #278c63;
  --shadow-sm: 0 12px 34px rgba(25, 52, 76, 0.08);
  --shadow-lg: 0 26px 70px rgba(20, 55, 82, 0.18);
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #101733;
  --surface: #18213f;
  --surface-soft: #202b4b;
  --surface-blue: #183653;
  --primary: #68b7ff;
  --primary-strong: #9ed0ff;
  --primary-light: #91caff;
  --text: #edf3f8;
  --text2: #afbecd;
  --line: #33415d;
  --frame: #07101c;
  --coral: #ff967d;
  --success: #6bd0a4;
  --shadow-sm: 0 12px 34px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 26px 70px rgba(0, 0, 0, 0.38);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #101733;
    --surface: #18213f;
    --surface-soft: #202b4b;
    --surface-blue: #183653;
    --primary: #68b7ff;
    --primary-strong: #9ed0ff;
    --primary-light: #91caff;
    --text: #edf3f8;
    --text2: #afbecd;
    --line: #33415d;
    --frame: #07101c;
    --coral: #ff967d;
    --success: #6bd0a4;
    --shadow-sm: 0 12px 34px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 26px 70px rgba(0, 0, 0, 0.38);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  text-wrap: pretty;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

a:hover {
  color: var(--primary-light);
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 10px;
  background: var(--primary-strong);
  color: #fff;
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(18px);
}

.site-header__inner,
.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header__inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand:hover {
  color: var(--text);
}

.brand__icon {
  width: 31px;
  height: 31px;
  border-radius: 10px;
  box-shadow: 0 7px 18px rgba(0, 93, 167, 0.22);
  object-fit: cover;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav__link {
  color: var(--text2);
  font-size: 14px;
  font-weight: 700;
}

.theme-toggle {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text2);
  padding: 6px 13px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.hero {
  padding: 56px 0 72px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: clamp(38px, 6vw, 78px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  width: 24px;
  height: 2px;
  background: currentColor;
  content: '';
}

.hero-title {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(38px, 5.2vw, 66px);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1.13;
}

.hero-title__accent {
  color: var(--primary);
}

.hero__lead {
  max-width: 35rem;
  margin: 24px 0 0;
  color: var(--text2);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.72;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 30px;
}

.cta {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  padding: 13px 22px;
  box-shadow: 0 12px 26px rgba(0, 93, 167, 0.24);
  font-weight: 800;
}

.text-link {
  font-weight: 800;
}

.hero__meta {
  margin: 16px 0 0;
  color: var(--text2);
  font-size: 13px;
}

.hero__visual {
  position: relative;
  min-height: 630px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 42px;
  background: #dfe8ec;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.hero__visual::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 48%, rgba(12, 30, 42, 0.18));
  content: '';
  pointer-events: none;
}

.hero-phone {
  position: absolute;
  z-index: 2;
  width: 31%;
  min-width: 158px;
  padding: 5px;
  border-radius: 28px;
  background: var(--frame);
  box-shadow: 0 24px 54px rgba(12, 31, 46, 0.35);
}

.hero-phone--home {
  bottom: 27px;
  left: 28px;
  transform: rotate(-3.2deg);
}

.hero-phone--trip {
  right: 26px;
  bottom: 45px;
  width: 27%;
  transform: rotate(3deg);
}

.hero-phone img,
.phone img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.hero-phone__screen,
.phone__screen {
  aspect-ratio: 9 / 20;
  overflow: hidden;
  border-radius: 23px;
  background: #eef3f7;
}

.hero__caption {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  max-width: 230px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.82);
  color: #183047;
  padding: 11px 14px;
  backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
}

.value-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.value-item {
  min-height: 152px;
  padding: 26px 24px;
}

.value-item + .value-item {
  border-left: 1px solid var(--line);
}

.value-item__number {
  display: block;
  color: var(--coral);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.value-item h3 {
  margin: 10px 0 7px;
  font-size: 17px;
  line-height: 1.4;
}

.value-item p {
  margin: 0;
  color: var(--text2);
  font-size: 14px;
  line-height: 1.6;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.section-heading p {
  max-width: 44rem;
  margin: 0;
  color: var(--text2);
  font-size: 17px;
}

.howto-intro {
  padding: 112px 0 32px;
}

.step-nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: thin;
}

.step-nav a {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text2);
  padding: 9px 15px;
  font-size: 14px;
  font-weight: 800;
}

.guide-section {
  scroll-margin-top: 92px;
  padding: 30px 0;
}

.guide-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.guide-card__copy {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(300px, 1.28fr);
  gap: 28px;
  padding: 32px 34px 26px;
}

.step-label {
  align-self: start;
  justify-self: start;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  padding: 5px 11px;
  font-size: 13px;
  font-weight: 850;
}

.guide-title-wrap h3 {
  margin: 12px 0 0;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.guide-card__description {
  margin: 0;
  color: var(--text2);
  font-size: 16px;
}

.guide-card__note {
  margin: 10px 0 0;
  color: var(--text2);
  font-size: 14px;
}

.rail {
  position: relative;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 30px 0 30px 30px;
}

.rail__controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 30px 18px 0;
}

.rail__button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 21px;
  line-height: 1;
}

.rail__button:disabled {
  cursor: default;
  opacity: 0.35;
}

.rail__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0 30px 12px 0;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--primary) transparent;
  scrollbar-width: thin;
}

.screen-card {
  flex: 0 0 252px;
  margin: 0;
  scroll-snap-align: start;
}

.phone {
  width: 100%;
  padding: 6px;
  border-radius: 31px;
  background: var(--frame);
  box-shadow: 0 16px 34px rgba(14, 31, 47, 0.2);
}

.screen-card figcaption,
.share-screen figcaption {
  margin-top: 14px;
  color: var(--text2);
  font-size: 14px;
  line-height: 1.6;
}

.guide-section--share .guide-card {
  border-color: color-mix(in srgb, var(--primary) 28%, var(--line));
}

.share-stage {
  flex: 0 0 min(650px, calc(100vw - 112px));
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  padding: 24px;
  scroll-snap-align: start;
}

.share-stage__number {
  margin: 0;
  color: var(--coral);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.share-stage h4 {
  margin: 5px 0 18px;
  font-size: 19px;
  line-height: 1.45;
}

.share-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
}

.share-screen {
  min-width: 0;
  margin: 0;
}

.share-screen .phone {
  width: min(100%, 230px);
  margin: 0 auto;
}

.role-label {
  display: block;
  margin-bottom: 9px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-align: center;
}

.role-label--receive {
  color: var(--success);
}

.role-label--result {
  color: var(--text2);
}

.faq-section,
.permission-section {
  padding: 86px 0 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.faq-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.faq-card h3 {
  margin: 0 0 7px;
  font-size: 16px;
}

.faq-card p {
  margin: 0;
  color: var(--text2);
  font-size: 14px;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.permission-card {
  border-top: 3px solid var(--primary);
  border-radius: 0 0 18px 18px;
  background: var(--surface);
  padding: 22px;
}

.permission-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.permission-card p {
  margin: 0;
  color: var(--text2);
  font-size: 14px;
}

.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px 40px;
  padding: 42px 0;
}

.site-footer__links,
.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--text2);
  font-size: 13px;
}

.site-footer__links {
  margin-top: 14px;
}

.site-footer__meta {
  justify-content: flex-end;
}

@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    max-width: 16ch;
  }

  .hero__lead {
    max-width: 42rem;
  }

  .hero__visual {
    min-height: 590px;
  }

  .value-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-item + .value-item {
    border-left: 0;
  }

  .value-item:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .value-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .site-header__inner,
  .page-shell {
    width: min(100% - 32px, 1180px);
  }

  .site-header__inner {
    min-height: 62px;
  }

  .site-nav {
    gap: 12px;
  }

  .site-nav__link {
    font-size: 13px;
  }

  .theme-toggle {
    padding-inline: 10px;
  }

  .hero {
    padding: 40px 0 52px;
  }

  .hero-title {
    font-size: clamp(36px, 11vw, 52px);
  }

  .hero__visual {
    min-height: 500px;
    border-radius: 30px;
  }

  .hero-phone {
    min-width: 0;
    width: 38%;
  }

  .hero-phone--trip {
    width: 34%;
  }

  .value-strip {
    grid-template-columns: 1fr;
  }

  .value-item,
  .value-item:nth-child(even) {
    border-left: 0;
  }

  .value-item + .value-item,
  .value-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .value-item {
    min-height: auto;
    padding: 21px;
  }

  .howto-intro {
    padding-top: 82px;
  }

  .guide-card__copy {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 26px 22px 22px;
  }

  .guide-title-wrap h3 {
    margin-top: 9px;
  }

  .rail {
    padding: 22px 0 24px 20px;
  }

  .rail__controls {
    padding-right: 20px;
  }

  .rail__track {
    padding-right: 20px;
  }

  .screen-card {
    flex-basis: min(75vw, 270px);
  }

  .share-stage {
    flex-basis: min(88vw, 390px);
    padding: 18px;
  }

  .share-pair {
    gap: 12px;
  }

  .share-screen .phone {
    padding: 4px;
    border-radius: 22px;
  }

  .share-screen .phone__screen {
    border-radius: 18px;
  }

  .faq-grid,
  .permission-grid {
    grid-template-columns: 1fr;
  }

  .faq-section,
  .permission-section {
    padding-top: 68px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__meta {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .brand__icon {
    width: 28px;
    height: 28px;
  }

  .brand {
    gap: 8px;
    font-size: 17px;
  }

  .site-nav {
    gap: 9px;
  }

  .site-nav__link {
    font-size: 12px;
  }

  .theme-toggle {
    min-height: 34px;
    padding: 5px 8px;
    font-size: 12px;
  }

  .hero__visual {
    min-height: 430px;
  }

  .hero__caption {
    top: 15px;
    left: 15px;
    max-width: 190px;
    font-size: 12px;
  }

  .hero-phone--home {
    bottom: 20px;
    left: 17px;
  }

  .hero-phone--trip {
    right: 17px;
    bottom: 28px;
  }
}

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