/* magpie — production stylesheet.
   Brand: flat cards, 2px ink border, hard offset shadow in accent, pill everything. */

:root {
  --accent: #FF5C38;
  --accent-hover: #D9431F;
  --ink: #120D06;
  --ink-soft: #5A5245;
  --muted: #8A8273;
  --cream: #FFF3E9;
  --card: #FFFFFF;
  --offwhite: #FFFDF7;
  --peach: #F6D2BF;
  --peach-deep: #FFB48A;

  --display: "Space Grotesk", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: 48px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.accent { color: var(--accent); }

/* ---------- shared brand primitives ---------- */

.card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--accent);
}

.pill {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  border-radius: 30px;
  padding: 15px 28px;
  font-size: 15px;
}

.pill-ink {
  background: var(--ink);
  color: #fff;
  box-shadow: 4px 4px 0 var(--accent);
}
.pill-ink:hover { color: #fff; }

.pill-outline {
  background: var(--card);
  border: 2px solid var(--ink);
  color: var(--ink);
  padding: 13px 26px;
}
.pill-outline:hover { color: var(--ink); }

.badge {
  display: inline-block;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  border-radius: 20px;
  padding: 6px 16px;
  margin-bottom: 16px;
}
.badge-ink { background: var(--ink); color: #fff; }
.badge-accent { background: var(--accent); color: #fff; }

.section { padding: 80px var(--gutter); }
.section-narrow { max-width: 1080px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 {
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -.03em;
  line-height: 1.05;
}
.section-head p {
  font-size: 16px; line-height: 1.6; color: var(--ink-soft);
  margin: 18px auto 0; max-width: 560px;
}

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 16px var(--gutter);
  background: var(--accent);
}

.logo { display: flex; align-items: center; gap: 9px; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--ink);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.wordmark {
  font-family: var(--display); font-size: 21px; font-weight: 700;
  color: #fff; letter-spacing: -.03em;
}
.wordmark span { color: var(--ink); }

.nav-links {
  display: flex; gap: 26px; margin-left: auto;
  font-size: 14px; font-weight: 700;
}
.nav-links a { color: rgba(255, 255, 255, .92); }
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  background: var(--ink); color: #fff; border-radius: 24px;
  padding: 10px 20px; font-family: var(--display);
  font-size: 13.5px; font-weight: 700; flex: none;
}
.nav-cta:hover { color: #fff; }

/* Menu toggle is checkbox-driven so the nav needs no JS to work. */
.nav-toggle, .nav-toggle-label { display: none; }

/* ---------- hero ---------- */

.hero { padding: 36px var(--gutter) 40px; text-align: center; }

.hero h1 {
  font-size: clamp(44px, 9vw, 88px);
  letter-spacing: -.045em;
  line-height: .95;
}
.hero h1 u {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 6px;
  text-underline-offset: 9px;
}

.hero-lede {
  font-size: clamp(16px, 2.2vw, 19px); line-height: 1.55;
  color: var(--ink-soft); margin: 28px auto 0; max-width: 560px;
}

.store-row {
  display: flex; gap: 12px; margin-top: 32px;
  justify-content: center; align-items: center; flex-wrap: wrap;
}

.chips {
  display: flex; gap: 8px; flex-wrap: wrap;
  justify-content: center; margin-top: 18px;
}
.chip {
  background: var(--card); border: 2px solid var(--ink); color: var(--ink);
  border-radius: 20px; padding: 7px 15px;
  font-family: var(--display); font-size: 12.5px; font-weight: 700;
}

/* ---------- hero flow diagram ---------- */

.flow {
  display: grid;
  grid-template-columns:
    minmax(160px, 215px) minmax(22px, 42px) minmax(150px, 190px)
    minmax(22px, 42px) minmax(165px, 225px) minmax(22px, 42px) minmax(165px, 225px);
  grid-template-rows: auto auto auto;
  row-gap: 14px;
  align-items: center; justify-content: center;
  margin-top: 44px; text-align: left;
}

.flow-label,
.flow-caption {
  font-family: var(--display); font-size: 13.5px; font-weight: 700;
  color: var(--ink); text-align: center;
}
.flow-label { align-self: end; white-space: nowrap; }
.flow-caption { align-self: start; }

.saves { display: flex; flex-direction: column; gap: 12px; }
.save {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 2px solid var(--ink); border-radius: 14px;
  padding: 12px 14px; box-shadow: 4px 4px 0 var(--accent);
}
.save:nth-child(1) { transform: rotate(-2deg); }
.save:nth-child(2) { transform: rotate(1.5deg); }

.save-icon {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.ig { background: linear-gradient(135deg, #7A2BFF, #FF2D78, #FF9A3D); }
.tt { background: var(--ink); }

.save-name { font-family: var(--display); font-size: 13.5px; font-weight: 700; color: var(--ink); }
.save-sub { font-size: 11px; color: var(--muted); }

.connector-fan { grid-column: 2; grid-row: 2; align-self: stretch; display: flex; }
.connector-fan svg { width: 100%; height: 100%; display: block; overflow: visible; }

.connector-arrow { align-self: center; margin: 0 5px; }
/* Stand-in for the converging fan once the diagram stacks vertically. */
.connector-stack { display: none; }
.connector-arrow svg { width: 100%; height: 16px; display: block; overflow: visible; }

.dash {
  fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 8 8;
  animation: mag-dash 1.1s linear infinite;
}

.magpie-disc {
  position: relative; width: 160px; height: 160px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}
.bob { animation: mag-bob 3s ease-in-out infinite; }
.sparkle { position: absolute; animation: mag-sparkle 2.2s ease-in-out infinite; }
.sparkle-1 { top: 18px; right: 24px; color: var(--accent); font-size: 16px; }
.sparkle-2 { bottom: 28px; left: 20px; color: var(--offwhite); font-size: 12px; animation-delay: .7s; }
.sparkle-3 { top: 38px; left: 30px; color: var(--accent); font-size: 10px; animation-delay: 1.4s; }

.list-card { padding: 14px; }
.list-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.list-card-head h3 { font-size: 14px; white-space: nowrap; }
.list-count {
  margin-left: auto; background: var(--accent); color: #fff; border-radius: 12px;
  padding: 3px 10px; font-family: var(--display); font-size: 11px; font-weight: 700;
  white-space: nowrap;
}
.list-scene { display: block; width: 100%; height: auto; margin-bottom: 10px; }
.list-rows { display: flex; flex-direction: column; gap: 8px; }
.list-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--cream); border: 1.5px solid rgba(18, 13, 6, .15);
  border-radius: 10px; padding: 8px 10px;
}
.list-row-icon {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.list-row-name { font-family: var(--display); font-size: 12.5px; font-weight: 700; color: var(--ink); }
.list-row-meta { font-size: 10.5px; color: var(--muted); }

.payoff { padding: 10px; }
.payoff svg { display: block; width: 100%; height: auto; border-radius: 9px; }

@keyframes mag-dash { to { stroke-dashoffset: -16; } }
@keyframes mag-sparkle {
  0%, 100% { opacity: .35; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.15); }
}
@keyframes mag-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ---------- moments ---------- */

.moments-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.moment { padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.moment > svg { display: block; width: 100%; height: auto; border-radius: 9px; }
.moment-body { padding: 2px 8px 8px; }
.moment-body h3 { font-size: 18px; }
.moment-body p { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); margin: 6px 0 0; }

/* ---------- how it works (dark) ---------- */

.how { background: var(--ink); padding: 80px var(--gutter); margin-top: 48px; }
.how .section-head h2 { color: var(--offwhite); }

.step {
  display: grid; grid-template-columns: 1fr 1fr; gap: 52px;
  align-items: center; max-width: 920px; margin: 0 auto; padding: 36px 0;
}
/* .section-head is the first child, so odd/even here is inverted relative to
   the step number: nth-child(odd) == steps 2 and 4. */
.step:nth-child(odd) .step-shot { order: 2; }

.step-shot { justify-self: center; }
.phone {
  width: 238px; height: 486px; border-radius: 38px;
  background: #241C10; padding: 9px;
  border: 1px solid rgba(255, 253, 247, .14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}
.step:nth-child(even) .phone { transform: rotate(-2deg); }
.step:nth-child(odd) .phone { transform: rotate(2deg); }

.phone-screen {
  width: 100%; height: 100%; border-radius: 30px;
  background: repeating-linear-gradient(45deg, #241C10, #241C10 14px, #1B1409 14px, #1B1409 28px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.phone-screen img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 30px; display: block;
}
.phone-screen span {
  font-family: var(--mono); font-size: 10px;
  color: rgba(255, 253, 247, .4); text-align: center; line-height: 1.6;
}

.step-body h3 {
  font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -.02em;
  color: var(--offwhite); line-height: 1.1;
}
.step-body p {
  font-size: 15.5px; line-height: 1.6; color: rgba(255, 253, 247, .6);
  margin: 12px 0 0; max-width: 400px;
}
/* Quieter aside under a step's body copy. */
.step-body .step-note {
  font-size: 13.5px; color: rgba(255, 253, 247, .45);
  border-left: 2px solid rgba(255, 92, 56, .5);
  padding-left: 12px; margin-top: 14px;
}
.dots { display: flex; gap: 8px; margin-top: 20px; }
.dot { width: 34px; height: 6px; border-radius: 3px; background: rgba(255, 253, 247, .15); }
.dot.on { background: var(--accent); }

/* ---------- privacy ---------- */

.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.privacy-card { padding: 28px; box-shadow: 4px 4px 0 var(--accent); }
.privacy-card h3 { font-size: 20px; margin-bottom: 8px; }
.privacy-card p { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

/* ---------- about ---------- */

.about { padding: 64px var(--gutter); max-width: 820px; margin: 0 auto; text-align: center; }
.about h2 { font-size: clamp(26px, 4.4vw, 34px); letter-spacing: -.02em; line-height: 1.15; }
.about p { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); margin: 16px 0 0; }
.credit { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 18px; }

/* ---------- faq ---------- */

.faq {
  background: var(--card);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 80px var(--gutter);
}
.faq-inner { max-width: 760px; margin: 0 auto; }
.faq-items { display: flex; flex-direction: column; gap: 12px; }

.faq-item { background: var(--cream); border: 2px solid var(--ink); border-radius: 14px; }
.faq-q {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 18px 22px; font-family: var(--display);
  font-size: 16.5px; font-weight: 700; color: var(--ink);
}
.faq-q span { flex: 1; }
.faq-mark { font-size: 22px; color: var(--accent); flex: none; line-height: 1; }
.faq-a {
  font-size: 14px; line-height: 1.65; color: var(--ink-soft);
  margin: 0; padding: 0 22px 18px; max-width: 620px;
}
.faq-item[hidden], .faq-a[hidden] { display: none; }

/* ---------- support ---------- */

.support { padding: 80px var(--gutter); text-align: center; }
.support h2 { font-size: clamp(28px, 4.8vw, 38px); letter-spacing: -.02em; }
.support p {
  font-size: 15.5px; line-height: 1.6; color: var(--ink-soft);
  margin: 14px auto 0; max-width: 460px;
}
.support .pill-ink { margin-top: 24px; overflow-wrap: anywhere; }

/* ---------- privacy policy (dark) ---------- */

.policy { background: var(--ink); padding: 72px var(--gutter); }
.policy-inner { max-width: 720px; margin: 0 auto; }
.policy h2 { font-size: 30px; letter-spacing: -.02em; color: var(--offwhite); margin-bottom: 6px; }
.policy-date { font-family: var(--mono); font-size: 11px; color: rgba(255, 253, 247, .4); margin: 0 0 28px; }
.policy-blocks { display: flex; flex-direction: column; gap: 22px; }
.policy-blocks h3 { font-size: 16px; color: var(--accent); margin-bottom: 5px; }
.policy-blocks p { font-size: 14px; line-height: 1.65; color: rgba(255, 253, 247, .65); margin: 0; }

/* ---------- footer ---------- */

.footer {
  display: flex; align-items: center; gap: 24px;
  padding: 26px var(--gutter); background: var(--accent);
  font-size: 12.5px; color: rgba(255, 255, 255, .9); flex-wrap: wrap;
}
.footer a { color: rgba(255, 255, 255, .9); }
.footer a:hover { color: var(--ink); }
.footer .logo-mark { width: 26px; height: 26px; border-radius: 7px; }
.footer .wordmark { font-size: 15px; }
.copyright { margin-left: auto; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  :root { --gutter: 32px; }

  /* The 7-column flow can't shrink into a readable row — stack the four
     stages and swap the horizontal connectors for vertical ones. */
  .flow { grid-template-columns: minmax(0, 380px); justify-content: center; row-gap: 0; }
  .flow > * { grid-column: 1 !important; grid-row: auto !important; }
  .flow-label { align-self: auto; margin-bottom: 12px; white-space: normal; }
  .flow-caption { align-self: auto; margin-top: 12px; }
  .connector-fan { display: none; }
  .connector-stack { display: block; }
  /* Rotating a full-width SVG would paint a column-length bar across the
     cards, so shrink the box to roughly square first, then turn it. */
  .connector-arrow { width: 44px; margin: 18px auto; }
  .connector-arrow svg { height: 16px; transform: rotate(90deg); }
  .magpie-disc { margin: 0 auto; }
  .flow-stage-gap { height: 28px; }

  .moments-grid { grid-template-columns: repeat(2, 1fr); }

  .step { grid-template-columns: 1fr; gap: 28px; }
  .step .step-shot { order: 0 !important; }
  .phone { width: 208px; height: 426px; }
  .step-body { text-align: center; }
  .step-body p { margin-left: auto; margin-right: auto; }
  .dots { justify-content: center; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }

  .nav { gap: 12px; flex-wrap: wrap; }
  .nav-toggle-label {
    display: block; margin-left: auto; cursor: pointer;
    color: #fff; font-family: var(--display); font-weight: 700; font-size: 14px;
    border: 2px solid rgba(255, 255, 255, .6); border-radius: 20px; padding: 6px 14px;
  }
  .nav-links {
    display: none; order: 3; width: 100%; margin-left: 0;
    flex-direction: column; gap: 14px; padding: 6px 0 4px;
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-cta { padding: 8px 14px; font-size: 12.5px; }

  .section { padding: 56px var(--gutter); }
  .how { padding: 56px var(--gutter); margin-top: 32px; }
  .moments-grid { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
  .store-row .pill { width: 100%; text-align: center; }
  .copyright { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dash, .bob, .sparkle { animation: none !important; }
}


/* ---------- Android: no build yet, so this is a note, not a button ---------- */

.pill-soon {
  background: transparent;
  border: 2px dashed rgba(18, 13, 6, .3);
  color: var(--ink-soft);
  cursor: default;
  padding: 13px 26px;
}

/* ---------- Feature grid ---------- */

.extras { background: var(--card); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.extras-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.extra {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--accent);
  padding: 20px;
}
.extra-icon {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 12px;
}
.extra-icon svg {
  width: 20px; height: 20px;
  stroke: #fff; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.extra h3 { font-size: 17px; margin-bottom: 6px; }
.extra p { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

/* Seven verified features: centre the final card instead of leaving it
   stranded at the left edge of an otherwise empty row. */
.extras-grid > .extra:last-child { grid-column: 2; }

@media (max-width: 1080px) {
  .extras-grid { grid-template-columns: repeat(2, 1fr); }
  .extras-grid > .extra:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 18px) / 2);
  }
}
@media (max-width: 760px) {
  .extras-grid { grid-template-columns: 1fr; }
  .extras-grid > .extra:last-child {
    grid-column: 1;
    justify-self: stretch;
    width: 100%;
  }
}
