:root {
  --primary: #2f6bef;
  --primary-strong: #1b55c9;
  --primary-tint: #ecf2ff;
  --text: #17253b;
  --text-2: #495871;
  --text-3: #626e80;
  --accent: #2458b5;
  --surface: #fff;
  --surface-2: #f5f8fc;
  --fill: #f2f5f9;
  --border: #dfe5ed;
  --divider: #e7ebf0;
  --r-lg: 18px;
  --r-full: 999px;
  --gutter: clamp(1.25rem, 4.8vw, 4.5rem);
  --header: 4.5rem;
}
* { box-sizing: border-box; }
html {
  overflow-anchor: none;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font: 1rem/1.55 "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", sans-serif;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap {
  width: min(77.5rem, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}
.skip {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 30;
  padding: .65rem 1rem;
  border-radius: .65rem;
  background: var(--primary-strong);
  color: white;
}
.skip:focus { top: .6rem; }
:focus-visible { outline: 3px solid var(--primary-strong); outline-offset: 3px; }

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--divider);
}
header .wrap {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: .75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .56rem;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.045em;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: .62rem;
  background: var(--primary);
}
.status {
  padding: .18rem .55rem;
  border: 1px solid #d9e4f7;
  border-radius: var(--r-full);
  color: #405b83;
  background: #f5f8fd;
  font-size: .8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.header-nav { display: flex; align-items: center; gap: 1.65rem; margin-left: auto; }
.header-nav a {
  padding-block: .63rem;
  color: var(--text-2);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
}
.header-nav a:hover, footer nav a:hover { color: var(--primary-strong); }
.lang {
  display: flex;
  margin-left: 1.1rem;
  padding: 3px;
  border: 1px solid var(--divider);
  border-radius: var(--r-full);
  background: #f4f6f8;
}
.lang button {
  appearance: none;
  border: 0;
  border-radius: inherit;
  min-height: 2.25rem;
  padding: 0 .8rem;
  color: var(--text-2);
  background: transparent;
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
}
.lang button[aria-pressed="true"] {
  background: var(--surface);
  box-shadow: 0 1px 4px #17253b20;
  color: var(--text);
}

.hero { padding: clamp(2.25rem, 4.1vw, 4rem) 0; }
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(2rem, 3vw, 3rem);
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.55rem, 4.5vw, 4.1rem);
  line-height: 1.16;
  font-weight: 780;
  letter-spacing: -.053em;
}
.hero h1 em { color: var(--primary); font-style: normal; letter-spacing: -.045em; white-space: nowrap; }
@media (min-width: 48rem) {
  html[lang="en"] .hero h1 { font-size: clamp(2.1rem, 4.05vw, 3.6rem); }
}
.lede {
  max-width: 25em;
  margin: 1.35rem 0 1.85rem;
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  letter-spacing: -.019em;
  text-wrap: balance;
}
.lede span { display: inline-block; max-width: 100%; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 3.25rem;
  padding: .65rem 1.5rem;
  border-radius: var(--r-full);
  background: var(--primary);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 5px 14px #2f6bef27;
  transition: background .18s, transform .18s;
}
.btn:hover { background: var(--primary-strong); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }

/* The paper note overlaps the top of the phone. Both names stay in view. */
.hero-scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1.31;
  border: 1px solid #d9e4f5;
  border-radius: 1.75rem;
  background-color: #e2ecfb;
  background-image:
    radial-gradient(circle, #6e93c64d .78px, transparent 1px),
    linear-gradient(102deg, #dbe8fa, #edf3fb 62%, #dce8f8);
  background-size: 12px 12px, 100% 100%;
}
.memo-route {
  position: absolute;
  top: 44%;
  left: 19%;
  width: 52%;
  height: 35%;
  border-left: 2px dashed #7595bf;
  border-bottom: 2px dashed #7595bf;
  border-bottom-left-radius: 2.5rem;
}
.coffee-note {
  position: absolute;
  z-index: 2;
  top: 10%;
  left: 6%;
  width: 34%;
  margin: 0;
  padding: .62rem .62rem .8rem;
  border: 1px solid #fff;
  border-radius: .2rem;
  background: #fffefa;
  box-shadow: 0 9px 18px #30486525, 0 2px 4px #30486521;
  transform: rotate(-6deg);
}
.coffee-note::before {
  content: "";
  position: absolute;
  z-index: 1;
  width: 34%;
  height: 1.35rem;
  top: -.65rem;
  left: 34%;
  transform: rotate(5deg);
  background: #e4d9b8dc;
  clip-path: polygon(1% 6%, 100% 0, 98% 26%, 100% 39%, 97% 60%, 100% 86%, 99% 100%, 0 95%, 2% 76%, 0 60%, 2% 37%);
}
.coffee-photo { width: 100%; height: auto; aspect-ratio: 1.6; object-fit: cover; }
.coffee-note figcaption { padding: .65rem .16rem 0; }
.memo-text {
  margin: 0;
  font-size: clamp(.975rem, 1.45vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.3;
  text-wrap: pretty;
}
.memo-place {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-top: .4rem;
  color: #535e70;
  font-size: .8125rem;
  line-height: 1.3;
  font-weight: 600;
}
.memo-place svg { flex: none; }
.day-device {
  position: absolute;
  top: 14%;
  right: 5%;
  width: 59%;
  padding: clamp(5px, .55vw, 8px);
  border: 1px solid #465367;
  border-radius: 2.65rem 2.65rem 0 0;
  background: linear-gradient(110deg, #667384, #1b2230 5%, #171e2b 93%, #657285);
  box-shadow: 0 14px 32px #31466440, inset 0 0 0 2px #ffffff52;
}
.day-screen { position: relative; }
.day-plan { width: 100%; height: auto; border-radius: 2.12rem 2.12rem 0 0; }
/* The focus is a larger crop of the same native row at (50, 279) in a 390 × 552 pt capture. */
.day-focus {
  position: absolute;
  left: 12.82%;
  top: 50.54%;
  width: 82.05%;
  height: auto;
  border-radius: 1rem;
  outline: 1.5px solid var(--primary);
  box-shadow: 0 6px 16px #1b42743b;
  transform: scale(1.12);
  transform-origin: 70% center;
}

.flow, .sources { padding: clamp(3.25rem, 5.5vw, 5rem) 0; }
.flow { border-top: 1px solid var(--divider); }
.eyebrow {
  margin: 0 0 .65rem;
  color: var(--accent);
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: -.015em;
}
h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.2;
  text-wrap: balance;
}
.lang-note { margin: .7rem 0 0; font-size: .9375rem; color: var(--text-3); }
.section-lede { max-width: 36em; margin: 1rem 0 2.4rem; color: var(--text-2); font-size: 1.125rem; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(1.1rem, 2.5vw, 2.25rem);
  row-gap: .6rem;
  margin: 2.3rem 0 0;
  padding: 0;
  list-style: none;
}
.step {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  min-width: 0;
  align-content: start;
  border-top: 1px solid #ccd5e3;
  padding-top: 1.1rem;
}
.step h3 { display: flex; align-items: center; gap: .65rem; margin: 0; font-size: 1.32rem; letter-spacing: -.035em; }
.step-num {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--accent);
  font-size: .875rem;
  font-weight: 750;
}
.step p { margin: 0; color: var(--text-2); line-height: 1.6; }
.step-visual {
  align-self: start;
  margin-top: .65rem;
  border: 1px solid var(--border);
  border-radius: 1.05rem;
  overflow: hidden;
  background: #fff;
}
.step-visual img { width: 100%; height: auto; }
/* Show the trip and day controls from the same sheet, omitting its empty scroll area. */
.trip-choice { aspect-ratio: 374 / 234; }
.day-choice { aspect-ratio: 374 / 174; border-top: 1px dashed var(--border); }
.visual-add img { height: 100%; object-fit: cover; object-position: top; }
.day-choice img { object-position: bottom; }

/* 출처 */
.sources{background:var(--surface-2)}
.source-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:0 0 20px;padding:0;list-style:none}
.source{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:18px;display:flex;flex-direction:column;gap:12px}
.pill{display:inline-flex;align-self:flex-start;align-items:center;gap:7px;height:30px;padding:0 12px;border-radius:var(--r-full);background:var(--fill);font-size:14px;font-weight:700}
.pill i{width:9px;height:9px;border-radius:50%;background:var(--c)}
.pill i.ring{box-shadow:0 0 0 1px rgba(0,0,0,.18)}
.source span.how{font-size:15px;color:var(--text-2)}
.fineprint{font-size:15px;color:var(--text-2);margin:0;max-width:44em}
.extras{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:56px;padding:0;list-style:none}
.extra{border-top:2px solid var(--text);padding-top:16px}
.extra h3{margin:0 0 6px;font-size:18px;letter-spacing:-.3px}
.extra p{margin:0;color:var(--text-2);font-size:15px}

/* 아래 */
footer{border-top:1px solid var(--divider);padding:40px 0 48px;font-size:14px;color:var(--text-3)}
footer .wrap{display:flex;flex-wrap:wrap;gap:16px 32px;align-items:center;justify-content:space-between}
footer nav{display:flex;flex-wrap:wrap;gap:4px 8px}
footer nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 8px;color:var(--text-2);font-weight:600;text-decoration:none;
  background:linear-gradient(currentColor,currentColor) left calc(100% - 10px)/0 1px no-repeat;transition:background-size .2s}
footer nav a:hover{background-size:calc(100% - 16px) 1px;background-position:8px calc(100% - 10px)}
footer p{margin:0}

@media (max-width: 59.99rem) {
  .hero-layout { gap: 1.4rem; grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: clamp(2.25rem, 4.25vw, 2.6rem); }
  .source-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 47.99rem) {
  :root { --header: 3.6rem; }
  header .wrap { gap: .45rem; }
  .brand { gap: .4rem; font-size: 1.125rem; }
  .brand-mark { width: 1.8rem; height: 1.8rem; }
  .status { font-size: .75rem; padding-inline: .45rem; }
  .header-nav { display: none; }
  .lang { margin-left: auto; }
  .lang button { min-height: 2.15rem; padding-inline: .62rem; }
  .hero { padding: 2.1rem 0 2rem; }
  .hero-layout { grid-template-columns: 1fr; gap: 1.65rem; }
  .hero h1 { font-size: clamp(2rem, 9.25vw, 3.1rem); line-height: 1.18; letter-spacing: -.055em; }
  .lede { max-width: 25em; margin: .85rem 0 1.2rem; font-size: 1.0625rem; line-height: 1.52; }
  .btn { min-height: 3rem; padding-inline: 1.25rem; font-size: 1rem; }
  .hero-scene { width: 100%; max-width: 32rem; justify-self: center; }
  .steps { grid-template-columns: 1fr; margin-top: 1.65rem; gap: 2.3rem; }
  .step { grid-row: auto; grid-template-rows: auto; gap: .45rem; padding-top: 1rem; }
  .step-visual { width: min(100%, 26rem); }
  .section-lede { margin-bottom: 2rem; }
  .source-grid { gap: 10px; }
  .source { padding: 14px; }
  .extras { grid-template-columns: 1fr; gap: 20px; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}
/* On a narrow canvas the note sits across the top of the handset. */
@media (max-width: 65rem) {
  .hero-scene { aspect-ratio: .89; border-radius: 1.35rem; }
  .coffee-note {
    display: grid;
    grid-template-columns: 32% minmax(0, 1fr);
    align-items: center;
    gap: .5rem;
    left: 5%;
    top: 4.5%;
    width: 68%;
    padding: .4rem;
    transform: rotate(-4deg);
  }
  .coffee-note::before { left: 8%; width: 22%; height: 1rem; top: -.5rem; }
  .coffee-photo { aspect-ratio: .98; }
  .coffee-note figcaption { padding: .08rem .12rem .08rem 0; }
  .memo-text { font-size: .9375rem; }
  .memo-place { margin-top: .3rem; font-size: .8125rem; }
  .memo-place svg { width: .75rem; height: .75rem; }
  .day-device { top: 18%; right: 3%; width: 89%; border-radius: 2rem 2rem 0 0; }
  .day-plan { border-radius: 1.62rem 1.62rem 0 0; }
  .day-focus { transform: scale(1.23); }
  .memo-route { left: 5%; top: 15%; height: 62%; border-bottom-left-radius: 1rem; }
}
@media (min-width: 32rem) and (max-width: 47.99rem) {
  .hero-scene { aspect-ratio: 1.18; }
  .day-device { width: 67%; top: 16%; }
  .coffee-note { width: 47%; top: 9%; }
}
@media (max-width: 22.49rem) {
  :root { --gutter: .75rem; }
  header .wrap { gap: .3rem; }
  .brand { gap: .3rem; font-size: 1rem; }
  .brand-mark { width: 1.6rem; height: 1.6rem; }
  .status { padding-inline: .35rem; }
  .lang button { padding-inline: .4rem; font-size: .8125rem; }
  .source-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
