:root {
  --bg: #fff8ef;
  --surface: #fffdf9;
  --surface-quiet: #fff1e5;
  --ink: #1f1f1f;
  --muted: #675965;
  --line: rgba(74, 46, 63, 0.14);
  --stroke-plum: #4a2e3f;
  --plum-deep: #321b2b;
  --accent-peach: #f4a261;
  --rating-sand-orange: #f7a46f;
  --success-sand: #f6e3a3;
  --accent-rose: #f2b6c1;
  --gradient-magenta: #e7a3c7;
  --gradient-lavender: #d9b6e8;
  --accent-soft: rgba(242, 182, 193, 0.32);
  --link: var(--stroke-plum);
  --radius: 8px;
  --shadow: 0 18px 48px rgba(74, 46, 63, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background:
    linear-gradient(180deg, #fffdf9 0%, var(--bg) 48%, #fff1e5 100%);
  color: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: var(--link);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(247, 164, 111, 0.42);
  outline-offset: 3px;
}

.site-header,
.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

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

.brand-link,
.site-nav,
.site-footer nav {
  display: flex;
  align-items: center;
}

.brand-link {
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-link img {
  border-radius: var(--radius);
}

.site-nav,
.site-footer nav {
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav a,
.site-footer a,
.back-link {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a[aria-current="page"],
.site-nav a:hover,
.site-footer a:hover,
.back-link:hover {
  color: var(--plum-deep);
}

.hero-section,
.page-section,
.document-layout {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero-section {
  padding: 4.25rem 0 4.75rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.hero-copy {
  max-width: 980px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--stroke-plum);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.2rem;
  font-size: 4rem;
  line-height: 1;
  letter-spacing: 0;
  color: var(--stroke-plum);
}

h2 {
  margin-bottom: 0.9rem;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--stroke-plum);
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--stroke-plum);
}

.lead,
.content-stack p,
.info-card p,
.document p,
.document li {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

.lead {
  max-width: 660px;
  margin: 0 auto;
}

.hero-copy .lead {
  max-width: 920px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 1.8rem;
}

.app-store-badge-link {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  text-decoration: none;
}

.app-store-badge {
  display: block;
  width: 180px;
  height: auto;
}

.profile-link-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 1.5rem, rgba(247, 164, 111, 0.18), transparent 17rem),
    linear-gradient(180deg, #fffdf9 0%, #fff8ef 58%, #fff1e5 100%);
}

.profile-site-header {
  padding: 1rem 0 0.65rem;
}

.profile-brand-link {
  gap: 0.75rem;
}

.profile-brand-link img,
.profile-app-icon {
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(74, 46, 63, 0.12);
}

.profile-brand-link span {
  color: var(--plum-deep);
  font-size: 1.25rem;
}

.profile-site-nav {
  gap: 0.85rem;
}

.profile-link-section {
  display: grid;
  min-height: calc(100svh - 5.75rem);
  align-items: center;
  padding: 2rem 0 3rem;
  border-top: 0;
}

.profile-link-copy {
  max-width: 620px;
}

.profile-app-icon {
  display: block;
  margin: 0 auto 1.35rem;
}

.profile-link-copy h1 {
  max-width: 560px;
  margin-right: auto;
  margin-left: auto;
  font-size: 3.3rem;
}

.profile-link-copy .lead {
  max-width: 520px;
}

.profile-action-row {
  flex-direction: column;
  align-items: center;
  gap: 0.95rem;
  margin-top: 2rem;
}

.profile-action-row .app-store-badge-link {
  min-height: 0;
  padding: 0.15rem;
  border-radius: 11px;
}

.profile-action-row .app-store-badge {
  width: 210px;
}

.secondary-link-button {
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(74, 46, 63, 0.22);
  border-radius: 999px;
  color: var(--stroke-plum);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  background: rgba(255, 253, 249, 0.74);
}

.text-link-strong {
  display: inline-block;
  margin-top: 1rem;
  color: var(--stroke-plum);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.page-section {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 1.2rem;
}

.section-heading--centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading--wide {
  max-width: 920px;
}

.section-heading--wide h2 {
  font-size: 1.85rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.info-card,
.document,
.contact-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.info-card {
  padding: 1.25rem;
  box-shadow: 0 10px 28px rgba(74, 46, 63, 0.06);
}

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
}

.content-stack {
  display: grid;
  gap: 1rem;
}

.content-stack p,
.info-card p,
.document p,
.document .clean-list {
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 920px;
}

.faq-list--document {
  max-width: none;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(74, 46, 63, 0.05);
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.15rem;
  color: var(--stroke-plum);
  font-weight: 800;
  line-height: 1.35;
}

.faq-item summary::marker {
  color: var(--rating-sand-orange);
}

.faq-item p {
  margin: 0;
  padding: 0 1.15rem 1.15rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.68;
}

.document .faq-item {
  box-shadow: none;
}

.document-layout {
  padding: 2.25rem 0 4rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
}

.document {
  max-width: 820px;
  padding: 2rem;
  box-shadow: 0 12px 34px rgba(74, 46, 63, 0.07);
}

.document section {
  padding-top: 1.35rem;
  margin-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.document-date {
  color: var(--stroke-plum);
  font-size: 0.95rem;
  font-weight: 700;
}

.contact-panel {
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(246, 227, 163, 0.45), rgba(242, 182, 193, 0.26)),
    var(--surface);
}

.clean-list {
  padding-left: 1.1rem;
}

.clean-list li + li {
  margin-top: 0.45rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .site-header,
  .site-footer,
  .hero-section,
  .page-section,
  .document-layout {
    width: min(100% - 1.25rem, 1120px);
  }

  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-site-header {
    width: min(100% - 2rem, 1120px);
    align-items: center;
    flex-direction: row;
    padding-top: 0.85rem;
  }

  .profile-site-nav a:not(:first-child) {
    display: none;
  }

  .hero-section {
    padding: 2.5rem 0 3rem;
  }

  .profile-link-section {
    width: min(100% - 2rem, 1120px);
    min-height: calc(100svh - 5.5rem);
    padding: 1.75rem 0 2.75rem;
  }

  .profile-link-copy h1 {
    max-width: 22rem;
    font-size: 2.7rem;
  }

  .profile-link-copy .lead {
    max-width: 21rem;
    font-size: 1.02rem;
    line-height: 1.55;
  }

  .profile-action-row .app-store-badge {
    width: 220px;
  }

  .secondary-link-button {
    width: auto;
    max-width: min(100%, 21rem);
  }

  h1 {
    font-size: 2.6rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  .section-heading--wide h2 {
    font-size: 1.55rem;
  }

  .info-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .document {
    padding: 1.35rem;
  }
}
