@font-face {
  font-family: Roboto;
  src: url("../assets/fonts/roboto.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #faf9f7;
  --ink: #1a1a1a;
  --muted: #6a6a70;
  --wine: #6e1127;
  --accent: #9d2749;
  --border: #ececef;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--ink); font-family: Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: var(--wine); text-underline-offset: 3px; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 10; padding: 12px; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; max-width: 1280px; margin: auto; padding: 20px; }
.brand { display: block; flex-shrink: 0; overflow: hidden; width: 165px; }
.brand img { width: 100%; height: auto; transform: scale(1.02); }
.button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: var(--wine); color: white; font-size: 12px; font-weight: 700; line-height: 16px; text-decoration: none; transition: background .15s; }
.button:hover:not(:disabled) { background: #841833; }
.button:disabled { cursor: not-allowed; opacity: .65; }
.header-cta { padding: 10px 16px; }
.hero { max-width: 768px; margin: auto; padding: 28px 20px 40px; text-align: center; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 800; line-height: 16px; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin-top: 16px; font-size: clamp(2.25rem, 6vw, 4rem); font-weight: 800; line-height: 1.02; letter-spacing: -.045em; }
.hero-description { max-width: 672px; margin: 20px auto 0; }

.gallery-section { background: #eef0f2; padding: 40px 0; }
.gallery-hint { margin-bottom: 20px; padding: 0 20px; text-align: center; }
.gallery { display: flex; gap: 24px; max-width: 1280px; margin: auto; padding: 0 max(20px, calc((100% - 286px) / 2)) 32px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.screenshot-card { flex: 0 0 286px; min-width: 0; scroll-snap-align: center; }
.screenshot-heading { display: flex; align-items: center; gap: 12px; min-height: 28px; margin-bottom: 16px; padding: 0 4px; }
.screenshot-number { display: flex; flex: 0 0 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; background: var(--wine); color: white; font-size: 12px; font-weight: 700; }
.screenshot-heading h2 { color: #333; font-size: 14px; font-weight: 800; line-height: 20px; letter-spacing: -.025em; }
.phone-shell { padding: 3%; border-radius: 14% / 7%; background: #171717; box-shadow: 0 22px 45px rgb(39 24 28 / 20%); }
.phone-shell img { width: 100%; height: auto; aspect-ratio: auto 282 / 590; border-radius: 12% / 5.75%; background: white; object-fit: contain; }
.gallery-loading, .gallery-fallback { padding: 20px; text-align: center; }
.gallery-loading { flex: 0 0 286px; }

.buddies-section { max-width: 896px; margin: auto; padding: 56px 20px; }
.buddies-card { display: flex; flex-direction: column; align-items: center; padding: 32px 24px; border: 1px solid var(--border); border-radius: 28px; background: white; text-align: center; }
.buddy-avatars { display: grid; grid-template-columns: repeat(3, 44px) 56px; row-gap: 12px; flex-shrink: 0; }
.buddy-avatars img { width: 56px; max-width: none; height: 56px; border: 4px solid white; border-radius: 50%; object-fit: cover; }
.buddies-copy { margin-top: 20px; }
.buddies-copy .eyebrow { letter-spacing: .12em; }
h2 { font-size: 24px; font-weight: 800; line-height: 32px; letter-spacing: -.025em; }
.buddies-copy h2, .signup-card h2 { margin-top: 8px; }
.buddies-copy > p:last-child { margin-top: 8px; }

.signup-section { max-width: 768px; margin: auto; padding: 0 20px 80px; scroll-margin-top: 24px; }
.signup-card { padding: 24px; border: 1px solid var(--border); border-radius: 28px; background: white; box-shadow: 0 18px 55px rgb(50 20 27 / 8%); }
.signup-card .eyebrow { letter-spacing: .1em; }
.signup-description { margin: 8px 0 20px; }
form > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-row { display: flex; flex-direction: column; gap: 12px; }
input[type="email"] { width: 100%; min-width: 0; min-height: 56px; padding: 12px 20px; border: 1px solid #dedde0; border-radius: 16px; background: white; color: var(--ink); font-size: 16px; line-height: 24px; }
input::placeholder { color: #9a9aa0; }
input[aria-invalid="true"] { border-color: var(--accent); }
.submit-button { flex-shrink: 0; min-height: 56px; padding: 14px 24px; border-radius: 16px; box-shadow: 0 8px 24px rgb(110 17 39 / 22%); font-size: 14px; line-height: 20px; }
.signup-note { margin-top: 12px; }
.ios-note { margin-top: 12px; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.turnstile-container { max-width: 100%; margin-top: 12px; }
.turnstile-container:empty { margin: 0; }
.form-message { margin-top: 12px; }
.form-message:empty { display: none; }
.success-message { margin-top: 20px; padding: 16px 20px; border: 1px solid rgb(157 39 73 / 25%); border-radius: 16px; background: #fbe9ef; color: var(--wine); }
.success-message h3 { font-size: 20px; line-height: 28px; }
.success-message p { margin-top: 8px; }
.site-footer { padding: 24px 20px; border-top: 1px solid var(--border); background: rgb(255 255 255 / 70%); text-align: center; }
.site-footer p + p, .site-footer > a { display: block; margin-top: 8px; }

.privacy-page { max-width: 768px; margin: auto; padding: 40px 20px 80px; }
.privacy-page h1 { font-size: 40px; }
.privacy-page h2 { margin-top: 28px; }
.privacy-page p, .privacy-page ul { margin-top: 12px; }

.gallery-hint,
.gallery-loading,
.gallery-fallback,
.buddies-copy > p:last-child,
.signup-description,
.signup-note,
.ios-note,
.form-message,
.success-message p,
.site-footer,
.privacy-page p:not(.eyebrow),
.privacy-page ul {
  color: var(--muted);
  font-family: Roboto, Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: normal;
}
.error { color: var(--accent); }

/* Keep iOS landscape text autosizing from inflating one card's body copy. */
.buddies-copy > p:last-child,
.signup-card p:not(.eyebrow) {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.hero-description { color: var(--muted); font-size: 16px; line-height: 28px; }

@media (min-width: 640px) {
  .hero-description { font-size: 18px; }
  .site-header { padding-right: 32px; padding-left: 32px; }
  .brand { width: 190px; }
  .hero { padding: 44px 32px 40px; }
  .gallery-section { padding: 56px 0; }
  .gallery { padding-right: max(32px, calc((100% - 300px) / 2)); padding-left: max(32px, calc((100% - 300px) / 2)); }
  .screenshot-card { flex-basis: 300px; }
  .buddies-section { padding-right: 32px; padding-left: 32px; }
  .buddies-card { flex-direction: row; gap: 32px; padding-right: 36px; padding-left: 36px; text-align: left; }
  .buddy-avatars { grid-template-columns: repeat(3, 52px) 64px; }
  .buddy-avatars img { width: 64px; height: 64px; }
  .buddies-copy { min-width: 0; margin-top: 0; }
  .signup-section { padding-right: 32px; padding-left: 32px; }
  .signup-card { padding: 32px; }
  .form-row { flex-direction: row; }
}

@media (min-width: 1024px) {
  .gallery-hint { display: none; }
  .gallery { gap: 20px; margin-bottom: -32px; padding: 0 32px 32px; }
  .screenshot-card { flex-basis: calc((100% - 60px) / 4); }
}

@media (max-width: 359px) {
  .site-header { gap: 10px; padding-right: 16px; padding-left: 16px; }
  .brand { width: 145px; }
  .header-cta { padding-right: 12px; padding-left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
