/* Odysto home page, built from the canvas boards WebsiteHome (1440 wide) and WebsiteHomeMobile (390 wide).
   Sizes at 1440 and 390 are the boards' own; widths in between scale or stack.
   Tiers: phone up to 767px, tablet 768–1199px, desktop from 1200px.
   The legal pages and 404 also load this file for the fonts, colours, header and skip link. */

/* Variable fonts, Latin subset, self-hosted (SIL OFL; licences beside them in fonts/). */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  --bg: #F3F5F7;
  --ink: #10151F;
  --muted: #535C6A;
  --night-muted: #AEB8C6;
  --white: #FFFFFF;
  --line: #E2E6EB;
  --dot: #E5482D;
  --tile: #DDE1E6;
  --rule: rgba(16, 21, 31, 0.12);

  /* Names legal.css uses. */
  --land: var(--bg);
  --sea: var(--white);
  --forest: var(--ink);

  --display: "Bricolage Grotesque", "Avenir Next Condensed", system-ui, sans-serif;
  --text: "Figtree", "Helvetica Neue", system-ui, sans-serif;

  /* 24px at 390, 80px at 1440; content never wider than 1280. */
  --gutter: clamp(24px, 5.5556vw, 80px);
  --pad: max(var(--gutter), calc((100vw - 1280px) / 2));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--text); color: var(--ink); background: var(--bg); }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
h1, h2, h3, p, ol, ul { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 14px; border-radius: 10px; }
[role="list"] { list-style: none; padding: 0; }

/* Wordmark: "odysto" and its red dot. */
.wordmark { display: inline-flex; align-items: flex-end; gap: 2px; font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.04em; line-height: 1; color: var(--ink); text-decoration: none; }
.wordmark::after { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); margin-bottom: 2px; }
.wordmark-foot { font-size: 24px; }
.wordmark-foot::after { width: 6px; height: 6px; }

/* Header */
.nav { position: relative; z-index: 2; height: 84px; padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 600; }
.nav-links a { text-decoration: none; }
.nav-link { padding: 12px 0; }
.nav-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 14px; background: var(--ink); color: var(--white); font-size: 15px; font-weight: 600; text-decoration: none; }
.btn:hover { background: #2A3140; }

/* Shared type */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { font-family: var(--display); }
h1, h2 { font-weight: 800; }
h3 { font-weight: 700; font-size: 30px; line-height: 1.08; letter-spacing: -0.03em; }
h2 { line-height: 1; letter-spacing: -0.045em; }

/* Store badges: Apple's and Google's own files, never redrawn. */
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge { display: block; flex: none; }
.badge-apple img { width: 161.5px; height: 54px; }
.badge-google img { width: 181.3px; height: 54px; }

/* Phone frames around app screens */
.phone { flex: none; background: var(--ink); }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone-hero { width: 198px; height: 412px; padding: 7px; border-radius: 36px; box-shadow: 0 18px 40px rgba(16, 21, 31, 0.22); }
.phone-hero img { border-radius: 30px; object-position: top; }
.phone-sm { width: 142px; height: 305px; padding: 6px; border-radius: 30px; box-shadow: 0 18px 40px rgba(16, 21, 31, 0.18); }
.phone-sm img { border-radius: 24px; }
.phone-lg { padding: 6px; border-radius: 34px; box-shadow: 0 18px 40px rgba(16, 21, 31, 0.18); }
.phone-lg img { border-radius: 28px; }
.phone-trip { width: 292px; height: 630px; }
.phone-plan { width: 312px; height: 673px; }

/* ——— Hero ——— */
.hero { padding: 70px var(--pad) 56px; display: grid; grid-template-columns: minmax(0, 600px) 616px; gap: 64px; align-items: center; }
/* 88px in the board's 600px column; the same proportions when the column is narrower. */
.hero h1 { font-size: clamp(56px, calc((100vw - 2 * var(--pad) - 680px) * 0.14667), 88px); line-height: 0.95; letter-spacing: -0.05em; }
.lede { margin-top: 26px; max-width: 540px; font-size: 20px; line-height: 1.5; color: var(--muted); }
.hero .badges { margin-top: 36px; }
.hero-phones { position: relative; height: 480px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.phone-plans, .phone-profile { transform: translateY(30px); }

/* ——— A trip from Seoul ——— */
.trip { padding: 120px var(--pad); }
.trip h2 { margin-top: 14px; font-size: 58px; }
.trip-grid { display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 56px; margin-top: 56px; align-items: start; }
.trip-map { grid-column: 2; grid-row: 1; position: relative; width: 560px; max-width: 100%; aspect-ratio: 560 / 600; }
.trip-map picture, .trip-map img { position: absolute; inset: 0; width: 100%; height: 100%; }
.trip-map img { border-radius: 28px; }
.stops { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 22px; }

/* Pins sit where the route's stops are on the map image. */
.pin { position: absolute; display: flex; align-items: center; gap: 8px; transform: translate(-18px, -50%); }
.pin-2 { transform: translate(calc(-100% + 18px), -50%); }
.pin-n { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border: 3px solid var(--white); border-radius: 50%; background: var(--ink); color: var(--white); font-size: 16px; font-weight: 700; }
.pin-label { padding: 6px 12px; border-radius: 99px; background: var(--white); font-size: 15px; font-weight: 700; white-space: nowrap; box-shadow: 0 4px 14px rgba(16, 21, 31, 0.14); }
.leg { position: absolute; padding: 5px 11px; border-radius: 99px; background: var(--white); font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: 0 2px 8px rgba(16, 21, 31, 0.12); }
.pin-1 { left: 20.536%; top: 7.167%; }
.pin-2 { left: 79.286%; top: 35.833%; }
.pin-3 { left: 49.286%; top: 92.833%; }
.leg-1 { left: 52.857%; top: 19.667%; }
.leg-2 { left: 66.429%; top: 62.667%; }

.stop { display: flex; align-items: center; gap: 24px; padding: 24px; border-radius: 24px; background: var(--white); box-shadow: 0 24px 60px rgba(16, 21, 31, 0.10); }
.stop picture { flex: none; }
.stop-photo { width: 128px; height: 128px; object-fit: cover; border-radius: 16px; }
.stop-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.stop-body { font-size: 16px; line-height: 1.5; color: var(--muted); }
.who { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.who li { font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 99px; background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(16, 21, 31, 0.2); }
.who .who-on { background: var(--ink); color: var(--white); box-shadow: none; }

/* ——— That's the trip ——— */
.done { padding: 20px var(--pad) 120px; display: grid; grid-template-columns: minmax(0, 520px) 280px; justify-content: center; column-gap: clamp(48px, 8.333vw, 120px); align-items: center; }
.done-photo { width: 100%; height: 280px; object-fit: cover; border-radius: 24px; margin-bottom: 40px; }
.done h2 { font-size: 60px; }
.done-copy p { margin-top: 20px; max-width: 440px; font-size: 19px; color: var(--muted); }

/* ——— How friends' picks work ——— */
.how { padding: 110px var(--pad); background: var(--white); }
.how h2 { font-size: 58px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.steps li { padding: 32px; border-radius: 24px; background: var(--bg); }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--white); font-size: 18px; font-weight: 700; }
.steps h3 { margin-top: 24px; }
.steps p { margin-top: 12px; font-size: 17px; line-height: 1.5; color: var(--muted); }

/* ——— Plan with friends (dark) ——— */
.plan { padding: 130px var(--pad); display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; align-items: center; background: var(--ink); color: var(--white); }
.plan .eyebrow { color: var(--night-muted); }
.plan h2 { margin-top: 14px; max-width: 600px; font-size: 60px; }
.plan-body { margin-top: 22px; max-width: 560px; font-size: 19px; line-height: 1.5; color: var(--night-muted); }
.plan-photo { width: 100%; max-width: 560px; height: 260px; object-fit: cover; border-radius: 24px; margin-top: 36px; }
.plan :focus-visible { outline-color: var(--white); }

/* ——— Your map ——— */
.mapsec { padding: 120px var(--pad) 110px; }
.mapsec h2 { margin-top: 14px; font-size: 58px; }
.mapsec-body { margin-top: 18px; max-width: 700px; font-size: 19px; color: var(--muted); }
.world { width: 100%; margin-top: 48px; border-radius: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chips li { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 99px; background: var(--white); font-size: 15px; font-weight: 600; }

/* ——— Trips from anywhere ——— */
.cities { padding: 20px var(--pad) 60px; }
.cities h2 { font-size: 50px; }
.cities-body { margin-top: 14px; font-size: 18px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 40px; }
.tile { position: relative; overflow: hidden; height: 300px; border-radius: 22px; background: var(--tile); }
.tile picture, .tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile span { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.94); font-size: 14px; font-weight: 600; color: var(--ink); }

/* ——— Get the app ——— */
.get { padding: 60px var(--pad) 110px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; width: 100%; max-width: 1280px; margin-bottom: 56px; }
.strip img { width: 100%; height: 200px; object-fit: cover; border-radius: 16px; }
.get h2 { font-size: 66px; }
.get-body { margin-top: 18px; font-size: 19px; color: var(--muted); }
.get .badges { justify-content: center; align-items: center; margin-top: 32px; }

/* ——— Footer ——— */
.footer { padding: 72px var(--pad) 40px; border-top: 1px solid var(--rule); }
/* The board's grid: the wordmark column is 1.4 parts, each of the five link columns 1 part, 40px apart. */
.footer-grid { display: grid; grid-template-columns: calc((100% - 200px) * 1.4 / 6.4) minmax(0, 1fr); gap: 40px; align-items: start; }
.footer-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px; }
.footer-group a { display: block; margin-bottom: 12px; font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none; }
.footer-group a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule); }
.footer-legal small { font-size: 13px; color: var(--muted); }

/* ——— Between the boards ——— */

/* The stop cards need the board's full width beside the map; below it, the map goes on top. */
@media (max-width: 1359px) {
  .trip-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .trip-map, .stops { grid-column: 1; grid-row: auto; }
  .trip-map { justify-self: center; }
}

@media (max-width: 1199px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 56px; }
  .hero h1 { font-size: clamp(46px, calc(46px + 34 * (100vw - 390px) / 809), 80px); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1023px) {
  .plan { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; }
}

@media (max-width: 899px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
}

/* Headings scale from the phone board's size at 390 to the desktop board's at 1440. */
@media (max-width: 1439px) {
  .trip h2, .mapsec h2 { font-size: clamp(36px, calc(38px + 20 * (100vw - 390px) / 1050), 58px); }
  .how h2 { font-size: clamp(34px, calc(36px + 22 * (100vw - 390px) / 1050), 58px); }
  .done h2 { font-size: clamp(40px, calc(44px + 16 * (100vw - 390px) / 1050), 60px); }
  .plan h2 { font-size: clamp(38px, calc(40px + 20 * (100vw - 390px) / 1050), 60px); }
  .cities h2 { font-size: clamp(34px, calc(36px + 14 * (100vw - 390px) / 1050), 50px); }
  .get h2 { font-size: clamp(38px, calc(42px + 24 * (100vw - 390px) / 1050), 66px); }
}

/* ——— Phone (the 390 board) ——— */
@media (max-width: 767px) {
  .nav { height: 60px; }
  .nav .wordmark { font-size: 22px; }
  .nav .wordmark::after { width: 6px; height: 6px; }
  .nav-link { display: none; }
  .nav .btn { min-height: 38px; padding: 0 14px; font-size: 14px; }

  .hero { display: block; padding: 44px var(--gutter) 0; }
  .hero h1 { line-height: 0.96; }
  .br-wide { display: none; }
  .lede { margin-top: 20px; font-size: 17px; }
  .hero .badges { gap: 10px; margin-top: 26px; }
  .badge-apple img { width: 137.6px; height: 46px; }
  .badge-google img { width: 154.4px; height: 46px; }
  .hero-phones { height: auto; align-items: flex-start; gap: 14px; margin-top: 36px; }
  .phone-hero { width: min(160px, calc(50% - 7px)); height: auto; aspect-ratio: 160 / 330; padding: 7px; border-radius: 30px; }
  .phone-hero img { border-radius: 24px; }
  .phone-home { order: -1; }
  .phone-plans { transform: none; margin-top: 36px; }
  .phone-profile { display: none; }

  .trip { padding: 72px 0 0; }
  .trip-head { padding: 0 var(--gutter); }
  .trip h2 { margin-top: 12px; line-height: 1.02; }
  .trip-grid { gap: 0; margin-top: 28px; }
  .stops { padding: 24px var(--gutter) 0; gap: 16px; }
  .stop { flex-wrap: wrap; gap: 14px; padding: 18px; border-radius: 22px; box-shadow: 0 14px 34px rgba(16, 21, 31, 0.10); }
  .stop picture { flex: 0 0 100%; order: -1; }
  .stop-photo { width: 100%; height: 132px; border-radius: 14px; }
  .stop-text { gap: 8px; }
  .stop h3 { font-size: 23px; }
  .stop-body { font-size: 14.5px; }
  .who li { font-size: 13px; padding: 8px 12px; }
  .phone-sm { width: 112px; height: 240px; border-radius: 26px; }
  .phone-sm img { border-radius: 20px; }

  .done { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 72px var(--gutter) 0; }
  .done-copy { align-self: stretch; }
  .done-photo { height: 180px; border-radius: 20px; margin-bottom: 4px; }
  .done-copy p { margin-top: 16px; max-width: none; font-size: 17px; }
  .phone-lg { border-radius: 32px; }
  .phone-lg img { border-radius: 26px; }
  /* The phone board sizes these by the screenshot's own shape: 210px wide inside the frame. */
  .phone-trip, .phone-plan { width: 222px; height: calc(210px * 1298 / 600 + 12px); }

  .how { padding: 72px var(--gutter); }
  .steps { gap: 16px; margin-top: 32px; }
  .steps li { padding: 24px; border-radius: 22px; }
  .steps h3 { font-size: 23px; line-height: 1.1; }

  .plan { display: flex; flex-direction: column; align-items: stretch; gap: 28px; padding: 80px var(--gutter); }
  .plan h2 { margin-top: 12px; }
  .plan-body { margin-top: 18px; font-size: 17px; }
  .plan-photo { height: 180px; border-radius: 20px; margin-top: 28px; max-width: none; }

  .mapsec { padding: 72px var(--gutter) 0; }
  .mapsec h2 { margin-top: 12px; line-height: 1.02; }
  .mapsec-body { margin-top: 14px; font-size: 17px; }
  .world { width: calc(100% + 2 * var(--gutter)); max-width: none; margin: 28px calc(-1 * var(--gutter)) 0; border-radius: 0; }
  .chips { gap: 8px; margin-top: 20px; }

  .cities { padding: 72px var(--gutter) 0; }
  .cities-body { margin-top: 12px; font-size: 16px; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 24px; }
  .tile { height: 190px; }
  .tile-wide-only { display: none; }

  .get { padding: 40px var(--gutter) 72px; }
  .strip { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 40px; }
  .strip img { height: 130px; }
  .get-body { margin-top: 16px; font-size: 17px; }

  .footer { padding: 48px var(--gutter) 36px; }
  .footer-grid { display: flex; flex-direction: column; gap: 28px; }
  .footer-nav { display: flex; flex-direction: column; gap: 28px; }
  .footer-legal { margin-top: 40px; }
}

/* Small phones: the full-width route map from the phone board, pins placed for its 390 × 380 frame. */
@media (max-width: 559px) {
  .trip-map { width: 100%; aspect-ratio: 390 / 380; }
  .trip-map img { border-radius: 0; }
  .pin-1 { left: 23.846%; top: 8.421%; }
  .pin-2 { left: 75.897%; top: 36.316%; }
  .pin-3 { left: 49.231%; top: 91.579%; }
  .leg-1 { left: 53.846%; top: 20%; }
  .leg-2 { left: 66.154%; top: 61.579%; }
}
@media (min-width: 560px) and (max-width: 767px) {
  .trip-map { width: calc(100% - 2 * var(--gutter)); max-width: 560px; }
}
