/* Landing page for loopcorder.app. Colors and fonts follow the app's default "Studio" skin. */

@font-face { font-family: 'Unbounded'; font-weight: 500; font-display: swap; src: url(fonts/unbounded-500.woff2) format('woff2'); }
@font-face { font-family: 'Unbounded'; font-weight: 700; font-display: swap; src: url(fonts/unbounded-700.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url(fonts/manrope-400.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url(fonts/manrope-700.woff2) format('woff2'); }

:root {
  --bg: #16171a; --panel: #202227; --line: #3a3e46;
  --text: #ecebe6; --muted: #9a9a93; --accent: #ffb547; --on-accent: #1b1608; --rec: #ff4d3d;
  --r: 14px;
  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
h3 { font-size: 1rem; font-weight: 500; color: var(--accent); }
p { margin: 0 0 1em; }

.top {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem max(1.2rem, env(safe-area-inset-left)) .8rem max(1.2rem, env(safe-area-inset-right));
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
}
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font: 700 1.05rem var(--display); }
.brand img { border-radius: 8px; }

main { max-width: 1080px; margin: 0 auto; padding: 0 1.2rem; }
section { padding: 3.5rem 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 45%, transparent); }
section:last-child { border-bottom: 0; }

.btn {
  display: inline-block; padding: .85rem 1.4rem; border-radius: var(--r);
  background: var(--accent); color: var(--on-accent); border: 2px solid var(--accent);
  font: 700 1rem var(--body); text-decoration: none; transition: transform .1s, filter .1s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.small { padding: .45rem .9rem; font-size: .9rem; border-radius: calc(var(--r) * .7); }
.btn.big { padding: 1.1rem 2.2rem; font-size: 1.15rem; }
.btn.dl { display: flex; align-items: center; gap: 1rem; width: 100%; max-width: 30rem; margin-top: 1.6rem; padding: 1.1rem 1.6rem; text-align: left; }
.dl-i { font-size: 2.2rem; line-height: 1; }
.dl b { display: block; font: 700 1.3rem var(--display); }
.dl small { display: block; font-size: .9rem; opacity: .75; }

.hero { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 2rem; padding-top: 4rem; }
.lead { font-size: 1.2rem; color: var(--text); max-width: 34ch; }
.cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1rem; }
.fine { color: var(--muted); font-size: .9rem; }

.pedal { display: grid; place-items: center; }
.pedal svg { width: min(320px, 70vw); height: auto; }
.pedal .track { fill: none; stroke: var(--line); stroke-width: 12; }
.pedal .ring {
  fill: none; stroke: var(--accent); stroke-width: 12; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100; transform: rotate(-90deg); transform-origin: center;
  animation: loop 4s linear infinite;
}
.pedal .core { fill: var(--rec); animation: pulse 1s ease-in-out infinite; transform-origin: center; }
@keyframes loop { to { stroke-dashoffset: 0; } }
@keyframes pulse { 50% { transform: scale(.88); opacity: .8; } }
@media (prefers-reduced-motion: reduce) {
  .pedal .ring { animation: none; stroke-dashoffset: 25; }
  .pedal .core { animation: none; }
}

.steps ol { list-style: none; counter-reset: s; padding: 0; margin: 0 0 1.2rem; display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.steps li {
  counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem;
}
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: .6rem;
  border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 700 .95rem var(--display);
}
.note { color: var(--muted); max-width: 62ch; }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid article { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem 1.3rem .3rem; }
.grid article p { color: color-mix(in srgb, var(--text) 82%, var(--muted)); font-size: .97rem; }

.privacy p { max-width: 62ch; font-size: 1.1rem; }
.final { text-align: center; padding: 4rem 0; }

footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  max-width: 1080px; margin: 0 auto; padding: 1.5rem 1.2rem calc(1.5rem + env(safe-area-inset-bottom));
  color: var(--muted); font-size: .85rem;
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 2.5rem; }
  .pedal { order: -1; }
  .pedal svg { width: min(200px, 50vw); }
  .grid, .steps ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid, .grid.two, .steps ol { grid-template-columns: 1fr; }
  section { padding: 2.5rem 0; }
}
