/* SamplePad landing – warm analog greys + orange, LCD font from the app. No dependencies. */
@font-face { font-family: 'lcd'; src: url(/assets/digital-7.ttf) format('truetype'); font-display: swap; }

:root {
  --bg: #e9e6e3;
  --panel: #f6f4f2;
  --line: #d0cdcb;
  --fg: #2a2725;
  --muted: #6f6a66;
  --orange: #e47828;
  --orange-dark: #c9631a;
  --dark: #201e1d;
  --dark-2: #2d2a28;
  --lcd: #a7ad8c;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; }
h1 em { font-style: normal; color: var(--orange); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; margin-top: 10px; }
h3 { font-size: 1.1rem; margin: 14px 0 6px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; margin: 18px 0 0; }
.lcd-tag { display: inline-block; margin: 0; font: 1.25rem/1 lcd, monospace; letter-spacing: .08em; color: #3b3f2d; background: var(--lcd); padding: 7px 12px 5px; border-radius: 6px; box-shadow: inset 0 2px 6px rgba(0,0,0,.25); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .12s, background .12s, box-shadow .12s; }
.btn:active { transform: translateY(1px); }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 4px 0 var(--orange-dark), 0 10px 24px rgba(228,120,40,.3); }
.btn-orange:hover { background: #ee8331; }
.btn-ghost { border-color: var(--line); background: var(--panel); box-shadow: 0 4px 0 var(--line); }
.btn-big { padding: 14px 24px; font-size: 1.05rem; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(233,230,227,.88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 1.6rem/1 lcd, monospace; letter-spacing: .06em; }
.logo img { display: block; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav nav a:hover { color: var(--fg); }

/* hero */
.hero { padding: 72px 0 40px; background: radial-gradient(1100px 500px at 80% 10%, rgba(228,120,40,.14), transparent 60%), var(--bg); overflow: hidden; }
.hero-text { max-width: 760px; }
.hero h1 { margin-top: 20px; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.cta.center { justify-content: center; }
.hint { color: var(--muted); font-size: .92rem; margin: 18px 0 0; }

/* phone in landscape with the live app */
.device-stage { max-width: 1060px; margin: 52px auto 0; padding: 0 24px; text-align: center; }
.phone { position: relative; padding: 14px 18px; border-radius: 52px; background: linear-gradient(145deg, #3a3634, #121110 55%, #2b2826); box-shadow: 0 0 0 2px #4a4643, 0 40px 80px -20px rgba(0,0,0,.45), 0 20px 40px -20px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.08); }
.phone-island { position: absolute; left: 6px; top: 50%; width: 10px; height: 76px; margin-top: -38px; border-radius: 6px; background: #050505; box-shadow: inset 0 0 0 1px #1d1d1d; z-index: 2; }
.phone-btn { position: absolute; top: -4px; height: 5px; border-radius: 3px 3px 0 0; background: #2c2927; }
.phone-btn-a { left: 22%; width: 70px; } .phone-btn-b { left: calc(22% + 84px); width: 70px; }
.phone-screen { position: relative; aspect-ratio: 844 / 390; border-radius: 38px; overflow: hidden; background: #d0cecc; }
.phone-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#app-frame { position: absolute; left: 0; top: 0; width: 844px; height: 390px; border: 0; transform-origin: 0 0; transform: scale(var(--s, 1)); background: transparent; }
.device-full { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--orange-dark); text-decoration: none; }

/* features */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 3px 0 var(--line); }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(#faf9f8, #e2dfdc); border: 1px solid var(--line); color: var(--orange); font-size: 1.3rem; box-shadow: 0 2px 0 var(--line); }

/* scratch */
.dark { background: var(--dark); color: #f1eeeb; overflow: hidden; }
.dark .lead, .dark .ticks { color: #b9b3ae; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.ticks { padding: 0; margin: 24px 0 32px; list-style: none; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.vinyl { aspect-ratio: 1; max-width: 420px; width: 100%; justify-self: center; border-radius: 50%; position: relative;
  background: radial-gradient(circle, var(--orange) 0 15%, #1a1a1a 15.5% 17%, transparent 17.5%), repeating-radial-gradient(circle, #111 0 2px, #1b1b1b 2px 4px);
  box-shadow: 0 30px 60px rgba(0,0,0,.5), inset 0 0 0 10px #0c0c0c; animation: spin 1.8s linear infinite; }
.vinyl i { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 20deg, transparent 0 10%, rgba(255,255,255,.08) 14%, transparent 20% 60%, rgba(255,255,255,.06) 64%, transparent 70%); }
.vinyl::after { content: ''; position: absolute; left: 50%; top: 50%; width: 3%; height: 3%; margin: -1.5%; border-radius: 50%; background: #e9e6e3; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vinyl { animation: none; } html { scroll-behavior: auto; } }

/* install */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step b { font: 1.4rem/1 lcd, monospace; letter-spacing: .04em; }
.step p { margin: 10px 0 0; color: var(--muted); }
.step em { font-style: normal; font-weight: 700; color: var(--fg); }
.note { color: var(--muted); font-size: .95rem; margin: 24px 0 36px; }

footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer span { display: inline-flex; align-items: center; gap: 8px; }
footer img { display: block; }

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .vinyl { max-width: 300px; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .wrap { padding: 0 16px; }
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .device-stage { padding: 0 10px; margin-top: 36px; }
  .phone { padding: 7px 9px; border-radius: 26px; }
  .phone-screen { border-radius: 19px; }
  .phone-island { width: 5px; height: 40px; margin-top: -20px; left: 2px; }
  .phone-btn { display: none; }
}
