/* InTownAI — shared site styles */

:root {
  --brand: #6c36c2;
  --brand-deep: #5a2ba3;
  --brand-soft: #f4effc;
  --brand-mid: #eee3ff;
  --text: #2c3242;
  --text-strong: #3a3e3a;
  --muted: #757f88;
  --border: #e5e7eb;
  --surface: #ffffff;
}

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

html {
  height: 100%;
}

body {
  min-height: 100%;
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, var(--brand-mid) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 100%, var(--brand-soft) 0%, transparent 50%),
    linear-gradient(165deg, #faf8ff 0%, #ffffff 45%, #f7f3ff 100%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
  position: relative;
  z-index: 1;
}

.page-narrow {
  max-width: 40rem;
}

header {
  margin-bottom: 3rem;
}

.brand {
  display: inline-block;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--brand);
  text-decoration: none;
}

main {
  flex: 1;
}

h1 {
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.lede {
  font-size: 1.0625rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 28rem;
}

footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}

footer.site-footer {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  position: relative;
  z-index: 1;
}

footer nav {
  display: flex;
  gap: 1.25rem;
}

footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

footer a:hover,
footer a:focus-visible {
  color: var(--brand);
  outline: none;
}

/* —— Home —— */

.page-home {
  padding-bottom: 0;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0 3rem;
  min-height: min(72vh, 36rem);
}

.hero .brand {
  font-size: clamp(2.25rem, 8vw, 3.25rem);
  letter-spacing: -0.04em;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: rise 0.7s ease forwards;
}

.hero h1 {
  font-size: clamp(1.625rem, 4.5vw, 2.125rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.875rem;
  opacity: 0;
  animation: rise 0.7s ease 0.12s forwards;
}

.hero .lede {
  font-size: clamp(1.0625rem, 2.5vw, 1.1875rem);
  max-width: 32rem;
  margin-bottom: 2.25rem;
  opacity: 0;
  animation: rise 0.7s ease 0.24s forwards;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: rise 0.7s ease 0.36s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 0.5rem;
  padding: 0.85rem 1.35rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--brand-deep);
  outline: none;
}

.btn-store {
  background: var(--text);
  color: #ffffff;
  padding: 0.65rem 1.1rem;
  min-width: 9.5rem;
  text-align: left;
  line-height: 1.15;
}

.btn-store:hover,
.btn-store:focus-visible {
  background: #1a1e28;
  outline: none;
}

.btn-store svg {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
}

.btn-store .store-copy {
  display: flex;
  flex-direction: column;
}

.btn-store .store-label {
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.8;
}

.btn-store .store-name {
  font-size: 0.9375rem;
  font-weight: 600;
}

.skyline {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  opacity: 0;
  animation: fade 1s ease 0.5s forwards;
  pointer-events: none;
}

.skyline img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 0.55; }
}

/* —— Support —— */

.contacts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contacts li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.contacts a {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  width: fit-content;
}

.contacts a:hover,
.contacts a:focus-visible {
  color: var(--brand);
  border-bottom-color: var(--brand);
  outline: none;
}

/* —— Privacy —— */

.page-privacy {
  line-height: 1.6;
}

.page-privacy h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.125rem);
}

.effective {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.policy {
  font-size: 1.0625rem;
}

.policy > p {
  margin-bottom: 1.25rem;
  color: var(--text-strong);
}

.policy > p + h2,
.policy > ul + h2,
.policy > h3 + h2 {
  margin-top: 2.75rem;
}

.policy h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 0.875rem;
  padding-top: 0.25rem;
  line-height: 1.35;
}

.policy h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.5rem 0 0.625rem;
}

.policy ul {
  margin: 0 0 1.25rem 1.25rem;
  color: var(--text-strong);
}

.policy li {
  margin-bottom: 0.4rem;
}

.policy li::marker {
  color: var(--brand);
}

.policy strong {
  font-weight: 600;
  color: var(--text);
}

.policy a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.15s ease;
}

.policy a:hover,
.policy a:focus-visible {
  border-bottom-color: var(--brand);
  outline: none;
}

.contact-block {
  margin-top: 0.5rem;
}

.contact-block p {
  margin-bottom: 0.5rem;
}

.contact-block ul {
  list-style: none;
  margin-left: 0;
}

.contact-block li {
  margin-bottom: 0.35rem;
}

/* —— Responsive —— */

@media (min-width: 640px) {
  .page {
    padding: 3.5rem 2rem 2.5rem;
  }

  .page-home {
    padding-bottom: 0;
  }

  .page-narrow {
    justify-content: center;
  }

  header {
    margin-bottom: 3.5rem;
  }

  .page-narrow header {
    margin-bottom: 4rem;
  }

  .cta-group {
    gap: 0.875rem;
  }

  .skyline {
    padding: 0 2rem;
  }

  footer.site-footer {
    padding: 1.5rem 2rem 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .brand,
  .hero h1,
  .hero .lede,
  .cta-group,
  .skyline {
    animation: none;
    opacity: 1;
  }

  .skyline {
    opacity: 0.55;
  }
}
