/* Loop31 website. One stylesheet, no framework, no scripts, no outside requests.
   Look: Apple-native. System font, one blue accent, soft 18px corners on surfaces, pill buttons, light and dark. */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5e5ea;
  --card: #f5f5f7;
  --card-blue: #eaf4ff;
  --blue: #008bff;
  --blue-text: #0071d1;
  --orange-wash: #fff1e3;
  --orange-text: #b45309;
  --placeholder-a: #e9e9ee;
  --placeholder-b: #d6d6dd;
  --radius: 18px;
  --nav-bg: rgba(255, 255, 255, 0.72);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --bg-soft: #151517;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: #2c2c2e;
    --card: #1c1c1e;
    --card-blue: #0f2238;
    --blue-text: #4da8ff;
    --orange-wash: #3a2410;
    --orange-text: #ffb366;
    --placeholder-a: #2a2a2d;
    --placeholder-b: #1f1f22;
    --nav-bg: rgba(11, 11, 12, 0.72);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: var(--blue-text);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

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

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.narrow {
  max-width: 680px;
}

/* Header: a translucent bar the page scrolls under */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.brand b {
  color: var(--blue);
  font-weight: 700;
}

.brand:hover {
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* Type */

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
}

h1 {
  font-size: 52px;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 16px;
}

.lede {
  font-size: 21px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 34ch;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 15px;
}

/* Buttons: pills */

.button {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  line-height: 1;
  padding: 14px 24px;
  border-radius: 999px;
  transition: transform 120ms ease-out, background-color 120ms ease-out;
}

.button:hover {
  text-decoration: none;
  background: #1a96ff;
}

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

/* Placeholders for the photos still to come */

.placeholder {
  background: linear-gradient(135deg, var(--placeholder-a), var(--placeholder-b));
  color: var(--muted);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.placeholder span {
  padding: 8px 14px;
  border: 1px dashed currentColor;
  border-radius: 999px;
  opacity: 0.8;
}

/* Hero */

.hero {
  padding: 72px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}

.hero h1 {
  max-width: 14ch;
  margin-bottom: 20px;
}

.hero .lede {
  margin-bottom: 28px;
}

.phone {
  width: 280px;
  aspect-ratio: 9 / 19.5;
  margin: 0 auto;
  border-radius: 44px;
  padding: 10px;
  background: var(--text);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
}

@media (prefers-color-scheme: dark) {
  .phone {
    background: #2c2c2e;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  }
}

.phone .placeholder {
  width: 100%;
  height: 100%;
  border-radius: 36px;
}

/* Sections */

.section {
  padding: 72px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section h2 {
  margin-bottom: 12px;
}

.section .intro {
  font-size: 19px;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 40px;
}

/* How it works: three tiles, one wide */

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  border-radius: var(--radius);
  background: var(--card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tile p {
  margin: 0;
  color: var(--muted);
}

.tile-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: center;
}

.tile-wide .placeholder {
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  width: 100%;
}

.tile-blue {
  background: var(--card-blue);
}

/* The three taps inside the look-over tile */

.taps {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tap {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

.tap-primary {
  background: var(--blue);
  color: #fff;
}

/* The wording example inside a tile */

.wording {
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.wording mark {
  background: var(--orange-wash);
  color: var(--orange-text);
  border-radius: 4px;
  padding: 0 3px;
}

.wording .why {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--orange-text);
}

/* Posting: copy beside a picture */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.split .placeholder {
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 420px;
  justify-self: center;
}

.split p {
  color: var(--muted);
  max-width: 48ch;
}

.split h2 + p {
  margin-top: 16px;
}

/* An example post, drawn the way the app shows it */

.post {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  width: 100%;
  max-width: 420px;
  justify-self: center;
  margin: 0;
}

.post-picture {
  position: relative;
  aspect-ratio: 4 / 5;
}

.post-picture .placeholder {
  position: absolute;
  inset: 0;
  align-items: end;
  padding-bottom: 22px;
}

.post-picture .hook {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 22px;
  color: var(--text);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 13ch;
}

.post-caption {
  padding: 16px 20px 18px;
  font-size: 15px;
  line-height: 1.5;
}

.post-caption p {
  margin: 0 0 10px;
  color: var(--text);
  max-width: none;
}

.post-caption .footer-line {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

/* Coming soon */

.coming {
  text-align: center;
  padding: 88px 0;
}

.coming h2 {
  margin-bottom: 14px;
}

.coming p {
  color: var(--muted);
  max-width: 44ch;
  margin: 0 auto 28px;
  font-size: 19px;
}

/* Inner pages (support, privacy, terms) */

.page {
  padding: 56px 0 72px;
}

.page h1 {
  font-size: 40px;
  margin-bottom: 16px;
}

.page .lede {
  max-width: none;
  color: var(--text);
  font-size: 20px;
}

.page h2 {
  font-size: 24px;
  margin: 44px 0 10px;
}

.page h3 {
  font-size: 18px;
  margin: 24px 0 6px;
}

.page ul,
.page ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.page li {
  margin-bottom: 6px;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

/* Tables on the privacy page */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 12px 0 20px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 10px 10px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

td:first-child {
  min-width: 6em;
}

th {
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Definition-style FAQ */

.faq dt {
  font-weight: 600;
  margin-top: 20px;
}

.faq dd {
  margin: 4px 0 0;
  color: var(--muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}

.site-footer p {
  margin: 0 0 6px;
}

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

.site-footer nav {
  display: flex;
  gap: 18px;
}

.placeholder-text {
  color: #c25a00;
}

@media (prefers-color-scheme: dark) {
  .placeholder-text {
    color: #ff9f3d;
  }
}

/* Phones and narrow windows */

@media (max-width: 820px) {
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 30px;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .hero-grid,
  .split,
  .tile-wide {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    gap: 40px;
  }

  .hero h1 {
    max-width: none;
  }

  .phone {
    width: 240px;
  }

  .tiles {
    grid-template-columns: minmax(0, 1fr);
  }

  .tile-wide .placeholder {
    order: -1;
  }

  .split .placeholder,
  .post {
    justify-self: start;
  }

  .section {
    padding: 56px 0;
  }

  .site-footer .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 34px;
  }

  .lede {
    font-size: 19px;
  }

  .site-nav {
    gap: 14px;
    font-size: 14px;
  }

  .tile {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
