:root {
  --accent: #3B82F6;
  --accent-dark: #1D4ED8;
  --text: #111827;
  --muted: #6B7280;
  --soft: #F3F4F6;
  --line: #E5E7EB;
  --page: #FAFAFB;
  --card: #FFFFFF;
  --shadow: 0 28px 70px rgba(17, 24, 39, 0.10);
  --page-gutter: clamp(24px, 5vw, 72px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  letter-spacing: 0;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.30);
  outline-offset: 4px;
}

.site-header {
  width: min(1120px, calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 740;
  font-size: 20px;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.25);
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 560;
}

.nav a:hover,
.site-footer a:hover {
  color: var(--text);
}

main {
  flex: 1;
  display: flex;
  min-width: 0;
}

.hero {
  width: min(1120px, calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto;
  padding: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: stretch;
  overflow: hidden;
}

.hero-copy {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 720;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 9vw, 56px);
  line-height: 1.02;
  font-weight: 780;
  letter-spacing: 0;
  max-width: 680px;
}

.hero-text {
  margin: 16px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.cta-row {
  margin-top: 22px;
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 680;
  border: 1px solid transparent;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

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

.button-primary {
  color: #FFFFFF;
  background: var(--text);
}

.button-primary:hover {
  background: var(--accent);
}

.button-secondary {
  color: var(--text);
  background: #FFFFFF;
  border-color: var(--line);
}

.button-secondary:hover {
  border-color: rgba(59, 130, 246, 0.45);
}

.hero-visual {
  width: 100%;
  max-height: clamp(320px, 42vh, 470px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  pointer-events: none;
}

.phone-mockup {
  width: auto;
  height: min(760px, 78vh);
  display: block;
}

.site-footer {
  width: min(1120px, calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto;
  padding: 6px 0 16px;
  color: var(--muted);
  display: flex;
  justify-content: flex-start;
  gap: 18px;
  font-size: 14px;
  line-height: 1.2;
  position: relative;
  z-index: 5;
}

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

.legal-page {
  width: min(760px, calc(100% - (var(--page-gutter) * 2)));
  flex: 1;
  margin: 0 auto;
  padding: 56px 0 80px;
  display: block;
}

.legal-page h1 {
  font-size: clamp(38px, 10vw, 58px);
}

.legal-updated {
  margin: 14px 0 34px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.legal-section {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: 0;
}

.legal-section p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.legal-section a {
  color: var(--accent-dark);
  font-weight: 650;
}

.placeholder {
  margin-top: 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

@media (min-width: 700px) and (max-width: 1023px) {
  .site-header {
    padding: 28px 0;
  }

  .hero {
    min-height: auto;
    padding-top: clamp(18px, 3vh, 34px);
    padding-bottom: 0;
    gap: clamp(10px, 1.6vh, 18px);
    justify-content: flex-start;
    overflow: visible;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
  }

  h1,
  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  h1 {
    max-width: 650px;
    font-size: clamp(38px, 5vw, 52px);
  }

  .hero-text {
    max-width: 540px;
    font-size: 16px;
  }

  .cta-row {
    margin-top: 18px;
    justify-content: center;
  }

  .button {
    min-width: 190px;
  }

  .hero-visual {
    flex: 0 0 auto;
    min-height: 0;
    margin-top: 14px;
    padding-bottom: 14px;
    z-index: 1;
    max-height: none;
    overflow: visible;
  }

  .phone-mockup {
    height: min(760px, 72vh);
  }

  .site-footer {
    margin-top: 24px;
    padding-bottom: 28px;
  }
}

@media (min-width: 700px) and (max-width: 820px) {
  .phone-mockup {
    height: min(640px, 62vh);
  }
}

@media (max-width: 699px) {
  .hero {
    padding-top: 20px;
    padding-bottom: 0;
    gap: 10px;
    overflow: visible;
  }

  .eyebrow {
    margin-bottom: 12px;
  }

  h1 {
    max-width: 620px;
    font-size: clamp(38px, 10vw, 50px);
    line-height: 1.02;
  }

  .hero-text {
    margin-top: 16px;
    font-size: 16px;
  }

  .cta-row {
    margin-top: 18px;
  }

  .hero-visual {
    margin-top: 14px;
    padding-bottom: 14px;
    max-height: none;
    overflow: visible;
  }

  .phone-mockup {
    height: min(500px, 54vh);
  }

  .site-footer {
    margin-top: 24px;
    padding-bottom: 28px;
  }
}

@media (min-width: 1024px) {
  .site-header {
    padding: 28px 0;
  }

  .hero {
    min-height: calc(100vh - 125px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    padding-top: 22px;
    padding-bottom: 28px;
    align-items: center;
  }

  .hero-copy {
    max-width: 650px;
    text-align: left;
    margin: 0;
  }

  h1 {
    max-width: 780px;
    margin-left: 0;
    margin-right: 0;
    font-size: clamp(52px, 5.3vw, 68px);
  }

  .hero-text {
    max-width: 610px;
    margin-left: 0;
    margin-right: 0;
    font-size: 17px;
  }

  .cta-row {
    justify-content: flex-start;
  }

  .button {
    flex: 0 0 auto;
    min-width: 0;
  }

  .hero-visual {
    position: static;
    pointer-events: auto;
    max-height: none;
    display: grid;
    place-items: center;
  }

  .phone-mockup {
    width: auto;
    max-width: 360px;
    height: min(620px, calc(100vh - 190px));
  }
}

@media (max-width: 420px) {
  :root {
    --page-gutter: 24px;
  }

  .site-header {
    align-items: flex-start;
    gap: 18px;
  }

  .nav {
    gap: 14px;
  }

  h1 {
    font-size: clamp(34px, 10vw, 42px);
  }

  .button {
    padding-left: 14px;
    padding-right: 14px;
    font-size: 15px;
  }

  .hero-visual {
    max-height: none;
  }

  .phone-mockup {
    height: min(440px, 50vh);
  }
}
