/* Little marketing site. Colours and type follow docs/design/tokens.json. */

@font-face {
  font-family: 'Nunito';
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/Nunito-ExtraBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Nunito Sans';
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/NunitoSans-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Nunito Sans';
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/NunitoSans-Bold.ttf') format('truetype');
}

:root {
  color-scheme: light;
  --paper: #f7f2e8;
  --paper-deep: #efe8dc;
  --surface: #fffdf8;
  --ink: #2d2a26;
  --ink-soft: #57514a;
  --border: #ddd5c8;
  --focus: #406c8b;
  --dot: #e9962e;
  --sun: #f2c744;
  --sun-soft: #f9efdb;
  --meadow: #e4f0d2;
  --meadow-deep: #6fa35a;
  --sky: #e1eefa;
  --link: #85601b;
  --display: 'Nunito', ui-rounded, system-ui, sans-serif;
  --text: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 28px;
  --shadow: 0 2px 4px rgb(45 42 38 / 6%), 0 10px 24px rgb(45 42 38 / 8%);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--text);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 5vw + 0.5rem, 3.75rem);
}

h2 {
  font-size: clamp(1.6rem, 2.5vw + 0.5rem, 2.25rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

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

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

main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header and wordmark */

.site-header {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--surface);
  padding: 8px 14px;
  z-index: 1;
}

.wordmark {
  font: 800 2.1rem/1 var(--display);
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark .i {
  position: relative;
}

.wordmark .i::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0.02em;
  width: 0.26em;
  height: 0.26em;
  margin-left: -0.13em;
  border-radius: 50%;
  background: var(--dot);
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin-right: auto;
}

.site-header nav a,
.language-switch a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  padding: 6px 0;
}

.site-header nav a:hover,
.site-header nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--sun);
}

.language-switch a {
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px;
}

/* Shared blocks */

.eyebrow {
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 1rem;
  margin-bottom: 0.75em;
}

.lead {
  font-size: 1.25rem;
  color: var(--ink-soft);
  max-width: 38em;
}

.band {
  margin: 88px 0;
}

.band.narrow,
.narrow {
  max-width: 760px;
}

.section-lead {
  color: var(--ink-soft);
  max-width: 44em;
}

.text-link {
  font-weight: 700;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 12px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 22px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 700;
  text-decoration: none;
}

.store:hover {
  background: #45403a;
}

.coming-note {
  display: inline-block;
  margin: 28px 0 12px;
  padding: 14px 22px;
  border-radius: 16px;
  background: var(--surface);
  border: 2px solid var(--border);
  font-weight: 700;
}

.price-note {
  font-size: 1rem;
  color: var(--ink-soft);
}

.app-icon {
  border-radius: 22.5%;
  box-shadow: var(--shadow);
}

/* Home hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 48px;
  padding: 40px 0 24px;
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

.hero-icon {
  position: absolute;
  left: 0;
  top: 8px;
  transform: rotate(-7deg);
  z-index: 1;
}

.hero-icon .app-icon {
  width: 148px;
  border: 6px solid #fff;
}

.sticker {
  position: absolute;
}

.sticker.fox {
  right: 0;
  bottom: 40px;
}

/* Phone placeholder */

.phone {
  margin: 0;
  width: 270px;
  flex: none;
}

.phone .screen {
  position: relative;
  height: 540px;
  border: 10px solid var(--ink);
  border-radius: 44px;
  background: linear-gradient(var(--sky) 0 58%, var(--meadow) 58%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  padding-top: 64px;
}

.phone .sound {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--sun);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.phone .tiles {
  display: flex;
  gap: 14px;
  z-index: 1;
}

.phone .tile {
  width: 104px;
  height: 116px;
  display: grid;
  place-items: center;
  background: #fff7e6;
  border-radius: 26px 30px 24px 32px;
  box-shadow: var(--shadow);
}

.phone .hills {
  position: absolute;
  inset: auto -20% -60px;
  height: 180px;
  border-radius: 50% 50% 0 0;
  background: #cfe5b4;
}

.placeholder-tag {
  margin-top: 12px;
  padding: 8px 12px;
  border: 2px dashed var(--ink-soft);
  border-radius: 12px;
  background: repeating-linear-gradient(135deg, var(--sun-soft) 0 10px, var(--surface) 10px 20px);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
}

/* Facts */

.facts {
  margin-top: 40px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 36px;
  box-shadow: var(--shadow);
}

.facts h2 {
  font-size: 1.4rem;
}

.facts ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px 36px;
}

.facts li {
  position: relative;
  padding-left: 34px;
}

.facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--meadow-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Cards */

.feature-cards,
.app-cards,
.promise-list,
.press-icons {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.feature-cards li {
  background: var(--surface);
  border-radius: 30px 36px 28px 34px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.feature-cards h2,
.feature-cards h3 {
  font-size: 1.3rem;
  margin-top: 12px;
}

.feature-cards p {
  margin: 0;
  color: var(--ink-soft);
}

.app-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.app-card a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  height: 100%;
  padding: 24px;
  border-radius: 30px 34px 28px 32px;
  background: color-mix(in srgb, var(--app) 26%, var(--surface));
  color: var(--ink);
  text-decoration: none;
}

.app-card a:hover {
  background: color-mix(in srgb, var(--app) 40%, var(--surface));
}

.app-card .app-icon {
  margin-bottom: 10px;
}

.app-card-name {
  font: 800 1.3rem/1.2 var(--display);
}

.app-card-tagline {
  color: var(--ink-soft);
  font-size: 1rem;
}

.app-card-meta {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

.promises {
  background: var(--sun-soft);
  border-radius: 40px;
  padding: 48px clamp(24px, 5vw, 56px);
}

.promise-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin: 28px 0;
}

.promise-list p {
  margin: 0;
  color: var(--ink-soft);
}

/* FAQ */

.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin-bottom: 20px;
}

.faq details {
  background: var(--surface);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 60px 20px 24px;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sun-soft);
  display: grid;
  place-items: center;
  font: 800 1.3rem/1 var(--display);
}

.faq details[open] summary::after {
  content: '–';
}

.faq summary h3 {
  display: inline;
  font-size: 1.15rem;
  margin: 0;
}

.faq details p {
  padding: 0 24px 22px;
  margin: 0;
  color: var(--ink-soft);
}

/* Closing call to action */

.cta {
  text-align: center;
  margin: 96px 0;
  padding: 56px 24px;
  border-radius: 40px;
  background: var(--meadow);
}

.cta .stores {
  justify-content: center;
}

/* App pages */

.app-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 24px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 40px;
  background: color-mix(in srgb, var(--app) 28%, var(--surface));
}

.app-hero .app-icon {
  transform: rotate(-5deg);
  border: 6px solid #fff;
}

.app-hero h1 {
  font-size: clamp(2rem, 4vw + 0.5rem, 3.25rem);
}

.app-hero .lead {
  color: var(--ink);
}

.app-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: start;
}

.feature-cards.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

/* Text pages */

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin: 32px 0 0;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 40px;
  background: var(--sun-soft);
}

.page-head img {
  flex: none;
}

.prose-section {
  margin-bottom: 44px;
}

.prose-section h2 {
  font-size: 1.6rem;
}

.updated {
  color: var(--ink-soft);
  font-size: 1rem;
}

.fact-sheet {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
}

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

.fact-sheet th {
  width: 32%;
}

.press-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 20px;
}

.press-icons a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Footer */

.site-footer {
  margin-top: 96px;
  padding: 48px max(24px, calc((100vw - 1112px) / 2)) 40px;
  background: var(--paper-deep);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  font-size: 1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.site-footer a {
  color: var(--ink);
}

.footer-brand p {
  margin-top: 12px;
  color: var(--ink-soft);
  max-width: 26em;
}

.footer-label {
  font-weight: 700;
  margin-bottom: 6px;
}

.copyright {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  margin: 0;
}

/* Small screens */

@media (max-width: 860px) {
  .hero,
  .app-detail {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 16px;
  }

  .hero-art {
    padding: 8px 0 0;
  }

  .hero-icon .app-icon {
    width: 104px;
  }

  .sticker.fox img {
    width: 88px;
  }

  .app-detail .phone {
    margin: 0 auto;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 1.0625rem;
  }

  main {
    padding: 0 16px;
  }

  .site-header {
    padding: 16px;
  }

  .site-header nav {
    order: 1;
    width: 100%;
  }

  .language-switch {
    margin-left: auto;
  }

  .band {
    margin: 64px 0;
  }

  .app-hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .app-hero .app-icon {
    width: 104px;
  }

  .page-head img {
    display: none;
  }

  .phone {
    width: 240px;
  }

  .phone .screen {
    height: 480px;
  }

  .phone .tile {
    width: 92px;
    height: 104px;
  }

  .facts {
    padding: 24px;
  }

  .facts ul,
  .feature-cards.two {
    grid-template-columns: 1fr;
  }

  .store {
    width: 100%;
    justify-content: center;
  }
}
