/* Bayou — bayouapp.space
   The look follows the App Store screenshots: layered, softly shadowed
   backgrounds in the spirit of OS 27, frosted glass surfaces, and
   headlines filled with a gradient that ends on the app icon's orange.
   Colors follow the visitor's system appearance. */

:root {
  --bg: #fbf4ea;
  --surface: rgba(255, 252, 246, 0.62);
  --surface-strong: rgba(255, 252, 246, 0.82);
  --surface-border: rgba(255, 255, 255, 0.75);
  --text: #2b2350;
  --text-secondary: #5f5680;
  --text-tertiary: #8a82a6;
  --rule: rgba(43, 35, 80, 0.12);
  --shadow: 0 30px 60px -20px rgba(70, 40, 90, 0.35), 0 12px 24px -12px rgba(70, 40, 90, 0.2);
  --glass-shadow: 0 10px 30px -12px rgba(70, 40, 90, 0.25);
  --headline: linear-gradient(90deg, #342870 0%, #703e96 55%, #b05d1c 100%);
  --accent: #6b3fa0;
  --hero-bg: url("assets/bg-light.jpg");
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0b24;
    --surface: rgba(34, 30, 76, 0.5);
    --surface-strong: rgba(34, 30, 76, 0.78);
    --surface-border: rgba(184, 198, 236, 0.18);
    --text: #f2eefa;
    --text-secondary: #b9b2d6;
    --text-tertiary: #8d86ad;
    --rule: rgba(242, 238, 250, 0.12);
    --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 12px 24px -12px rgba(0, 0, 0, 0.5);
    --glass-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
    --headline: linear-gradient(90deg, #ffffff 0%, #d6ccfc 55%, #f6be8c 100%);
    --accent: #b8a8f5;
    --hero-bg: url("assets/bg-dark.jpg");
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-optical-sizing: auto;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

/* Gradient-filled type, like the screenshot captions. */
.headline {
  background: var(--headline);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.025em;
  line-height: 1.08;
  font-weight: 800;
  text-wrap: balance;
  /* background-clip only paints inside the box, and at this line height
     descenders (the g in "good") hang below it. */
  padding-bottom: 0.14em;
}

.glass {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
}

/* Navigation */

.nav {
  position: sticky;
  top: 12px;
  z-index: 10;
  width: min(1120px, 100% - 32px);
  margin: 12px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 14px;
  border-radius: 999px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.nav .pill {
  padding: 8px 14px;
  font-size: 14px;
  background: var(--surface-strong);
}

.pill svg {
  width: 16px;
  height: 16px;
  flex: none;
}

@media (max-width: 720px) {
  .nav-links a:not(.pill) {
    display: none;
  }
}

/* Hero */

.hero {
  position: relative;
  margin-top: -76px;
  padding: 150px 0 0;
  background: var(--hero-bg) center / cover no-repeat;
  overflow: hidden;
}

.hero::after {
  /* Fades the art into the page below. */
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

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

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 7.4vw, 88px);
}

.hero .lede {
  margin: 22px auto 0;
  max-width: 620px;
  font-size: clamp(18px, 2.1vw, 22px);
  color: var(--text-secondary);
  text-wrap: balance;
}

.hero .pill {
  margin-top: 30px;
}

.hero-art {
  position: relative;
  z-index: 1;
  margin: 56px auto 0;
  width: min(1040px, 100%);
}

.hero-art .mac {
  display: block;
  width: 76%;
  margin-left: 4%;
}

.hero-art .phone {
  position: absolute;
  right: 4%;
  bottom: 5%;
  width: 26%;
}

/* Phone screens: captures include the status bar, so round them like
   the device. */
.phone img {
  border-radius: 13% / 6%;
  box-shadow: var(--shadow);
  outline: 1px solid var(--rule);
}

/* The three things Bayou is for */

.pillars {
  padding: 40px 0 40px;
}

.eyebrow {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}

.pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding: 72px 0;
}

.pillar + .pillar {
  border-top: 1px solid var(--rule);
}

.pillar:nth-child(even) .pillar-art {
  order: -1;
}

.pillar h2 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 54px);
}

.pillar p {
  margin: 20px 0 0;
  color: var(--text-secondary);
  font-size: 19px;
  max-width: 460px;
}

.pillar-art {
  display: flex;
  justify-content: center;
}

.pillar-art .phone {
  width: min(320px, 78%);
}

/* Mac */

.mac-section {
  position: relative;
  padding: 110px 0 120px;
  background: var(--hero-bg) center / cover no-repeat;
  overflow: hidden;
}

.mac-section::before,
.mac-section::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 140px;
  pointer-events: none;
}

.mac-section::before {
  top: 0;
  background: linear-gradient(to top, transparent, var(--bg));
}

.mac-section::after {
  bottom: 0;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.mac-section .wrap {
  position: relative;
  z-index: 1;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 60px);
}

.section-head p {
  margin: 20px auto 0;
  color: var(--text-secondary);
  font-size: 20px;
  max-width: 600px;
}

.mac-art {
  margin: 56px auto 0;
  width: min(1040px, 100%);
}

.mac-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 40px 0 0;
  padding: 0;
}

.mac-points li {
  list-style: none;
}

/* Feature cards */

.features {
  padding: 100px 0 40px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 48px 0 0;
  padding: 0;
}

.card {
  list-style: none;
  padding: 24px;
  border-radius: 24px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  font-size: 16px;
  color: var(--text-secondary);
}

.features .card {
  background: var(--surface-strong);
}

/* Privacy callout */

.privacy {
  padding: 60px 0 40px;
}

.privacy .card {
  padding: clamp(28px, 5vw, 56px);
  border-radius: 32px;
  text-align: center;
}

.privacy h2 {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 50px);
}

.privacy p {
  max-width: 640px;
  margin: 18px auto 0;
  color: var(--text-secondary);
}

/* Closing call to action */

.closing {
  padding: 80px 0 100px;
  text-align: center;
}

.closing img {
  width: 112px;
  height: 112px;
  margin: 0 auto 26px;
  filter: drop-shadow(0 18px 30px rgba(70, 40, 90, 0.3));
}

.closing h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
}

.closing .pill {
  margin-top: 28px;
}

/* Maker (footer) */

.maker {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}

.maker img {
  width: 56px;
  height: 56px;
  flex: none;
}

.maker p {
  margin: 0;
}

/* The footer's link colors would otherwise apply */
.footer .maker {
  color: var(--text-secondary);
}

.footer .maker:hover {
  color: var(--text);
}

/* Footer */

.footer {
  border-top: 1px solid var(--rule);
  padding: 32px 0 48px;
  font-size: 14px;
  color: var(--text-tertiary);
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

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

.footer .fine {
  flex-basis: 100%;
  margin: 0;
}

/* Legal pages */

.legal-page {
  position: relative;
}

.legal-page::before {
  content: "";
  position: absolute;
  inset: -76px 0 auto;
  height: 520px;
  background: var(--hero-bg) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
  z-index: -1;
}

.legal {
  width: min(760px, 100% - 32px);
  margin: 72px auto 80px;
  padding: clamp(24px, 5vw, 56px);
  border-radius: 32px;
  font-size: 17px;
}

.legal h1 {
  margin: 0 0 6px;
  font-size: clamp(38px, 6vw, 56px);
}

.legal h2 {
  margin: 44px 0 10px;
  font-size: 23px;
  letter-spacing: -0.01em;
}

.legal h3 {
  margin: 28px 0 6px;
  font-size: 18px;
}

.legal p,
.legal li {
  color: var(--text-secondary);
}

.legal strong {
  color: var(--text);
}

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

.legal li + li {
  margin-top: 6px;
}

.legal hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 40px 0;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 12px 0;
  display: block;
  overflow-x: auto;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--text-secondary);
}

.legal th {
  color: var(--text);
}

.legal .updated {
  color: var(--text-tertiary);
  margin: 0 0 8px;
}

/* Small screens */

@media (max-width: 860px) {
  .pillar {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 56px 0;
  }

  .pillar:nth-child(even) .pillar-art {
    order: 0;
  }

  .pillar p {
    margin-inline: auto;
  }

  .grid,
  .mac-points {
    grid-template-columns: 1fr;
  }

  .hero-art .mac {
    width: 100%;
  }

  .hero-art .phone {
    width: 30%;
    right: 0;
    bottom: -4%;
  }
}

@media (min-width: 861px) and (max-width: 1000px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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