@import url("fonts.css");

:root {
  --color-brand: #3053ad;
  --color-accent: #f26419;
  --color-bg-soft: #bde4ff;
  --color-text: #2d1b11;
  --color-text-muted: #5c4a42;
  --color-surface: #ffffff;
  --color-border: #d4e8f7;
  --radius-card: 24px;
  --radius-pill: 9999px;
  --font-family: "Figtree", system-ui, sans-serif;
  --shadow-card: 0 12px 40px rgba(48, 83, 173, 0.12);
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --content-max: 36rem;
}

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

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

body {
  margin: 0;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg-soft);
}

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

a {
  color: var(--color-brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: #1e3d8a;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 var(--space-md);
}

h1 {
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h2 {
  font-weight: 600;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin: 0 0 var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

.site-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.site-brand {
  position: relative;
  background: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-lg);
  overflow: hidden;
}

.site-brand__waves {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.35;
  width: 150%;
  height: auto;
  max-width: none;
}

.site-brand__logo {
  position: relative;
  z-index: 1;
  width: min(220px, 70vw);
}

.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.site-header {
  padding: var(--space-md) var(--space-lg);
}

.site-header--centered,
.site-header--minimal {
  display: flex;
  justify-content: center;
  padding: var(--space-lg);
}

.site-header__logo {
  display: inline-flex;
}

.site-content {
  flex: 1;
  padding: 0 var(--space-lg) var(--space-xl);
}

.site-content--narrow {
  max-width: 48rem;
  margin: 0 auto;
  padding: var(--space-lg);
}

.site-footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.5);
}

.site-footer--centered {
  text-align: center;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  margin-bottom: var(--space-md);
  justify-content: center;
}

.site-footer__nav a {
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: var(--color-brand);
  text-decoration: underline;
}

.site-footer__company {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  text-align: center;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-xl);
  max-width: var(--content-max);
  margin: 0 auto;
}

.hero-claim {
  margin-bottom: var(--space-lg);
}

.claim-accent {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  margin-left: 10px;
}

.claim-accent__mark {
  position: absolute;
  left: 50%;
  bottom: -0.10em;
  transform: translateX(-50%);
  width: 140%;
  max-width: 8rem;
  height: auto;
  pointer-events: none;
}

.lead {
  font-size: 1.0625rem;
}

.store-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: var(--space-xl) 0 var(--space-lg);
}

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--color-brand);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease;
}

.store-button:hover {
  background: #1e3d8a;
  color: #fff;
}

.store-button--secondary {
  background: var(--color-text);
}

.store-button--secondary:hover {
  background: #1a120c;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-brand);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn:hover {
  background: #1e3d8a;
  color: #fff;
}

.btn--block {
  width: 100%;
}

.legal-document h2 {
  margin-top: var(--space-xl);
}

.legal-document h2:first-child {
  margin-top: 0;
}

.legal-document h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-top: var(--space-lg);
}

.legal-meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

.alert {
  padding: var(--space-md);
  border-radius: 12px;
  margin-bottom: var(--space-lg);
  font-size: 0.9375rem;
}

.alert--success {
  background: #e8f5e9;
  color: #1b5e20;
}

.alert--error {
  background: #ffebee;
  color: #b71c1c;
}

.deeplink-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

body.is-minimal .site-brand {
  display: none;
}

@media (min-width: 1024px) {
  .site-shell {
    flex-direction: row;
  }

  .site-brand {
    flex: 0 0 45%;
    max-width: 50%;
    min-height: 100dvh;
  }

  .site-main {
    flex: 1;
  }

  .site-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-2xl);
  }

  .is-minimal .site-shell {
    flex-direction: column;
  }

  .is-minimal .site-brand {
    display: none;
  }

  .is-minimal .site-main {
    min-height: 100dvh;
    justify-content: center;
  }
}

@media (max-width: 1023px) {
  .site-brand {
    min-height: 12rem;
  }
}
