/* VisionReel shared styles: brand tokens (direction C "Plum & peach", same as the app), fonts,
   the legal-page layout and the site-wide footer. EVERY page links this file (landing, guides, legal,
   delete-account, 404, /v/ share). The footer markup is generated by Web/seo/build.mjs between the
   site-footer markers; edit it there, never by hand. */
@font-face { font-family: "Outfit"; src: url("/fonts/outfit_semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/fonts/outfit_bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter_regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter_semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("/fonts/caveat_semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* App tokens (designsystem Color.kt, Vr*) */
  --plum-top: #2A172D;
  --bg: #241427;
  --plum-bottom: #1F1222;
  --deep: #1A0F1C;
  --surface: #2E1C32;
  --raised: #3C273E;
  --raised-2: #4E2B56;
  --line: #4A2752;
  --outline: #63406B;
  --peach: #F7B596;
  --peach-pressed: #F5A480;
  --on-peach: #3B1F42;
  --text: #FFF4EC;
  --text-2: #D9C6D6;
  --text-3: #B79BBA;
  --polaroid: #FDFBF7;
  --ink: #1C1917;
  /* Legacy names kept so older page styles (/v/, 404) pick up the new palette */
  --rose: var(--peach);
  --rose-text: var(--peach);
  --on-rose: var(--on-peach);
  --lilac: #6B3E73;
  --display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: var(--display);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  color-scheme: dark;
}

html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: linear-gradient(180deg, var(--plum-top) 0, var(--bg) 900px) no-repeat, var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--peach); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--peach); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--peach); color: var(--on-peach); }

/* Top bar (legal pages) */
.topbar { width: min(760px, 100% - 32px); margin: 0 auto; padding: 18px 0 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }

/* Legal pages (privacy, terms, delete account) */
.legal { width: min(760px, 100% - 32px); margin: 0 auto; padding: 24px 0 24px; }
.legal h1 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 7vw, 44px); line-height: 1.08; margin: 8px 0 6px; letter-spacing: -0.02em; }
.legal h2 { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.2; margin: 36px 0 8px; }
.legal h3 { font-size: 16px; margin: 20px 0 4px; }
.legal p, .legal li { color: var(--text-2); }
.legal strong { color: var(--text); }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal .meta { color: var(--text-3); margin: 0 0 20px; }
.legal .lead { font-size: 18px; color: var(--text-2); }
.legal .card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 6px 20px; margin: 14px 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { color: var(--text); font-weight: 600; }
.legal td { color: var(--text-2); }
.legal .toc { columns: 2 220px; padding-left: 20px; }

/* ---------- Site-wide footer ----------
   Plum band, cream text, peach accents. 8-pt spacing. Phone: brand band stacked, Product + Company 2-up,
   Guides full width (6 featured + "All guides"). Desktop: brand band in one row, 4-track grid with the
   full guide list in two columns. Links are >= 44px tall on touch screens. */
.site-footer {
  box-sizing: border-box;
  position: relative;
  width: 100%;
  margin: 64px 0 0;
  padding: 48px 0 calc(24px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, var(--plum-top) 0%, var(--plum-bottom) 100%);
  color: var(--text-2);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(247, 181, 150, 0) 0%, rgba(247, 181, 150, 0.55) 50%, rgba(247, 181, 150, 0) 100%);
}
.site-footer *, .site-footer *::before, .site-footer *::after { box-sizing: border-box; margin: 0; padding: 0; }
.site-footer a { color: var(--text-2); text-decoration: none; transition: color 0.15s ease; }
.site-footer a:hover { color: var(--text); }
.site-footer a:focus-visible { outline: 2px solid var(--peach); outline-offset: 2px; border-radius: 6px; }
.sf-wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Brand band */
.sf-band { display: flex; flex-direction: column; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid rgba(217, 198, 214, 0.14); }
.sf-id { display: grid; gap: 8px; }
.site-footer .sf-brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; min-height: 44px; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.01em; }
.sf-brand img { width: 44px; height: 44px; border-radius: 12px; display: block; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35); }
.sf-tag { color: var(--text-2); font-family: var(--display); font-weight: 600; font-size: 17px; }
.sf-stores { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 16px; }
.site-footer .sf-badge { display: inline-flex; position: relative; border-radius: 8px; }
.sf-badge img { display: block; height: 44px; width: auto; }
.site-footer a.sf-badge:hover { transform: translateY(-1px); }
.sf-badge.is-soon img { opacity: 0.38; filter: grayscale(1); }
.sf-badge.is-soon { cursor: default; }
.site-footer .sf-badge.is-soon { flex-direction: column; align-items: center; gap: 4px; }
.sf-soon { color: var(--text-3); font-size: 12px; font-weight: 600; line-height: 1.3; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }

/* Link columns */
.sf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "product company" "guides guides";
  gap: 32px 16px;
  padding: 32px 0;
}
.sf-product { grid-area: product; }
.sf-company { grid-area: company; }
.sf-guides { grid-area: guides; }
.sf-h { color: var(--peach); font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.sf-list { list-style: none; }
.sf-list a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer .sf-two { flex-direction: column; align-items: flex-start; justify-content: center; }
.sf-sub { color: var(--text-3); font-size: 13px; line-height: 1.3; word-break: break-all; }
.sf-glist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.sf-glist a { line-height: 1.3; }
.sf-glist .sf-extra { display: none; }
.site-footer .sf-all { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; color: var(--peach); font-weight: 600; }
.site-footer .sf-all:hover { color: var(--peach-pressed); text-decoration: underline; }

/* Bottom bar */
.sf-bottom {
  display: flex; flex-direction: column; gap: 4px;
  padding-top: 24px;
  border-top: 1px solid rgba(217, 198, 214, 0.14);
  color: var(--text-3); font-size: 13px;
}

@media (min-width: 720px) {
  .sf-band { flex-direction: row; align-items: center; justify-content: space-between; }
  .sf-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr) minmax(0, 1.2fr); grid-template-areas: "product guides company"; gap: 32px 48px; padding: 40px 0; }
  .sf-glist .sf-extra { display: list-item; }
  .sf-bottom { flex-direction: row; justify-content: space-between; gap: 16px; }
}
@media (min-width: 720px) and (pointer: fine) {
  .sf-list a, .site-footer .sf-all { min-height: 36px; }
  .site-footer .sf-two { min-height: 52px; }
}
