/* Gustra marketing site — house style from Theme.swift */
:root {
  --forest: #244e39;
  --forest-deep: #1a3a2a;
  --cream: #f5eedd;
  --cream-soft: #faf6ec;
  --bubble: #ece3cf;
  --gold: #d9a227;
  --ink: #23201a;
  --ink-muted: rgba(35, 32, 26, 0.62);
  --ink-faint: rgba(35, 32, 26, 0.45);
  --white: #ffffff;
  --radius: 20px;
  --max: 1120px;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Helvetica, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 55% at 12% -10%, rgba(36, 78, 57, 0.08), transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 8%, rgba(217, 162, 39, 0.1), transparent 50%),
    linear-gradient(180deg, var(--cream-soft) 0%, var(--cream) 40%, #efe6d2 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--forest-deep);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(245, 238, 221, 0.86);
  border-bottom: 1px solid rgba(36, 78, 57, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--cream);
  box-shadow: 0 0 0 1px rgba(36, 78, 57, 0.12);
}

.hero__brand-mark {
  width: 96px;
  height: 96px;
  margin-bottom: 1.25rem;
  border-radius: 22px;
  object-fit: cover;
  background: var(--cream);
  box-shadow: 0 8px 28px rgba(36, 78, 57, 0.12);
  animation: rise-in 0.9s ease both;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-muted);
  font-weight: 500;
}

.nav a:hover {
  color: var(--forest);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--forest);
  color: var(--cream) !important;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav__cta:hover {
  background: var(--forest-deep);
  transform: translateY(-1px);
}

/* —— Hero —— */
.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 8vw, 5.6rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 0.95;
  color: var(--forest);
  animation: rise-in 0.9s 0.08s ease both;
}

.hero__slogan {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 450;
  font-style: italic;
  color: var(--ink);
  letter-spacing: -0.01em;
  animation: rise-in 0.9s 0.16s ease both;
}

.hero__lede {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  color: var(--ink-muted);
  font-size: 1.125rem;
  animation: rise-in 0.9s 0.24s ease both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  animation: rise-in 0.9s 0.32s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: var(--forest);
  color: var(--cream);
  box-shadow: 0 10px 28px rgba(36, 78, 57, 0.22);
}

.btn--primary:hover {
  background: var(--forest-deep);
  color: var(--cream);
  transform: translateY(-2px);
}

.btn--ghost {
  color: var(--forest);
  border: 1.5px solid rgba(36, 78, 57, 0.35);
  background: transparent;
}

.btn--ghost:hover {
  background: rgba(36, 78, 57, 0.06);
  color: var(--forest-deep);
}

.app-store-badge {
  display: inline-block;
  line-height: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.app-store-badge img,
.app-store-badge svg {
  display: block;
  height: 44px;
  width: auto;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  animation: float-in 1.1s 0.2s ease both;
}

.phone {
  width: min(100%, 360px);
  aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  padding: 12px;
  background: linear-gradient(160deg, #2a2a2a, #111);
  box-shadow:
    0 30px 60px rgba(35, 32, 26, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  position: relative;
  overflow: hidden;
}

.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 18px;
  background: #0a0a0a;
  border-radius: 999px;
  z-index: 2;
  pointer-events: none;
}

.phone img {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  max-width: none;
  object-fit: fill;
  object-position: top center;
  border-radius: 28px;
  background: var(--cream);
  display: block;
  image-rendering: auto;
}

.phone--offset {
  transform: rotate(2.5deg);
}

/* —— Sections —— */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section--alt {
  background: rgba(236, 227, 207, 0.45);
  border-block: 1px solid rgba(36, 78, 57, 0.06);
}

.section__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
}

.section__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
}

.section__lede {
  margin: 0 0 2.5rem;
  max-width: 36rem;
  color: var(--ink-muted);
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.feature + .feature {
  margin-top: clamp(3.5rem, 8vw, 5rem);
}

.feature--reverse .feature__copy {
  order: 2;
}

.feature--reverse .feature__media {
  order: 1;
}

.feature__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--forest);
}

.feature__text {
  margin: 0;
  color: var(--ink-muted);
  max-width: 28rem;
}

.feature__media {
  display: flex;
  justify-content: center;
}

.feature .phone {
  width: min(100%, 340px);
}

.feature .phone--tilt-left {
  transform: rotate(-2deg);
}

.feature .phone--tilt-right {
  transform: rotate(2deg);
}

/* —— Steps —— */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step {
  padding: 1.5rem 1.35rem;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(36, 78, 57, 0.08);
  border-radius: var(--radius);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.step__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}

.step__text {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink-muted);
}

/* —— Download —— */
.download {
  text-align: center;
  padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.download__panel {
  padding: clamp(2.5rem, 5vw, 3.5rem) 1.5rem;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(36, 78, 57, 0.95), var(--forest-deep));
  color: var(--cream);
  box-shadow: 0 24px 50px rgba(36, 78, 57, 0.28);
}

.download__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.download__text {
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  opacity: 0.88;
}

/* —— Legal pages —— */
.page-hero {
  padding: 2.5rem 0 1.5rem;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--forest);
  letter-spacing: -0.025em;
}

.page-hero p {
  margin: 0;
  color: var(--ink-muted);
}

.legal {
  padding-bottom: 4rem;
  max-width: 42rem;
}

.legal h2 {
  margin: 2rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
}

.legal p,
.legal li {
  color: var(--ink-muted);
}

.legal ul {
  padding-left: 1.2rem;
}

.legal li + li {
  margin-top: 0.35rem;
}

/* —— Footer —— */
.site-footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid rgba(36, 78, 57, 0.1);
  background: rgba(236, 227, 207, 0.35);
}

.site-footer__inner {
  display: grid;
  gap: 1.5rem;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.35rem;
}

.site-footer__links a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-footer__links a:hover {
  color: var(--forest);
}

.site-footer__copy {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-faint);
}

.site-footer__copy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.disclaimer {
  margin: 0;
  max-width: 52rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-faint);
}

/* —— Motion —— */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__brand-mark,
  .hero__title,
  .hero__slogan,
  .hero__lede,
  .hero__actions,
  .hero__visual {
    animation: none;
  }
}

/* —— Responsive —— */
.nav--desktop {
  display: flex;
}

.nav--mobile-cta {
  display: none;
}

@media (max-width: 860px) {
  .nav--desktop {
    display: none;
  }

  .nav--mobile-cta {
    display: inline-flex;
  }

  .hero__grid,
  .feature,
  .steps {
    grid-template-columns: 1fr;
  }

  .feature--reverse .feature__copy,
  .feature--reverse .feature__media {
    order: unset;
  }

  .hero {
    text-align: center;
  }

  .hero__lede {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__brand-mark {
    margin-inline: auto;
  }

  .section__lede {
    margin-inline: auto;
    text-align: center;
  }

  .section__eyebrow,
  .section__title {
    text-align: center;
  }

  .feature__text {
    margin-inline: auto;
    text-align: center;
  }

  .feature__title {
    text-align: center;
  }

  .phone--offset,
  .feature .phone--tilt-left,
  .feature .phone--tilt-right {
    transform: none;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.5rem, var(--max));
  }

  .brand__name {
    font-size: 1.2rem;
  }
}
