/* appcycling.de — shared styles */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #1b2048;
  --ink-soft: #4a4f73;
  --muted: #6b7090;
  --bg: #f8f7f4;
  --surface: #ffffff;
  --line: #e6e4de;
  --accent: #3b4c80;
  --accent-ink: #ffffff;
  --radius: 22px;
  --wrap: 1120px;
  --shadow: 0 1px 2px rgba(27, 32, 72, .06), 0 12px 32px rgba(27, 32, 72, .08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef0fa;
    --ink-soft: #c3c7de;
    --muted: #9095b3;
    --bg: #0e1020;
    --surface: #171a30;
    --line: #2a2e4a;
    --accent: #8fa2e0;
    --accent-ink: #0e1020;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  }
}

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

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

body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

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

.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo-btn { padding: 0; border: 0; background: none; border-radius: 50%; cursor: zoom-in; transition: transform .15s ease; }
.logo-btn:hover { transform: scale(1.05); }
.logo-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.logo-mark { width: 80px; height: 80px; }

.logo-dialog { margin: auto; padding: 0; border: 0; background: none; overflow: visible; max-width: none; max-height: none; cursor: zoom-out; }
.logo-dialog::backdrop { background: rgba(8, 10, 24, .82); backdrop-filter: blur(4px); }
.logo-dialog img { display: block; width: min(88vw, 88vh, 720px); height: auto; filter: drop-shadow(0 24px 60px rgba(0, 0, 0, .5)); }
.logo-dialog-close { position: absolute; top: -8px; right: -8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #1b2048; font-size: 26px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
@media (prefers-reduced-motion: no-preference) {
  .logo-dialog[open] { animation: logo-pop .2s ease-out; }
  @keyframes logo-pop { from { transform: scale(.9); opacity: 0; } }
}
.nav { display: flex; gap: 22px; font-weight: 600; font-size: 15px; }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover { color: var(--ink); }

.site-footer { margin-top: 96px; padding: 36px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); }

/* ---------- Type ---------- */

.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.08; font-weight: 800; }
h1 { font-size: clamp(40px, 7vw, 76px); }
h2 { font-size: clamp(30px, 4.5vw, 46px); }
h3 { font-size: 22px; letter-spacing: -.015em; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-soft); max-width: 38em; }

/* ---------- Buttons ---------- */

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; background: var(--accent); color: var(--accent-ink); transition: transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }

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

.hero { padding: 56px 0 72px; }
.hero h1 { max-width: 12em; margin: 14px 0 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }

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

.section { padding: 56px 0; }
.section-head { margin-bottom: 32px; }
.section-head h2 { margin-top: 10px; }

/* ---------- App cards (home) ---------- */

.featured {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 32px;
  padding: 48px; border-radius: 32px; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 80% 70%, rgba(255,255,255,.16), transparent 50%), linear-gradient(135deg, #3b4c80, #1a1f45);
  text-decoration: none;
}
.featured .app-id { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.featured .app-id img { width: 56px; height: 56px; }
.featured .app-id span { font-weight: 800; font-size: 20px; }
.featured h3 { font-size: clamp(30px, 4vw, 44px); line-height: 1.05; }
.featured p { margin: 14px 0 26px; color: rgba(255,255,255,.8); max-width: 26em; }
.featured .btn { background: #fff; color: #1a1f45; }
.featured .shot { justify-self: center; width: min(260px, 70%); transform: rotate(-5deg) translateY(36px); margin-bottom: -48px; }
/* All featured cards share one height; a portrait phone peeks in from the top and is cut off at the bottom */
.featured { height: 460px; grid-template-rows: minmax(0, 1fr); }
.featured .shot:not(.landscape) { align-self: start; margin-bottom: 0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.card { padding: 28px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.card h3 { margin: 14px 0 8px; }
.card p { color: var(--ink-soft); font-size: 16px; }
.card.soon { background: transparent; box-shadow: none; border: 1.5px dashed var(--line); }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; background: var(--line); color: var(--ink-soft); }

/* ---------- Phone frame ---------- */

.phone { border-radius: 38px; padding: 9px; background: #0b0c10; box-shadow: 0 30px 70px rgba(10, 12, 30, .35), 0 0 0 1.5px rgba(255,255,255,.12); }
.phone img { border-radius: 30px; width: 100%; }
/* Landscape screenshots (e.g. Frets): thinner frame, sized by the column instead of a fixed width */
.phone.landscape { border-radius: 26px; padding: 7px; }
.phone.landscape img { border-radius: 20px; }

/* ---------- App page ---------- */

.app-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 40px 0 64px; }
.app-hero .app-id { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.app-hero .app-id img { width: 64px; height: 64px; }
.app-hero .app-id strong { display: block; font-size: 20px; }
.app-hero .app-id small { color: var(--muted); font-size: 14px; }
.app-hero h1 { margin-bottom: 20px; }
.app-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.app-hero .phone { width: min(300px, 80%); justify-self: center; transform: rotate(3deg); }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px; margin-bottom: 24px; border-radius: 32px; background: var(--tint, var(--surface)); color: var(--tint-ink, var(--ink)); }
.feature:nth-child(even) .feature-text { order: 2; }
.feature .phone { width: min(260px, 80%); justify-self: center; }
.app-hero .phone.landscape { width: 100%; transform: rotate(-2deg); }
.feature .phone.landscape { width: 100%; }
.feature .art { width: 100%; border-radius: 20px; box-shadow: 0 30px 70px rgba(10, 12, 30, .35), 0 0 0 1.5px rgba(255,255,255,.12); }
.featured .shot.landscape { width: 100%; transform: rotate(-3deg) translateY(12px); margin-bottom: 0; }
.featured.t-frets { background: radial-gradient(circle at 80% 70%, rgba(255,255,255,.12), transparent 50%), linear-gradient(135deg, #2f5e5a, #12201f); }
.featured.t-frets .btn { color: #12201f; }
.featured + .featured { margin-top: 24px; }
.feature h2 { margin: 10px 0 16px; }
.feature p { font-size: 18px; opacity: .85; max-width: 26em; }
.feature .eyebrow { color: inherit; opacity: .7; }

.t-navy  { --tint: linear-gradient(160deg, #3b4c80, #22295a); --tint-ink: #fff; }
.t-sand  { --tint: linear-gradient(160deg, #f4e7c8, #e9c98e); --tint-ink: #2a2414; }
.t-sky   { --tint: linear-gradient(160deg, #dde6f7, #b5c6ec); --tint-ink: #1b2048; }
.t-teal  { --tint: linear-gradient(160deg, #2f5e5a, #173836); --tint-ink: #fff; }
.t-night { --tint: linear-gradient(200deg, #1a1f3a, #05060d); --tint-ink: #fff; }
.t-rose  { --tint: linear-gradient(160deg, #f7dcd3, #e8a99a); --tint-ink: #3a1d16; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fact { padding: 24px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.fact strong { display: block; font-size: 28px; letter-spacing: -.02em; }
.fact span { color: var(--muted); font-size: 15px; }

.cta { text-align: center; padding: 64px 24px; border-radius: 32px; background: var(--surface); box-shadow: var(--shadow); }
.cta h2 { margin-bottom: 14px; }
.cta p { color: var(--ink-soft); margin-bottom: 28px; }

/* ---------- Text pages (imprint, privacy) ---------- */

.prose { max-width: 720px; padding: 32px 0; }
.prose h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 28px; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose p, .prose ul, .prose address { margin-bottom: 14px; color: var(--ink-soft); font-style: normal; }
.prose ul { padding-left: 22px; }
.placeholder { background: #fff3b0; color: #5a4a00; padding: 0 4px; border-radius: 4px; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .featured, .app-hero, .feature { grid-template-columns: 1fr; }
  .featured { padding: 32px 24px 0; height: auto; grid-template-rows: auto; }
  .featured .shot:not(.landscape) { margin-bottom: -48px; }
  .feature { padding: 36px 24px; gap: 32px; }
  .feature:nth-child(even) .feature-text { order: 0; }
  .grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .app-hero .phone { width: min(240px, 70%); }
  .app-hero .phone.landscape { width: 100%; }
  .featured .shot.landscape { margin-bottom: 32px; }
}

@media (max-width: 520px) {
  .nav { gap: 16px; font-size: 14px; }
  .logo-mark { width: 56px; height: 56px; }
  .hero { padding: 32px 0 48px; }
  .fact { padding: 18px; }
  .fact strong { font-size: 22px; }
}
