/* Marketing page (bonstructer.com root). Scoped under .notes-marketing-body so the
   /app SPA styles in notes.css stay untouched. Forces the dark brand look. */

.notes-marketing-body {
  color-scheme: dark;
  --mk-bg: #080c0f;
  --mk-bg-2: #0c1418;
  --mk-surface: #10191e;
  --mk-surface-2: #16232a;
  --mk-surface-3: #1e2f37;
  --mk-hairline: rgba(166, 233, 236, 0.14);
  --mk-hairline-strong: rgba(166, 233, 236, 0.28);
  --mk-text: #f3f8f9;
  --mk-muted: #a9bec4;
  --mk-cyan: #a6e9ec;
  --mk-cyan-bright: #c4f4f2;
  --mk-teal: #3c8b96;
  --mk-teal-deep: #244f58;
  --mk-teal-ink: #15343b;
  --mk-amber: #f6cd86;
  --mk-on-cta: #06181c;
  --mk-radius: 20px;
  --mk-radius-sm: 14px;
  --mk-max: 74rem;
  /* Override app tokens for anything shared (carousel, buttons, lang bar). */
  --notes-background: var(--mk-bg);
  --notes-on-background: var(--mk-text);
  --notes-on-surface: var(--mk-text);
  --notes-on-surface-variant: var(--mk-muted);
  --notes-primary: var(--mk-cyan);
  --notes-on-primary: var(--mk-on-cta);
  --notes-surface-container-lowest: #05080a;
  --notes-surface-container-low: var(--mk-surface);
  --notes-surface-container: var(--mk-surface-2);
  --notes-surface-container-high: var(--mk-surface-3);
  --notes-outline: var(--mk-hairline-strong);
  --notes-outline-variant: var(--mk-hairline);
  background: var(--mk-bg);
  color: var(--mk-text);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

.notes-marketing-body a {
  color: var(--mk-cyan);
}

.notes-marketing-body .notes-btn {
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.notes-marketing-body .notes-btn-primary {
  background: linear-gradient(135deg, var(--mk-cyan-bright), var(--mk-cyan) 55%, #7fd3d6);
  color: var(--mk-on-cta);
  box-shadow: 0 10px 30px rgba(166, 233, 236, 0.22);
}

.notes-marketing-body .notes-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(166, 233, 236, 0.3);
}

.notes-marketing-body .notes-btn-secondary {
  background: rgba(166, 233, 236, 0.06);
  color: var(--mk-cyan);
  border: 1px solid var(--mk-hairline-strong);
}

.notes-marketing-body .notes-btn-secondary:hover {
  background: rgba(166, 233, 236, 0.12);
}

/* ---------- background glow ---------- */

.mk-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 80% -10%, rgba(60, 139, 150, 0.35), transparent 60%),
    radial-gradient(50rem 30rem at -10% 30%, rgba(36, 79, 88, 0.35), transparent 60%),
    var(--mk-bg);
}

.mk-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(166, 233, 236, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(166, 233, 236, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70rem 40rem at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(70rem 40rem at 50% 0%, #000 30%, transparent 80%);
}

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

.mk-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(8, 12, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--mk-hairline);
}

.mk-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--mk-text);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.mk-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.mk-brand small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mk-cyan);
}

.mk-nav-links {
  display: none;
  gap: 4px;
  margin-left: 12px;
}

.mk-nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--mk-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.mk-nav-links a:hover {
  color: var(--mk-text);
  background: rgba(166, 233, 236, 0.08);
}

.mk-nav-links a.is-active {
  color: var(--mk-text);
  background: rgba(166, 233, 236, 0.08);
}

.mk-nav-spacer {
  flex: 1;
}

.mk-nav .notes-lang-switch {
  gap: 6px;
}

.mk-nav .notes-lang-switch-label {
  display: none;
}

.mk-nav .notes-lang-switch select {
  min-height: 44px;
  font-size: 16px;
  border-radius: 999px;
  border-color: var(--mk-hairline);
  background: rgba(166, 233, 236, 0.06);
  color: var(--mk-text);
}

.mk-nav .notes-btn {
  min-height: 44px;
  padding: 8px 18px;
  font-size: 15px;
  white-space: nowrap;
}

.mk-brand span {
  white-space: nowrap;
}

/* mobile quick-link strip: second row of the sticky nav, below 880px only */
.mk-subnav {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px calc(-1 * clamp(16px, 4vw, 40px)) -2px;
  padding: 0 clamp(16px, 4vw, 40px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
}

.mk-subnav::-webkit-scrollbar {
  display: none;
}

.mk-subnav a {
  flex: none;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--mk-hairline);
  color: var(--mk-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}

.mk-subnav a.is-active {
  background: var(--mk-teal-deep);
  border-color: var(--mk-hairline-strong);
  color: var(--mk-cyan);
}

@media (max-width: 560px) {
  .mk-brand small {
    display: none;
  }
  .mk-nav {
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .mk-nav .notes-btn {
    padding: 8px 14px;
  }
}

@media (max-width: 879px) {
  .mk-nav {
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 10px;
  }
  /* First row must never wrap: brand grows, select + button stay fixed, spacer is redundant. */
  .mk-nav-spacer {
    display: none;
  }
  .mk-brand {
    flex: 1 1 auto;
    min-width: 0;
  }
  .mk-nav .notes-lang-switch,
  .mk-nav .notes-btn {
    flex: none;
  }
  .mk-nav .notes-lang-switch select {
    min-height: 40px;
    padding-left: 10px;
    padding-right: 28px;
    font-size: 15px;
  }
  .mk-nav .notes-btn {
    min-height: 40px;
  }
  .mk-section {
    scroll-margin-top: 120px;
  }
}

@media (max-width: 479px) {
  .mk-brand > span {
    display: none;
  }
}

@media (min-width: 880px) {
  .mk-nav-links {
    display: flex;
  }
  .mk-subnav {
    display: none;
  }
}

/* ---------- layout helpers ---------- */

.notes-marketing {
  max-width: var(--mk-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px) 4rem;
}

.mk-section {
  padding: clamp(3rem, 7vw, 5.5rem) 0 0;
  scroll-margin-top: 72px;
}

.mk-section-head {
  max-width: 40rem;
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
}

.mk-section-head h2,
.notes-marketing h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.mk-section-head p {
  margin: 0;
  color: var(--mk-muted);
  font-size: 18px;
}

.notes-marketing-kicker {
  margin: 0 0 10px;
  color: var(--mk-cyan);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
}

.mk-badge-new {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--mk-teal-deep);
  color: var(--mk-cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mk-card {
  background: linear-gradient(180deg, rgba(166, 233, 236, 0.04), transparent 40%), var(--mk-surface);
  border: 1px solid var(--mk-hairline);
  border-radius: var(--mk-radius);
  padding: 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.mk-card:hover {
  border-color: var(--mk-hairline-strong);
  transform: translateY(-2px);
}

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

.notes-marketing-hero {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 0;
  max-width: none;
}

@media (min-width: 940px) {
  .notes-marketing-hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

.notes-marketing h1 {
  margin: 0 0 14px;
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  padding-bottom: 0.12em;
  overflow: visible;
  background: linear-gradient(100deg, #ffffff 20%, var(--mk-cyan-bright) 70%, var(--mk-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.notes-marketing-pitch {
  margin: 0 0 26px;
  max-width: 34rem;
  color: var(--mk-muted);
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  line-height: 1.55;
}

.notes-marketing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 14px;
}

.notes-marketing-play {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.notes-marketing-play img {
  display: block;
  height: 52px;
  width: auto;
}

.notes-marketing-testers-hint {
  margin: 0 0 14px;
  color: var(--mk-muted);
  font-size: 14.5px;
}

.notes-marketing-testers {
  color: var(--mk-muted) !important;
  font-size: 14.5px;
}

.notes-marketing-playtest-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.notes-marketing-playtest-input {
  flex: 1 1 220px;
  min-width: 0;
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--mk-hairline-strong);
  background: var(--mk-surface);
  color: var(--mk-text);
  font: inherit;
}

.notes-marketing-playtest-input::placeholder {
  color: var(--mk-muted);
}

.notes-marketing-playtest-input:focus-visible {
  outline: none;
  border-color: var(--mk-cyan);
}

.notes-marketing-playtest-textarea {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  min-height: 72px;
  padding: 12px 18px;
  border-radius: 20px;
  border: 1px solid var(--mk-hairline-strong);
  background: var(--mk-surface);
  color: var(--mk-text);
  font: inherit;
  resize: none;
}

.notes-marketing-playtest-textarea::placeholder {
  color: var(--mk-muted);
}

.notes-marketing-playtest-textarea:focus-visible {
  outline: none;
  border-color: var(--mk-cyan);
}

.notes-marketing-playtest-status {
  margin: 10px 0 0;
  color: var(--mk-cyan);
  font-size: 14.5px;
}

.notes-marketing-playtest-status.is-error {
  color: var(--mk-amber);
}

.mk-playtest-direct {
  margin-top: 16px;
}

.mk-iphone-open {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--mk-muted);
  font: inherit;
  font-size: 14.5px;
  text-decoration: none;
  cursor: pointer;
}

.mk-iphone-open:hover,
.mk-iphone-open:focus-visible {
  color: var(--mk-cyan);
}

.mk-iphone-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin: 0;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--mk-hairline-strong);
  border-radius: 14px;
  background: rgba(166, 233, 236, 0.08);
  color: var(--mk-text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.mk-iphone-hero:hover,
.mk-iphone-hero:focus-visible {
  border-color: var(--mk-cyan);
  background: rgba(166, 233, 236, 0.16);
}

.mk-iphone-hero-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background: var(--mk-teal-deep);
  color: var(--mk-cyan);
}

.mk-iphone-hero-mark svg {
  width: 22px;
  height: 22px;
}

.mk-iphone-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.mk-iphone-hero-copy strong {
  font-size: 16px;
  font-weight: 700;
}

.mk-iphone-hero-copy span {
  color: var(--mk-muted);
  font-size: 14px;
}

.notes-marketing-cta .mk-iphone-hero {
  justify-content: flex-start;
}

.mk-iphone-plan {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(166, 233, 236, 0.1);
  color: var(--mk-text);
  font-size: 15.5px;
  line-height: 1.45;
}

/* Desktop / Android hand-off: the step-by-step guide runs inside the app on the iPhone. */
.mk-iphone-handoff {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid var(--mk-hairline-strong);
  border-radius: 14px;
}

.mk-iphone-handoff p {
  margin: 0;
  color: var(--mk-text);
  font-size: 15.5px;
  line-height: 1.45;
}

.mk-iphone-handoff .mk-iphone-handoff-url {
  color: var(--mk-cyan);
  font-weight: 700;
  word-break: break-all;
}

.mk-iphone-handoff .notes-btn {
  align-self: flex-start;
}

html.is-ios .mk-iphone-handoff {
  display: none;
}

.notes-marketing-foot .mk-iphone-open {
  color: var(--mk-muted);
}

.mk-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mk-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--mk-hairline);
  background: rgba(166, 233, 236, 0.06);
  color: var(--mk-text);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.3;
}

.mk-trust li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mk-cyan);
  box-shadow: 0 0 8px var(--mk-cyan);
}

.mk-start-hint {
  margin: -4px 0 14px;
  color: var(--mk-muted);
  font-size: 14px;
  line-height: 1.4;
}

.mk-demo-link {
  color: var(--mk-cyan);
  font-weight: 600;
  text-underline-offset: 3px;
}

@media (max-width: 560px) {
  .notes-marketing-hero .notes-marketing-actions > * {
    width: 100%;
  }
  .notes-marketing-hero .notes-btn-primary {
    justify-content: center;
    min-height: 52px;
    font-size: 17px;
  }
  .notes-marketing-hero .notes-marketing-play {
    justify-content: center;
  }
  .notes-marketing-hero .mk-iphone-hero {
    width: 100%;
  }
}

/* hero visual: phone + floating cards */

.mk-hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 20px 0;
}

.mk-hero-glow {
  position: absolute;
  inset: 10% 5%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(60, 139, 150, 0.55), rgba(36, 79, 88, 0.25) 55%, transparent 75%);
  filter: blur(30px);
  z-index: 0;
}

.mk-phone {
  position: relative;
  z-index: 1;
  width: min(300px, 78vw);
  aspect-ratio: 720 / 1560;
  border-radius: 38px;
  padding: 8px;
  background: linear-gradient(160deg, #2a3a42, #0b1216);
  border: 1px solid rgba(166, 233, 236, 0.25);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.mk-phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}

.mk-float {
  position: absolute;
  z-index: 2;
  max-width: 250px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(16, 25, 30, 0.9);
  border: 1px solid var(--mk-hairline-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 14px;
  line-height: 1.4;
}

.mk-float-q {
  left: 0;
  top: 12%;
  border-bottom-left-radius: 6px;
}

.mk-float-a {
  right: 0;
  bottom: 14%;
  border-bottom-right-radius: 6px;
}

.mk-float-label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mk-cyan);
}

.mk-float-total {
  display: block;
  margin-top: 6px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--mk-cyan-bright);
}

.mk-float-sub {
  color: var(--mk-muted);
}

@media (max-width: 480px) {
  .mk-float {
    max-width: 200px;
    font-size: 13px;
  }
  .mk-float-q {
    top: 4%;
  }
  .mk-float-a {
    bottom: 4%;
  }
}

/* ---------- steps ---------- */

.mk-steps {
  display: grid;
  gap: 14px;
}

@media (min-width: 760px) {
  .mk-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mk-step {
  position: relative;
  padding-top: 26px;
}

.mk-step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--mk-teal-deep), var(--mk-teal-ink));
  border: 1px solid var(--mk-hairline-strong);
  color: var(--mk-cyan-bright);
  font-weight: 800;
  font-size: 16px;
}

.mk-step h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 700;
}

.mk-step p {
  margin: 0;
  color: var(--mk-muted);
  font-size: 16.5px;
}

/* ---------- use cases ---------- */

.mk-usecases {
  display: grid;
  gap: 14px;
}

@media (min-width: 640px) {
  .mk-usecases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .mk-usecases {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mk-usecase {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mk-usecase h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.mk-usecase > p {
  margin: 0;
  color: var(--mk-muted);
  font-size: 16px;
}

.mk-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.mk-bubble {
  max-width: 92%;
  padding: 10px 13px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.4;
}

.mk-bubble-q {
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  background: linear-gradient(135deg, var(--mk-teal-deep), var(--mk-teal-ink));
  color: var(--mk-cyan-bright);
}

.mk-bubble-a {
  align-self: flex-start;
  border-bottom-left-radius: 5px;
  background: var(--mk-surface-3);
  border: 1px solid var(--mk-hairline);
  color: var(--mk-text);
}

.mk-bubble-a ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.mk-bubble-a li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.mk-bubble-a li > span:not(:last-child) {
  flex: 1;
}

.mk-bubble-a li span:last-child {
  font-variant-numeric: tabular-nums;
  color: var(--mk-cyan);
  font-weight: 600;
  white-space: nowrap;
}

.mk-bubble-a .is-up {
  color: var(--mk-amber);
}

.mk-bubble-a .is-check::before {
  content: "☐ ";
  color: var(--mk-cyan);
}

.mk-bubble-a .mk-bubble-note {
  display: block;
  margin-top: 6px;
  color: var(--mk-muted);
  font-size: 13.5px;
}

.mk-bubble-a strong {
  color: var(--mk-cyan-bright);
}

/* ---------- carousel (reuses notes.css rules, tuned) ---------- */

.notes-marketing-carousel {
  --notes-marketing-shot: 400px;
  --notes-marketing-shot-max-h: min(70vh, 780px);
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 0;
}

@media (min-width: 900px) {
  .notes-marketing-carousel-stage {
    max-width: 56rem;
  }
  .notes-marketing-slide {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: left;
    gap: 48px;
  }
  .notes-marketing-slide-copy {
    max-width: 22rem;
  }
  .notes-marketing-slide-copy h2 {
    font-size: 2rem;
  }
  .notes-marketing-slide-copy p {
    font-size: 17px;
  }
  .notes-marketing-slide figure {
    flex: none;
  }
}

.notes-marketing-slide figure {
  border-radius: 28px;
  border-color: var(--mk-hairline-strong);
  background: #05080a;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.notes-marketing-slide-copy .notes-marketing-kicker {
  font-size: 13px;
}

.notes-marketing-slide-copy h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.notes-marketing-slide-copy p {
  color: var(--mk-muted);
}

.notes-marketing-carousel-arrow {
  background: rgba(166, 233, 236, 0.06);
  border-color: var(--mk-hairline-strong);
  color: var(--mk-text);
}

.notes-marketing-carousel-dots button {
  background: var(--mk-hairline-strong);
}

.notes-marketing-carousel-dots button.is-active {
  background: var(--mk-cyan);
}

/* ---------- features ---------- */

.mk-features {
  display: grid;
  gap: 14px;
}

@media (min-width: 640px) {
  .mk-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .mk-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mk-feature {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
}

.mk-feature-icon,
.mk-benefit-icon,
.mk-start-tile-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(166, 233, 236, 0.08);
  border: 1px solid var(--mk-hairline);
  color: var(--mk-cyan);
}

.mk-feature-icon svg,
.mk-benefit-icon svg,
.mk-start-tile-icon svg {
  width: 22px;
  height: 22px;
}

.mk-feature h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 700;
}

.mk-feature p {
  margin: 0;
  color: var(--mk-muted);
  font-size: 15.5px;
}

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

.mk-privacy {
  display: grid;
  gap: 14px;
}

@media (min-width: 760px) {
  .mk-privacy {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mk-privacy-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}

.mk-privacy-card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.mk-privacy-card p {
  margin: 0;
  color: var(--mk-muted);
  font-size: 16px;
}

.mk-privacy-note {
  margin: 18px 0 0;
  max-width: 48rem;
  color: var(--mk-muted);
  font-size: 15.5px;
  line-height: 1.5;
}

.mk-privacy-note a {
  font-weight: 600;
}

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

.mk-faq {
  display: grid;
  gap: 10px;
  max-width: 48rem;
}

.mk-faq details {
  border: 1px solid var(--mk-hairline);
  border-radius: var(--mk-radius-sm);
  background: var(--mk-surface);
  padding: 0 18px;
}

.mk-faq details[open] {
  border-color: var(--mk-hairline-strong);
}

.mk-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
}

.mk-faq summary::-webkit-details-marker {
  display: none;
}

.mk-faq summary::after {
  content: "+";
  flex: none;
  color: var(--mk-cyan);
  font-size: 20px;
  line-height: 1;
}

.mk-faq details[open] summary::after {
  content: "−";
}

.mk-faq details p {
  margin: 0 0 16px;
  color: var(--mk-muted);
  font-size: 16.5px;
}

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

.notes-marketing-cta {
  position: relative;
  max-width: none;
  margin: clamp(3rem, 7vw, 5.5rem) 0 2.5rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: 28px;
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgba(166, 233, 236, 0.18), transparent 60%),
    linear-gradient(135deg, var(--mk-teal-ink), #0d1a1f 70%);
  border: 1px solid var(--mk-hairline-strong);
  text-align: center;
  overflow: hidden;
}

.notes-marketing-cta h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}

.notes-marketing-cta p {
  max-width: 36rem;
  margin: 0 auto 22px;
  color: var(--mk-muted);
  font-size: 18px;
}

.notes-marketing-cta .notes-marketing-actions {
  justify-content: center;
  margin-bottom: 0;
}

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

.notes-marketing-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: center;
  padding-top: 8px;
  color: var(--mk-muted);
  font-size: 14.5px;
}

.notes-marketing-foot a {
  color: var(--mk-muted);
}

.notes-marketing-foot a:hover {
  color: var(--mk-cyan);
}

.mk-foot-brand {
  width: 100%;
  text-align: center;
  margin-bottom: 4px;
  color: var(--mk-muted);
}

/* ---------- iPhone home-screen overlay ---------- */

.mk-iphone-dialog {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(28rem, calc(100vw - 32px));
  max-height: min(90dvh, 42rem);
  color: var(--mk-text);
}

.mk-iphone-dialog::backdrop {
  background: rgba(8, 12, 15, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mk-iphone-card {
  position: relative;
  padding: 28px 24px 24px;
  border-radius: 24px;
  border: 1px solid var(--mk-hairline-strong);
  max-height: min(90dvh, 42rem);
  overflow-y: auto;
  background:
    radial-gradient(24rem 14rem at 100% 0%, rgba(166, 233, 236, 0.12), transparent 60%),
    var(--mk-surface-2);
}

.mk-iphone-card h2 {
  margin: 0 0 16px;
  font-size: 1.45rem;
  line-height: 1.25;
}

.mk-iphone-sub {
  margin: 18px 0 8px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mk-cyan);
}

.mk-iphone-card h2 + .mk-iphone-sub {
  margin-top: 0;
}

.mk-iphone-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(166, 233, 236, 0.08);
  color: var(--mk-cyan);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.mk-iphone-close:hover,
.mk-iphone-close:focus-visible {
  background: rgba(166, 233, 236, 0.16);
}

.mk-iphone-steps {
  counter-reset: mk-iphone;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.mk-iphone-steps li {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--mk-text);
  font-size: 16.5px;
  line-height: 1.45;
}

.mk-iphone-steps li::before {
  counter-increment: mk-iphone;
  content: counter(mk-iphone);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--mk-teal-deep);
  color: var(--mk-cyan);
  font-size: 13px;
  font-weight: 700;
}

.mk-iphone-note {
  margin: 0 0 20px;
  color: var(--mk-muted);
  font-size: 15.5px;
}

.mk-iphone-note strong {
  color: var(--mk-text);
}

/* iPhone install walkthrough: each step carries a mock "screenshot" of the control to tap. */
.mk-ios-step p {
  margin: 0 0 8px;
}
.mk-ios-shot {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #f2f2f7;
}
.mk-ios-shot svg {
  display: block;
  width: 100%;
  height: auto;
}
.mk-ios-tips {
  margin: 0 0 20px;
  padding: 0 0 0 1.1rem;
  display: grid;
  gap: 8px;
  color: var(--mk-muted);
  font-size: 15.5px;
  line-height: 1.45;
}
.mk-ios-tips strong {
  color: var(--mk-text);
}
.mk-iphone-cta {
  width: 100%;
  justify-content: center;
}

/* ---------- benefits ---------- */

.mk-benefits {
  display: grid;
  gap: 14px;
}

@media (min-width: 640px) {
  .mk-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .mk-benefits {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.mk-benefit {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
}

.mk-benefit-pain {
  margin: 0;
  color: var(--mk-amber);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: normal;
}

.mk-benefit h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.mk-benefit p {
  margin: 0;
  color: var(--mk-muted);
  font-size: 15.5px;
}

.mk-benefit-link {
  margin-top: auto;
  color: var(--mk-cyan);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.mk-benefit-link:hover {
  text-decoration: underline;
}

/* ---------- use-case mock cards (email/list/mock receipts) ---------- */

.mk-mock {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding: 12px 13px;
  border-radius: 16px;
  background: var(--mk-surface-3);
  border: 1px solid var(--mk-hairline);
  font-size: 14.5px;
  line-height: 1.4;
}

.mk-mock-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: var(--mk-muted);
  font-size: 13.5px;
}

.mk-mock-total {
  color: var(--mk-cyan-bright);
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.mk-mock-rows {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.mk-mock-rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 8px;
}

.mk-mock-name {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.mk-mock-tag {
  grid-column: 1;
  grid-row: 2;
  color: var(--mk-muted);
  font-size: 12.5px;
}

.mk-mock-tag.is-warn {
  color: var(--mk-amber);
}

.mk-mock-amount {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--mk-cyan);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mk-mock-note {
  display: block;
  color: var(--mk-muted);
  font-size: 13.5px;
}

.mk-mock-field {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.mk-mock-label {
  flex: none;
  min-width: 3.5rem;
  color: var(--mk-muted);
  font-size: 13px;
}

.mk-mock-value {
  min-width: 0;
  color: var(--mk-text);
  font-size: 14.5px;
  overflow-wrap: anywhere;
}

.mk-mock-checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
  font-size: 14px;
}

.mk-mock-checks li::before {
  content: "☐ ";
  color: var(--mk-muted);
}

.mk-mock-checks li.is-on::before {
  content: "☑ ";
  color: var(--mk-cyan);
}

/* ---------- start-on-your-platform tiles ---------- */

.notes-marketing-cta {
  scroll-margin-top: 72px;
}

@media (max-width: 879px) {
  .notes-marketing-cta {
    scroll-margin-top: 120px;
  }
}

.mk-start-grid {
  display: grid;
  gap: 14px;
  text-align: left;
}

@media (min-width: 760px) {
  .mk-start-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mk-start-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}

.mk-start-tile h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.mk-start-tile p {
  margin: 0;
  color: var(--mk-muted);
  font-size: 15.5px;
}

.mk-start-tile .notes-btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

/* ---------- platform-aware CTA order (html.is-ios / html.is-android, set by JS) ---------- */

/* The web CTA stays first everywhere (no download, no tester gate); the platform-specific
   install option moves directly behind it. */
html.is-ios .mk-iphone-hero {
  order: 1;
}

html.is-ios .notes-marketing-play {
  order: 2;
}

html.is-ios .mk-start-tile[data-platform="ios"] {
  order: -1;
}

html.is-android .mk-start-tile[data-platform="android"] {
  order: -1;
}

/* ---------- sticky bottom CTA bar (mobile only) ---------- */

.mk-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px clamp(16px, 4vw, 40px) calc(10px + env(safe-area-inset-bottom));
  background: rgba(8, 12, 15, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--mk-hairline);
  transform: translateY(110%);
  opacity: 0;
}

.mk-sticky-cta[hidden] {
  display: none;
}

.mk-sticky-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .mk-sticky-cta {
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
}

.mk-sticky-cta .notes-btn-primary {
  flex: 1;
  justify-content: center;
  min-height: 48px;
}

.mk-sticky-icon {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 48px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid var(--mk-hairline);
  background: rgba(166, 233, 236, 0.08);
  color: var(--mk-cyan);
  font-size: 11px;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.mk-sticky-icon svg {
  width: 20px;
  height: 20px;
}

.mk-sticky-icon span {
  color: var(--mk-muted);
  font-size: 11px;
}

@media (min-width: 880px) {
  .mk-sticky-cta {
    display: none;
  }
}

body.has-sticky-cta .notes-marketing {
  padding-bottom: calc(4rem + 84px);
}

@media (min-width: 880px) {
  body.has-sticky-cta .notes-marketing {
    padding-bottom: 4rem;
  }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .mk-js .mk-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .mk-js .mk-reveal.is-in {
    opacity: 1;
    transform: none;
  }
  .mk-float {
    animation: mk-drift 7s ease-in-out infinite;
  }
  .mk-float-a {
    animation-delay: -3.5s;
  }
  @keyframes mk-drift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }
}

html:focus-within {
  scroll-behavior: smooth;
}

/* Share card under the start tiles: static QR (bonstructer.com) + share / copy link. */
.mk-share {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 44rem;
  margin: 1.5rem auto 0;
  padding: 1.25rem 1.5rem;
  text-align: left;
}

.mk-share-qr {
  flex: none;
  width: 160px;
  height: 160px;
  padding: 8px;
  background: #ffffff; /* QR must stay dark-on-white to scan reliably */
  border-radius: var(--mk-radius-sm);
  image-rendering: pixelated;
}

.mk-share-copy h3 {
  margin: 0 0 0.35rem;
}

.mk-share-copy p {
  margin: 0 0 0.5rem;
  color: var(--mk-muted);
}

.mk-share-url {
  font-weight: 600;
  color: var(--mk-cyan) !important;
}

.mk-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}


@media (max-width: 640px) {
  .mk-share {
    flex-direction: column;
    text-align: center;
  }
  .mk-share-actions {
    justify-content: center;
  }
}

/* Hero Play CTA as a framed card (user testing: the bare black badge next to the cyan
   "Kostenlos ausprobieren" pill was overlooked). Badge stays unmodified per Google brand rules. */
.notes-marketing-play.mk-play-hero {
  gap: 12px;
  min-height: 64px;
  padding: 8px 16px 8px 8px;
  border: 1px solid var(--mk-cyan);
  border-radius: 14px;
  background: rgba(166, 233, 236, 0.12);
  color: var(--mk-text);
  font: inherit;
  text-align: left;
}

.notes-marketing-play.mk-play-hero:hover,
.notes-marketing-play.mk-play-hero:focus-visible {
  background: rgba(166, 233, 236, 0.2);
}

.mk-play-hero img {
  height: 48px;
}

.mk-play-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.mk-play-hero-copy strong {
  font-size: 16px;
  font-weight: 700;
}

.mk-play-hero-copy span {
  color: var(--mk-muted);
  font-size: 14px;
}

/* On Android phones the Play app is the main way in: card first and primary-looking,
   the web start becomes the secondary option. */
html.is-android .notes-marketing-hero .mk-play-hero {
  order: -1;
}

html.is-android .notes-marketing-hero .notes-marketing-actions .notes-btn-primary {
  order: 1;
  background: transparent;
  border: 1px solid var(--mk-hairline-strong);
  color: var(--mk-text);
  box-shadow: none;
}

@media (max-width: 560px) {
  .notes-marketing-hero .notes-marketing-play.mk-play-hero {
    justify-content: flex-start;
  }
}

/* iPhone hero card: same visual weight as the Play card, Apple mark white on black
   (Apple's logo is only shown in black or white — the cyan-on-teal mark read as disabled). */
.notes-marketing-hero .mk-iphone-hero {
  min-height: 64px;
  border-color: var(--mk-cyan);
  background: rgba(166, 233, 236, 0.12);
}

.notes-marketing-hero .mk-iphone-hero:hover,
.notes-marketing-hero .mk-iphone-hero:focus-visible {
  background: rgba(166, 233, 236, 0.2);
}

.mk-iphone-hero-mark {
  width: 44px;
  height: 44px;
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.mk-iphone-hero-mark svg {
  width: 24px;
  height: 24px;
}

.mk-iphone-hero-copy strong {
  color: var(--mk-text);
}

.mk-start-tile[data-platform="ios"] .mk-start-tile-icon {
  background: #000000;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

html.is-android .notes-marketing-hero .mk-iphone-hero {
  order: 2;
}

/* ---------- hero CTA trio: Web / Android / iPhone as one tidy set ----------
   Equal cards in a grid (same height, same width per row). Web is the filled primary
   card; on Android phones Play leads and Web becomes a tinted card like the others. */
.notes-marketing-hero .mk-cta-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  align-items: stretch;
  gap: 12px;
  max-width: 50rem;
}

.notes-marketing-hero .mk-cta-card {
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  min-height: 68px;
  margin: 0;
  padding: 10px 16px 10px 10px;
  border: 1px solid var(--mk-cyan);
  border-radius: 16px;
  background: rgba(166, 233, 236, 0.12);
  color: var(--mk-text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.notes-marketing-hero .mk-cta-card:hover,
.notes-marketing-hero .mk-cta-card:focus-visible {
  background: rgba(166, 233, 236, 0.2);
  transform: translateY(-1px);
}

.notes-marketing-hero .mk-cta-card .mk-cta-copy,
.notes-marketing-hero .mk-cta-card .mk-play-hero-copy,
.notes-marketing-hero .mk-cta-card .mk-iphone-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 1.2;
}

.notes-marketing-hero .mk-cta-card strong {
  font-size: 16px;
  font-weight: 700;
  color: inherit;
}

.notes-marketing-hero .mk-cta-card .mk-cta-copy span,
.notes-marketing-hero .mk-cta-card .mk-play-hero-copy span,
.notes-marketing-hero .mk-cta-card .mk-iphone-hero-copy span {
  font-size: 14px;
  color: var(--mk-muted);
}

.mk-cta-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.mk-cta-mark svg {
  width: 24px;
  height: 24px;
}

/* Web = primary: filled cyan gradient, dark ink. */
.notes-marketing-hero .mk-cta-web {
  border-color: transparent;
  background: linear-gradient(135deg, var(--mk-cyan-bright), var(--mk-cyan) 55%, #7fd3d6);
  color: var(--mk-on-cta);
  box-shadow: 0 10px 30px rgba(166, 233, 236, 0.22);
}

.notes-marketing-hero .mk-cta-web:hover,
.notes-marketing-hero .mk-cta-web:focus-visible {
  background: linear-gradient(135deg, var(--mk-cyan-bright), var(--mk-cyan) 55%, #7fd3d6);
  box-shadow: 0 14px 36px rgba(166, 233, 236, 0.3);
}

.notes-marketing-hero .mk-cta-web .mk-cta-mark {
  background: rgba(11, 26, 31, 0.12);
}

.notes-marketing-hero .mk-cta-web .mk-cta-copy span {
  color: var(--mk-on-cta);
  opacity: 0.78;
}

/* Play badge inside its card: same 44px visual height as the other marks. */
.notes-marketing-hero .mk-play-hero img {
  height: 44px;
  width: auto;
  flex: none;
}

.notes-marketing-hero .mk-iphone-hero .mk-iphone-hero-mark {
  width: 44px;
  height: 44px;
}

/* Android phones: Play first, then Web (tinted, not filled), then iPhone. */
html.is-android .notes-marketing-hero .mk-play-hero {
  order: -1;
}

html.is-android .notes-marketing-hero .mk-cta-web {
  order: 1;
  border-color: var(--mk-hairline-strong);
  background: rgba(166, 233, 236, 0.06);
  color: var(--mk-text);
  box-shadow: none;
}

html.is-android .notes-marketing-hero .mk-cta-web .mk-cta-mark {
  background: var(--mk-teal-deep);
  color: var(--mk-cyan);
}

html.is-android .notes-marketing-hero .mk-cta-web .mk-cta-copy span {
  color: var(--mk-muted);
  opacity: 1;
}

html.is-android .notes-marketing-hero .mk-iphone-hero {
  order: 2;
}

/* iPhone visitors: iPhone card right after Web. */
html.is-ios .notes-marketing-hero .mk-iphone-hero {
  order: 1;
}

html.is-ios .notes-marketing-hero .mk-play-hero {
  order: 2;
}

/* Android phones: Web start goes last (Play, iPhone, Web) — reads tidier than in the middle. */
html.is-android .notes-marketing-hero .mk-iphone-hero {
  order: 1;
}

html.is-android .notes-marketing-hero .mk-cta-web {
  order: 2;
}

/* Final layout: one stacked column everywhere (equal width + height, no wrapping), order
   Android (Play) · iPhone · Web — the filled Web card closes the list. */
.notes-marketing-hero .mk-cta-cards {
  grid-template-columns: 1fr;
  max-width: 30rem;
}

.notes-marketing-hero .mk-play-hero {
  order: 0;
}

.notes-marketing-hero .mk-iphone-hero {
  order: 1;
}

.notes-marketing-hero .mk-cta-web {
  order: 2;
}

/* iPhone visitors: iPhone card first. */
html.is-ios .notes-marketing-hero .mk-iphone-hero {
  order: -1;
}

html.is-ios .notes-marketing-hero .mk-play-hero {
  order: 0;
}

.notes-marketing-hero .mk-cta-cards {
  grid-auto-rows: 1fr;
}

/* 15-second marketing clips (9:16, muted, German captions burned in). */
.mk-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mk-video {
  margin: 0;
}

.mk-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border: 1px solid var(--mk-hairline);
  border-radius: var(--mk-radius);
  background: var(--mk-surface);
  object-fit: cover;
}

.mk-video figcaption {
  margin-top: 10px;
  color: var(--mk-muted);
  font-size: 15px;
  font-weight: 500;
}

@media (max-width: 759px) {
  .mk-video-grid {
    display: flex;
    /* Keep the swipe row's width from sizing the page. */
    contain: inline-size;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }

  .mk-video {
    flex: 0 0 min(72vw, 300px);
    scroll-snap-align: start;
  }
}

/* Scan quality: real hard receipts (photo) above what was read from them. */
.mk-scan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mk-scan {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.mk-scan-photo {
  position: relative;
  height: 420px;
  overflow-y: auto;
  background: var(--mk-surface-2);
  border-bottom: 1px solid var(--mk-hairline);
  scrollbar-width: thin;
}

.mk-scan-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.mk-scan-tag {
  position: sticky;
  bottom: 10px;
  left: 10px;
  display: inline-block;
  margin: 0 0 10px 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--mk-teal-ink);
  color: var(--mk-cyan);
  font-size: 13px;
  font-weight: 600;
}

.mk-scan-result {
  padding: 14px 16px 16px;
}

.mk-scan-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 8px;
  color: var(--mk-text);
}

.mk-scan-head span {
  color: var(--mk-muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.mk-scan-lines {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.mk-scan-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  border-bottom: 1px solid var(--mk-hairline);
}

.mk-scan-lines li span:last-child {
  color: var(--mk-cyan);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mk-scan-lines .mk-scan-more {
  color: var(--mk-muted);
  border-bottom: 0;
}

.mk-scan-total {
  display: flex;
  justify-content: space-between;
  margin: 10px 0 4px;
  color: var(--mk-muted);
  font-size: 14px;
}

.mk-scan-total strong {
  color: var(--mk-cyan);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.mk-scan-check {
  margin: 0;
  color: var(--mk-cyan);
  font-size: 13px;
  font-weight: 500;
}

.mk-scan-note {
  max-width: 48rem;
  margin: 16px 0 0;
  color: var(--mk-muted);
  font-size: 15px;
}

@media (max-width: 879px) {
  .mk-scan-grid {
    display: flex;
    contain: inline-size;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }

  .mk-scan {
    flex: 0 0 min(80vw, 320px);
    scroll-snap-align: start;
  }

  .mk-scan-photo {
    height: 360px;
  }
}

/* ---------- guides (/ratgeber) ---------- */

.gd-main {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 50rem;
}

/* The comparison table scrolls inside .gd-table; without this the grid child grows to its width. */
.gd-main > * {
  min-width: 0;
  max-width: 100%;
}

.gd-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 0;
  color: var(--mk-muted);
  font-size: 14px;
}

.gd-crumbs a {
  color: var(--mk-muted);
}

.gd-crumbs a:hover {
  color: var(--mk-cyan);
}

.gd-article,
.gd-index-head {
  padding: clamp(1.25rem, 3vw, 2rem) 0 0;
}

.gd-main h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
}

.gd-meta {
  margin: 0 0 1.75rem;
  color: var(--mk-muted);
  font-size: 14px;
}

.gd-article h2 {
  margin-top: 2.25rem;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
}

.gd-article h3 {
  margin: 1.5rem 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
}

.gd-article p,
.gd-article li {
  color: var(--mk-text);
  font-size: 17px;
  line-height: 1.65;
}

.gd-article p {
  margin: 0 0 1rem;
}

.gd-article ul,
.gd-article ol {
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
}

.gd-article li + li {
  margin-top: 6px;
}

.gd-article a {
  color: var(--mk-cyan);
}

.gd-lead {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem) !important;
  color: var(--mk-muted) !important;
  line-height: 1.6;
}

.gd-note {
  margin: 1.5rem 0;
  padding: 16px 18px;
  border: 1px solid var(--mk-hairline-strong);
  border-radius: var(--mk-radius-sm);
  background: var(--mk-surface);
}

.gd-note p:last-child {
  margin-bottom: 0;
}

.gd-check {
  list-style: none;
  padding-left: 0 !important;
}

.gd-check li {
  position: relative;
  padding-left: 28px;
}

.gd-check li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  color: var(--mk-cyan);
  font-weight: 700;
}

.gd-table {
  margin: 1.25rem 0 1.5rem;
  overflow-x: auto;
  border: 1px solid var(--mk-hairline);
  border-radius: var(--mk-radius-sm);
}

.gd-table table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 15px;
}

.gd-table th,
.gd-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--mk-hairline);
  text-align: left;
  vertical-align: top;
}

.gd-table th {
  background: var(--mk-surface-2);
  font-weight: 700;
}

.gd-table tr:last-child td {
  border-bottom: 0;
}

.gd-cta {
  margin: 2.5rem 0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--mk-hairline-strong);
  border-radius: var(--mk-radius);
  background:
    radial-gradient(30rem 14rem at 100% 0%, rgba(166, 233, 236, 0.14), transparent 60%),
    var(--mk-teal-ink);
}

.gd-cta .gd-cta-title {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 700;
}

.gd-cta p {
  color: var(--mk-muted);
}

.gd-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gd-sources ul {
  padding-left: 1.2rem;
}

.gd-sources li {
  color: var(--mk-muted) !important;
  font-size: 15px !important;
  overflow-wrap: anywhere;
}

.gd-faq details {
  margin-top: 10px;
  border: 1px solid var(--mk-hairline);
  border-radius: var(--mk-radius-sm);
  background: var(--mk-surface);
  padding: 0 18px;
}

.gd-faq summary {
  padding: 14px 0;
  cursor: pointer;
  font-weight: 600;
}

.gd-faq details p {
  color: var(--mk-muted);
}

.gd-related {
  padding: clamp(2rem, 5vw, 3rem) 0 2.5rem;
}

.gd-grid {
  display: grid;
  gap: 12px;
  margin: 1.5rem 0 0;
}

@media (min-width: 720px) {
  .gd-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Landing teaser (#ratgeber) shows three guides in one row. */
@media (min-width: 900px) {
  .mk-section .gd-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gd-card {
  display: grid;
  gap: 6px;
  align-content: start;
  color: var(--mk-text);
  text-decoration: none;
}

.gd-card strong {
  font-size: 17px;
  line-height: 1.35;
}

.gd-card span:last-child {
  color: var(--mk-muted);
  font-size: 15px;
}

.gd-card-kicker {
  color: var(--mk-cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mk-app-open.is-installed {
  border-color: var(--mk-cyan);
  color: var(--mk-cyan);
}
