/* Alias - landing + legal pages. Light violet + neutral theme.
   Palette mirrors the app's DesignSystem.swift so web matches device. */

:root {
  --accent: #6D6DC7;
  --accent-hover: #5F5FB7;
  --accent-soft: rgba(109, 109, 199, 0.14);

  --bg: #F5F5F5;
  --surface: #FFFFFF;
  --bottom-bar: #FFFCF8;
  --elevated: #E9E9E9;
  --ink: #212121;
  --ink-soft: #919191;
  --ink-body: #4B4B4B;

  --hairline: rgba(0, 0, 0, 0.07);
  --accent-hairline: rgba(109, 109, 199, 0.28);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 18px 44px rgba(0, 0, 0, 0.10);

  --radius-lg: 20px;
  --radius-md: 20px;
  --radius-sm: 12px;

  --maxw: 1080px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", -apple-system,
          BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- language helpers ---------- */
/* Text is swapped by site.js; this just hides until ready to avoid a flash. */
.no-js [data-en] { visibility: visible; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(245, 245, 245, 0.88);
  backdrop-filter: saturate(1.05) blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.wordmark {
  font-weight: 900; font-size: 22px; letter-spacing: 0;
  color: var(--accent); text-decoration: none; user-select: none;
}
.wordmark small {
  display: block; font-size: 9px; letter-spacing: 0; font-weight: 800;
  color: var(--ink-soft); margin-top: -2px;
}
.topbar nav { display: flex; align-items: center; gap: 18px; }
.topbar nav a {
  text-decoration: none; font-weight: 700; font-size: 14px; color: var(--ink-soft);
}
.topbar nav a:hover { color: var(--ink); }

.lang-switch {
  display: inline-flex; background: var(--elevated);
  border: 1px solid var(--hairline); border-radius: var(--radius-sm); padding: 3px;
}
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font); font-weight: 800; font-size: 12px;
  color: var(--ink-soft); padding: 5px 12px; border-radius: 7px;
  transition: color .15s ease, background .15s ease;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--surface); color: var(--accent); box-shadow: var(--shadow-sm);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font); font-weight: 800; font-size: 16px;
  text-decoration: none; cursor: pointer; border: 0;
  min-height: 64px; padding: 0 24px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { color: #fff; background: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-md); }

/* ---------- hero ---------- */
.hero { flex: 1; display: flex; align-items: center; padding: 56px 0 52px; }
.hero .wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; font-size: 13px; font-weight: 800;
  letter-spacing: 0;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--accent-hairline); border-radius: 999px;
  padding: 7px 12px; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(32px, 4.4vw, 50px); line-height: 1.08; margin: 0 0 18px;
  font-weight: 900; letter-spacing: 0;
}
.hero p.lead {
  font-size: 17px; color: var(--ink-soft); line-height: 1.6;
  margin: 0 0 28px; max-width: 32em;
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.cta-note { display: block; margin-top: 16px; font-size: 13px; color: var(--ink-soft); }

/* ---------- screenshots ---------- */
.shots {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: center;
}
.phone {
  position: relative;
  container-type: inline-size;          /* frame + notch scale with phone width */
}
.phone img {
  display: block; width: 100%; height: auto;
  border: 5px solid #1d1a17; border-width: 2.4cqw;
  border-radius: 26px; border-radius: 18cqw;
  box-shadow: 0 6px 18px rgba(43, 38, 34, 0.10);
}
.phone::before {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  top: 7px; top: 4cqw;
  width: 30%;
  height: 11px; height: 7cqw;
  background: #1d1a17; border-radius: 999px; z-index: 2;
}

/* ---------- footer ---------- */
footer.site {
  background: var(--bottom-bar);
  border-top: 1px solid var(--hairline);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  padding: 22px 0;
}
footer.site .wrap {
  display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between;
}
footer.site .wordmark { font-size: 16px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 22px; }
footer.site a { text-decoration: none; font-weight: 700; font-size: 14px; color: var(--ink-soft); }
footer.site a:hover { color: var(--accent); }
footer.site .copy { font-size: 13px; color: var(--ink-soft); }

/* ---------- legal documents ---------- */
.legal { padding: 48px 0 20px; }
.legal .doc { background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 44px clamp(22px, 4vw, 56px); max-width: 820px; margin: 0 auto; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 6px; font-weight: 900; letter-spacing: 0; }
.legal .updated { color: var(--ink-soft); font-size: 14px; margin: 0 0 30px; font-weight: 700; }
.legal h2 {
  font-size: 21px; font-weight: 800; margin: 34px 0 10px; padding-top: 6px;
  scroll-margin-top: 80px;
}
.legal h2 .num { color: var(--accent); margin-right: 8px; }
.legal h3 { font-size: 16px; font-weight: 800; margin: 18px 0 6px; }
.legal p, .legal li { color: var(--ink-body); font-size: 16px; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal .tldr {
  background: var(--accent-soft); border: 1px solid var(--accent-hairline);
  border-radius: var(--radius-md); padding: 18px 22px; margin: 0 0 26px;
}
.legal .tldr strong { color: var(--accent); }
.legal a.inline { color: var(--accent); font-weight: 700; text-decoration: none; }
.legal a.inline:hover { text-decoration: underline; }
.back-home { display: inline-flex; align-items: center; gap: 8px; margin: 26px auto 0;
  font-weight: 800; font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.back-home:hover { color: var(--accent); }
.legal-footer { text-align: center; padding-bottom: 50px; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero { padding: 40px 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  /* stacked screenshots that scroll with the page */
  .shots {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
  }
  .phone { width: min(230px, 72%); }
}
@media (max-width: 560px) {
  footer.site .wrap { justify-content: center; text-align: center; }
}
