/* Landing: "the living sheet". Own layout language: a big type hero beside a paper sheet you can recolour and flip between sketch, flat and
   pattern; a thread of five stations; a specimen of the five labels; an A4 with its calibration square. Tokens only. */
body.public { background-attachment: scroll; overflow-wrap: break-word; }
.lp-wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.lp-bar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 18px; padding-block: 10px; padding-inline: max(18px, env(safe-area-inset-left), env(safe-area-inset-right)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-strong); }
.lp-bar .brand .mark { width: 34px; height: 34px; } .lp-bar .brand .wm { font-size: 19px; }
.lp-nav { display: flex; gap: 20px; margin-inline-start: 20px; } .lp-nav a { color: var(--muted); text-decoration: none; font: 600 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; } .lp-nav a:hover { color: var(--ink); }
.lp-bar-r { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; } .lp-signin { color: var(--ink); font-weight: 600; text-decoration: none; padding: 8px 10px; } .lp-signin:hover { text-decoration: underline; }
.lp-hero { max-width: 1240px; margin: 0 auto; padding: 56px 22px 70px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 40px 56px; align-items: center; }
.lp-hero h1 { margin: 16px 0 20px; font-size: clamp(46px, 7.6vw, 98px); line-height: .95; letter-spacing: -.045em; display: grid; justify-items: start; }
.lp-hero h1 .w2 { color: var(--brand-ink); }
.lp-thread-h { width: clamp(90px, 14vw, 170px); height: 24px; margin-block: 4px; margin-inline: 6px 0; overflow: visible; }
.lp-thread-h .t { fill: none; stroke: var(--chalk); stroke-width: 3; stroke-dasharray: 9 7; stroke-linecap: butt; animation: lp-run 1.2s linear infinite; } .lp-thread-h .a { fill: none; stroke: var(--chalk); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
@keyframes lp-run { to { stroke-dashoffset: -32; } }
.lp-lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.55; max-width: 52ch; color: var(--ink); } .lp-lead em { font-style: normal; border-bottom: 2px dashed var(--chalk); }
.lp-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 26px 0 22px; }
.lp-quiet { color: var(--muted); font-weight: 600; } .lp-quiet:hover { color: var(--ink); }
.lp-ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; } .lp-ticks li { padding: 3px 10px; border: 1px dashed var(--line-strong); font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* the living sheet */
.lp-demo { display: grid; gap: 12px; }
.lp-demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.lp-sheet { position: relative; background-color: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--paper-shadow); height: clamp(420px, 62vh, 600px); overflow: hidden;
  background-image: linear-gradient(var(--grid-major) 1px, transparent 1px), linear-gradient(90deg, var(--grid-major) 1px, transparent 1px), linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px; --clip: polygon(18px 0, 100% 0, 100% 100%, 0 100%, 0 18px); clip-path: var(--clip); }
.lp-art { direction: ltr; position: absolute; inset: 14px; display: grid; place-items: center; } .lp-art[hidden] { display: none; } .lp-art svg { width: 100%; height: 100%; }
.lp-art .pc { max-height: 100%; }
@media (prefers-reduced-motion: no-preference) { .lp-art:not([hidden]) { animation: lp-in .35s ease-out; } } @keyframes lp-in { from { opacity: 0; transform: scale(.985); } }
.pc-cal { fill: none; stroke: var(--chalk); stroke-width: 2.4; } .pc-t { font: 600 12.5px var(--mono); fill: var(--ink); }
.pc-cut { fill: var(--surface); stroke: var(--ink); stroke-width: 2.6; stroke-linejoin: round; } .pc-stitch { fill: none; stroke: var(--brand); stroke-width: 2; stroke-dasharray: 5 4; }
.pc-grain { fill: none; stroke: var(--ink); stroke-width: 2; } .pc-notch { fill: none; stroke: var(--chalk-ink); stroke-width: 3; } .pc-dim path { fill: none; stroke: var(--chalk-ink); stroke-width: 1.6; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; } .lp-chips button { display: grid; gap: 4px; min-width: 104px; padding: 6px 8px; background: var(--surface); border: 1px solid var(--line-strong); text-align: start; cursor: pointer; }
.lp-chips .nm { font: 600 10.5px/1.1 var(--mono); letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.lp-chips button[aria-checked="true"] { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); } .lp-chips button[aria-checked="true"] .nm { color: var(--brand-ink); }
.lp-chips .pl-bar, .lp-chips .pl-bar i { display: flex; } .lp-chips .pl-bar { height: 14px; border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); } .lp-chips .pl-bar i { flex: 1; }
.lp-eg { font: 500 12px var(--mono); color: var(--muted); }

section[class^="lp-"]:not(.lp-hero) { padding: 76px 0; }
.lp-wrap h2 { font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -.03em; margin: 12px 0 14px; }
.lp-sub { font-size: 18px; max-width: 60ch; color: var(--muted); }
.lp-sub b { color: var(--ink); }
.lp-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px; align-items: center; } .lp-two.rev { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.lp-thread { background: var(--surface); border-block: 1px solid var(--line-strong); }
.lp-stations { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; position: relative; }
.lp-stations::before { content: ""; position: absolute; inset-inline: 6%; top: 22px; border-top: 3px dashed var(--brand); transform-origin: left; }
@media (prefers-reduced-motion: no-preference) { .lp-stations::before { animation: lp-draw 1.4s ease-out both; animation-play-state: paused; } .lp-stations.in::before { animation-play-state: running; } }
@keyframes lp-draw { from { transform: scaleX(0); } }
.lp-stations li { position: relative; display: grid; gap: 6px; align-content: start; }
.lp-stations .st { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 2.5px solid var(--brand); background: var(--surface); color: var(--brand-ink); position: relative; z-index: 1; } .lp-stations .st .i { width: 22px; height: 22px; }
.lp-stations h3 { font-size: 20px; margin-top: 6px; } .lp-stations p { font-size: 15px; color: var(--muted); }
.lp-specimen { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--paper-shadow); padding: 8px 18px 14px; }
.lp-spec-row { display: grid; grid-template-columns: 150px 1fr; gap: 4px 14px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line-strong); } .lp-spec-row b { font-size: 17px; } .lp-spec-row span:last-child { grid-column: 2; color: var(--muted); font-size: 14px; margin-top: -2px; }
.lp-checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; } .lp-checks li { display: flex; gap: 10px; align-items: center; } .lp-checks li::before { content: ""; width: 14px; height: 8px; border-left: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(-45deg) translateY(-2px); flex: none; }
.lp-a4 { position: relative; aspect-ratio: 210 / 297; max-width: 330px; width: 100%; justify-self: center; background: #fff; border: 1px solid var(--line-strong); box-shadow: var(--paper-shadow); display: grid; align-content: space-between; padding: 24px; color: #333; transform: rotate(calc(-2deg * var(--dir))); }
.a4-sq { width: 38%; aspect-ratio: 1; display: grid; place-items: center; border: 2px solid #D93F72; font: 700 12px ui-monospace, monospace; text-align: center; color: #A82253; }
.a4-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .a4-tiles i { aspect-ratio: 1; border: 1.5px dashed #2540D9; } .lp-a4 > span { font: 600 11px ui-monospace, monospace; text-align: center; }
.lp-limits { background: var(--ink); color: var(--bg); } .lp-limits .tag { color: color-mix(in srgb, var(--bg) 70%, transparent); } .lp-limits h2 { color: var(--bg); }
.lp-four { list-style: none; counter-reset: l; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid color-mix(in srgb, var(--bg) 30%, transparent); }
.lp-four li { counter-increment: l; padding: 22px 20px; border-inline-end: 1px solid color-mix(in srgb, var(--bg) 30%, transparent); font-size: 16px; line-height: 1.5; } .lp-four li:last-child { border: 0; }
.lp-four li::before { content: counter(l, decimal-leading-zero); display: block; margin-bottom: 10px; font: 700 13px var(--mono); color: var(--chalk); } .lp-four b { display: block; font: 700 22px var(--display); margin-bottom: 4px; }
.lp-priv { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; } .lp-priv li { display: grid; gap: 4px; padding: 16px; background: var(--surface); border: 1px solid var(--line-strong); } .lp-priv .i { width: 26px; height: 26px; color: var(--brand-ink); } .lp-priv span { color: var(--muted); font-size: 14px; }
.lp-ent-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 36px; padding: 40px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--paper-shadow); }
.lp-ent-l { display: grid; gap: 14px; align-content: center; justify-items: start; } .lp-ent-l h2 { margin: 0; font-size: clamp(28px, 3.4vw, 42px); }
.lp-ent-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; } .lp-tile { padding: 18px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 6px; align-content: start; } .lp-tile .i { width: 26px; height: 26px; color: var(--brand-ink); } .lp-tile p { color: var(--muted); font-size: 14.5px; }
.lp-faq details { border-bottom: 1px solid var(--line-strong); padding: 16px 0; max-width: 820px; } .lp-faq summary { font: 700 19px var(--display); } .lp-faq details p { margin-top: 8px; color: var(--muted); max-width: 66ch; }
.lp-final { text-align: center; background: var(--brand); color: var(--brand-fg); } .lp-final h2 { color: var(--brand-fg); margin-bottom: 22px; }
.lp-final .btn.cta { background: var(--brand-fg); color: var(--brand); border-color: var(--brand-fg); }
.lp-foot { background: var(--surface); border-top: 1px solid var(--line-strong); font: 500 12px var(--mono); color: var(--muted); } .lp-foot-in { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-block: 18px; } .lp-foot a { color: var(--muted); }
@media (max-width: 980px) { .lp-hero { grid-template-columns: 1fr; padding-top: 34px; } .lp-nav { display: none; } .lp-two, .lp-two.rev { grid-template-columns: 1fr; } .lp-stations { grid-template-columns: 1fr; gap: 24px; } .lp-stations::before { inset-inline-start: 22px; inset-inline-end: auto; top: 22px; bottom: 30px; border-top: 0; border-inline-start: 3px dashed var(--brand); } .lp-stations li { padding-inline-start: 64px; } .lp-stations .st { position: absolute; inset-inline-start: 0; top: 0; } .lp-four { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .lp-four li:nth-child(2) { border-inline-end: 0; } .lp-four li:nth-child(-n+2) { border-bottom: 1px solid color-mix(in srgb, var(--bg) 30%, transparent); } .lp-ent-panel { grid-template-columns: 1fr; padding: 24px; } }
@media (max-width: 560px) { .lp-hero { padding-inline: 16px; } .lp-wrap { padding: 0 16px; } section[class^="lp-"]:not(.lp-hero) { padding: 52px 0; } .lp-four, .lp-priv, .lp-ent-g { grid-template-columns: minmax(0, 1fr); } .lp-four li { border-inline-end: 0 !important; border-bottom: 1px solid color-mix(in srgb, var(--bg) 30%, transparent); } .lp-spec-row { grid-template-columns: 1fr; } .lp-spec-row span:last-child { grid-column: 1; } .lp-cta .btn { width: 100%; } .lp-sheet { height: 400px; } .lp-chips button { min-width: 92px; } }

/* RTL: the thread of stations draws from the inline-start edge; the hero's stitched arrow and the A4 tilt mirror; the demo garment stays LTR (.lp-art) */
[dir="rtl"] .lp-stations::before { transform-origin: right; }
[dir="rtl"] .lp-thread-h { transform: scaleX(-1); }
[dir="rtl"] .lp-sheet { --clip: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
