/* Fonts served from this site, so a visit sends nothing to third parties (latin subset, variable weights). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/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;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("fonts/nunito-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;
}

/* Meh. site. Colors match Theme.swift in the app; structure borrows from DESIGN.md (Brex):
   one accent, flat surfaces, hairlines instead of shadows, tight headline tracking, wide sections. */

:root {
  color-scheme: light;

  --paper: #FBFAF7;
  --card: #F1EFE9;
  --card-deep: #E6E2D8;
  --ink: #2E2A24;
  --muted: #6F6A5E;
  --gold: #C9A227;
  --hairline: rgba(46, 42, 36, 0.1);
  --on-ink: #FBFAF7;
  --on-ink-muted: #B9B2A3;

  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", "Nunito", -apple-system, sans-serif;
  --font-serif: ui-serif, "New York", Georgia, serif;

  --radius: 16px;
  --radius-sm: 8px;
  --page: 1200px;
  --gutter: 24px;
  --section: 96px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

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

a { color: var(--ink); text-underline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-rounded);
  font-weight: 800;
  margin: 0;
}

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

/* Announcement bar */

.announce {
  background: var(--ink);
  color: var(--on-ink);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  padding: 10px var(--gutter);
}

.announce strong { color: var(--gold); font-weight: 600; }

/* The bar is the App Store link: the whole strip is tappable. */
a.announce { display: block; text-decoration: none; }
a.announce:hover strong { text-decoration: underline; }

/* Navigation */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  margin-top: 24px;
}

.brand {
  font: 800 30px/1 var(--font-rounded);
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.nav .brand { font-size: 52px; }

.nav-links { display: flex; gap: 12px; }

/* Pill shape of .button ("Another one"), outlined, so the gold stays for the main action. */
.nav-links a {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--ink);
  font: 700 17px/1 var(--font-rounded);
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.nav-links a:hover { background: var(--card); }
.nav-links a:active { transform: scale(0.97); opacity: 0.88; }
.nav-links a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Shared pieces */

.tag {
  display: inline-block;
  background: var(--card);
  color: var(--muted);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.band { background: var(--card); }

/* Only top and bottom: a section that is also a .wrap keeps the wrap's side gutter. */
.section { padding-block: var(--section); }
.section.flush-top { padding-top: 0; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head .tag { margin-bottom: 16px; }

/* For a long first line that should stay on one line on desktop. */
.section-head.wide { max-width: none; }
.section-head.wide .h2 { font-size: clamp(30px, 3.6vw, 46px); }

.h2 {
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.lede {
  color: var(--muted);
  font-size: 19px;
  max-width: 560px;
  margin: 20px 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font: 700 17px/1 var(--font-rounded);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.button:active { transform: scale(0.97); opacity: 0.88; }

/* Out of lines: the button goes quiet and speaks in Pinff's voice. */
.button[aria-disabled="true"] {
  background: transparent;
  color: var(--muted);
  box-shadow: inset 0 0 0 1.5px rgba(111, 106, 94, 0.45);
  font: italic 17px/1 var(--font-serif);
  cursor: not-allowed;
}

.button[aria-disabled="true"]:active { transform: none; opacity: 1; }
.button:focus-visible, .ghost:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.ghost {
  font-weight: 500;
  text-decoration: none;
}

.ghost span { color: var(--gold); font-weight: 700; }
.ghost:hover { text-decoration: underline; }

/* The official "Download on the App Store" badge (Apple's artwork, unchanged: img/badge-download-black.svg).
   Apple: at least 40px tall onscreen, clear space of a quarter of its height. */
.store-badge { display: inline-block; line-height: 0; transition: transform .15s ease; }
.store-badge:hover { transform: translateY(-1px); }
.store-badge img { height: 54px; width: auto; }

.say {
  font: italic 17px/1.4 var(--font-serif);
  letter-spacing: 0;
}

.phone {
  width: 280px;
  padding: 9px;
  border-radius: 50px;
  background: #1F1C18;
}

.phone img { border-radius: 41px; }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-block: 24px var(--section);   /* the sides come from .wrap */
}

.hero h1 {
  font-size: clamp(48px, 7.4vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 20px 0 0;
}

.hero .lede { font-size: 20px; margin-top: 24px; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}

.fine { color: var(--muted); font-size: 14px; margin: 20px 0 0; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  padding-right: 16px;
  min-height: 600px;
}

/* Phone with the light/dark switch under it. */
.phone-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.mode-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #FFFFFF;
}

.mode-switch button {
  height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 700 15px/1 var(--font-rounded);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.mode-switch button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.mode-switch button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.hero-pinff {
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 260px;
}

.bubble {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 12px 16px;
}

.hero-bubble {
  left: 8px;
  bottom: 372px;
  max-width: 200px;
}

/* Parody social proof */

.proof { text-align: center; }

.proof .h2 { font-size: clamp(28px, 3.4vw, 40px); }
.proof .lede { margin: 16px auto 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.stat {
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
}

.stat b {
  display: block;
  font: 800 56px/1 var(--font-rounded);
  letter-spacing: -0.03em;
  color: var(--muted);
}

.stat span { color: var(--muted); font-size: 15px; }

/* Features */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 32px 0;
  overflow: hidden;
  /* Title, text and phone share rows across the cards, so each starts at the same height. */
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 0;
}

.card h3 { font-size: 23px; line-height: 1.2; letter-spacing: -0.02em; text-align: center; text-wrap: balance; }
.card p { color: var(--muted); margin: 12px 0 0; }

/* The whole phone, centered, with room under it before the card's edge. */
.card-shot {
  margin-top: 32px;
  padding-bottom: 32px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.card-shot .phone { width: 230px; flex: none; }

.extras {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.extra {
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
}

.extra h3 { font-size: 20px; letter-spacing: -0.01em; }
.extra p { color: var(--muted); margin: 8px 0 0; font-size: 16px; }

/* Daily line */

.daily {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.daily .h2 { margin-top: 16px; }
.daily-cta { display: flex; justify-content: center; margin-top: 24px; }

.sign {
  position: relative;
  width: 300px;
  margin: 0 auto;
}

/* The white board in pinff-sign.webp, measured on the image (with room for the hands). */
.sign-text {
  position: absolute;
  left: 15.5%;
  top: 35%;
  width: 66%;
  height: 23%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink);
  font: italic 16px/1.3 var(--font-serif);
  letter-spacing: 0;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.sign-text.is-changing { opacity: 0; }


/* Jokes aside */

.help {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: center;
  background: var(--card);
  border-radius: var(--radius);
  padding: 48px;
}

.help .h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 16px; }
.help p { margin: 16px 0 0; max-width: 620px; }
.help .muted { color: var(--muted); font-size: 15px; }

/* FAQ */

.faq { max-width: 820px; }

.faq details {
  border-top: 1px solid var(--hairline);
  padding: 20px 0;
}

.faq details:last-child { border-bottom: 1px solid var(--hairline); }

.faq summary {
  font: 700 20px/1.3 var(--font-rounded);
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; max-width: 680px; }

/* Closing */

.closing { text-align: center; }

.closing .h2 { font-size: clamp(40px, 6.4vw, 76px); }
.closing .lede { margin: 20px auto 32px; }

/* Footer */

.footer {
  background: var(--ink);
  color: var(--on-ink);
  padding: 64px 0 40px;
  overflow: hidden;
}

.footer a { color: var(--on-ink-muted); text-decoration: none; }
.footer a:hover { color: var(--on-ink); text-decoration: underline; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.footer .brand { color: var(--on-ink); }
.footer-about p { color: var(--on-ink-muted); font-size: 15px; max-width: 280px; margin: 16px 0 0; }

.footer h4 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
}

.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0 0 10px; font-size: 15px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(251, 250, 247, 0.12);
  color: var(--on-ink-muted);
  font-size: 14px;
}

.footer-bottom p { margin: 0; }

.footer-pinff {
  width: 96px;
  margin-bottom: -40px;
}

/* Support and privacy pages */

.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px var(--gutter) var(--section);
}

.doc h1 { font-size: 44px; line-height: 1.1; letter-spacing: -0.03em; }
.doc h2 { font-size: 22px; letter-spacing: -0.01em; margin: 40px 0 8px; }
.doc .muted, .doc .updated { color: var(--muted); }
.doc .updated { font-size: 15px; margin-top: 8px; }

.note {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}

/* Not found */

.lost {
  text-align: center;
  padding: 64px var(--gutter) var(--section);
}

.lost img { width: 360px; margin: 0 auto 32px; }
.lost .lede { margin: 16px auto 32px; }

/* Smaller screens */

@media (max-width: 960px) {
  :root { --section: 72px; }

  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .nav { margin-top: 8px; }
  .hero-visual { min-height: 0; justify-content: center; padding: 24px 0 0 120px; }
  .hero-pinff { left: calc(50% - 280px); }
  .hero-bubble { left: calc(50% - 270px); }

  .cards, .extras { grid-template-columns: 1fr; }
  .card { max-width: 560px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .daily { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --section: 56px; }

  body { font-size: 16px; }
  /* All the links, on a row of their own under the brand: next to it they don't fit. */
  .nav { flex-wrap: wrap; height: auto; row-gap: 16px; padding-block: 12px 4px; }
  .nav-links { width: 100%; gap: 8px; }
  .nav-links a { height: 36px; padding: 0 12px; font-size: 14px; }
  .nav .brand { font-size: 40px; }
  .hero h1 br { display: none; }

  .hero-visual { padding: 24px 0 0 96px; }
  .phone { width: 220px; border-radius: 40px; padding: 7px; }
  .phone img { border-radius: 33px; }
  .hero-pinff { left: 0; width: 170px; }
  /* On one line, even if it runs over the phone. */
  .hero-bubble { left: 0; bottom: 250px; max-width: none; white-space: nowrap; font-size: 15px; }

  .card { padding: 24px 24px 0; }
  .card-shot { padding-bottom: 24px; }
  .card-shot .phone { width: 220px; }

  .sign { width: 260px; }
  .sign-text { font-size: 14px; }

  .help { grid-template-columns: 1fr; padding: 32px 24px; gap: 8px; }
  .help img, .help video { width: 180px; margin-inline: auto; }
  .help .tag { display: block; width: fit-content; margin-inline: auto; }

  .stat b { font-size: 44px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .nav-links a, .mode-switch button, .sign-text { transition: none; }
}
