/* pillowchop.app. Mobile first: the base rules are the phone layout, and the block at the end
   widens it for desktop. Design by Codex (Art/Concept/Web). No scripts, no remote fonts. */
:root {
  --ink: #12070f; --burg: #2a0f1f; --wine: #641637; --green: #087147; --darkgreen: #043d2b;
  --gold: #d8a13a; --goldhi: #f6d675; --cream: #f8ebc8; --muted: #cdbf9d; --blue: #071d3e;
  --rounded: ui-rounded, "Avenir Next", system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--cream); font-family: var(--rounded); font-size: 16px;
  background: var(--ink) linear-gradient(#12070fd9, #12070ff2), var(--ink);
  background-image: linear-gradient(#12070fd9, #12070ff2), url("/assets/velvet-tile.webp");
  background-size: auto, 512px;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--goldhi); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; }
.wrap { width: min(100% - 28px, 520px); margin: auto; }

/* Header */
.nav {
  height: 70px; display: flex; align-items: center; justify-content: space-between;
  position: absolute; inset: 0 0 auto; z-index: 4; padding: 0 16px;
  background: linear-gradient(#10060edf, transparent);
}
.nav img { width: 155px; height: auto; display: block; }
.links { display: flex; gap: 28px; align-items: center; font-size: 14px; font-weight: 750; }
.links a:not(.nav-cta) { display: none; opacity: 0.82; }
.links a:not(.nav-cta):hover, .links a[aria-current] { opacity: 1; }
.nav-cta, .button {
  display: inline-flex; align-items: center; min-height: 44px;
  border: 1px solid #f6d67588; background: linear-gradient(180deg, #7b2548, #4a112f);
  box-shadow: inset 0 1px #fff3, 0 9px 24px #0007; border-radius: 999px;
  padding: 12px 20px; font-weight: 850; letter-spacing: 0.02em;
}
.nav-cta { padding: 10px 14px; font-size: 12px; }

/* Home: hero */
.hero {
  min-height: 790px; display: grid; align-items: start; position: relative;
  background: var(--burg) url("/assets/hero-tall.webp") center top / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, #12070f 0%, transparent 28%),
    linear-gradient(180deg, #12070fcc 0%, #12070f42 47%, #12070f66 100%);
}
.hero-copy { position: relative; z-index: 2; padding: 104px 23px 0; text-align: center; }
.hero-logo { width: 330px; max-width: 94%; height: auto; filter: drop-shadow(0 12px 24px #000b); }
.eyebrow { color: var(--goldhi); font-size: 12px; letter-spacing: 0.24em; font-weight: 900; text-transform: uppercase; margin: 24px 0 10px; }
.hero h1 { font: 700 38px/1.03 var(--serif); margin: 0 0 18px; }
/* On a phone this line sits over the staircase, so it is heavier and shadowed to hold its own. */
.hero .lede { font-size: 16px; font-weight: 650; line-height: 1.5; color: var(--cream); text-shadow: 0 1px 3px #000, 0 0 14px #12070f; margin: 0 0 28px; }
.action { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.coming {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 14px 20px;
  background: #050505; border-radius: 12px; border: 1px solid #ffffff2b; font-weight: 800;
}
.coming::before { content: "●"; color: #fff; font-size: 20px; line-height: 1; }
.aside { font: italic 700 16px var(--serif); color: var(--goldhi); text-shadow: 0 1px 3px #000, 0 0 14px #12070f; }
/* Apple's badge, used unaltered. Apple asks for clear space of a quarter of its height all round. */
.badge { display: inline-block; padding: 6px; line-height: 0; border-radius: 12px; }
.badge img { display: block; height: 50px; width: auto; }

/* Home: the promise */
.promise-bar { border-block: 1px solid #d8a13a55; background: linear-gradient(90deg, #200b1b, #48122f 50%, #200b1b); padding: 22px 0; }
.promises { display: grid; grid-template-columns: 1fr 1fr; text-align: center; margin: 0; padding: 0; list-style: none; }
.promise { padding: 13px 8px; border-right: 1px solid #d8a13a3d; border-bottom: 1px solid #d8a13a3d; }
.promise:nth-child(2n) { border-right: 0; }
.promise:nth-child(n+3) { border-bottom: 0; }
.promise strong { display: block; color: var(--goldhi); font: 700 18px var(--serif); }
.promise span { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.promise-note { text-align: center; color: var(--muted); font: italic 13px/1.5 var(--serif); margin: 18px 0 0; padding: 0 16px; }
.promise-note a { color: var(--cream); font-weight: bold; display: inline-block; padding: 8px 0; }

/* Home: sections */
.section { padding: 62px 0; }
.section.tight { padding-top: 20px; }
.section-title { text-align: center; max-width: 680px; margin: 0 auto 42px; }
.section-title h2 { font: 700 clamp(30px, 4vw, 48px)/1.1 var(--serif); margin: 0 0 12px; }
.section-title p { color: var(--muted); line-height: 1.7; margin: 0; }
.rule { display: block; width: min(620px, 80%); margin: 0 auto 38px; }
.features { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card {
  background: linear-gradient(145deg, #3b1328e8, #1b0a17e8); border: 1px solid #d8a13a5c;
  border-radius: 20px; padding: 25px; box-shadow: 0 18px 50px #0005;
}
.number { color: var(--goldhi); font-weight: 950; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.card h3 { font: 700 22px var(--serif); margin: 28px 0 10px; }
.card p { color: var(--muted); line-height: 1.55; font-size: 16px; margin: 0; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: start; }
.phone {
  aspect-ratio: 9 / 19.5; border: 4px solid #20181e; border-radius: 22px; background: #20181e;
  box-shadow: 0 24px 55px #0008; overflow: hidden; margin: 0;
}
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; }
.phone:nth-child(2) { margin-top: 24px; }
.daily {
  margin-top: 58px; border: 1px solid #f6d67575; border-radius: 28px; padding: 28px;
  display: grid; grid-template-columns: 1fr; gap: 25px; align-items: center; text-align: center;
  background: linear-gradient(135deg, #0a3429e8, #3f102be8);
}
.seal {
  width: 150px; height: 150px; border: 7px solid var(--gold); border-radius: 50%;
  display: grid; place-items: center; margin: auto; background: #160913;
  box-shadow: 0 0 0 7px #5b3010, 0 20px 50px #0008; color: var(--goldhi); font: 800 48px var(--serif);
}
.daily h2 { font: 700 34px/1.1 var(--serif); margin: 0 0 14px; }
.daily p { color: var(--muted); line-height: 1.7; margin: 0 0 20px; }

/* Home: the pillow to try (play.js). Hidden unless the browser can draw it. */
.toy { max-width: 440px; margin: 0 auto; }
.toy-stage {
  position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden;
  border: 1px solid #f6d67575; box-shadow: 0 24px 55px #0008;
  background: linear-gradient(#12070f40, #12070f99), var(--burg) url("/assets/hero-tall.webp") center 18% / 190% no-repeat;
}
.toy-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* On a phone, swipes scroll the page until the visitor asks to take over. */
.toy-scene { pointer-events: none; }
.toy.is-live .toy-scene { pointer-events: auto; touch-action: none; cursor: grab; }
.toy-trail { pointer-events: none; }
.toy-hud { position: absolute; inset: 14px 14px auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; pointer-events: none; }
.toy-gauge span { display: block; font-size: 11px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; text-shadow: 1px 1px 0 #000; }
.toy-track { position: relative; height: 12px; margin-top: 5px; border-radius: 999px; overflow: hidden; background: #0009; }
/* The green stretch is where the bar should finish. */
.toy-track-fluff { background: linear-gradient(90deg, #0009 60%, var(--green) 60%); }
.toy-track-chop { background: linear-gradient(90deg, #0009 50%, var(--green) 50% 86%, #0009 86%); }
.toy-track i { position: absolute; inset: 3px auto 3px 3px; width: 0; max-width: calc(100% - 6px); border-radius: 999px; background: #fff; transition: width 0.18s ease-out; }
.toy-track i.is-good { background: var(--goldhi); }
.toy-status, .toy-banner { position: absolute; left: 50%; margin: 0; pointer-events: none; white-space: nowrap; }
.toy-status { top: 58px; transform: translateX(-50%); padding: 5px 12px; border-radius: 999px; background: #000a; font-size: 11px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.toy-banner {
  top: 96px; transform: translateX(-50%) rotate(-6deg) scale(1.5); opacity: 0;
  font: italic 900 26px var(--rounded); color: var(--goldhi); text-shadow: 3px 3px 0 #000; text-transform: uppercase;
  transition: opacity 0.2s, transform 0.2s;
}
.toy-banner.is-on { opacity: 1; transform: translateX(-50%) rotate(-6deg) scale(1); }
.toy-take { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); color: var(--cream); font: inherit; font-weight: 850; cursor: pointer; }
.toy.is-live .toy-take { background: #0008; border-color: #fff4; padding: 8px 14px; font-size: 12px; min-height: 36px; }
.toy-line { min-height: 4.6em; margin: 16px 4px 6px; font: italic 16px/1.5 var(--serif); color: var(--cream); text-align: center; }
.toy-help { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: center; margin: 0; color: var(--muted); font-size: 13px; }
.toy-help button { min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--goldhi); font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Footer */
.footer { padding: 42px 0; border-top: 1px solid #d8a13a40; color: #b9aa8f; font-size: 13px; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 6px 22px; margin-top: 8px; flex-wrap: wrap; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a:hover { color: var(--cream); }

/* Text pages */
.pagehead { padding: 115px 18px 40px; text-align: center; background: radial-gradient(circle at 50% 0, #64163799, transparent 55%); }
.pagehead h1 { font: 700 clamp(38px, 6vw, 70px)/1 var(--serif); margin: 12px 0 16px; }
.pagehead p { max-width: 650px; margin: auto; color: var(--muted); line-height: 1.7; }
.reading { width: calc(100% - 28px); max-width: 760px; margin: 0 auto; padding: 28px 0 70px; }
.reading article { background: #170914e8; border: 1px solid #d8a13a55; border-radius: 24px; padding: 25px 21px; box-shadow: 0 30px 80px #0006; }
.reading article.about { background: linear-gradient(145deg, #351027f2, #170914f5 58%); border-color: #f6d67580; }
.reading h2 { font: 700 26px/1.2 var(--serif); color: var(--goldhi); margin: 36px 0 12px; }
.reading article > :first-child { margin-top: 0; }
.reading p, .reading li, .reading dd, .reading td { color: #ded1b4; line-height: 1.72; }
.reading a { color: var(--goldhi); text-decoration: underline; text-underline-offset: 3px; }
.reading strong { color: var(--cream); }
.reading .dated { color: var(--muted); font-size: 14px; }
.warm-quote {
  font: italic 19px/1.55 var(--serif); color: var(--cream) !important; border-left: 4px solid var(--gold);
  padding: 18px 0 18px 18px; margin: 42px 0 !important; background: linear-gradient(90deg, #d8a13a12, transparent);
}
.manager { display: grid; grid-template-columns: 85px 1fr; gap: 16px; align-items: center; background: #300f24; border-radius: 18px; padding: 15px; margin: 0 0 30px; }
.manager img { width: 85px; height: auto; display: block; }
.manager blockquote { font: italic 16px/1.5 var(--serif); margin: 0; color: var(--cream); }
.manager cite { display: block; margin-top: 6px; font: 800 11px var(--rounded); letter-spacing: 0.16em; text-transform: uppercase; color: var(--goldhi); }
.controls { width: 100%; border-collapse: collapse; }
.controls th, .controls td { text-align: left; vertical-align: top; padding: 11px 12px 11px 0; border-top: 1px solid #d8a13a38; }
.controls th { color: var(--cream); font-weight: 700; width: 42%; }
.qa { margin: 0; }
.qa dt { border-top: 1px solid #d8a13a38; padding-top: 20px; margin-top: 20px; color: var(--cream); font-weight: 700; }
.qa dd { margin: 8px 0 0; }

/* Not found */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 110px 24px 40px; background: radial-gradient(circle at 50% 35%, #64163790, transparent 40%); }
.notfound img { width: 170px; height: auto; }
.notfound .four { font: 900 clamp(90px, 20vw, 210px)/0.75 var(--serif); color: var(--goldhi); text-shadow: 0 8px #5c260d; margin: 10px; }
.notfound h1 { font: 700 36px/1.1 var(--serif); margin: 25px 0 12px; }
.notfound p { color: var(--muted); font-size: 18px; max-width: 580px; line-height: 1.6; margin: 0 auto 28px; }

/* Desktop */
@media (min-width: 701px) {
  .wrap { width: min(1120px, calc(100% - 48px)); }
  .nav { height: 84px; padding: 0 max(24px, calc((100% - 1120px) / 2)); }
  .nav img { width: 205px; }
  .links a:not(.nav-cta) { display: inline-flex; align-items: center; min-height: 44px; }
  .nav-cta { padding: 12px 20px; font-size: 14px; }
  .hero { min-height: 760px; align-items: center; background-image: url("/assets/hero-wide.webp"); background-position: center; }
  .hero::after { background: linear-gradient(90deg, #10050fe6 0%, #170714b8 27%, transparent 58%), linear-gradient(0deg, #12070f 0%, transparent 28%); }
  .hero-copy { width: min(540px, 44vw); margin-left: max(24px, calc((100vw - 1120px) / 2)); padding: 50px 0 0; text-align: left; }
  .hero-logo { width: min(520px, 100%); max-width: none; }
  .hero h1 { font-size: clamp(34px, 4vw, 58px); }
  .hero .lede { font-size: 18px; font-weight: 400; line-height: 1.6; color: #f8ebc8dc; text-shadow: none; }
  .action { justify-content: flex-start; }
  .aside { font-weight: 400; font-size: 15px; text-shadow: none; }
  .promise-bar { padding: 25px 0; }
  .promises { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .promise, .promise:nth-child(2n) { padding: 8px 14px; border-bottom: 0; border-right: 1px solid #d8a13a3d; }
  .promise:last-child { border-right: 0; }
  .promise strong { font-size: 20px; }
  .promise-note { font-size: 14px; }
  .section { padding: 88px 0; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .card { min-height: 210px; }
  .card p { font-size: 15px; }
  .shots { gap: 28px; max-width: 860px; margin: 0 auto; }
  .phone { border-width: 8px; border-radius: 44px; }
  .phone:nth-child(2) { margin-top: 46px; }
  .daily { margin-top: 90px; padding: 46px; grid-template-columns: 1fr 1fr; gap: 50px; text-align: left; }
  .seal { width: 220px; height: 220px; font-size: 72px; }
  .daily h2 { font-size: 42px; }
  .footer { text-align: left; }
  .footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
  .footer-links { margin-top: 0; }
  .pagehead { padding: 150px 24px 55px; }
  .reading { width: min(760px, calc(100% - 48px)); padding: 55px 0 110px; }
  .reading article { padding: 44px; }
  .reading h2 { font-size: 28px; }
  .warm-quote { font-size: 22px; padding-left: 24px; }
  .manager { grid-template-columns: 150px 1fr; gap: 24px; padding: 20px; }
  .manager img { width: 150px; }
  .manager blockquote { font-size: 20px; }
  .notfound img { width: 240px; }
  .notfound h1 { font-size: 46px; }
}
@media (min-width: 1000px) {
  .features { grid-template-columns: repeat(4, 1fr); }
}
