/* WingIt — wingittodo.com
   Design system v4 (locked): cinematic painterly world behind frosted-glass chrome. */

/* Inter, self-hosted latin subset. One variable file covers the whole weight
   axis, so 400 and 600 cost a single 48 KB request and no external host. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --porcelain: #F7F7F5;
  --ink: #1C232E;
  --horizon: #4A7DBF;
  --amber: #E8A552;
  --indigo: #0E1420;

  --ink-70: rgba(28, 35, 46, 0.72);
  --ink-55: rgba(28, 35, 46, 0.56);
  --paper-70: rgba(247, 247, 245, 0.74);
  --paper-55: rgba(247, 247, 245, 0.58);

  --glass: rgba(247, 247, 245, 0.72);
  --glass-line: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 24px 60px -24px rgba(14, 20, 32, 0.35);

  --grotesque: "Inter", "Inter Display", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  --artifact-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    "Times New Roman", serif;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --measure: 34rem;
  --shell: 74rem;
  --radius: 22px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--grotesque);
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.08;
}

h1 { font-size: clamp(2.5rem, 7vw, 4.25rem); }
h2 { font-size: clamp(1.95rem, 4.4vw, 3rem); line-height: 1.12; }
h3 { font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.3; }

p { margin: 0; }

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

.stack > * + * { margin-top: 1.15rem; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-55);
}

.lede { font-size: clamp(1.05rem, 1.9vw, 1.2rem); color: var(--ink-70); max-width: var(--measure); }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem; top: 1rem; z-index: 99;
  padding: 0.6rem 1rem; border-radius: 999px;
  background: var(--ink); color: var(--porcelain);
}

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

/* ---------- frosted glass ---------- */

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  backdrop-filter: blur(22px) saturate(1.35);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius);
}

.glass--dark {
  background: rgba(14, 20, 32, 0.5);
  border-color: rgba(247, 247, 245, 0.14);
  color: var(--porcelain);
}

@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .glass { background: rgba(247, 247, 245, 0.94); }
  .glass--dark { background: rgba(14, 20, 32, 0.86); }
}

/* ---------- nav ---------- */

.nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  padding-top: clamp(0.9rem, 2.5vw, 1.5rem);
}

.nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.65rem 0.55rem 0.9rem;
  border-radius: 999px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.wordmark img { width: 26px; height: 26px; border-radius: 7px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.6rem);
  font-size: 0.9rem;
}
.nav__links a { color: var(--ink-70); text-decoration: none; }
.nav__links a:hover { color: var(--ink); }
.nav__links .hide-sm { display: none; }

@media (min-width: 46rem) {
  .nav__links .hide-sm { display: inline; }
}

/* ---------- hero: the sky behind glass ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(5.5rem, 14vw, 9rem) 0 clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
}

/* Layer 1: the painted day sky (the app's own ramp, top of frame).
   Layer 2: the painterly horizon band, feathered in.
   Layer 3: the settle into porcelain, so the page reads as one sky. */
.hero__sky {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(to bottom,
    #34659F 0%,
    #4A7DBF 14%,
    #7BA6D2 34%,
    #B4CBE0 52%,
    #DED4C4 68%,
    #F0DFC4 82%);
}

/* The painted horizon: the app's own sky art, feathered into the gradient. */
.hero__sky::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: min(58%, 620px);
  background: url("assets/sky.webp") center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 34%);
  mask-image: linear-gradient(to bottom, transparent, #000 34%);
}

/* The same brushwork, inverted and blended, so the upper sky carries real
   painted cloud texture instead of a flat CSS ramp. */
.hero__clouds {
  position: absolute;
  inset: 0 0 32% 0;
  background: url("assets/sky.webp") center 30% / cover no-repeat;
  transform: scale(-1, -1);
  mix-blend-mode: soft-light;
  opacity: 0.85;
  -webkit-mask-image: linear-gradient(to top, transparent, #000 26%, #000 72%, rgba(0, 0, 0, 0.6));
  mask-image: linear-gradient(to top, transparent, #000 26%, #000 72%, rgba(0, 0, 0, 0.6));
}

.hero__sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(14, 20, 32, 0.1),
    rgba(14, 20, 32, 0) 22%,
    rgba(247, 247, 245, 0) 74%,
    rgba(247, 247, 245, 0.72) 93%,
    var(--porcelain) 100%);
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 62rem) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; }
}

.hero__card {
  padding: clamp(1.45rem, 4vw, 2.75rem);
  max-width: 40rem;
}

.hero__card h1 { margin-bottom: 1rem; }
.hero__card .lede { color: rgba(28, 35, 46, 0.78); }

.hero__phone { justify-self: center; }

.hero__tag {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(28, 35, 46, 0.12);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(28, 35, 46, 0.5);
}

/* ---------- play badge ---------- */

.getit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.1rem;
  margin-top: 1.55rem;
}

/* Not a link until the store listing exists — a dead href reads as a broken
   button, so this is deliberately inert and says so on its face. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 1.25rem 0.62rem 1.05rem;
  border-radius: 12px;
  background: var(--ink);
  color: var(--porcelain);
  border: 1px solid rgba(247, 247, 245, 0.14);
  box-shadow: 0 12px 28px -14px rgba(14, 20, 32, 0.6);
}
.badge--soon { cursor: default; }
.badge svg { width: 22px; height: 24px; flex: none; opacity: 0.9; }
.badge__text { display: grid; line-height: 1.1; text-align: left; }
.badge__text small {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}
.badge__text strong { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.02em; }

.getit__note { font-size: 0.86rem; color: var(--ink-55); }
.glass--dark .getit__note { color: var(--paper-55); }

/* ---------- phone frame ---------- */

.phone {
  position: relative;
  width: min(268px, 74vw);
  padding: 9px;
  border-radius: 40px;
  background: linear-gradient(160deg, #2C3542, var(--indigo) 55%, #232C39);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.16) inset,
    0 40px 70px -30px rgba(14, 20, 32, 0.62),
    0 8px 24px -12px rgba(14, 20, 32, 0.4);
}
.phone::before {
  content: "";
  position: absolute;
  top: 17px; left: 50%;
  transform: translateX(-50%);
  width: 62px; height: 5px;
  border-radius: 999px;
  background: rgba(247, 247, 245, 0.22);
  z-index: 2;
}
.phone img {
  border-radius: 32px;
  width: 100%;
  background: #DCE4EE;
}

/* ---------- sections ---------- */

.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section--tight { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }

.section__head { max-width: 46rem; }
.section__head h2 + p { margin-top: 1.1rem; }

.rule {
  width: 44px; height: 2px;
  background: var(--amber);
  border: 0; margin: 0 0 1.5rem;
  border-radius: 2px;
}

.dark {
  background: var(--indigo);
  color: var(--porcelain);
}
.dark .lede, .dark p { color: var(--paper-70); }
.dark .eyebrow { color: var(--paper-55); }

/* ---------- how it works ---------- */

.steps {
  display: grid;
  gap: 1.1rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 52rem) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

.step {
  padding: clamp(1.4rem, 3vw, 1.9rem);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(28, 35, 46, 0.07);
  box-shadow: 0 18px 40px -30px rgba(14, 20, 32, 0.5);
}
.step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  margin-bottom: 1rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 165, 82, 0.55);
  background: rgba(232, 165, 82, 0.14);
  color: #B87A2A;
  font-size: 0.8rem;
  font-weight: 600;
}
.step p { margin-top: 0.6rem; color: var(--ink-70); font-size: 0.98rem; }

/* ---------- split (image + copy) ---------- */

.split {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}
@media (min-width: 60rem) {
  .split { grid-template-columns: 0.9fr 1.1fr; }
  .split--flip > :first-child { order: 2; }
}
.split__art { justify-self: center; }

/* ---------- vow / guilt-free lists ---------- */

.section--sky {
  background:
    radial-gradient(90% 60% at 12% 0%, rgba(74, 125, 191, 0.09), rgba(74, 125, 191, 0) 70%),
    linear-gradient(to bottom, rgba(232, 165, 82, 0.05), rgba(247, 247, 245, 0) 40%),
    var(--porcelain);
}


.vow {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2.25rem, 5vw, 3rem);
  padding: 0;
  list-style: none;
}
@media (min-width: 52rem) {
  .vow { grid-template-columns: 1fr 1fr; gap: 1.1rem 2.5rem; }
}
.vow li {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  gap: 0.85rem;
  align-items: start;
  font-size: 1rem;
  color: var(--ink-70);
}
.dark .vow li { color: var(--paper-70); }
.vow li strong { color: var(--ink); font-weight: 600; }
.dark .vow li strong { color: var(--porcelain); }
.vow svg { width: 1.35rem; height: 1.35rem; margin-top: 0.22rem; flex: none; color: var(--amber); }

.nots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding: 0;
  list-style: none;
}
.nots li {
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--paper-70);
  border: 1px solid rgba(247, 247, 245, 0.2);
  background: rgba(247, 247, 245, 0.06);
}

/* ---------- postcard artifact (serif only here) ---------- */

.postcard {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding: clamp(1.5rem, 3.5vw, 2.1rem);
  max-width: 30rem;
  border-radius: 18px;
  background: rgba(247, 247, 245, 0.07);
  border: 1px solid rgba(247, 247, 245, 0.16);
}
.postcard blockquote {
  margin: 0;
  font-family: var(--artifact-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  line-height: 1.45;
  color: var(--porcelain);
}
.postcard figcaption {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(232, 165, 82, 0.45);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-55);
}

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(216px, 62vw);
  gap: 1.1rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: 0.5rem var(--gutter) 1.75rem;
  margin-inline: calc(var(--gutter) * -1);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.gallery figure { margin: 0; scroll-snap-align: center; }
.gallery .phone { width: 100%; }
.gallery figcaption {
  margin-top: 0.95rem;
  font-size: 0.88rem;
  color: var(--ink-55);
  text-align: center;
  line-height: 1.4;
}

@media (min-width: 64rem) {
  .gallery {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-columns: auto;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
    gap: 2rem 1.5rem;
  }
  .gallery .phone { width: 100%; padding: 8px; border-radius: 34px; }
  .gallery .phone img { border-radius: 27px; }
  .gallery .phone::before { width: 48px; height: 4px; top: 14px; }
}

.gallery__hint {
  margin-top: -0.5rem;
  font-size: 0.82rem;
  color: var(--ink-55);
}
@media (min-width: 64rem) { .gallery__hint { display: none; } }

/* ---------- closing call ---------- */

.closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
}
.closing__sky {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/sky.webp");
  background-size: cover;
  background-position: 50% 100%;
  background-color: #F3DFC0;
}
.closing__sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(247, 247, 245, 0.86), rgba(247, 247, 245, 0.34) 45%, rgba(247, 247, 245, 0.92));
}
.closing__card {
  padding: clamp(2rem, 5vw, 3.25rem);
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}
.closing__card .getit { justify-content: center; flex-direction: column; gap: 0.75rem; }

/* ---------- flight divider ---------- */

.flight {
  display: block;
  width: min(340px, 60%);
  height: auto;
  margin: 0 auto;
  color: rgba(232, 165, 82, 0.85);
}

.arrowlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid rgba(232, 165, 82, 0.7);
  padding-bottom: 2px;
  transition: gap 160ms ease, border-color 160ms ease;
}
.arrowlink:hover { gap: 0.75rem; border-color: var(--amber); }
.arrowlink span[aria-hidden] { color: var(--amber); }

/* ---------- footer ---------- */

.footer {
  background: var(--indigo);
  color: var(--paper-70);
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  font-size: 0.92rem;
}
.footer__tag {
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--porcelain);
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.75rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(247, 247, 245, 0.14);
  color: var(--paper-55);
  font-size: 0.86rem;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer a { color: var(--paper-70); text-decoration: none; border-bottom: 1px solid rgba(247, 247, 245, 0.2); padding-bottom: 1px; }
.footer a:hover { color: var(--porcelain); border-color: var(--amber); }
.footer .wordmark { color: var(--porcelain); }

/* ---------- policy page ---------- */

/* The policy page keeps the same sky, just quieter: one wash behind the whole
   page so the static header does not cut a seam across it. */
.policy-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(to bottom, rgba(74, 125, 191, 0.13), rgba(247, 247, 245, 0) 30rem),
    var(--porcelain);
  background-repeat: no-repeat;
}

.policy { flex: 1; padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(4rem, 8vw, 6rem); }
.policy__body a.arrowlink { color: var(--ink); }
.policy__doc {
  max-width: 44rem;
  margin-inline: auto;
}
.policy__meta { margin-top: 0.85rem; color: var(--ink-55); font-size: 0.92rem; }
.policy__body { margin-top: clamp(2.25rem, 5vw, 3rem); }
.policy__body h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.6rem);
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(28, 35, 46, 0.1);
}
.policy__body h3 {
  font-size: 1.02rem;
  margin-top: 1.9rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.policy__body p { margin-top: 1rem; color: var(--ink-70); }
.policy__body ul { margin: 1rem 0 0; padding-left: 1.15rem; color: var(--ink-70); }
.policy__body li { margin-top: 0.65rem; }
.policy__body li::marker { color: var(--amber); }
.policy__body strong { color: var(--ink); font-weight: 600; }
.policy__body a { color: #2F5E96; text-underline-offset: 3px; }

.callout {
  margin-top: 1.5rem;
  padding: 1.25rem 1.4rem;
  border-radius: 16px;
  background: rgba(74, 125, 191, 0.08);
  border: 1px solid rgba(74, 125, 191, 0.18);
}
.callout p { margin-top: 0; }

.nav--solid { position: static; padding: clamp(0.9rem, 2.5vw, 1.5rem) 0 0; }
