/* Skin Layer Lab: one stylesheet for every page. Palette taken from the logo (green-black ink on warm grey). */
:root {
  --bg: #eae9e5;
  --surface: #f5f4f0;
  --ink: #1d221e;
  --muted: #555a54;
  --line: #d2d0c9;
  --clay: #9a4c33;
  --sage: #5f6d55;
  --amber: #9a6a1f;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 14px;
  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(42px, 6.2vw, 84px); }
h2 { font-size: clamp(34px, 4.4vw, 58px); }
h3 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--surface); padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }

/* Wordmark: the logo set in type, no menu (the hallway rule) */
.top { padding: 26px 0 0; }
.mark { font-family: var(--serif); font-size: 26px; line-height: .86; text-decoration: none; display: inline-block; }
.mark span { display: block; }
.mark small { display: block; font-size: 15px; margin-top: 4px; }

/* Sections */
section { padding: clamp(72px, 10vw, 128px) 0; }
section.tight { padding-top: 0; }
.band { background: var(--ink); color: var(--surface); }
.band .muted { color: #b9bdb6; }
.surface { background: var(--surface); }
.eyebrow { font: 600 13px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--clay); margin-bottom: 18px; }
.band .eyebrow { color: #d9a48f; }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.55; }
.muted { color: var(--muted); }
.measure { max-width: 640px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Hero */
.hero { padding: 40px 0 clamp(64px, 8vw, 104px); min-height: calc(100svh - 90px); display: flex; align-items: center; }
.hero .grid2 { grid-template-columns: 1.1fr .9fr; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 560px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--muted); }
.facts li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); margin-right: 8px; vertical-align: middle; }
.photo { border-radius: var(--r); overflow: hidden; background: var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.photo:hover img { transform: scale(1.025); }
.photo.tall { aspect-ratio: 4 / 5; }
.photo.wide { aspect-ratio: 3 / 2; }

/* Buttons: one style, steps on hover, presses on click */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 30px; border-radius: 999px; border: 0; background: var(--ink); color: var(--surface); font: 600 17px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(29,34,30,.55); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }
.band .btn { background: var(--surface); color: var(--ink); }
.btn-note { font-size: 14px; color: var(--muted); margin-top: 12px; }
.band .btn-note { color: #b9bdb6; }
.link { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s ease; padding-bottom: 2px; }
.link:hover { background-size: 100% 1px; }
.textlink { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Pain list */
.pains { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 0; }
.pains li { padding: 24px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; gap: 12px; font-size: clamp(18px, 1.5vw, 21px); }
.pains li:last-child { border-bottom: 1px solid var(--line); }
.pains b { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; color: var(--clay); }

/* Steps (the staircase) */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px 32px; position: relative; }
.step .when { font: 600 13px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--sage); margin-bottom: 14px; }
.step h3 { margin-bottom: 12px; }
.step p { font-size: 17px; color: var(--muted); margin: 0; }
.stair { display: flex; align-items: flex-end; gap: 6px; height: 40px; margin-bottom: 22px; }
.stair i { width: 18px; background: var(--line); border-radius: 3px; }
.stair i:nth-child(1) { height: 14px; } .stair i:nth-child(2) { height: 26px; } .stair i:nth-child(3) { height: 40px; }
.step:nth-child(1) .stair i:nth-child(1), .step:nth-child(2) .stair i:nth-child(-n+2), .step:nth-child(3) .stair i { background: var(--ink); }

/* Inside list */
.inside { list-style: none; padding: 0; margin: 28px 0 0; }
.inside li { padding: 18px 0; border-top: 1px solid var(--line); }
.inside li strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.2; margin-bottom: 4px; }
.inside li span { color: var(--muted); font-size: 16px; }

/* App frame: the real Layer Lab result, as live HTML */
.app { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 60px -40px rgba(29,34,30,.45); overflow: hidden; font-size: 15px; }
.app-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.app-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.app-bar span { margin-left: 8px; }
.app-body { padding: 22px 24px 26px; }
.app-body h4 { font: 400 24px/1.15 var(--serif); margin: 0 0 4px; }
.app-body .sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fbfaf7; }
.card .k { font: 600 12px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.card ol { margin: 0; padding-left: 18px; }
.card li { margin: 3px 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { font-size: 13px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fbfaf7; }
.tag.keep { border-color: #b9c4b0; color: #3f4a37; background: #eef2ea; }
.tag.pause { border-color: #dcc79f; color: #6d4a12; background: #f6efe0; }
.tag.toss { border-color: #dfb6a7; color: #7a3622; background: #f7e9e3; }
.timeline { margin-top: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; font-size: 12px; }
.timeline div { border-top: 3px solid var(--line); padding-top: 6px; color: var(--muted); }
.timeline div.on { border-color: var(--ink); color: var(--ink); }

/* For / not for */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.fit > div { border-radius: var(--r); padding: 30px; border: 1px solid var(--line); background: var(--surface); }
.fit h3 { font-size: 26px; }
.fit ul { margin: 0; padding-left: 20px; }
.fit li { margin: 10px 0; }

/* Bonuses */
.bonus { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; transition: transform .2s ease, box-shadow .2s ease; }
.bonus:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -22px rgba(29,34,30,.5); }
.bonus .ic { width: 44px; height: 44px; margin-bottom: 18px; }
.bonus h3 { font-size: 24px; }
.bonus p { color: var(--muted); font-size: 16px; margin: 0; }

/* Guarantee + price */
.guarantee { display: grid; grid-template-columns: 120px 1fr; gap: 32px; align-items: start; }
.seal { width: 120px; height: 120px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; text-align: center; font: 400 44px/1 var(--serif); }
.seal small { display: block; font: 600 11px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-top: 6px; }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.price .amount { font: 400 clamp(72px, 9vw, 120px)/1 var(--serif); }
.price .amount small { font: 500 18px/1 var(--sans); color: var(--muted); margin-left: 8px; }
.price ul { margin: 18px 0 0; padding-left: 20px; }
.price li { margin: 6px 0; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 400 23px/1.3 var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 20px; min-height: 44px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 26px; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 12px 0 0; max-width: 720px; }

/* Forms */
.optin { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; max-width: 520px; }
.optin label { position: absolute; left: -9999px; }
.optin input[type=email], .field { flex: 1 1 240px; min-height: 56px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 400 17px var(--sans); color: var(--ink); }
.optin input[type=email]:focus, .field:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(29,34,30,.12); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { color: var(--clay); font-size: 15px; margin-top: 10px; }

/* Footer */
footer { padding: 48px 0 56px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
footer nav a:hover { text-decoration: underline; }
footer .disc { margin-top: 18px; max-width: 760px; }

/* Entrance: the hero comes in once on load */
[data-enter] > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
[data-enter] > *:nth-child(2) { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* Prose pages (legal, guide) */
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(30px, 3.4vw, 42px); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.note { border-left: 3px solid var(--clay); background: var(--surface); padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 24px 0; font-size: 17px; }

@media (max-width: 900px) {
  .grid2, .hero .grid2, .fit, .price, .guarantee { grid-template-columns: 1fr; }
  .steps, .grid3 { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero .photo { order: -1; }
  .hero .photo.tall { aspect-ratio: 4 / 3.4; }
  .cols { grid-template-columns: 1fr; }
  .seal { width: 110px; height: 110px; font-size: 34px; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .btn { width: 100%; }
  .pains li { grid-template-columns: 40px 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
}
/* Before / after */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; max-width: 900px; }
.ba figure { margin: 0; position: relative; }
.ba .photo { aspect-ratio: 4 / 5; }
.ba-tag { position: absolute; left: 14px; top: 14px; background: var(--surface); padding: 6px 12px; border-radius: 999px; font: 600 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 520px) { .ba { gap: 10px; } }
