/* Sylvie's Nadel und Faden: landing pages V1 (shared tokens and components)
   Palette from SNF's own "clean look": white table, dusty rose yarn, mint hook, brand teal #156082 muted to petrol.
   Signature: the knit-stitch row (a line of V stitches), used as divider and as quiz progress. */
@import url("fonts/fonts.css");

:root {
  --paper: #ffffff;
  --ink: #1f3a40;          /* spruce ink: headlines */
  --text: #34474b;         /* body */
  --muted: #6b7b7e;
  --petrol: #2b6470;       /* buttons, links (SNF teal, muted) */
  --petrol-deep: #20505a;
  --fog: #edf3f1;          /* mint-fog panels (the hook) */
  --fog-line: #d8e4e1;
  --rose: #c58c85;         /* yarn rose: numbers, stitch rows */
  --blush: #f7eeec;        /* rose tint: doubts, highlights */
  --sage: #5f8a6c;         /* ticks */
  --camel: #b88a3e;        /* stars */
  --alert: #a5564f;        /* crosses */
  --line: #e3e8e7;

  --f-display: "Young Serif", Georgia, "Times New Roman", serif;
  --f-body: "Figtree", "Avenir Next", Avenir, system-ui, sans-serif;
  --f-mono: "DM Mono", ui-monospace, Menlo, monospace;

  --measure: 680px;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(31, 58, 64, .06), 0 6px 18px rgba(31, 58, 64, .07);

  --stitch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='14' viewBox='0 0 18 14'%3E%3Cg fill='none' stroke='%23c58c85' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M2.5 2.5c1.2 4.2 3.4 7.4 6.5 9.5'/%3E%3Cpath d='M15.5 2.5c-1.2 4.2-3.4 7.4-6.5 9.5'/%3E%3C/g%3E%3C/svg%3E");
  --stitch-fog: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='14' viewBox='0 0 18 14'%3E%3Cg fill='none' stroke='%23cfdcd9' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M2.5 2.5c1.2 4.2 3.4 7.4 6.5 9.5'/%3E%3Cpath d='M15.5 2.5c-1.2 4.2-3.4 7.4-6.5 9.5'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17.5px/1.62 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--petrol); text-underline-offset: 3px; }
strong, b { color: var(--ink); font-weight: 700; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 20px; }
.wide { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ---------- type ---------- */
.display, h1, h2, h3 { font-family: var(--f-display); font-weight: 400; color: var(--ink); letter-spacing: -.005em; }
h1 { font-size: clamp(30px, 7.4vw, 46px); line-height: 1.12; margin: 0 0 16px; text-wrap: balance; }
h2 { font-size: clamp(24px, 5.6vw, 32px); line-height: 1.18; margin: 0 0 14px; text-wrap: balance; }
h3 { font-size: 21px; line-height: 1.25; margin: 0 0 10px; }
p { margin: 0 0 16px; }
.lede { font-size: 19px; line-height: 1.55; color: var(--text); }
.label {
  font: 500 12px/1.3 var(--f-mono);
  letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
}
.label.rose { color: var(--rose); }
.small { font-size: 14px; line-height: 1.5; color: var(--muted); }
.mono { font-family: var(--f-mono); }

/* ---------- top strip and masthead ---------- */
.adstrip {
  background: var(--ink); color: #dfe9e7;
  font: 500 11.5px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
  text-align: center; padding: 8px 14px;
}
.adstrip b { color: #fff; font-weight: 500; }
.masthead { border-bottom: 1px solid var(--line); background: #fff; }
.masthead .wrap, .masthead .wide { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--fog); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 20px; height: 20px; }
.brand-name { font-family: var(--f-display); font-size: 18px; line-height: 1.1; }
.brand-name small { display: block; font: 500 10.5px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.mast-right { font: 500 11px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: right; }

/* ---------- the stitch row (signature) ---------- */
.stitches { height: 14px; background: var(--stitch) repeat-x left center / 18px 14px; opacity: .9; margin: 40px 0; }
.stitches.short { width: 108px; margin: 0 0 14px; }
.stitches.fog { background-image: var(--stitch-fog); }

/* ---------- buttons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; padding: 14px 22px;
  background: var(--petrol); color: #fff; text-decoration: none;
  font: 700 17px/1.2 var(--f-body); letter-spacing: .005em;
  border: 0; border-radius: var(--radius); cursor: pointer;
  box-shadow: 0 2px 0 var(--petrol-deep), 0 8px 18px rgba(43, 100, 112, .22);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--petrol-deep); }
.btn:active { transform: translateY(1px); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn.ghost { background: #fff; color: var(--petrol); box-shadow: inset 0 0 0 1.5px var(--petrol); }
.btn.ghost:hover { background: var(--fog); }
.btn-note { text-align: center; font-size: 13.5px; color: var(--muted); margin: 9px 0 0; }
.btn-note .dot { color: var(--rose); padding: 0 4px; }
.cta-block { margin: 28px 0 8px; }
@media (min-width: 760px) { .btn { width: fit-content; min-width: 340px; margin: 0 auto; } .sticky .btn { min-width: 0; } }
/* light sweep across the button, taken from the Miracles CTA (2026-12-03); opt-in: class="btn shine" */
.btn.shine { position: relative; overflow: hidden; box-shadow: 0 4px 0 rgba(0,0,0,.18), 0 10px 22px -8px rgba(23,63,71,.55); transition: box-shadow .12s, transform .12s, background .15s; }
.btn.shine::after { content: ""; pointer-events: none; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skew(-20deg); animation: btn-shine 3.2s ease-in-out infinite; }
.btn.shine:active { box-shadow: none; transform: translateY(3px); }
@keyframes btn-shine { 0%, 55% { left: -60%; } to { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .btn.shine::after { animation: none; display: none; } }

/* ---------- rating line ---------- */
.stars { color: var(--camel); letter-spacing: 1px; font-size: 15px; }
.rating-line { font-size: 14.5px; color: var(--text); }
.rating-line .stars { margin-right: 6px; }

/* ---------- byline ---------- */
.byline { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 18px 0 22px; }
.byline img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; }
.byline .who { font-size: 14.5px; line-height: 1.35; color: var(--ink); font-weight: 600; }
.byline .meta { font-size: 13px; color: var(--muted); font-weight: 400; }

/* ---------- figures ---------- */
figure { margin: 22px 0; }
figure img { border-radius: var(--radius); width: 100%; }
figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.frame { border-radius: var(--radius); overflow: hidden; background: var(--fog); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.duo img { aspect-ratio: 4 / 5; object-fit: cover; height: 100%; }
.trio { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; }
.trio img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.trio img:first-child { grid-row: span 2; aspect-ratio: 4 / 5; }

/* ---------- doubt / quote boxes ---------- */
.doubt {
  background: var(--blush); border-left: 3px solid var(--rose); border-radius: 0 10px 10px 0;
  padding: 14px 18px; margin: 4px 0 18px;
  font: italic 500 17.5px/1.5 var(--f-body); color: var(--ink);
}
.pull { font-family: var(--f-display); font-size: 23px; line-height: 1.35; color: var(--ink); margin: 26px 0; padding-left: 18px; border-left: 3px solid var(--rose); }

/* ---------- ticks and crosses ---------- */
.ticks { list-style: none; padding: 0; margin: 0 0 18px; }
.ticks li { position: relative; padding: 0 0 10px 32px; line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 21px; height: 21px; border-radius: 50%;
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.ticks.cross li::before {
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6.5 6.5l7 7M13.5 6.5l-7 7' fill='none' stroke='%23a5564f' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 15px no-repeat;
  box-shadow: inset 0 0 0 1.5px #e3c6c2;
}
.ticks.dash li::before { background: #fff; box-shadow: inset 0 0 0 1.5px var(--fog-line); }

/* ---------- review cards ---------- */
.reviews { display: grid; gap: 12px; margin: 18px 0; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: 0 1px 0 rgba(31,58,64,.03); }
.review .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.review .src { font-size: 12.5px; color: var(--muted); }
.review blockquote { margin: 0; font-size: 16.5px; line-height: 1.55; color: var(--ink); }
.review .orig { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); font-style: italic; }
.review .about { margin-top: 8px; font: 500 11.5px/1.4 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--rose); }
.review.with-photo { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; }
.review.with-photo img { width: 96px; height: 120px; object-fit: cover; border-radius: 8px; }

/* ---------- panels ---------- */
.panel { background: var(--fog); border-radius: 16px; padding: 22px 20px; margin: 26px 0; }
.panel.blush { background: var(--blush); }
.panel h3 { margin-top: 0; }

/* ---------- product cards ---------- */
.pcards { display: grid; gap: 14px; margin: 20px 0; }
.pcard { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.pcard img { width: 112px; height: 140px; object-fit: cover; border-radius: 10px; }
.pcard .nm { font-family: var(--f-display); font-size: 19px; color: var(--ink); line-height: 1.2; }
.pcard .what { font-size: 14px; color: var(--muted); margin: 2px 0 8px; line-height: 1.4; }
.pcard .facts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font: 500 11.5px/1 var(--f-mono); letter-spacing: .03em; padding: 6px 8px; border-radius: 999px; background: var(--fog); color: var(--ink); white-space: nowrap; }
.chip.rose { background: var(--blush); }
.pcard .go { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pcard .price { font: 500 15px/1 var(--f-mono); color: var(--ink); }
.pcard .link { font-weight: 700; font-size: 15px; color: var(--petrol); }
@media (min-width: 760px) { .pcards.three { grid-template-columns: repeat(3, 1fr); } .pcards.three .pcard { grid-template-columns: 1fr; } .pcards.three .pcard img { width: 100%; height: 240px; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); margin: 18px 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 17px 36px 17px 0; position: relative; font-weight: 700; color: var(--ink); font-size: 17px; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 26px/1 var(--f-body); color: var(--rose); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 0 18px; color: var(--text); }
.faq .ans p:last-child { margin-bottom: 0; }

/* ---------- sources and footer ---------- */
.sources { font-size: 13px; line-height: 1.55; color: var(--muted); }
.sources ol { padding-left: 18px; margin: 8px 0 0; }
.sources li { margin-bottom: 4px; overflow-wrap: anywhere; }
.sources a { color: var(--muted); }
.site-foot { background: var(--fog); margin-top: 56px; padding: 28px 0 110px; font-size: 13px; color: var(--muted); line-height: 1.55; }
.site-foot p { margin: 0 0 10px; }
.site-foot .row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.site-foot a { color: var(--muted); }

/* ---------- sticky bar (phones) ---------- */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
  transform: translateY(110%); transition: transform .3s ease;
}
.sticky.on { transform: none; }
.sticky .txt { flex: 1; font-size: 13.5px; line-height: 1.3; color: var(--ink); }
.sticky .txt b { display: block; font-size: 15px; }
.sticky .btn { width: auto; min-height: 46px; padding: 10px 16px; font-size: 15px; flex: none; min-width: 0; margin: 0; }
@media (min-width: 900px) { .sticky { display: none; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- author byline headshot (placeholder until the photo arrives) ---------- */
.headshot { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--fog); border: 1.5px dashed var(--fog-line); color: var(--muted); }
.headshot svg { width: 22px; height: 22px; }
img.headshot { object-fit: cover; border: 0; }

/* ---------- edit mode (?edit, saved by edit-server.py) ---------- */
.edit-toggle { position: fixed; top: 10px; right: 10px; z-index: 60; background: var(--ink); color: #fff; text-decoration: none; font: 600 13px/1 var(--f-body); padding: 9px 12px; border-radius: 999px; box-shadow: var(--shadow); opacity: .85; }
.edit-toggle:hover { opacity: 1; }
@media (max-width: 899px) { .edit-toggle { display: none; } }
.editing [data-e] { outline: 1px dashed rgba(197, 140, 133, .75); outline-offset: 3px; border-radius: 3px; cursor: text; }
.editing [data-e]:hover { background: rgba(247, 238, 236, .6); }
.editing [data-e]:focus { outline: 2px solid var(--rose); background: #fff; }
.editing .sticky { display: none; }
.edit-bar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 8px 8px 8px 16px; border-radius: 999px; box-shadow: 0 8px 26px rgba(31, 58, 64, .3); font: 500 13.5px/1.2 var(--f-body); max-width: calc(100vw - 20px); }
.edit-bar .edit-state { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
.edit-bar button, .edit-bar a { border: 0; border-radius: 999px; padding: 9px 14px; font: 700 13.5px/1 var(--f-body); cursor: pointer; text-decoration: none; }
.edit-bar button { background: var(--rose); color: #fff; }
.edit-bar a { background: rgba(255, 255, 255, .14); color: #fff; }

/* ---------- stitch score (one knit stitch per point) ---------- */
.score { display: inline-flex; align-items: center; gap: 2px; vertical-align: middle; }
.score i { width: 15px; height: 13px; display: inline-block; background: no-repeat center / 15px 13px; }
.score i.y { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 14'%3E%3Cg fill='none' stroke='%23b8736c' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M2.5 2.5c1.2 4.2 3.4 7.4 6.5 9.5'/%3E%3Cpath d='M15.5 2.5c-1.2 4.2-3.4 7.4-6.5 9.5'/%3E%3C/g%3E%3C/svg%3E"); }
.score i.h { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 14'%3E%3Cg fill='none' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M2.5 2.5c1.2 4.2 3.4 7.4 6.5 9.5' stroke='%23b8736c'/%3E%3Cpath d='M15.5 2.5c-1.2 4.2-3.4 7.4-6.5 9.5' stroke='%23dde5e3'/%3E%3C/g%3E%3C/svg%3E"); }
.score i.n { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 14'%3E%3Cg fill='none' stroke='%23dde5e3' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M2.5 2.5c1.2 4.2 3.4 7.4 6.5 9.5'/%3E%3Cpath d='M15.5 2.5c-1.2 4.2-3.4 7.4-6.5 9.5'/%3E%3C/g%3E%3C/svg%3E"); }
.score b { font: 500 13px/1 var(--f-mono); color: var(--ink); margin-left: 8px; }

/* ---------- invented placeholder text (data-ph): highlighted in edit mode, or with the "invented" pill on this computer ---------- */
.ph-toggle { position: fixed; top: 46px; right: 10px; z-index: 60; background: #fff4bf; color: #5a4a00; border: 0; cursor: pointer; font: 600 13px/1 var(--f-body); padding: 9px 12px; border-radius: 999px; box-shadow: var(--shadow); opacity: .92; }
.ph-toggle:hover { opacity: 1; }
@media (max-width: 899px) { .ph-toggle { display: none; } }
.show-ph [data-ph], .editing [data-ph] { background: #fff4bf !important; box-shadow: 0 0 0 3px #fff4bf; border-radius: 3px; color: #3d3300 !important; }
.show-ph .btn[data-ph], .editing .btn[data-ph] { box-shadow: 0 0 0 4px #ffd84d; }
