/* Neuheiten-Alert landing page.
   Palette: cool neutrals, one accent (cobalt, picks up the blue of the shop's product photos).
   Shapes: --r-sm for everything you click or type into, --r-lg for cards and images. */

:root {
  --night: #0d0e10;
  --night-2: #17181b;
  --night-line: #26282c;
  --on-night: #f2f3f5;
  --on-night-2: #9a9ea6;

  --bg: #f3f4f6;
  --card: #ffffff;
  --ink: #15171a;
  --ink-2: #4a4f57;
  --ink-3: #6b7079;
  --line: #e1e3e7;
  --field: #ffffff;
  --field-line: #cdd1d7;
  --tile-on: #15171a;
  --tile-on-ink: #ffffff;

  --accent: #3f63d8;
  --accent-ink: #ffffff;
  --error: #a12a2a;
  --error-bg: #fbe9e9;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --r-sm: 10px;
  --r-lg: 16px;
  --wrap: 1080px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0e10;
    --card: #16171a;
    --ink: #eef0f3;
    --ink-2: #b6bac2;
    --ink-3: #8f949d;
    --line: #26282c;
    --field: #0f1012;
    --field-line: #383b42;
    --tile-on: #eef0f3;
    --tile-on-ink: #0d0e10;
    --accent: #8099f0;
    --accent-ink: #0d0e10;
    --error: #ffa3a3;
    --error-bg: #3a1919;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, legend, summary, strong { color: var(--ink); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- hero (always dark) */

.hero { background: var(--night); color: var(--on-night); padding-bottom: 56px; overflow: hidden; border-bottom: 1px solid var(--night-line); }
.hero h1, .hero h2 { color: var(--on-night); }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: var(--wrap); margin: 0 auto; padding: 18px 20px; border-bottom: 1px solid var(--night-line);
}
.logo { display: flex; align-items: center; text-decoration: none; font-family: var(--serif); font-size: 18px; color: var(--on-night); }
.logo img { height: 28px; width: auto; filter: invert(1) brightness(1.6); }
.logo img:not([hidden]) + span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.top-link { font-size: 14px; color: var(--on-night-2); text-decoration: none; transition: color .2s var(--ease); }
.top-link:hover { color: var(--on-night); }

.hero-copy { max-width: var(--wrap); margin: 0 auto; padding: 56px 20px 0; }
@media (min-width: 900px) { .hero-copy { padding-top: 80px; } }
.kicker { margin: 0 0 16px; font-size: 14px; color: var(--on-night-2); }
h1 {
  margin: 0 0 20px; max-width: 13em;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 9.5vw, 64px); line-height: 1.06; letter-spacing: -.02em;
}
.lede { margin: 0 0 32px; max-width: 30em; font-size: 17px; color: var(--on-night-2); }

.cta {
  display: inline-flex; align-items: center; height: 52px; padding: 0 26px;
  border-radius: var(--r-sm); background: var(--on-night); color: var(--night);
  font: 600 15px var(--sans); text-decoration: none;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.cta:hover { background: #ffffff; }
.cta:active { transform: scale(.98); }

/* latest arrivals */
.latest { max-width: var(--wrap); margin: 56px auto 0; }
.latest-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 0 20px 16px; }
.latest h2 { margin: 0; font: 400 22px/1.2 var(--serif); }
.latest-head a { font-size: 14px; color: var(--on-night-2); text-decoration: none; white-space: nowrap; transition: color .2s var(--ease); }
.latest-head a:hover { color: var(--on-night); }

.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 64%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; padding: 0 20px 4px;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
@media (min-width: 560px) { .rail { grid-auto-columns: 40%; } }
@media (min-width: 900px) {
  .rail { grid-auto-columns: calc((100% - 40px - 36px) / 4); }
  .rail { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
}

.watch {
  scroll-snap-align: start; display: flex; flex-direction: column;
  background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r-lg); overflow: hidden;
  text-decoration: none; color: var(--on-night);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
a.watch:hover { border-color: #43464d; transform: translateY(-2px); }
.watch-img { aspect-ratio: 4 / 3; background: #1d1f24; overflow: hidden; }
.watch-img img { width: 100%; height: 100%; object-fit: cover; }
.watch-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.watch-brand { font-size: 12px; color: var(--on-night-2); }
.watch-title {
  font: 400 15px/1.3 var(--serif); color: var(--on-night);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.watch-price { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* skeleton cards while the latest watches load */
.skeleton .watch-body span { display: block; height: 10px; border-radius: 5px; background: #24262b; }
.skeleton .watch-body span:nth-child(1) { width: 35%; }
.skeleton .watch-body span:nth-child(2) { width: 85%; height: 14px; margin-top: 4px; }
.skeleton .watch-body span:nth-child(3) { width: 30%; margin-top: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .skeleton .watch-img, .skeleton .watch-body span { animation: pulse 1.4s ease-in-out infinite; }
}
@keyframes pulse { 50% { opacity: .55; } }

/* ---------------------------------------------------------------- signup */

main { max-width: var(--wrap); margin: 0 auto; padding: 0 20px 56px; }

.signup { max-width: 640px; margin: 0 auto; padding-top: 40px; scroll-margin-top: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 18px; }
@media (min-width: 560px) { .card { padding: 36px 32px; } }

.step { border: 0; margin: 0 0 32px; padding: 0; min-width: 0; }
legend { display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 16px; font-family: var(--serif); font-size: 22px; line-height: 1.25; }
.num {
  flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--tile-on); color: var(--tile-on-ink); font: 600 13px/1 var(--sans);
}

.brands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 480px) { .brands { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.brands-small { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 10px; }
@media (min-width: 480px) { .brands-small { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.brand {
  position: relative; display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 10px 12px;
  border: 1px solid var(--field-line); border-radius: var(--r-sm); background: var(--field); cursor: pointer;
  font: 400 17px/1.15 var(--serif); color: var(--ink); text-align: center;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.brand:hover { border-color: var(--ink-3); }
.brand[aria-pressed="true"] { border-color: var(--tile-on); background: var(--tile-on); color: var(--tile-on-ink); }
.brand:active { transform: scale(.98); }
.brand:disabled { opacity: .5; cursor: default; }
.brand[hidden] { display: none; }

/* selected mark on the large tiles: accent dot with a CSS check */
.brands:not(.brands-small) .brand[aria-pressed="true"]::after {
  content: ""; position: absolute; top: 8px; right: 8px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent);
}
.brands:not(.brands-small) .brand[aria-pressed="true"]::before {
  content: ""; position: absolute; top: 11px; right: 13px; z-index: 1; width: 3px; height: 6px;
  border: solid var(--accent-ink); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}

/* small tiles: checkbox look */
.brands-small .brand { min-height: 46px; font: 500 14px/1.2 var(--sans); justify-content: flex-start; text-align: left; padding-left: 38px; }
.brands-small .brand::before {
  content: ""; position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  border: 1.5px solid var(--ink-3); border-radius: 4px;
}
.brands-small .brand[aria-pressed="true"]::before { border-color: var(--accent); background: var(--accent); }
.brands-small .brand[aria-pressed="true"]::after {
  content: ""; position: absolute; left: 18px; top: 50%; width: 4px; height: 8px; margin-top: -6px;
  border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.more { margin-top: 14px; }
.more input {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--field-line); border-radius: var(--r-sm);
  background: var(--field); font: 15px var(--sans); color: var(--ink);
}
.brand-actions { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; }
.link {
  padding: 4px 0; border: 0; background: none; cursor: pointer;
  font: 500 14px var(--sans); color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--field-line);
  transition: text-decoration-color .2s var(--ease), color .2s var(--ease);
}
.link:hover { text-decoration-color: var(--ink); }
.link[aria-pressed="true"] { color: var(--accent); text-decoration-color: var(--accent); }

.hint { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); }

.field { display: flex; flex-direction: column; gap: 8px; }
.field span { font-size: 14px; color: var(--ink-2); }
.field input {
  width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--field-line); border-radius: var(--r-sm);
  background: var(--field); font: 17px var(--sans); color: var(--ink);
  transition: border-color .2s var(--ease);
}
.field input::placeholder, .more input::placeholder { color: var(--ink-3); }
.field input:hover { border-color: var(--ink-3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: 13px; line-height: 1.55; color: var(--ink-2); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }

.error { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--error-bg); color: var(--error); font-size: 14px; }

.submit {
  width: 100%; height: 56px; border: 0; border-radius: var(--r-sm); background: var(--tile-on); color: var(--tile-on-ink);
  font: 600 16px var(--sans); cursor: pointer; transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.submit:hover { opacity: .9; }
.submit:active { transform: scale(.99); }
.submit[disabled] { opacity: .6; cursor: progress; }
.fine { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); text-align: center; }

.brand:focus-visible, .link:focus-visible, .submit:focus-visible, .cta:focus-visible, .sticky-cta:focus-visible,
input:focus-visible, summary:focus-visible, .watch:focus-visible, .rail:focus-visible, .top-link:focus-visible, .latest-head a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.hero .cta:focus-visible, .hero a:focus-visible, .rail:focus-visible { outline-color: #8099f0; }

.done { text-align: center; padding-top: 40px; padding-bottom: 40px; }
.done:focus { outline: none; }
.done h2 { margin: 0 0 12px; font: 400 30px/1.15 var(--serif); }
.done p { margin: 0 0 10px; }

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

.faq { max-width: 640px; margin: 96px auto 0; }
.faq h2 { margin: 0 0 12px; font: 400 30px/1.2 var(--serif); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none; font: 400 18px/1.3 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 300 24px/1 var(--sans); color: var(--ink-3); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -4px 0 20px; max-width: 36em; }

/* ---------------------------------------------------------------- footer + sticky */

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px;
  max-width: var(--wrap); margin: 0 auto; padding: 24px 20px calc(96px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3);
}
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--ink-2); }
@media (min-width: 720px) { .foot { padding-bottom: 32px; } }

.sticky-cta {
  position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 10;
  display: flex; align-items: center; justify-content: center; height: 54px;
  border-radius: var(--r-sm); background: var(--tile-on); color: var(--tile-on-ink);
  font: 600 16px var(--sans); text-decoration: none;
  box-shadow: 0 12px 28px -14px rgba(13, 14, 16, .55);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.sticky-cta.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }
@media (min-width: 720px) { .sticky-cta { display: none; } }

/* ---------------------------------------------------------------- motion: hero entry on load, sections on scroll */

@media (prefers-reduced-motion: no-preference) {
  .enter { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
