/* ==========================================================================
   Pinned Memories — Marketing Site
   Ivory / Gold / Black identity · no framework
   ========================================================================== */

:root {
  --ivory: #F1E8D4;
  --ivory-warm: #E7D9BC;
  --ivory-deep: #DCCBA4;
  --paper: #F7F1E3;
  --ink: #1A1611;
  --ink-soft: #4A3C1A;
  --ink-faded: #6d5c33;
  --gold: #A37D20;
  --gold-bright: #C9962E;
  --gold-light: #E8C063;
  --night: #191613;
  --night-soft: #241f18;
  --stamp-red: #B3402E;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-soft: 0 18px 50px -18px rgba(26, 22, 17, 0.25);
  --shadow-card: 0 10px 30px -12px rgba(26, 22, 17, 0.18);
  --font-display: "Playfair Display", "Georgia", serif;
  --font-ui: "Inter", -apple-system, "Helvetica Neue", sans-serif;
  --max-w: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-ui);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -5%, rgba(232, 192, 99, 0.28), transparent 60%),
    linear-gradient(180deg, var(--ivory) 0%, var(--ivory-warm) 100%);
  background-attachment: fixed;
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

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

::selection { background: var(--gold-light); color: var(--ink); }

.shell { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; }

h1 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); font-weight: 700; letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; font-weight: 600; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-soft); max-width: 38em; }

.gold-italic { font-style: italic; color: var(--gold); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(241, 232, 212, 0.82);
  border-bottom: 1px solid rgba(163, 125, 32, 0.18);
}

.site-header .bar {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand { display: inline-flex; align-items: center; }
.brand img { height: 42px; width: auto; border-radius: 10px; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); }

.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(163, 125, 32, 0.4);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.lang-switch a {
  padding: 5px 13px;
  color: var(--ink-soft);
}
.lang-switch a.active {
  background: var(--gold);
  color: var(--ivory);
}
.lang-switch a:not(.active):hover { background: rgba(163, 125, 32, 0.12); }

@media (max-width: 720px) {
  .site-nav .hide-mobile { display: none; }
  .brand img { height: 34px; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 100px);
}

.hero .shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.hero-copy .lede { margin: 22px 0 32px; }

.hero-stamp {
  position: absolute;
  top: clamp(20px, 4vw, 60px);
  right: clamp(-40px, 2vw, 80px);
  width: clamp(130px, 16vw, 200px);
  opacity: 0.9;
  transform: rotate(11deg);
  pointer-events: none;
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pill {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(163, 125, 32, 0.45);
  color: var(--ink-soft);
  background: rgba(247, 241, 227, 0.6);
}

/* App Store button */
.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--ivory);
  border-radius: 14px;
  padding: 12px 22px 12px 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-card);
}
.appstore-btn:hover {
  color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -12px rgba(26, 22, 17, 0.4);
}
.appstore-btn svg { width: 26px; height: 26px; flex: none; }
.appstore-btn .lines { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.appstore-btn .small { font-size: 0.68rem; letter-spacing: 0.02em; opacity: 0.85; }
.appstore-btn .big { font-size: 1.05rem; font-weight: 600; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 12px 20px;
  border-radius: 14px;
  border: 1.5px solid rgba(163, 125, 32, 0.5);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: rgba(232, 192, 99, 0.15); }

/* iPhone frame */
.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative;
  /* Breite folgt auch der Fensterhöhe, damit Handy und Text gemeinsam im
     ersten Blick stehen (Screenshot-Seitenverhältnis 632:1360). */
  width: min(300px, 78vw, calc((100svh - 190px) * 0.465));
  min-width: 220px;
  border-radius: 48px;
  background: var(--night);
  padding: 11px;
  box-shadow:
    0 40px 80px -30px rgba(26, 22, 17, 0.45),
    0 0 0 1px rgba(232, 192, 99, 0.35),
    inset 0 0 0 2px rgba(232, 192, 99, 0.2);
}
/* Keine eigene Dynamic Island: die Screenshots bringen ihre schon mit. */
.phone img { border-radius: 38px; width: 100%; }

.phone-wrap .float-stamp {
  position: absolute;
  bottom: -18px;
  left: -26px;
  width: 118px;
  transform: rotate(-13deg);
  filter: drop-shadow(0 8px 16px rgba(26, 22, 17, 0.25));
}

@media (max-width: 880px) {
  .hero .shell { grid-template-columns: 1fr; }
  .hero-stamp { display: none; }
  .phone-wrap { order: 2; margin-top: 8px; }
  .phone-wrap .float-stamp { left: 4px; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: clamp(64px, 9vw, 120px) 0; }

.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head .lede { margin-top: 16px; }

.divider-line {
  height: 1px;
  max-width: var(--max-w);
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(163, 125, 32, 0.35), transparent);
}

/* Split layout (text + phone) */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}
.split.flip .split-media { order: -1; }
@media (max-width: 880px) {
  .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip .split-media { order: 0; }
}

.split-media { display: flex; justify-content: center; }
.split-media .phone { width: min(280px, 74vw); }

/* Stamp bullet list */
.stamp-list { list-style: none; margin-top: 26px; display: grid; gap: 16px; }
.stamp-list li {
  position: relative;
  padding-left: 38px;
  color: var(--ink-soft);
}
.stamp-list li strong { color: var(--ink); font-weight: 600; }
.stamp-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 20px; height: 20px;
  border: 1.6px solid var(--gold);
  border-radius: 50%;
  transform: rotate(-12deg);
  box-shadow: inset 0 0 0 2.5px transparent, inset 0 0 0 4px rgba(163, 125, 32, 0);
}
.stamp-list li::after {
  content: "";
  position: absolute;
  left: 5px; top: 8px;
  width: 10px; height: 10px;
  border: 1.2px dashed var(--stamp-red);
  border-radius: 50%;
  transform: rotate(20deg);
  opacity: 0.85;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.step-card {
  counter-increment: step;
  background: var(--paper);
  border: 1px solid rgba(163, 125, 32, 0.22);
  border-radius: var(--radius-lg);
  padding: 34px 28px 30px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.step-card::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.6rem;
  color: var(--gold-light);
  line-height: 1;
  display: block;
  margin-bottom: 14px;
}
.step-card h3 { margin-bottom: 10px; }
.step-card p { color: var(--ink-soft); font-size: 0.97rem; }
.step-card .step-icon { position: absolute; top: 30px; right: 26px; width: 34px; height: 34px; color: var(--gold); }

/* Stamp album */
.album-band {
  background:
    radial-gradient(700px 300px at 15% 0%, rgba(232, 192, 99, 0.35), transparent 65%),
    linear-gradient(180deg, var(--paper), var(--ivory-warm));
  border-top: 1px solid rgba(163, 125, 32, 0.2);
  border-bottom: 1px solid rgba(163, 125, 32, 0.2);
}

.stamp-shelf {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 3vw, 34px);
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
}
@media (max-width: 700px) { .stamp-shelf { grid-template-columns: repeat(2, 1fr); } }

.stamp-shelf .stamp { width: 100%; height: auto; transition: transform 0.35s ease; }
.stamp-shelf .stamp:hover { transform: rotate(0deg) scale(1.06) !important; }

.album-progress {
  margin: clamp(36px, 5vw, 56px) auto 0;
  max-width: 460px;
  text-align: center;
}
.album-progress .count {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--ink);
}
.album-progress .count em { font-style: italic; color: var(--gold); }
.progress-track {
  margin-top: 14px;
  height: 8px;
  border-radius: 999px;
  background: rgba(163, 125, 32, 0.18);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.in-view .progress-fill { width: 68%; }
.album-progress .hint { margin-top: 12px; font-size: 0.88rem; color: var(--ink-faded); }

/* Widget mock */
.widget-mock {
  background: var(--paper);
  border: 1px solid rgba(163, 125, 32, 0.28);
  border-radius: 22px;
  padding: 18px 20px;
  max-width: 320px;
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
  transform: rotate(-1.5deg);
}
.widget-mock .thumb {
  width: 56px; height: 56px;
  border-radius: 14px;
  flex: none;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: flex; align-items: center; justify-content: center;
  color: var(--ivory);
}
.widget-mock .thumb svg { width: 28px; height: 28px; }
.widget-mock .w-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.widget-mock .w-body { font-size: 0.95rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.widget-mock .w-sub { font-size: 0.8rem; color: var(--ink-faded); }

/* --------------------------------------------------------------------------
   Dark sections (Zeitreise, Privacy)
   -------------------------------------------------------------------------- */

.section-dark {
  background:
    radial-gradient(900px 420px at 80% 0%, rgba(201, 150, 46, 0.16), transparent 60%),
    var(--night);
  color: #EDE4CF;
}
.section-dark h2, .section-dark h3 { color: var(--ivory); }
.section-dark .lede { color: rgba(237, 228, 207, 0.75); }
.section-dark .eyebrow { color: var(--gold-light); }
.section-dark .eyebrow::before { background: linear-gradient(90deg, transparent, var(--gold-light)); }
.section-dark .stamp-list li { color: rgba(237, 228, 207, 0.78); }
.section-dark .stamp-list li strong { color: var(--ivory); }
.section-dark .stamp-list li::before { border-color: var(--gold-light); }

/* Timeline (Zeitreise) */
.year-strip {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.year-strip .year {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(237, 228, 207, 0.45);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.4s ease, border-color 0.4s ease;
}
.in-view .year-strip .year { color: var(--gold-light); border-color: rgba(232, 192, 99, 0.35); }
.in-view .year-strip .year:nth-child(2) { transition-delay: 0.15s; }
.in-view .year-strip .year:nth-child(3) { transition-delay: 0.3s; }
.in-view .year-strip .year:nth-child(4) { transition-delay: 0.45s; }
.in-view .year-strip .year:nth-child(5) { transition-delay: 0.6s; }
.in-view .year-strip .year:nth-child(6) { transition-delay: 0.75s; }
.in-view .year-strip .year:nth-child(7) { transition-delay: 0.9s; }
.year-strip .dotline {
  flex: 1;
  min-width: 12px;
  height: 1px;
  background: linear-gradient(90deg, rgba(232, 192, 99, 0.4), rgba(232, 192, 99, 0.1));
}

.pro-note {
  margin-top: 26px;
  font-size: 0.85rem;
  color: rgba(237, 228, 207, 0.55);
}
.pro-note .tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--night);
  background: var(--gold-light);
  border-radius: 6px;
  padding: 2px 8px;
  margin-right: 8px;
  vertical-align: 1px;
}

/* Friends score card */
.score-card {
  background: rgba(247, 241, 227, 0.06);
  border: 1px solid rgba(232, 192, 99, 0.25);
  border-radius: var(--radius-lg);
  padding: 30px 34px;
  text-align: center;
  max-width: 360px;
}
.score-card .vs {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  color: var(--ivory);
}
.score-card .vs em { font-style: normal; color: var(--gold-light); }
.score-card .names { display: flex; justify-content: space-between; font-size: 0.85rem; color: rgba(237, 228, 207, 0.6); margin-top: 4px; padding: 0 12px; }

/* Privacy badges */
.privacy-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: clamp(36px, 5vw, 56px);
}
@media (max-width: 820px) { .privacy-badges { grid-template-columns: repeat(2, 1fr); } }

.pbadge {
  border: 1px solid rgba(232, 192, 99, 0.3);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
  background: rgba(247, 241, 227, 0.04);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.pbadge:hover { border-color: var(--gold-light); background: rgba(232, 192, 99, 0.08); transform: translateY(-4px); }
.pbadge svg { width: 32px; height: 32px; color: var(--gold-light); margin: 0 auto 12px; }
.pbadge .t { font-weight: 600; color: var(--ivory); font-size: 0.98rem; }
.pbadge .s { font-size: 0.82rem; color: rgba(237, 228, 207, 0.6); margin-top: 4px; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }

details.faq-item {
  background: var(--paper);
  border: 1px solid rgba(163, 125, 32, 0.22);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}
details.faq-item[open] { box-shadow: var(--shadow-card); }
details.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform 0.25s ease;
  flex: none;
}
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item .faq-body { padding: 0 24px 22px; color: var(--ink-soft); font-size: 0.98rem; }

/* --------------------------------------------------------------------------
   Closing CTA
   -------------------------------------------------------------------------- */

.cta-final { text-align: center; }
.cta-final .hero-actions { justify-content: center; margin-top: 34px; }
.cta-final .cta-stamp { width: 110px; margin: 0 auto 26px; transform: rotate(-9deg); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--night);
  color: rgba(237, 228, 207, 0.7);
  padding: clamp(48px, 7vw, 80px) 0 40px;
  font-size: 0.9rem;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }

.site-footer h4 {
  font-family: var(--font-display);
  color: var(--ivory);
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.site-footer a { color: rgba(237, 228, 207, 0.7); }
.site-footer a:hover { color: var(--gold-light); }
.site-footer .brandline img { height: 40px; width: auto; border-radius: 9px; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }

.legal-langs { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.legal-langs a { font-size: 0.84rem; }

.footer-base {
  border-top: 1px solid rgba(232, 192, 99, 0.18);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(237, 228, 207, 0.45);
}

/* --------------------------------------------------------------------------
   Legal / Support pages
   -------------------------------------------------------------------------- */

.page-hero, .legal-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(28px, 4vw, 48px); }
.page-hero h1, .legal-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-hero .lede, .legal-hero .lede { margin-top: 14px; }

.legal-card, .panel {
  background: var(--paper);
  border: 1px solid rgba(163, 125, 32, 0.22);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.legal-card {
  max-width: 820px;
  padding: clamp(30px, 5vw, 56px);
  margin: 0 auto clamp(64px, 9vw, 110px);
}
.legal-card h2 {
  font-size: 1.5rem;
  margin: 34px 0 12px;
}
.legal-card h2:first-child { margin-top: 0; }
.legal-card p, .legal-card li { color: var(--ink-soft); font-size: 0.99rem; }
.legal-card ul { padding-left: 22px; margin: 10px 0 14px; display: grid; gap: 8px; }
.legal-card a.inline-link { font-weight: 600; }

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: clamp(64px, 9vw, 110px);
}
@media (max-width: 720px) { .panel-grid { grid-template-columns: 1fr; } }
.panel { padding: 30px 28px; }
.panel h2 { font-size: 1.35rem; margin-bottom: 10px; }
.panel p { color: var(--ink-soft); font-size: 0.97rem; }
.panel .inline-link { display: inline-block; margin-top: 12px; font-weight: 600; }

/* --------------------------------------------------------------------------
   Scroll reveal & stamp animation
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

.stamp-in {
  opacity: 0;
  transform: scale(1.5) rotate(4deg);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stamp-in.in-view { opacity: 1; transform: scale(1) rotate(var(--tilt, -6deg)); }

/* Slow spin for hero deco stamp */
@keyframes slow-spin { from { transform: rotate(11deg); } to { transform: rotate(371deg); } }
.hero-stamp { animation: slow-spin 90s linear infinite; }
