/* LetFlyAway website. One stylesheet, no web fonts, no scripts.
   고요 (stillness), but bright: warm cream paper, pale sky, turquoise water, fresh grass,
   peach and soft gold (docs/PRODUCT.md §3). No inline styles anywhere, so a strict
   Content-Security-Policy (style-src 'self') works (docs/WEB.md). */

:root {
  color-scheme: light;

  --paper: #fff8ec;
  --paper-deep: #fbefd9;
  --card: #fffdf8;
  --sky: #d7eefa;
  --sky-deep: #a9d8f2;
  --water: #3fc4c0;
  --water-deep: #1f9c9a;
  --grass: #7cc46a;
  --peach: #ffcfae;
  --gold: #f2c45a;
  --wood: #c98f5e;

  --ink: #2c3a52;
  --ink-soft: #55627a;
  --ink-faint: #7a8597;
  --line: #ecdcc0;
  --link: #137f7d;
  --link-hover: #0d5f5d;
  --focus: #f0a35b;

  --radius: 18px;
  --radius-small: 12px;
  --shadow: 0 1px 0 rgba(120, 90, 40, 0.06), 0 10px 30px -18px rgba(120, 90, 40, 0.35);

  --font-ui: ui-rounded, 'SF Pro Rounded', 'Hiragino Maru Gothic ProN', 'Nunito', 'Quicksand',
    'Varela Round', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-letter: ui-serif, 'New York', 'Iowan Old Style', Georgia, 'Times New Roman', serif;

  --wrap: 1040px;
  --gutter: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--link-hover);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--card);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow);
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.wordmark svg {
  width: 32px;
  height: 32px;
}

.top nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.top nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.top nav a:hover,
.top nav a[aria-current='page'] {
  color: var(--ink);
  text-decoration: underline;
}

/* ---------- Landing ---------- */

.sky {
  background: var(--sky);
}

.hero {
  background: linear-gradient(180deg, var(--sky) 0%, #eaf6fb 46%, var(--paper) 100%);
}

.hero-inner {
  display: grid;
  gap: 28px;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 48px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 8vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-weight: 800;
}

.sub {
  margin: 0 0 22px;
  max-width: 30em;
  font-size: clamp(18px, 2.4vw, 20px);
  color: var(--ink-soft);
}

/* The four "Let ___ fly away." lines take turns, with CSS only. Everything is in the list, so
   screen readers read all four; with reduced motion they simply show as a list. */
.lines {
  position: relative;
  height: 1.6em;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  font-family: var(--font-letter);
  font-style: italic;
  font-size: clamp(20px, 3vw, 24px);
  color: var(--water-deep);
}

.lines li {
  position: absolute;
  inset: 0 auto auto 0;
  white-space: nowrap;
  opacity: 0;
  animation: line-turn 16s ease-in-out infinite both;
}

/* Negative first delay: the first line is already showing when the page opens. */
.lines li:nth-child(1) {
  animation-delay: -1.5s;
}

.lines li:nth-child(2) {
  animation-delay: 2.5s;
}

.lines li:nth-child(3) {
  animation-delay: 6.5s;
}

.lines li:nth-child(4) {
  animation-delay: 10.5s;
}

@keyframes line-turn {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  5%,
  21% {
    opacity: 1;
    transform: translateY(0);
  }
  26%,
  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.store:hover {
  color: var(--paper);
  background: #3a4a66;
}

.store svg {
  width: 18px;
  height: 18px;
}

.store-note {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--ink-faint);
}

.hero-art svg {
  width: 100%;
  height: auto;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.plane {
  transform-box: fill-box;
  transform-origin: center;
  animation: drift 7s ease-in-out infinite;
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(6px, -9px) rotate(-3deg);
  }
}

.cloud-a {
  animation: cloud 26s ease-in-out infinite alternate;
}

.cloud-b {
  animation: cloud 34s ease-in-out infinite alternate-reverse;
}

@keyframes cloud {
  from {
    transform: translateX(-10px);
  }
  to {
    transform: translateX(14px);
  }
}

section {
  padding: 56px 0;
}

section h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4.4vw, 34px);
  line-height: 1.2;
  font-weight: 800;
}

.lead {
  margin: 0 0 30px;
  max-width: 36em;
  color: var(--ink-soft);
}

.steps,
.promises {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li,
.promises li {
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.steps svg,
.promises svg {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
}

.steps h3,
.promises h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.steps p,
.promises p {
  margin: 0;
  color: var(--ink-soft);
}

.step-no {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--water-deep);
}

.band {
  background: var(--paper-deep);
}

.places {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.places li {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 15px;
}

.fine {
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--ink-faint);
}

.closing {
  text-align: center;
  padding: 64px 0 72px;
  background: linear-gradient(180deg, var(--paper) 0%, #fdeedd 100%);
}

.closing p.big {
  margin: 0 0 22px;
  font-family: var(--font-letter);
  font-style: italic;
  font-size: clamp(24px, 4vw, 32px);
}

.closing .store-note {
  margin-top: 14px;
}

/* ---------- Documents (privacy, terms, safety) ---------- */

.doc {
  max-width: 760px;
  padding-top: 12px;
  padding-bottom: 64px;
}

.doc h1 {
  margin: 8px 0 6px;
  font-size: clamp(32px, 6vw, 44px);
  line-height: 1.15;
  font-weight: 800;
}

.doc h2 {
  margin: 44px 0 10px;
  font-size: 24px;
  line-height: 1.25;
}

.doc h3 {
  margin: 26px 0 6px;
  font-size: 19px;
}

.doc p,
.doc li {
  max-width: 40em;
}

.doc ul,
.doc ol {
  padding-left: 1.3em;
}

.doc li + li {
  margin-top: 6px;
}

.updated {
  margin: 0 0 22px;
  color: var(--ink-faint);
  font-size: 15px;
}

.summary {
  margin: 22px 0 8px;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.summary h2 {
  margin: 0 0 8px;
  font-size: 19px;
}

.summary ul {
  margin: 0;
}

.callout {
  margin: 22px 0;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: #e3f6f5;
  border: 1px solid #bde7e4;
}

.callout.warm {
  background: #fff0e2;
  border-color: #f6d3b2;
}

.callout h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.callout p:last-child {
  margin-bottom: 0;
}

.toc {
  margin: 0 0 8px;
  padding: 16px 20px;
  border-radius: var(--radius-small);
  background: var(--paper-deep);
  font-size: 15px;
}

.toc ol {
  margin: 6px 0 0;
  columns: 2 220px;
  column-gap: 24px;
}

.toc li + li {
  margin-top: 2px;
}

/* Data table: three columns on wide screens, one card per row on phones. */
.data {
  width: 100%;
  margin: 14px 0 6px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15.5px;
  line-height: 1.5;
}

.data th,
.data td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.data thead th {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 2px solid var(--line);
}

.data tbody th {
  width: 22%;
  font-weight: 700;
}

@media (max-width: 640px) {
  .data thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .data,
  .data tbody,
  .data tr,
  .data th,
  .data td {
    display: block;
    width: 100%;
  }

  .data tr {
    margin-bottom: 12px;
    padding: 6px 4px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
  }

  .data tbody th,
  .data td {
    padding: 6px 12px;
    border: 0;
  }

  .data tbody th {
    width: 100%;
    font-size: 17px;
  }

  .data td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-faint);
  }
}

.helplines {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.doc .helplines {
  padding-left: 0;
}

.helplines li {
  max-width: none;
  margin: 0;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

.helplines li + li {
  margin-top: 0;
}

/* ---------- 404 ---------- */

.lost {
  text-align: center;
  padding-top: 40px;
  padding-bottom: 80px;
}

.lost svg {
  width: min(320px, 80%);
  margin: 0 auto 18px;
}

.lost h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 5vw, 38px);
}

.lost p {
  margin: 0 auto 22px;
  max-width: 28em;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */

.foot {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 26px;
  padding-bottom: 34px;
  font-size: 15px;
  color: var(--ink-faint);
}

.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot p {
  margin: 0;
}

/* ---------- Wider screens ---------- */

@media (min-width: 760px) {
  :root {
    --gutter: 28px;
  }

  .hero-inner {
    grid-template-columns: 1.05fr 1fr;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 72px;
  }

  .steps,
  .promises {
    grid-template-columns: repeat(3, 1fr);
  }

  section {
    padding: 72px 0;
  }
}

@media (max-width: 420px) {
  .top {
    flex-wrap: wrap;
  }

  .top nav ul {
    gap: 4px 14px;
  }
}

/* ---------- Calm for people who asked for less motion ---------- */

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

  .plane,
  .cloud-a,
  .cloud-b {
    animation: none;
  }

  .lines {
    height: auto;
  }

  .lines li {
    position: static;
    opacity: 1;
    animation: none;
    white-space: normal;
  }
}

@media print {
  .hero-art,
  .skip,
  .top nav,
  .store {
    display: none;
  }

  body {
    background: #fff;
    font-size: 12pt;
  }
}
