:root {
  color-scheme: light;
  --ink: #17223b;
  --muted: #61708c;
  --line: #dfe5f2;
  --surface: #ffffff;
  --soft: #f5f7ff;
  --primary: #5c5ffc;
  --primary-dark: #4548db;
  --mint: #52e698;
  --danger-soft: #fff1f4;
  --danger: #bd3852;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--soft);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(92, 95, 252, .12), transparent 32rem),
    var(--soft);
  line-height: 1.72;
  word-break: keep-all;
}

a {
  color: var(--primary-dark);
  text-underline-offset: .2em;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 max(24px, calc((100vw - 980px) / 2));
  border-bottom: 1px solid rgba(223, 229, 242, .9);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand img { width: 34px; height: 34px; border-radius: 10px; }
.support-link { font-size: .92rem; font-weight: 700; text-decoration: none; }

.shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 64px;
}

.shell.compact { width: min(760px, calc(100% - 32px)); }
.shell.landing { width: min(1120px, calc(100% - 32px)); }

.landing-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px max(20px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(223, 229, 242, .78);
  background: rgba(250, 248, 247, .92);
  backdrop-filter: blur(18px);
}

.landing-topbar nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.8vw, 30px);
}

.landing-topbar nav a {
  color: var(--ink);
  font-size: .9rem;
  font-weight: 750;
  text-decoration: none;
}

.landing-topbar nav a:hover { color: var(--primary-dark); }

.landing-topbar .topbar-cta {
  min-height: 42px;
  padding: 8px 17px;
  border-radius: 13px;
  color: #fff;
  background: var(--primary);
}

.landing-topbar .topbar-cta:hover { color: #fff; background: var(--primary-dark); }

.landing a:focus-visible {
  outline: 3px solid rgba(92, 95, 252, .42);
  outline-offset: 4px;
  border-radius: 6px;
}

.hero, .policy-header {
  padding: clamp(28px, 6vw, 62px);
  border: 1px solid rgba(92, 95, 252, .16);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(239, 241, 255, .94));
  box-shadow: 0 24px 60px rgba(39, 48, 93, .10);
}

.hero { text-align: center; }
.brand-mark { width: 90px; height: 90px; border-radius: 24px; box-shadow: 0 14px 36px rgba(92, 95, 252, .22); }
.eyebrow { margin: 20px 0 8px; color: var(--primary-dark); font-size: .78rem; font-weight: 850; letter-spacing: .16em; }
h1 { margin: 0; font-size: clamp(2.1rem, 7vw, 4rem); line-height: 1.1; letter-spacing: -.045em; }
.lead { max-width: 720px; margin: 20px 0 0; color: var(--muted); font-size: clamp(1.05rem, 2.7vw, 1.3rem); }
.hero .lead { margin-inline: auto; }
.effective { margin: 18px 0 0; color: var(--muted); font-size: .9rem; }

.hero-product {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .72fr);
  align-items: center;
  gap: clamp(34px, 6vw, 76px);
  overflow: hidden;
  min-height: 650px;
  text-align: left;
  background:
    radial-gradient(circle at 90% 10%, rgba(82, 230, 152, .18), transparent 26rem),
    linear-gradient(145deg, rgba(255, 255, 255, .99), rgba(246, 239, 242, .96));
}

.hero-product .brand-mark { width: 72px; height: 72px; border-radius: 21px; }
.hero-product .eyebrow { margin-top: 26px; }
.hero-product h1 { max-width: 720px; font-size: clamp(2.45rem, 6vw, 4.7rem); }
.hero-product .lead { max-width: 680px; margin-inline: 0; }
.hero-product .download-actions { justify-items: start; }

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.trust-chips li {
  padding: 7px 12px;
  border: 1px solid rgba(92, 95, 252, .15);
  border-radius: 999px;
  color: #4c526b;
  background: rgba(255, 255, 255, .72);
  font-size: .8rem;
  font-weight: 720;
}

.hero-device {
  align-self: end;
  margin: 0 0 -86px;
  text-align: center;
}

.hero-device img {
  display: block;
  box-sizing: border-box;
  width: min(100%, 377px);
  height: auto;
  margin: 0 auto;
  border: 9px solid rgba(255, 255, 255, .88);
  border-radius: 52px;
  box-shadow: 0 36px 70px rgba(63, 47, 56, .2);
}

.hero-device figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 650;
}

.download-actions {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 30px;
}

.download-actions p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.app-store-link {
  display: inline-flex;
  border-radius: 10px;
  transition: transform .2s ease, filter .2s ease;
}

.app-store-link img {
  display: block;
  width: 175px;
  height: auto;
}

.app-store-link:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 10px 14px rgba(23, 34, 59, .14));
}

.app-store-link:focus-visible {
  outline: 3px solid rgba(92, 95, 252, .4);
  outline-offset: 5px;
}

.app-preview {
  margin-top: 32px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 24px 60px rgba(39, 48, 93, .08);
}

.care-story,
.device-showcase,
.trust-section {
  margin-top: 32px;
  padding: clamp(30px, 5.5vw, 62px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 24px 60px rgba(39, 48, 93, .07);
  scroll-margin-top: 88px;
}

.section-heading.left { margin-inline: 0; text-align: left; }

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

.care-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.care-grid article {
  padding: 26px;
  border: 1px solid rgba(92, 95, 252, .12);
  border-radius: 22px;
  background: linear-gradient(155deg, #fbf9fb, #f1f3fa);
}

.step-number {
  color: var(--primary-dark);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .1em;
}

.care-grid h3,
.device-copy h3 { margin: 12px 0 0; font-size: clamp(1.25rem, 2.8vw, 1.7rem); line-height: 1.35; }
.care-grid p { margin: 10px 0 0; color: var(--muted); font-size: .94rem; }

.device-showcase > .section-heading { margin-bottom: 42px; }

.device-feature {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  overflow: hidden;
  margin-top: 22px;
  padding: clamp(28px, 5vw, 50px);
  border: 1px solid rgba(92, 95, 252, .13);
  border-radius: 28px;
  background: linear-gradient(145deg, #faf8fa, #eef2f8);
}

.device-feature.device-iphone {
  grid-template-columns: minmax(0, 1fr) minmax(260px, .58fr);
  background: linear-gradient(145deg, #f8f5f7, #eef5f2);
}

.device-feature > img {
  display: block;
  width: min(100%, 720px);
  height: auto;
  max-height: 630px;
  object-fit: contain;
  object-position: center bottom;
  margin: 0 auto -70px;
  border: 7px solid rgba(255, 255, 255, .86);
  border-radius: 38px;
  box-shadow: 0 26px 52px rgba(42, 45, 70, .16);
}

.device-feature.device-iphone > img { width: min(100%, 340px); max-height: none; }
.device-feature > .mac-shot { width: 100%; max-height: none; margin-bottom: -20px; border-radius: 24px; }

.device-label {
  margin: 0;
  color: var(--primary-dark);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.device-copy > p:not(.device-label) { margin: 14px 0 0; color: var(--muted); }
.device-copy ul { margin: 22px 0 0; padding: 0; color: #3f4b63; font-size: .92rem; list-style: none; }
.device-copy li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 9px; align-items: start; }
.device-copy li::before { content: "•"; color: var(--primary-dark); font-weight: 900; }
.device-copy li + li { margin-top: 7px; }

.device-feature.platform-feature {
  grid-template-columns: minmax(240px, .62fr) minmax(0, 1.38fr);
  margin-top: 22px;
  background: linear-gradient(145deg, #f6f3f8, #edf4f2);
}

.device-feature > .platform-shot {
  width: 100%;
  max-height: none;
  margin: 8px 0;
  border-radius: 24px;
}

.manual-steps { padding-left: 22px; }
.manual-steps li + li { margin-top: 10px; }

.platform-manual { margin: 0; }
.platform-manual div { padding: 18px 0; border-top: 1px solid var(--line); }
.platform-manual div:first-child { border-top: 0; padding-top: 0; }
.platform-manual dt { color: var(--ink); font-weight: 820; }
.platform-manual dd { margin: 7px 0 0; color: var(--muted); }

.small-device-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.small-device-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, .72fr);
  align-items: center;
  gap: 22px;
  overflow: hidden;
  min-height: 390px;
  padding: 30px 30px 0;
  border: 1px solid rgba(92, 95, 252, .13);
  border-radius: 26px;
  background: linear-gradient(155deg, #faf8fb, #eef1f6);
}

.small-device-card > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 390px;
  align-self: end;
  object-fit: contain;
  object-position: center bottom;
  margin-bottom: -22px;
  border: 5px solid rgba(255, 255, 255, .85);
  border-radius: 30px 30px 0 0;
  box-shadow: 0 20px 42px rgba(42, 45, 70, .14);
}

.trust-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .7fr);
  align-items: center;
  gap: clamp(28px, 5vw, 60px);
  background: linear-gradient(140deg, #f8f5f7, #eef6f2);
}

.trust-copy .eyebrow { margin-top: 0; }
.trust-copy h2 { margin: 0; font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.2; letter-spacing: -.035em; }
.trust-copy > p:last-of-type { margin: 16px 0 0; color: var(--muted); }

.text-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 24px; }
.text-links a { font-weight: 780; }

.safety-card {
  padding: 28px;
  border: 1px solid #f0ced6;
  border-radius: 22px;
  background: rgba(255, 247, 248, .9);
}

.safety-card strong { color: #923149; font-size: 1.08rem; }
.safety-card p { margin: 12px 0 0; color: #6c4b55; font-size: .9rem; }
.safety-card .support-email { padding-top: 13px; border-top: 1px solid #f0dce1; }
.safety-card a { color: #7f2940; }

.section-heading {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading .eyebrow { margin-top: 0; }
.section-heading h2, .closing-cta h2 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -.035em;
}

.section-heading > p:last-child, .closing-cta p {
  margin: 14px 0 0;
  color: var(--muted);
}

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

.screen-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(92, 95, 252, .14);
  border-radius: 24px;
  background: linear-gradient(180deg, #f8f6fb, #eef1fa);
}

.screen-copy { padding: 24px 24px 20px; }
.screen-copy span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: var(--primary-dark);
  background: rgba(92, 95, 252, .1);
  font-size: .78rem;
  font-weight: 850;
}

.screen-copy h3 {
  margin: 16px 0 0;
  font-size: 1.22rem;
  line-height: 1.35;
}

.screen-copy p {
  min-height: 3.45em;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .92rem;
}

.screen-card > img {
  display: block;
  width: calc(100% - 32px);
  height: auto;
  margin: 0 auto;
  border: 1px solid rgba(23, 34, 59, .08);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 18px 36px rgba(23, 34, 59, .12);
}

.closing-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 32px;
  padding: clamp(28px, 5vw, 46px);
  border-radius: 28px;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(82, 230, 152, .16), rgba(92, 95, 252, .13));
}

.closing-cta .eyebrow { margin-top: 0; }
.closing-cta > div { max-width: 650px; }

.landing-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  font-size: .92rem;
  font-weight: 700;
}

.landing-footer {
  padding: 38px 8px 0;
  color: var(--muted);
  text-align: center;
  font-size: .88rem;
}

.landing-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; }
.landing-footer a { color: var(--ink); font-weight: 720; }
.landing-footer p { margin: 12px 0 0; }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
  text-decoration: none;
}
.button.primary { border-color: var(--primary); color: #fff; background: var(--primary); }
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(39, 48, 93, .12); }
.button.primary:hover { background: var(--primary-dark); }

.medical-note, .support-panel, .emergency-panel {
  margin: 24px 0 0;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.emergency-panel { border-color: #ffd6df; background: var(--danger-soft); }
.emergency-panel h2 { color: var(--danger); }

.summary, .toc, .policy section {
  margin-top: 28px;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.summary h2, .toc h2, .support-panel h2, .emergency-panel h2 { margin-top: 0; font-size: 1.35rem; }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.summary article { padding: 20px; border-radius: 16px; background: var(--soft); }
.summary strong { display: block; color: var(--primary-dark); }
.summary p { margin: 8px 0 0; color: var(--muted); font-size: .93rem; }

.toc ol { columns: 2; margin: 0; padding-left: 24px; }
.toc li { margin: 5px 0; padding-left: 4px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--primary-dark); text-decoration: underline; }

.policy section { scroll-margin-top: 84px; }
.policy h2 { display: flex; gap: 12px; align-items: center; margin: 0 0 18px; font-size: clamp(1.35rem, 4vw, 1.7rem); line-height: 1.35; }
.policy h2 span {
  display: inline-grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--primary);
  font-size: .95rem;
}
.policy p:last-child, .policy ul:last-child { margin-bottom: 0; }
.policy li + li { margin-top: 8px; }

.contact-card { padding: 24px; border-radius: 18px; background: var(--soft); }
.contact-card dl { margin: 0; }
.contact-card dl div { display: grid; grid-template-columns: 210px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-card dl div:last-child { border-bottom: 0; }
.contact-card dt { color: var(--muted); font-weight: 700; }
.contact-card dd { margin: 0; font-weight: 700; }
.muted { color: var(--muted); }

footer { padding: 40px 8px 0; color: var(--muted); text-align: center; font-size: .9rem; }
footer p { margin: 8px 0 0; }

@media (max-width: 720px) {
  .topbar { padding-inline: 18px; }
  .shell { padding-top: 32px; }
  .hero, .app-preview { border-radius: 24px; }
  .screen-grid { grid-template-columns: 1fr; }
  .screen-card { width: min(100%, 420px); margin-inline: auto; }
  .screen-copy p { min-height: 0; }
  .closing-cta { align-items: flex-start; flex-direction: column; border-radius: 22px; }
  .summary-grid { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .contact-card dl div { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 900px) {
  .hero-product { grid-template-columns: 1fr minmax(220px, .52fr); min-height: 590px; }
  .hero-product h1 { font-size: clamp(2.35rem, 7vw, 3.7rem); }
  .device-feature, .device-feature.device-iphone { grid-template-columns: minmax(0, 1fr) minmax(220px, .72fr); }
  .small-device-card { grid-template-columns: 1fr; }
  .small-device-card > img { width: min(72%, 300px); margin-inline: auto; }
  .device-feature.platform-feature { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .landing-topbar { min-height: 62px; padding: 8px 16px; }
  .landing-topbar nav a:not(.topbar-cta) { display: none; }
  .landing-topbar .topbar-cta { min-height: 42px; }
  .shell.landing { width: min(100% - 22px, 1120px); padding-top: 20px; }
  .hero-product { grid-template-columns: 1fr; gap: 30px; min-height: 0; padding: 30px 24px 0; text-align: center; }
  .hero-product .brand-mark { width: 62px; height: 62px; }
  .hero-product .lead { margin-inline: auto; }
  .hero-product .download-actions { justify-items: center; }
  .trust-chips { justify-content: center; }
  .hero-device { box-sizing: border-box; width: min(92%, 340px); max-width: 100%; margin: 0 auto -78px; }
  .hero-device img { max-width: 100%; }
  .hero-device figcaption { display: none; }
  .care-story, .device-showcase, .trust-section { padding: 28px 20px; border-radius: 24px; }
  .care-grid, .small-device-grid { grid-template-columns: 1fr; }
  .care-grid article { padding: 22px; }
  .device-feature, .device-feature.device-iphone, .device-feature.platform-feature { grid-template-columns: 1fr; padding: 26px 20px 0; border-radius: 22px; }
  .device-feature .device-copy { padding-inline: 4px; }
  .device-feature > img, .device-feature.device-iphone > img { width: min(88%, 480px); max-height: 540px; margin-top: 6px; margin-bottom: -68px; }
  .device-feature > .mac-shot { width: 108%; max-width: none; margin: 10px -4% -10px; border-radius: 18px 18px 0 0; }
  .device-feature > .platform-shot { width: 100%; max-width: 100%; margin: 10px 0 20px; border-radius: 16px; }
  .small-device-card { min-height: 0; padding: 26px 22px 0; border-radius: 22px; }
  .small-device-card > img { width: min(76%, 310px); }
  .trust-section { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .hero-product h1 { font-size: 2.3rem; }
  .hero-product .lead { font-size: 1rem; }
  .trust-chips li { font-size: .74rem; }
  .hero-device { margin-bottom: -62px; }
  .app-store-link img { width: 164px; }
  .closing-cta .app-store-link { align-self: stretch; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button:hover, .app-store-link:hover { transform: none; }
}

@media print {
  body { background: #fff; }
  .topbar, .toc, footer { display: none; }
  .shell { width: 100%; padding: 0; }
  .policy-header, .summary, .policy section { break-inside: avoid; box-shadow: none; }
}
