/* PolyTake, sculpted editorial minimalism.
   Cool paper, graphite typography and restrained peach accents mirror the app. */

:root {
  --paper: #ECECEA;
  --paper-2: #E2E2DF;
  --ink: #3E3E3C;
  --ink-2: #2F2F2E;
  --signal: #D49376;
  --muted: #777773;
  --hair: rgba(10, 10, 11, .14);
  --hair-soft: rgba(10, 10, 11, .08);
  --surface: #F1F1EE;
  --raised-light: rgba(255, 255, 255, .92);
  --raised-shadow: rgba(76, 76, 73, .24);

  --measure: 1140px;
  --gut: clamp(20px, 5vw, 56px);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.wrap {
  width: min(var(--measure), 100% - var(--gut) * 2);
  margin-inline: auto;
}

/* Bildschirmleser-Sprungziel */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; z-index: 99;
}
.skip:focus { left: 12px; top: 12px; }

/* ── Typografie ─────────────────────────────────────────────── */

.eyebrow {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--signal);
}

h1 {
  font-size: clamp(3.1rem, 11vw, 7.5rem);
  line-height: .89;
  letter-spacing: -.045em;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 680;
}

h3 {
  font-size: 1.0625rem;
  letter-spacing: -.015em;
  font-weight: 640;
}

.lead {
  font-size: clamp(1.0625rem, 1.9vw, 1.3125rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 46ch;
}

.rule {
  height: 2px;
  width: 40px;
  background: var(--signal);
}

/* Abschnittsmarke: Haarlinie plus Kapitälchen-Label */
.section-rule {
  display: flex;
  align-items: baseline;
  gap: 18px;
  border-top: 1px solid var(--hair);
  padding-top: 14px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-rule .label {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Kopfzeile ──────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 0;
  transition: box-shadow .3s ease;
}
.nav.stuck { box-shadow: 0 10px 22px -20px rgba(48, 48, 46, .62); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 680;
  font-size: 1.0625rem;
  letter-spacing: -.03em;
}
.brand-mark {
  width: 29px;
  height: 35px;
  flex: none;
  object-fit: contain;
  filter: drop-shadow(1px 2px 2px rgba(40, 40, 38, .18));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 30px);
  font-size: .9375rem;
}
.nav-links a { text-decoration: none; font-weight: 520; }
.nav-links a:hover { color: var(--signal); }

/* ── Hero ───────────────────────────────────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(620px, 82svh, 820px);
  overflow: hidden;
  background: #8e8275;
}

.hero-media,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -2;
  background: #8e8275 url("assets/hero-polytake-poster.jpg") center / cover no-repeat;
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 8, 9, .84) 0%, rgba(8, 8, 9, .64) 38%, rgba(8, 8, 9, .18) 76%, rgba(8, 8, 9, .08) 100%),
    linear-gradient(0deg, rgba(8, 8, 9, .44) 0%, transparent 48%);
}

.hero-inner {
  width: min(var(--measure), 100% - var(--gut) * 2);
  padding-block: clamp(92px, 14vw, 150px) clamp(70px, 9vw, 104px);
  color: var(--paper);
}

.hero .eyebrow { margin-bottom: 22px; }
.hero h1 { margin-bottom: 26px; max-width: 9.5ch; }
.hero .rule { margin-bottom: 26px; }
.hero .lead {
  margin-bottom: 36px;
  color: rgba(242, 239, 233, .82);
  text-wrap: balance;
}

.hero .btn {
  background: var(--paper);
  color: var(--ink);
}
.hero .btn:hover { background: var(--signal); }
.hero .trust { color: rgba(242, 239, 233, .78); }

.hero-showcase {
  padding-block: clamp(58px, 8vw, 96px) clamp(26px, 4vw, 48px);
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 26px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-weight: 620;
  font-size: .9375rem;
  letter-spacing: -.01em;
  border-radius: 999px;
  box-shadow:
    -4px -4px 12px var(--raised-light),
    5px 7px 14px rgba(45, 45, 43, .28);
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.btn:hover {
  background: #F5F5F2;
  box-shadow:
    -5px -5px 14px rgba(255, 255, 255, .96),
    6px 9px 17px rgba(45, 45, 43, .32);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(1px);
  box-shadow:
    inset 3px 3px 7px rgba(76, 76, 73, .19),
    inset -3px -3px 7px rgba(255, 255, 255, .92);
}
.btn svg { width: 15px; height: 15px; }

.trust {
  font-size: .875rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust svg { width: 16px; height: 16px; color: var(--signal); flex: none; }

/* ── App-Store-Serie ────────────────────────────────────────── */

.store-shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2.4vw, 28px);
  align-items: end;
  margin-top: 0;
}

.store-shot {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: clamp(16px, 2vw, 24px);
  background: #ECECEA;
  box-shadow:
    -7px -7px 18px rgba(255,255,255,.84),
    9px 12px 24px -8px rgba(66,66,63,.30);
}
.store-shot-raised { transform: translateY(clamp(-34px, -4vw, -14px)); }

.store-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 1320 / 2868;
  object-fit: contain;
  background: #ECECEA;
}

.store-shot figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--mono);
  font-size: .625rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  pointer-events: none;
}

/* ── Schritte ───────────────────────────────────────────────── */

.section { padding: clamp(64px, 10vw, 130px) 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
}

.step { border-top: 1px solid var(--hair); padding-top: 20px; }
.step .num {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .1em;
  color: var(--signal);
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .9375rem; }

/* ── Szenarien ──────────────────────────────────────────────── */
/* Eine asymmetrische Magazin-Komposition statt drei gleichgewichteter Karten. */

#made-for .section-rule { margin-bottom: 30px; }

.scenario-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: clamp(28px, 8vw, 120px);
  align-items: end;
  margin-bottom: clamp(52px, 8vw, 92px);
}

.scenario-heading h2 {
  font-size: clamp(2.8rem, 7.2vw, 5.8rem);
  line-height: .9;
  letter-spacing: -.055em;
}

.scenario-heading p {
  color: var(--muted);
  max-width: 34ch;
  padding-bottom: 6px;
}

.scenarios {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 58px);
  align-items: start;
}

.scenario {
  position: relative;
  min-width: 0;
}

.scenario-birthday {
  grid-column: 1 / span 5;
  grid-row: 1 / span 2;
  margin-top: clamp(28px, 5vw, 70px);
}

.scenario-music,
.scenario-travel {
  grid-column: 6 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(210px, .55fr);
  gap: clamp(22px, 3.4vw, 46px);
  align-items: center;
  border-top: 1px solid var(--hair);
  padding-top: 22px;
}

.scenario-travel {
  grid-template-columns: minmax(210px, .55fr) minmax(0, 1.45fr);
}

.scenario-travel .shot { order: 2; }
.scenario-travel .scenario-copy { order: 1; }

.scenario .shot {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 16 / 10;
  box-shadow:
    -6px -6px 15px rgba(255,255,255,.78),
    8px 10px 20px -8px rgba(66,66,63,.28);
}

.scenario-birthday .shot {
  aspect-ratio: 4 / 5;
  margin-bottom: 22px;
}

.scenario .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .8s ease;
}

.scenario:hover .shot img {
  transform: scale(1.035);
  filter: saturate(1.05) contrast(1.02);
}

.scenario-number {
  position: absolute;
  z-index: 2;
  top: -34px;
  right: -4px;
  font-family: var(--sans);
  font-size: clamp(4.5rem, 10vw, 8.5rem);
  line-height: 1;
  letter-spacing: -.08em;
  font-weight: 700;
  color: var(--ink);
  opacity: .07;
  pointer-events: none;
}

.scenario-music .scenario-number,
.scenario-travel .scenario-number {
  top: -18px;
  right: 0;
  font-size: clamp(4rem, 8vw, 7rem);
}

.scenario-copy {
  position: relative;
  z-index: 3;
}

.scenario .tag {
  font-family: var(--mono);
  font-size: .625rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 9px;
}
.scenario h3 {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.05;
  letter-spacing: -.035em;
  margin-bottom: 12px;
}
.scenario p { color: var(--muted); font-size: .9375rem; }

/* ── Feature-Bänder ─────────────────────────────────────────── */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding: clamp(48px, 7vw, 88px) 0;
  border-top: 1px solid var(--hair);
}

.feature-icon {
  width: 26px;
  height: 26px;
  color: var(--signal);
  margin-bottom: 22px;
}
.feature h2 { margin-bottom: 18px; }
.feature p { color: var(--muted); max-width: 40ch; }

.feature-media {
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 3 / 2;
  box-shadow:
    -6px -6px 15px rgba(255,255,255,.78),
    8px 10px 20px -8px rgba(66,66,63,.28);
}
.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.018) translateY(0);
  animation: creative-drift 6s ease-in-out infinite alternate;
}

.feature.flip .feature-media img { animation-delay: -2.5s; }

@keyframes creative-drift {
  from { transform: scale(1.018) translateY(0); }
  to { transform: scale(1.035) translateY(-4px); }
}

.feature.flip .feature-copy { order: 2; }
.feature.flip .feature-media { order: 1; }

/* ── Preise ─────────────────────────────────────────────────── */

.price-table {
  padding: 6px 24px;
  border-radius: 26px;
  background: var(--surface);
  box-shadow:
    -6px -6px 16px rgba(255,255,255,.82),
    8px 10px 20px -8px rgba(66,66,63,.28);
}

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
  gap: clamp(14px, 3vw, 40px);
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--hair-soft);
}
.price-row:last-child { border-bottom: 0; }

.price-row .name {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 640;
  font-size: 1.0625rem;
  letter-spacing: -.015em;
}
.price-row .name svg { width: 19px; height: 19px; color: var(--muted); flex: none; }
.price-row .detail { color: var(--muted); font-size: .9375rem; }
.price-row .amount {
  font-size: 1.25rem;
  font-weight: 680;
  letter-spacing: -.025em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Nur die Host-Zeile traegt Farbe - sie ist die einzige Kaufentscheidung. */
.price-row.accent .name svg { color: var(--signal); }
.price-row.accent .amount { color: var(--signal); }

.price-note {
  margin-top: 26px;
  font-size: .875rem;
  color: var(--muted);
  max-width: 52ch;
}

/* ── Fußzeile ───────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--hair);
  padding: 40px 0 56px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 24px;
  font-size: .875rem;
  flex-wrap: wrap;
}
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.copyright { color: var(--muted); font-size: .8125rem; }

/* ── Rechtstexte ────────────────────────────────────────────── */

.legal { padding: clamp(48px, 8vw, 96px) 0; max-width: 68ch; }
.legal h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-bottom: 28px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 10px; letter-spacing: -.02em; }
.legal p { color: var(--muted); margin-bottom: 14px; }
.legal a { color: var(--signal); }

/* ── Einblenden ─────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .65s cubic-bezier(.2, .7, .3, 1),
              transform .65s cubic-bezier(.2, .7, .3, 1);
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Schmale Viewports ──────────────────────────────────────── */

@media (max-width: 860px) {
  .feature,
  .steps { grid-template-columns: 1fr; }
  .scenario-heading { grid-template-columns: 1fr; gap: 24px; }
  .scenarios { grid-template-columns: 1fr; gap: 56px; }
  .scenario-birthday,
  .scenario-music,
  .scenario-travel {
    grid-column: 1;
    grid-row: auto;
    margin-top: 0;
  }
  .scenario-birthday {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
    gap: 30px;
    align-items: end;
  }
  .scenario-birthday .shot { aspect-ratio: 4 / 5; margin-bottom: 0; }
  .feature.flip .feature-copy,
  .feature.flip .feature-media { order: unset; }
  .feature-media { aspect-ratio: 3 / 2; }
  .price-row {
    grid-template-columns: 1fr auto;
  }
  .price-row .detail { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero {
    min-height: 700px;
  }
  .hero-media video {
    object-position: 59% center;
  }
  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(8, 8, 9, .72), rgba(8, 8, 9, .34)),
      linear-gradient(0deg, rgba(8, 8, 9, .78) 0%, rgba(8, 8, 9, .18) 72%);
  }
  .hero-inner {
    padding-block: 110px 64px;
  }
  .hero h1 {
    font-size: clamp(3.35rem, 18vw, 5.4rem);
  }
  .hero .lead { max-width: 31ch; }
  .hero-showcase { padding-top: 42px; }
  .store-shots {
    grid-template-columns: repeat(3, minmax(235px, 76vw));
    width: calc(100vw - var(--gut));
    margin-right: calc(50% - 50vw);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    padding: 12px var(--gut) 34px 0;
  }
  .store-shots::-webkit-scrollbar { display: none; }
  .store-shot { scroll-snap-align: start; }
  .store-shot-raised { transform: none; }
  .scenario-heading h2 { font-size: clamp(2.65rem, 14vw, 4rem); }
  .scenario-birthday,
  .scenario-music,
  .scenario-travel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .scenario-birthday .shot,
  .scenario-music .shot,
  .scenario-travel .shot {
    order: 1;
    aspect-ratio: 16 / 11;
    margin: 0;
  }
  .scenario-copy,
  .scenario-travel .scenario-copy { order: 2; }
  .scenario-number { top: -26px; right: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media video { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .feature-media img { animation: none; transform: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
