/* songknife.com — one calm cream page: the identity reveal, three sections (capture, write, together) with
   app screenshots in pure-CSS phone frames, the waitlist, a short footer. Mobile first (390 px, 16 px gutters). */

@font-face{font-family:"Tilt Warp";src:url("/brand/fonts/TiltWarp.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
/* Sarabun Thin is used for the slogan only. */
@font-face{font-family:"Sarabun Thin";src:url("/brand/fonts/Sarabun-Thin.ttf") format("truetype");font-weight:100;font-style:normal;font-display:swap}

:root{
  color-scheme: light;
  --paper:#f4eee2; --paper-2:#ebe3d3; --paper-3:#e4dac7; --rule:#d5cabe;
  --ink:#391e27; --ink-2:#4f3640; --muted:#6d5f56;
  --accent:#bb482c;        /* large text, fills, the button */
  --accent-ink:#a33d24;    /* small accent text on paper (5.6:1) */
  --cream:#fff0ce; --field:#fffaf0;
  --phone:#1d191b;
  --app-bg:#0e1422;        /* the app's own screen colour, behind each screenshot while it loads */
  --display:"Tilt Warp","Arial Rounded MT Bold",Arial,sans-serif;
  --slogan:"Sarabun Thin","Helvetica Neue",Helvetica,Arial,sans-serif;
  --ui:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --gutter:16px;
  --max:1120px;
}
*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--paper);color:var(--ink);font-family:var(--ui);font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;overflow-x:hidden}
/* The paper grain from the supplied page, on the whole page; the reveal's own backdrop is transparent so it blends in. */
body:before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;opacity:.2;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.74' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%239d7754' opacity='.3' filter='url(%23n)' d='M0 0h160v160H0z'/%3E%3C/svg%3E")}
img{max-width:100%}
a{color:inherit}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:4px}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip{position:absolute;left:var(--gutter);top:-60px;z-index:10;background:var(--ink);color:var(--cream);padding:10px 16px;border-radius:10px;text-decoration:none;font-weight:600}
.skip:focus{top:12px}

.wrap{width:100%;max-width:var(--max);margin:0 auto;padding:0 var(--gutter)}
h2,h3{font-family:var(--display);font-weight:400;color:var(--ink);margin:0}

/* ---------- Hero ---------- */
.hero{padding:clamp(8px,3vh,40px) var(--gutter) clamp(48px,8vh,88px);text-align:center}
.reveal{width:100%;max-width:640px;margin:0 auto;min-height:472px;--sk-reveal-background:transparent;--sk-reveal-grain:none}
/* Tap the reveal to play it again (pointer); keyboard users get the button below, shown when focused. */
.reveal{cursor:pointer;-webkit-tap-highlight-color:transparent}
.replay{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.replay:focus-visible{position:static;width:auto;height:auto;margin:8px auto 0;clip:auto;overflow:visible;display:block;font:600 14px/1.2 var(--ui);color:var(--ink);background:var(--paper-2);border:1.5px solid var(--rule);border-radius:999px;padding:8px 16px;cursor:pointer}
.static-hero{display:block;width:100%;margin:0 auto;text-align:center}
.static-hero img{display:block;width:min(100%,360px);height:auto;margin:0 auto}
.static-hero h1{display:block;font-family:var(--display);font-weight:400;font-size:clamp(44px,12vw,72px);letter-spacing:-.04em;line-height:1.08;margin:16px 0 0}
.static-hero span{display:block;font-family:var(--slogan);font-weight:100;font-size:clamp(22px,5.75vw,28px);margin-top:6px}
.hero-copy{max-width:640px;margin:8px auto 0}
.hero-line{font-family:var(--display);font-size:clamp(28px,7.4vw,46px);line-height:1.12;letter-spacing:-.01em;margin:0;text-wrap:balance}
.hero-line span{color:var(--accent)}
.hero-sub{font-size:clamp(17px,2.2vw,20px);color:var(--ink-2);margin:16px auto 0;max-width:34em;text-wrap:pretty}
.actions{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:14px 24px;margin-top:28px}
.btn{display:inline-block;font-family:var(--display);font-size:18px;letter-spacing:.02em;line-height:1.2;color:var(--cream);background:var(--accent);text-decoration:none;border-radius:14px;padding:15px 26px;box-shadow:0 1px 0 rgba(57,30,39,.25),0 8px 20px -10px rgba(187,72,44,.6)}
.btn:hover{background:#a8401f}
.more{color:var(--ink);text-decoration:none;font-weight:600;border-bottom:2px solid var(--accent);padding-bottom:1px}
.more:hover{color:var(--accent-ink)}
.beta{margin:26px 0 0;color:var(--muted);font-size:15px}
.beta span{display:inline-block;font-family:var(--display);letter-spacing:.05em;font-size:13px;color:var(--cream);background:var(--ink);padding:3px 12px;border-radius:999px;margin-right:6px;vertical-align:1px}

/* ---------- Feature sections ---------- */
.feature{padding:clamp(56px,10vw,120px) 0;border-top:1px solid var(--rule)}
.feature.band{background:rgba(235,227,211,.6);border-top-color:transparent}
.feature .wrap{display:grid;gap:48px}
.eyebrow{display:flex;align-items:center;gap:10px;margin:0 0 14px;font-size:13px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--accent-ink)}
.eyebrow span{font-family:var(--display);font-weight:400;letter-spacing:.02em;font-size:15px;color:var(--ink);border:1.5px solid var(--ink);border-radius:999px;padding:1px 9px}
.feature h2{font-size:clamp(38px,10vw,64px);line-height:1.02;letter-spacing:-.02em;text-wrap:balance}
.lede{font-size:clamp(18px,2.3vw,21px);line-height:1.5;color:var(--ink-2);margin:18px 0 0;max-width:30em;text-wrap:pretty}
.points{list-style:none;margin:32px 0 0;padding:0;display:grid;gap:24px}
.points li{border-top:1px solid var(--rule);padding-top:16px}
.points h3{font-size:20px;line-height:1.2;letter-spacing:.01em;margin:0 0 6px}
.points p{margin:0;color:var(--muted);font-size:16px}
.points p + p{margin-top:10px}
.inline{color:var(--ink);text-decoration:none;font-weight:600;border-bottom:2px solid var(--accent)}
.inline:hover{color:var(--accent-ink)}

/* Decorative take: waveform, two marks, a playhead. */
.wave{position:relative;height:72px;display:flex;align-items:center;gap:2px;margin:28px 0 0;padding:0 2px}
.wave b{flex:1;min-width:1px;border-radius:2px;background:rgba(187,72,44,.26);max-height:64px}
.wave b.on{background:var(--accent)}
.wave .ph{position:absolute;top:0;bottom:0;width:2px;background:var(--ink);left:38%}
.wave .ph::before{content:"";position:absolute;top:-2px;left:-6px;border:7px solid transparent;border-top:9px solid var(--ink)}
.wave .mk{position:absolute;top:-10px;width:10px;height:10px;background:#fa5824;transform:rotate(45deg);border-radius:2px}

/* ---------- Screenshots in phone frames (pure CSS; sized from the frame's own width) ---------- */
.shots{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start;max-width:560px;width:100%;margin:0 auto}
/* The figure is the size container, so the frame's cqw units are the phone's own width (a container can't size itself). */
.shot{margin:0 auto;min-width:0;width:100%;max-width:280px;container-type:inline-size}
.shot:nth-child(2){margin-top:40px}
.phone{position:relative;width:100%;padding:3.4cqw;border-radius:15cqw;background:var(--phone);box-shadow:inset 0 0 0 1.2cqw #2c2628,0 1px 0 rgba(57,30,39,.3),0 30px 50px -28px rgba(57,30,39,.55)}
.phone::after{content:"";position:absolute;top:6.2cqw;left:50%;transform:translateX(-50%);width:28cqw;height:8cqw;border-radius:999px;background:var(--phone);z-index:2}
.screen{position:relative;aspect-ratio:600/1300;border-radius:11.8cqw;overflow:hidden;background:var(--app-bg)}
.screen img{display:block;width:100%;height:100%;object-fit:cover}
/* A file that fails to load leaves a plain dark screen, never a broken-image icon. */
.screen.missing img{visibility:hidden}
.shot figcaption{margin-top:12px;font-size:14px;line-height:1.4;color:var(--muted);text-align:center;text-wrap:balance}

/* ---------- Waitlist ---------- */
.wait{padding:clamp(56px,10vw,120px) var(--gutter) clamp(64px,10vw,120px);border-top:1px solid var(--rule);scroll-margin-top:8px}
.wait-card{max-width:620px;margin:0 auto;display:flex;flex-direction:column;gap:12px;text-align:center}
.slogan{font-family:var(--slogan);font-weight:100;font-size:clamp(28px,7.4vw,48px);line-height:1.25;letter-spacing:.01em;color:var(--ink);margin:0 0 18px}
.wait h2{font-size:clamp(28px,6vw,40px);line-height:1.1}
.wait-card > p{margin:0;color:var(--ink-2)}
.wait form{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px;text-align:left}
.wait form[hidden]{display:none}  /* the script hides the form after a successful join */
.wait input[type=email]{flex:1 1 220px;min-width:0;font:inherit;color:var(--ink);background:var(--field);border:1.5px solid var(--rule);border-radius:14px;padding:13px 15px}
.wait input[type=email]:focus{outline:none;border-color:var(--ink);box-shadow:0 0 0 3px rgba(57,30,39,.15)}
.wait button{flex:0 0 auto;font-family:var(--display);font-size:17px;letter-spacing:.02em;color:var(--cream);background:var(--accent);border:0;border-radius:14px;padding:13px 22px;cursor:pointer}
.wait button:hover{background:#a8401f}
.wait button:disabled{opacity:.6;cursor:default}
.wait button:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.wait .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.wait .msg{min-height:1.5em;font-size:16px;color:var(--ink-2)}
.wait .msg.err{color:var(--accent-ink)}
.wait small{color:var(--muted);font-size:13.5px}

/* ---------- Footer ---------- */
footer{border-top:1px solid var(--rule);color:var(--muted);font-size:13.5px;padding:22px 0 calc(26px + env(safe-area-inset-bottom,0px))}
footer .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 24px}
footer a{color:var(--ink-2);text-underline-offset:2px}
footer a:hover{color:var(--accent-ink)}

/* ---------- Larger screens ---------- */
@media (max-width:479px){.wait form{flex-direction:column}.wait input[type=email]{flex:0 0 auto}}
@media (min-width:640px){
  :root{--gutter:24px}
  .reveal{min-height:608px}
  .points{grid-template-columns:1fr 1fr;gap:28px 32px}
  .points li.wide{grid-column:1 / -1}
  .shots{gap:24px}
}
@media (min-width:960px){
  :root{--gutter:32px}
  .feature .wrap{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:72px;align-items:center}
  .feature.flip .feature-text{order:2}
  .feature.flip .shots{order:1}
  .shots{max-width:none}
  .shot:nth-child(2){margin-top:72px}
}
/* Wide: the reveal and the hero copy side by side, so the button sits above the fold. */
@media (min-width:1024px){
  .hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);align-items:center;column-gap:40px;max-width:var(--max);margin:0 auto;padding-left:var(--gutter);padding-right:var(--gutter);text-align:left}
  .reveal{min-height:560px;margin:0;grid-column:1;grid-row:1}
  .replay:focus-visible{grid-column:1;grid-row:2;margin-top:0}
  .hero-copy{grid-column:2;grid-row:1 / span 2}
  .hero-copy{margin:0;max-width:520px}
  .hero-sub{margin-left:0}
  .actions{justify-content:flex-start}
}

/* Motion: smooth jumps, the decorative playhead, and soft hovers only when motion is welcome. The reveal handles itself. */
@media (prefers-reduced-motion:no-preference){
  html{scroll-behavior:smooth}
  .wave .ph{animation:play 9s linear infinite}
  @keyframes play{from{left:8%}to{left:92%}}
  .btn,.wait button{transition:background-color .2s}
}
