/* HeyGorgeous mini-site — plain CSS, mobile first. Fonts are self-hosted (no Google Fonts request). */

@font-face {
  font-family: "Abril Fatface";
  src: url("/assets/fonts/abril-fatface-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("/assets/fonts/raleway-latin.woff2") format("woff2");
  font-weight: 100 900; /* variable font */
  font-display: swap;
}

:root {
  --ink: #5d536b;
  --ink-soft: #888888;
  --pink: #ec6091;
  --coral: #ff7375;
  --blush: #fff3f6;
  --line: #f1dfe6;
  --gradient: linear-gradient(90deg, var(--pink) 0%, var(--coral) 100%);
  --radius: 22px;
  --gutter: 20px;
  --max: 1040px;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--pink); text-underline-offset: 2px; }

/* ---------- shared header / footer ---------- */

.site-header {
  padding: 18px var(--gutter) 6px;
  text-align: center;
}
.logo {
  font-family: "Abril Fatface", Georgia, serif;
  font-size: 26px;
  line-height: 1;
  text-decoration: none;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.site-footer {
  margin-top: 56px;
  padding: 28px var(--gutter) calc(36px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}
.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 14px;
}
.site-footer nav a { color: var(--ink); font-weight: 600; text-decoration: none; }
.site-footer nav a:hover { color: var(--pink); }
.site-footer p { margin: 0; }

/* ---------- buttons ---------- */

.store-badge { display: inline-block; line-height: 0; }
.store-badge img { width: 190px; height: auto; }

/* ---------- landing ---------- */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--gutter) 8px;
  text-align: center;
}
.hero h1 {
  margin: 0 auto 18px;
  max-width: 14ch;
  font-size: clamp(38px, 11vw, 76px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.hero h1 .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero .store-badge { margin-bottom: 8px; }

.screens {
  display: flex;
  gap: 14px;
  margin: 28px 0 0;
  padding: 4px var(--gutter) 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--gutter);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screens::-webkit-scrollbar { display: none; }
.screens li { flex: 0 0 min(66vw, 280px); scroll-snap-align: center; list-style: none; }
.screens img {
  width: 100%;
  aspect-ratio: 1242 / 2688;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(236, 96, 145, 0.22);
  background: var(--blush);
}
.screens { list-style: none; margin-left: 0; margin-right: 0; }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px var(--gutter) 0;
}
.section h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 6.2vw, 40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.section p { margin: 0; font-size: 17px; }
.section.center { text-align: center; }
.section.center h2 { max-width: 22ch; margin-left: auto; margin-right: auto; }
.section.center p { max-width: 36em; margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
}

.feature {
  display: grid;
  gap: 22px;
  align-items: center;
  margin-top: 44px;
  padding: 28px 22px 0;
  background: var(--blush);
  border-radius: 28px;
  overflow: hidden;
}
.feature h2 { font-size: clamp(24px, 5.6vw, 34px); }
.feature img {
  width: min(70%, 280px);
  margin: 0 auto;
  border-radius: 22px 22px 0 0;
}

.cta { padding-bottom: 8px; }
.cta .store-badge { margin-top: 22px; }

@media (min-width: 760px) {
  :root { --gutter: 32px; }
  .logo { font-size: 32px; }
  .hero { padding-top: 40px; }
  .screens {
    justify-content: center;
    flex-wrap: nowrap;
    overflow: visible;
    padding-bottom: 36px;
  }
  .screens li { flex: 0 1 160px; }
  .screens li:nth-child(n + 5) { display: none; }
  .store-badge img { width: 210px; }
  .feature {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    padding: 48px 48px 0;
  }
  .feature.flip { grid-template-columns: 0.9fr 1.1fr; }
  .feature.flip .feature-text { order: 2; }
  .feature img { width: 100%; max-width: 300px; }
}

/* ---------- legal + fallback pages ---------- */

.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px var(--gutter) 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.doc h1 {
  margin: 12px 0 6px;
  font-size: clamp(32px, 8vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.doc .updated {
  margin: 0 0 22px;
  font-size: 14px;
  font-style: italic;
  color: var(--ink-soft);
}
.doc h2 {
  margin: 34px 0 10px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}
.doc h3 {
  margin: 22px 0 8px;
  font-size: 16px;
  font-weight: 800;
}
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 14px; padding-left: 1.3em; }
.doc li { margin-bottom: 8px; }
.doc li > p { margin-bottom: 0; }
.doc li > ul { margin-top: 8px; }

.table-wrap {
  margin: 14px calc(var(--gutter) * -1) 18px;
  padding: 0 var(--gutter);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.doc table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}
.doc th, .doc td {
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.doc th { font-weight: 800; background: var(--blush); }
.doc td a { word-break: break-all; }

.notice {
  max-width: 520px;
  margin: 0 auto;
  padding: 56px var(--gutter) 0;
  text-align: center;
}
.notice .emoji { font-size: 44px; line-height: 1; margin-bottom: 14px; }
.notice h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 9vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.notice p { margin: 0 auto 26px; max-width: 30em; font-size: 17px; }
.notice .home-link { display: inline-block; margin-top: 18px; font-weight: 600; font-size: 15px; }
