/* Yoink website. Colors and fonts match the iOS app (Assets.xcassets, Resources/Fonts). */

@font-face {
  font-family: "Lilita One";
  src: url("fonts/LilitaOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito-Variable.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #FFF8EF;
  --surface: #FFFFFF;
  --surface-alt: #F4ECE1;
  --ink: #1E1B2E;
  --ink-muted: #6E6880;
  --berry: #FF4D6D;
  --berry-shade: #D13F59;
  --pine: #1FB57A;
  --sky: #4DA8FF;
  --gold: #FFC23D;
  --plum: #8558EC;
  --rule: #EADFD0;
  --max: 1080px;
  --gutter: 24px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", ui-rounded, system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 248, 239, 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img { width: 44px; height: auto; }
.brand span {
  font-family: "Lilita One", sans-serif;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.01em;
}

/* Buttons: the app's chunky style, a solid face over a darker ledge */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 16px;
  background: var(--berry);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 5px 0 var(--berry-shade);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.button:hover { filter: brightness(1.04); }
.button:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--berry-shade); }
.button.small { min-height: 44px; padding: 0 18px; font-size: 16px; border-radius: 13px; box-shadow: 0 4px 0 var(--berry-shade); }
.button svg { width: 22px; height: 22px; flex: none; }

.button.soon {
  background: var(--ink);
  box-shadow: 0 5px 0 #000;
  cursor: default;
}
.button.soon:active { transform: none; box-shadow: 0 5px 0 #000; }
.button.soon small { display: block; font-size: 12px; font-weight: 700; opacity: 0.75; line-height: 1.1; }
.button.soon .label { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }

/* Hero */

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  min-height: calc(100vh - 72px);
  max-height: 880px;
  padding-top: 48px;
  padding-bottom: 64px;
}
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(440px, 100%); animation: bob 4s ease-in-out infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-1.5deg); }
}

.hero h1 {
  margin: 0 0 16px;
  font-family: "Lilita One", sans-serif;
  font-weight: 400;
  font-size: clamp(42px, 5.4vw, 64px);
  line-height: 1.05;
  letter-spacing: 0.005em;
}
.hero h1 em { font-style: normal; color: var(--berry); }
.hero p.lead {
  margin: 0 0 32px;
  font-size: 21px;
  color: var(--ink-muted);
  max-width: 30ch;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero .note { font-size: 15px; color: var(--ink-muted); font-weight: 700; }

/* Feature rows */

.feature { border-top: 1px solid var(--rule); }
.feature .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding-top: 72px;
  padding-bottom: 72px;
}
.feature:nth-of-type(even) .copy { order: 2; }

.feature h2 {
  margin: 0 0 16px;
  font-family: "Lilita One", sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
  color: var(--accent, var(--berry));
}
.feature p {
  margin: 0;
  font-size: 20px;
  color: var(--ink-muted);
  max-width: 34ch;
}
.feature .eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, var(--berry)) 14%, transparent);
  color: var(--accent, var(--berry));
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.media { display: flex; justify-content: center; }

.phone {
  width: 264px;
  border-radius: 44px;
  padding: 10px;
  background: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(30, 27, 46, 0.35), 0 0 0 1px rgba(30, 27, 46, 0.08);
}
.phone img { border-radius: 35px; width: 100%; height: auto; }

.tv { width: min(560px, 100%); filter: drop-shadow(0 30px 40px rgba(30, 27, 46, 0.22)); }

.price-tag {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--rule);
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

/* Closing band */

.cta {
  border-top: 1px solid var(--rule);
  text-align: center;
  padding: 112px 0 120px;
}
.cta img { width: 120px; margin: 0 auto 24px; }
.cta h2 {
  margin: 0 0 12px;
  font-family: "Lilita One", sans-serif;
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.05;
}
.cta p { margin: 0 auto 32px; color: var(--ink-muted); font-size: 20px; max-width: 32ch; }

/* Footer */

.site-footer {
  background: var(--ink);
  color: #CFC9DD;
  font-size: 15px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 32px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { color: #fff; font-weight: 700; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .brand span { font-size: 24px; color: #fff; }
.site-footer .brand img { width: 34px; }

/* Long-form pages (privacy, support) */

.doc .wrap { max-width: 760px; padding-top: 64px; padding-bottom: 96px; }
.doc h1 {
  margin: 0 0 8px;
  font-family: "Lilita One", sans-serif;
  font-weight: 400;
  font-size: clamp(38px, 5vw, 52px);
  line-height: 1.05;
}
.doc .updated { margin: 0 0 40px; color: var(--ink-muted); font-weight: 700; font-size: 16px; }
.doc h2 { margin: 44px 0 10px; font-size: 24px; font-weight: 900; line-height: 1.25; }
.doc p, .doc li { color: #3A3550; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--berry-shade); font-weight: 700; }
.doc .summary {
  padding: 24px 28px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--rule);
}
.doc .summary p { margin: 0; color: var(--ink); font-weight: 700; }

/* Responsive */

@media (max-width: 820px) {
  body { font-size: 17px; }
  :root { --gutter: 16px; }
  .site-header .wrap { height: 64px; }
  .brand span { font-size: 26px; }
  .brand img { width: 38px; }

  .hero .wrap {
    grid-template-columns: 1fr;
    min-height: 0;
    max-height: none;
    gap: 28px;
    padding-top: 32px;
    padding-bottom: 56px;
    text-align: center;
  }
  .hero-art img { width: min(280px, 78%); }
  .hero p.lead { margin-left: auto; margin-right: auto; font-size: 19px; }
  .hero .actions { justify-content: center; flex-direction: column; }

  .feature .wrap {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 64px;
    padding-bottom: 64px;
    text-align: center;
  }
  .feature:nth-of-type(even) .copy { order: 0; }
  .feature p { margin: 0 auto; font-size: 18px; }
  .phone { width: 250px; border-radius: 40px; padding: 8px; }
  .phone img { border-radius: 33px; }

  .cta { padding: 80px 0 88px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art img { animation: none; }
  .button { transition: none; }
}
