/* re:birth — marketing site
   Colors match the iOS DesignSystem (RebirthColors). */

:root {
  --bg: #faf5f0;
  --bg-deep: #f3ebe4;
  --surface: #ffffff;
  --text: #2e2926;
  --text-secondary: #736b66;
  --accent: #b88c94;
  --accent-deep: #9a727a;
  --accent-soft: #e6d1d6;
  --accent-wash: rgba(184, 140, 148, 0.14);
  --line: rgba(46, 41, 38, 0.08);
  --shadow: 0 18px 40px rgba(46, 41, 38, 0.06);
  --radius: 1.5rem;
  --radius-sm: 1rem;
  --max: 68rem;
  --narrow: 42rem;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, var(--accent-soft), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(230, 209, 214, 0.55), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-deep);
  text-underline-offset: 0.18em;
}

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

h1,
h2,
h3,
.wordmark {
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

p {
  margin: 0 0 1rem;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--surface);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

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

.shell-narrow {
  width: min(100% - 2rem, var(--narrow));
  margin-inline: auto;
}

/* —— Header —— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(250, 245, 240, 0.82);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.brand:hover {
  color: inherit;
}

.wordmark {
  font-size: 1.2rem;
  font-weight: 500;
}

.wordmark span:nth-child(1) {
  color: var(--text-secondary);
  font-weight: 500;
}

.wordmark span:nth-child(2) {
  color: var(--accent);
  font-weight: 650;
  padding: 0 0.05em;
}

.wordmark span:nth-child(3) {
  color: var(--text);
  font-weight: 620;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 560;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

/* —— Buttons —— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: default;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(184, 140, 148, 0.35);
}

.btn--primary:hover {
  color: #fff;
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: rgba(46, 41, 38, 0.18);
}

.btn--soon {
  opacity: 0.72;
  pointer-events: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* —— Hero —— */

.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3.5rem, 9vw, 6rem);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: end;
}

@media (min-width: 880px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }
}

.hero__eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 620;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  max-width: 11ch;
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  font-size: clamp(1.1rem, 2vw, 1.28rem);
  color: var(--text-secondary);
}

.hero__panel {
  position: relative;
  min-height: 22rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: calc(var(--radius) + 0.35rem);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.28)),
    linear-gradient(180deg, var(--accent-soft), rgba(250, 245, 240, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero__sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 62% 48%, rgba(255, 255, 255, 0.75) 0 1.5px, transparent 3px),
    radial-gradient(circle at 28% 36%, rgba(184, 140, 148, 0.55) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.65) 0 1px, transparent 2px),
    radial-gradient(circle at 18% 78%, rgba(184, 140, 148, 0.4) 0 1.5px, transparent 3px);
  opacity: 0.9;
  animation: drift 14s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-1.5%, 1.5%, 0); }
}

.hero__constellation {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.25rem;
  height: 100%;
  align-content: space-between;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__caption {
  max-width: 22rem;
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-secondary);
  animation: rise 1.1s var(--ease) both;
}

.store-soon {
  display: grid;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.store-soon__label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.store-soon__row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.qr-placeholder {
  width: 4.5rem;
  height: 4.5rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(46, 41, 38, 0.12) 0 4px,
      transparent 4px 8px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(46, 41, 38, 0.12) 0 4px,
      transparent 4px 8px
    ),
    #fff;
  border: 1px dashed rgba(184, 140, 148, 0.55);
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-weight: 620;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0.4rem;
}

.store-soon p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* —— Sections —— */

.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section--surface {
  background: rgba(255, 255, 255, 0.45);
  border-block: 1px solid var(--line);
}

.section__intro {
  max-width: 38rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section__intro h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
}

.section__intro p {
  color: var(--text-secondary);
  font-size: 1.08rem;
}

.feature-list {
  display: grid;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 760px) {
  .feature-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.feature {
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.feature__icon {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  background: var(--accent-wash);
  color: var(--accent-deep);
}

.feature h3 {
  margin: 0 0 0.55rem;
  font-size: 1.25rem;
}

.feature p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.note {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.promise {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .promise {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
}

.promise h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
}

.promise p {
  color: var(--text-secondary);
}

.promise__aside {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #fff, rgba(230, 209, 214, 0.35));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.promise__aside strong {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 620;
}

/* —— Legal / support pages —— */

.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.1rem, 4vw, 3rem);
}

.page-hero p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 40rem;
}

.prose {
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.prose h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.35rem;
}

.prose ul {
  padding-left: 1.2rem;
  color: var(--text-secondary);
}

.prose li {
  margin-bottom: 0.45rem;
}

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

.prose strong {
  color: var(--text);
  font-weight: 650;
}

.contact-block {
  margin-top: 2rem;
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.contact-block a {
  font-weight: 650;
  text-decoration: none;
}

.contact-block a:hover {
  text-decoration: underline;
}

/* —— Footer —— */

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer p {
  margin: 0.35rem 0 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.footer-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 560;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__sky,
  .hero__caption,
  .btn {
    animation: none !important;
    transition: none !important;
  }
}
