/* SHHH — marketing + support (App Store URLs) */
:root {
  --ink: #0c0c0c;
  --paper: #f2efe8;
  --chalk: #e8e4dc;
  --mute: #8a857c;
  --red: rgb(230, 0, 0); /* QuietButton Color(red: 0.9, green: 0, blue: 0) */
  --red-deep: #b30000;
  --ring: rgba(255, 255, 255, 0.85); /* Color.primary.opacity(0.85) on dark */
  /* Same as AppFont / QuietButton — Chalkboard SE on Apple; Comic Sans MS elsewhere */
  --font-display: "Chalkboard SE", "ChalkboardSE-Regular", "Comic Sans MS", cursive;
  --font-body: "Chalkboard SE", "ChalkboardSE-Regular", "Comic Sans MS", cursive;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

/* Atmosphere: chalk-dust grain on flat ink */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--ink);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  max-width: 72rem;
  width: 100%;
  margin: 0 auto;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--paper);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--mute);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--paper);
}

/* —— Marketing hero —— */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem 4rem;
  max-width: 40rem;
  margin: 0 auto;
  width: 100%;
}

.brand-hero {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 18vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  margin: 0 0 1.75rem;
  color: var(--paper);
  text-shadow:
    -2px -2px 0 var(--ink),
    2px -2px 0 var(--ink),
    -2px 2px 0 var(--ink),
    2px 2px 0 var(--ink),
    0 0 0 3px var(--ink);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.headline {
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 0.85rem;
  color: var(--chalk);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.lede {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--mute);
  margin: 0 0 2.25rem;
  max-width: 38rem;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.store-link {
  margin-top: 1.5rem;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.store-link a {
  color: var(--chalk);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* QuietButton large — diameter 168, outlined Chalkboard “SHHH”, selection ring */
.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 168px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

.cta::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 3px solid var(--ring);
  pointer-events: none;
}

.cta-label {
  display: block;
  transform: translateY(-5px);
  /* OutlinedText: white fill, black outline via 8 offsets */
  text-shadow:
    1.232px 0 0 #000,
    -1.232px 0 0 #000,
    0 1.232px 0 #000,
    0 -1.232px 0 #000,
    0.924px 0.924px 0 #000,
    -0.924px 0.924px 0 #000,
    0.924px -0.924px 0 #000,
    -0.924px -0.924px 0 #000;
}

.cta:hover {
  transform: scale(1.03);
}

.cta:active {
  transform: scale(0.98);
}

.foot {
  padding: 1.25rem 1.5rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--mute);
}

.foot a {
  color: var(--chalk);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— Support —— */
.support {
  flex: 1;
  max-width: 36rem;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.support h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 10vw, 3.75rem);
  letter-spacing: 0.04em;
  margin: 0 0 0.75rem;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.support .intro {
  color: var(--mute);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 0 2.5rem;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.support section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px dashed rgba(232, 228, 220, 0.18);
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.support section:nth-of-type(1) { animation-delay: 0.15s; }
.support section:nth-of-type(2) { animation-delay: 0.22s; }
.support section:nth-of-type(3) { animation-delay: 0.29s; }

.support section:last-of-type {
  border-bottom: none;
}

.support h2 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 0.65rem;
}

.support p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--chalk);
}

.support a.mail {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

@media (prefers-reduced-motion: reduce) {
  .brand-hero,
  .headline,
  .lede,
  .cta,
  .support h1,
  .support .intro,
  .support section {
    animation: none;
  }
}
