/* YomuNews: landing page and legal pages.
   Plain CSS on purpose: no Sass, no web fonts, no scripts.
   Standard: ~/code/Projects/team/playbooks/landing-pages.md */

:root {
  --canvas: #FFFFFF;
  --ink: #111111;
  --muted: #666666;
  --accent: #1D3557; /* the hero rule, focus rings and prose links. Nothing else. */
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --gutter: 32px;
}

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Quiet uppercase links: top nav and footer */

.nav-links a,
.footer-links a {
  padding: 12px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--ink);
}

/* Top navigation */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: calc(1080px + 2 * var(--gutter));
  height: 80px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links .nav-download {
  color: var(--ink);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 64px;
  max-width: calc(1080px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 40px var(--gutter) 112px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 5.2vw, 60px);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.06;
  text-wrap: balance;
}

.lede {
  max-width: 30em;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
  text-wrap: pretty;
}

.store-row {
  margin: 36px 0 0;
}

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

.hero-shot {
  justify-self: center;
  max-width: 100%; /* lets the phone shrink inside the gutters on 320px screens */
}

/* App Store badge */

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 20px 0 15px;
  border-radius: 12px;
  background: #000000;
  color: #FFFFFF;
  text-align: left;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.store-btn:hover {
  background: #262626;
}

.store-btn:active {
  transform: scale(0.98);
}

.store-btn svg {
  flex: none;
  width: 27px;
  height: 27px;
  margin-top: -3px;
  fill: currentColor;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.store-btn-small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.store-btn-big {
  margin-top: 3px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* iPhone frame: a real screenshot inside a CSS bezel */

.phone {
  position: relative;
  width: 310px;
  max-width: 100%;
  margin: 0;
  padding: 10px;
  border-radius: 44px;
  background: #111111;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.phone img {
  width: 100%;
  aspect-ratio: 680 / 1477;
  border-radius: 34px;
  background: #FAF8F4;
}

/* Dynamic Island. Simulator captures leave it out. */
.phone::after {
  content: "";
  position: absolute;
  top: 19px;
  left: 50%;
  width: 27%;
  aspect-ratio: 126 / 37;
  border-radius: 999px;
  background: #000000;
  transform: translateX(-50%);
}

/* The one accent: a hairline between the hero and the walkthrough */

.rule {
  width: calc(100% - 2 * var(--gutter));
  max-width: 1080px;
  height: 1px;
  margin: 0 auto;
  border: 0;
  background: var(--accent);
}

/* Walkthrough */

.tour {
  max-width: calc(720px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 120px var(--gutter) 0;
  text-align: center;
}

.tour h2 {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.15;
}

.feature {
  margin-top: 128px;
}

.tour h2 + .feature {
  margin-top: 80px;
}

.callout {
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 20px;
  line-height: 1.5;
  text-wrap: balance;
}

.callout strong {
  font-weight: 700;
}

.callout em {
  font-style: italic;
  font-weight: 700;
}

.nw {
  white-space: nowrap;
}

.feature .phone {
  width: 296px;
  margin: 0 auto;
}

/* Footer */

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

.footer .store-row {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 32px;
  margin-top: 28px;
}

.fineprint {
  max-width: 46em;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-wrap: balance;
}

/* Legal pages: Privacy Policy, Terms of Service */

.prose {
  max-width: calc(720px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 56px var(--gutter) 0;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.prose h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.024em;
  line-height: 1.1;
}

.prose h2 {
  margin: 56px 0 12px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.25;
}

.prose h3 {
  margin: 32px 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 16px;
}

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

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

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

.prose code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #F3F3F3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}

.prose hr {
  height: 1px;
  margin: 40px 0;
  border: 0;
  background: #E5E5E5;
}

/* Tablet and phone: one centered column */

@media (max-width: 860px) {
  :root {
    --gutter: 24px;
  }

  .nav {
    height: 72px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
    padding: 32px var(--gutter) 80px;
    text-align: center;
  }

  .lede {
    margin-right: auto;
    margin-left: auto;
    font-size: 18px;
  }

  .tour {
    padding-top: 80px;
  }

  .feature {
    margin-top: 88px;
  }

  .tour h2 + .feature {
    margin-top: 56px;
  }

  .callout {
    margin-bottom: 36px;
    font-size: 19px;
  }

  .footer {
    padding-top: 96px;
  }

  .prose {
    padding-top: 32px;
  }
}

@media (max-width: 460px) {
  :root {
    --gutter: 20px;
  }

  .nav {
    gap: 12px;
  }

  .brand {
    gap: 8px;
    font-size: 16px;
  }

  .brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links a,
  .footer-links a {
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .footer-links {
    gap: 0 18px;
  }
}

/* Narrow phones: only Download stays in the nav. Privacy and Terms are in the footer. */

@media (max-width: 380px) {
  .nav-links a:not(.nav-download) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
