/* Nokshi Labs: cotton paper, indigo ink, madder thread. Stitched seams are the signature. */
:root {
    --paper: #F4EEE2;
    --paper-deep: #EAE1CF;
    --ink: #1F2A55;
    --ink-soft: #3B4573;
    --muted: #5E6480;
    --madder: #B5342B;
    --madder-soft: #E8735F;
    --saffron: #D99A2B;
    --line: rgba(31, 42, 85, .18);
    --stitch: repeating-linear-gradient(90deg, var(--ink) 0 9px, transparent 9px 15px);
    --stitch-red: repeating-linear-gradient(90deg, var(--madder) 0 9px, transparent 9px 15px);
    --radius: 18px;
    --wrap: min(1160px, 100% - 2.5rem);
    --serif: 'Young Serif', Georgia, 'Times New Roman', serif;
    --sans: 'Onest', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--paper);
    /* A faint cotton weave. */
    background-image:
        repeating-linear-gradient(0deg, rgba(31, 42, 85, .022) 0 1px, transparent 1px 4px),
        repeating-linear-gradient(90deg, rgba(31, 42, 85, .018) 0 1px, transparent 1px 5px);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--madder); outline-offset: 3px; border-radius: 6px; }

.wrap { width: var(--wrap); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 1rem; background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 10px; z-index: 50; }
.skip:focus { left: 1rem; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(244, 238, 226, .92); backdrop-filter: blur(8px); }
.site-head::after { content: ""; display: block; height: 3px; background: var(--stitch); opacity: .55; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand-word { font-family: var(--serif); font-size: 1.55rem; line-height: 1; }
.brand-word b { font-family: var(--sans); font-weight: 600; font-size: .78em; letter-spacing: .22em; color: var(--madder); margin-left: .35rem; }
.nav { display: flex; gap: .3rem; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; padding: .45rem .8rem; border-radius: 999px; font-weight: 500; font-size: .98rem; }
.nav a:hover { background: var(--paper-deep); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav .cta { border: 2px solid var(--madder); color: var(--madder); }
.nav .cta:hover { background: var(--madder); color: var(--paper); }
.menu-btn { display: none; background: none; border: 2px solid var(--ink); border-radius: 12px; padding: .4rem .7rem; font: inherit; color: var(--ink); cursor: pointer; }

@media (max-width: 820px) {
    .menu-btn { display: inline-flex; }
    .nav { display: none; position: absolute; inset: 100% 0 auto 0; background: var(--paper); padding: 1rem 1.25rem 1.5rem; flex-direction: column; align-items: stretch; border-bottom: 3px dashed var(--line); }
    .nav.open { display: flex; }
    .nav a { padding: .8rem 1rem; }
}

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 42rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .82rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--madder); margin-bottom: 1.1rem; }
.eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--stitch-red); }
em.thread { font-style: normal; color: var(--madder); background: linear-gradient(transparent 82%, rgba(181, 52, 43, .18) 82%); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; text-decoration: none; padding: .9rem 1.4rem; border-radius: 999px; border: 2px solid var(--ink); transition: transform .2s ease, background .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--madder); border-color: var(--madder); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* Sections */
section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.seam { height: 3px; background: var(--stitch); opacity: .35; width: var(--wrap); margin-inline: auto; }
.tint { background: var(--paper-deep); }
.ink-band { background: var(--ink); color: var(--paper); }
.ink-band .lead, .ink-band p { color: rgba(244, 238, 226, .82); }
.ink-band .eyebrow { color: var(--madder-soft); }
.ink-band .eyebrow::before { background: repeating-linear-gradient(90deg, var(--madder-soft) 0 9px, transparent 9px 15px); }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(4.5rem, 10vw, 8rem) clamp(4rem, 8vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 span { display: block; }
.motif { position: relative; aspect-ratio: 1; max-width: 430px; justify-self: center; width: 100%; }
.motif svg { width: 100%; height: 100%; overflow: visible; }
.motif { animation: up 1s ease .3s both; }
.motif .spin { transform-origin: 50% 50%; animation: turn 60s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.fade-up { opacity: 0; transform: translateY(18px); animation: up .8s ease forwards; }
.fade-up.d1 { animation-delay: .1s; } .fade-up.d2 { animation-delay: .25s; } .fade-up.d3 { animation-delay: .4s; } .fade-up.d4 { animation-delay: .55s; }
@keyframes up { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .fade-up { opacity: 1; transform: none; }
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .motif { max-width: 300px; order: -1; } }

/* Cards and grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { position: relative; background: rgba(255, 252, 245, .7); border-radius: var(--radius); padding: 1.8rem 1.6rem 1.6rem; border: 2px dashed var(--line); transition: border-color .25s ease, transform .25s ease; }
.card:hover { border-color: var(--madder); transform: translateY(-3px); }
.card .num { font-family: var(--serif); color: var(--madder); font-size: 1rem; letter-spacing: .1em; }
.card h3 { margin-top: .35rem; }
.card p:last-child { margin-bottom: 0; }
.card .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--ink); color: var(--paper); display: grid; place-items: center; margin-bottom: 1rem; }
.card .ico svg { width: 24px; height: 24px; }

/* Product feature */
.product { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }
.product-card { background: var(--ink); color: var(--paper); border-radius: 26px; padding: 2.2rem; position: relative; overflow: hidden; }
.product-card::before { content: ""; position: absolute; inset: 14px; border: 2px dashed rgba(244, 238, 226, .25); border-radius: 18px; pointer-events: none; }
.product-card img { width: 72px; height: 72px; margin-bottom: 1.2rem; }
.product-card h3 { font-size: 2rem; }
.product-card .tag { color: var(--madder-soft); font-weight: 600; }
.tick-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .65rem; }
.tick-list li { display: flex; gap: .7rem; align-items: flex-start; }
.tick-list li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: .3rem; border-radius: 50%; border: 2px dashed currentColor; background: radial-gradient(circle, var(--madder) 0 3px, transparent 3.5px); }
.ink-band .tick-list li::before, .product-card .tick-list li::before { background: radial-gradient(circle, var(--madder-soft) 0 3px, transparent 3.5px); }

/* Chips and feature lists */
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip { border: 2px dashed var(--line); border-radius: 999px; padding: .35rem .9rem; font-size: .93rem; background: rgba(255, 252, 245, .6); }
.feature-group { padding: 1.6rem 0; border-top: 3px dashed var(--line); display: grid; grid-template-columns: 15rem 1fr; gap: 1.5rem; }
.feature-group:last-child { border-bottom: 3px dashed var(--line); }
.feature-group h3 { margin: 0; }
.feature-group ul { margin: 0; padding-left: 1.1rem; columns: 2; column-gap: 2rem; }
.feature-group li { margin-bottom: .35rem; break-inside: avoid; }
@media (max-width: 760px) { .feature-group { grid-template-columns: 1fr; gap: .6rem; } .feature-group ul { columns: 1; } }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: step; padding-top: 1rem; border-top: 3px solid var(--madder); }
.step::before { content: "0" counter(step); font-family: var(--serif); font-size: 1.8rem; color: var(--madder); display: block; margin-bottom: .2rem; }

/* Quote band */
.quote { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.25; max-width: 52rem; }

/* Forms */
.form { display: grid; gap: 1rem; max-width: 40rem; }
.form label { font-weight: 600; display: block; margin-bottom: .3rem; }
.form input, .form textarea, .form select { width: 100%; font: inherit; color: var(--ink); background: #FFFCF5; border: 2px solid var(--line); border-radius: 12px; padding: .8rem .95rem; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--madder); }
.form .hp { position: absolute; left: -9999px; }
.notice { padding: 1rem 1.2rem; border-radius: 14px; border: 2px dashed var(--madder); background: rgba(181, 52, 43, .07); margin-bottom: 1.4rem; }

/* Footer */
.site-foot { background: var(--ink); color: var(--paper); padding-block: 3.5rem 2.5rem; margin-top: 0; }
.site-foot::before { content: ""; display: block; height: 3px; background: repeating-linear-gradient(90deg, var(--madder-soft) 0 9px, transparent 9px 15px); width: var(--wrap); margin: -3.5rem auto 3.5rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.site-foot a { text-decoration: none; color: rgba(244, 238, 226, .85); }
.site-foot a:hover { color: var(--madder-soft); }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-foot h4 { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--madder-soft); margin: 0 0 .9rem; }
.foot-note { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(244, 238, 226, .15); font-size: .9rem; color: rgba(244, 238, 226, .6); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
