/*
 * pawandi.com — Paw & I. The NoteMem site style (notemem-style skill): warm paper white and near-black ink,
 * black buttons, soft pastels (peach, lilac, butter, sky, mint) for tiles and the haze behind the hero. The one
 * accent is terracotta instead of NoteMem's blue, warmer for a pet brand; white on it passes 4.5:1. The header
 * and the phone's bottom button float on a progressive blur (eight backdrop-filter layers, 0.5px → 64px,
 * MengTo/Skills web-design/progressive-blur). One moment of motion: the photos, the framed proof and its
 * approve button arrive as the page opens.
 */
@font-face { font-family: 'Bricolage Grotesque'; src: url('./fonts/bricolage-grotesque.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('./fonts/atkinson-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('./fonts/atkinson-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
    --mist: #f8f7f4;
    --surface: #ffffff;
    --ink: #18181b;
    --ink-soft: #57575e;
    --ink-faint: #8d8d94;
    --line: #ebe9e4;
    --btn: #18181b;
    --btn-ink: #ffffff;
    --btn-press: #000000;
    --night: #18181b;
    --night-2: #26262b;
    --brand: #c4532d;
    --brand-press: #a8441f;
    --brand-deep: #b0461f;
    --brand-wash: #fbeee8;
    --peach: #fde4d4;
    --lilac: #ebe5fb;
    --butter: #fdf0c4;
    --sky: #dde8fb;
    --mint: #d9f2e4;
    --sun: #f5a524;
    --paper: #fffdf8;
    --shadow: 0 1px 2px rgb(24 24 27 / 0.05), 0 14px 34px -10px rgb(24 24 27 / 0.16);
    --zh: 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    --display: 'Bricolage Grotesque', var(--zh);
    --body: 'Atkinson Hyperlegible', var(--zh);
    --page: min(1160px, 100% - 2rem);
    --top: 4.25rem;
}

/* Night: the pi_theme cookie, else the device (set in <head>). Buttons turn light, the accent's text shade
 * lightens, the pastels dim. */
.dark {
    --mist: #111113;
    --surface: #1a1a1d;
    --ink: #f2f2ef;
    --ink-soft: #a9a9b0;
    --ink-faint: #75757c;
    --line: #2a2a2f;
    --btn: #f2f2ef;
    --btn-ink: #111113;
    --btn-press: #ffffff;
    --night: #1d1d21;
    --night-2: #2a2a30;
    --brand-deep: #f0a07f;
    --brand-wash: #3a221a;
    --peach: #3a2a22;
    --lilac: #2c2640;
    --butter: #36301c;
    --sky: #1f2a3d;
    --mint: #1d3128;
    --paper: #1f1f23;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 36px -10px rgb(0 0 0 / 0.6);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 1rem); }
body {
    margin: 0;
    overflow-x: clip;
    overflow-wrap: break-word;
    background: var(--mist);
    color: var(--ink);
    font: 400 1.0625rem/1.6 var(--body);
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }

.wrap { width: var(--page); margin-inline: auto; }

/* ── Progressive blur ────────────────────────────────────────────────── */
.pblur { pointer-events: none; }
.pblur > div, .pblur::before, .pblur::after { position: absolute; inset: 0; }
.pblur::before, .pblur::after { content: ''; }
.pblur::before { z-index: 1; -webkit-backdrop-filter: blur(0.5px); backdrop-filter: blur(0.5px); --m: linear-gradient(var(--dir), #0000 0%, #000 12.5%, #000 25%, #0000 37.5%); }
.pblur > div:nth-of-type(1) { z-index: 2; -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); --m: linear-gradient(var(--dir), #0000 12.5%, #000 25%, #000 37.5%, #0000 50%); }
.pblur > div:nth-of-type(2) { z-index: 3; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); --m: linear-gradient(var(--dir), #0000 25%, #000 37.5%, #000 50%, #0000 62.5%); }
.pblur > div:nth-of-type(3) { z-index: 4; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); --m: linear-gradient(var(--dir), #0000 37.5%, #000 50%, #000 62.5%, #0000 75%); }
.pblur > div:nth-of-type(4) { z-index: 5; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); --m: linear-gradient(var(--dir), #0000 50%, #000 62.5%, #000 75%, #0000 87.5%); }
.pblur > div:nth-of-type(5) { z-index: 6; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); --m: linear-gradient(var(--dir), #0000 62.5%, #000 75%, #000 87.5%, #0000 100%); }
.pblur > div:nth-of-type(6) { z-index: 7; -webkit-backdrop-filter: blur(32px); backdrop-filter: blur(32px); --m: linear-gradient(var(--dir), #0000 75%, #000 87.5%, #000 100%); }
.pblur::after { z-index: 8; -webkit-backdrop-filter: blur(64px); backdrop-filter: blur(64px); --m: linear-gradient(var(--dir), #0000 87.5%, #000 100%); }
.pblur > div, .pblur::before, .pblur::after { -webkit-mask: var(--m); mask: var(--m); }
/* Strongest at the top edge, behind the header. */
.pblur-top { position: fixed; z-index: 40; inset: 0 0 auto; height: calc(var(--top) + 2.5rem); --dir: to top; }
/* Strongest at the bottom edge, behind the phone's start button. */
.pblur-bottom { position: absolute; inset: 0; --dir: to bottom; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .pblur-top { background: linear-gradient(to bottom, var(--mist) 55%, transparent); }
    .pblur-bottom { background: linear-gradient(to top, var(--mist) 55%, transparent); }
}

/* ── Header ──────────────────────────────────────────────────────────── */
.top {
    position: fixed;
    z-index: 50;
    inset: 0 0 auto;
    height: var(--top);
    background: linear-gradient(to bottom, color-mix(in srgb, var(--mist) 72%, transparent), transparent);
}
.top-row { height: 100%; display: flex; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; flex: none; min-height: 44px; text-decoration: none; font: 800 1.35rem/1 var(--display); letter-spacing: -0.02em; }
.brand .mark { width: 2.1rem; height: 2.1rem; }
.top-nav { display: flex; gap: 0.25rem; margin-inline: auto; }
.top-nav a {
    font: 700 0.95rem/1 var(--body);
    color: var(--ink-soft);
    text-decoration: none;
    padding: 0.65rem 0.85rem;
    border-radius: 999px;
    transition: background-color 0.15s, color 0.15s;
}
.top-nav a:hover { background: rgb(24 24 27 / 0.06); color: var(--ink); }
.dark .top-nav a:hover { background: rgb(255 255 255 / 0.08); }
.top-end { display: flex; align-items: center; gap: 0.35rem; margin-left: auto; }
.top-nav + .top-end { margin-left: 0; }
@media (max-width: 760px) {
    .top-nav { display: none; }
    .top-nav + .top-end { margin-left: auto; }
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3.25rem;
    padding: 0 1.5rem;
    border-radius: 999px;
    background: var(--btn);
    color: var(--btn-ink);
    font: 700 1.05rem/1 var(--body);
    text-decoration: none;
    box-shadow: 0 1px 0 rgb(255 255 255 / 0.12) inset, 0 8px 18px -8px rgb(24 24 27 / 0.55);
    transition: background-color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--btn-press); }
.btn:active { transform: translateY(1px); }
.btn span { transition: transform 0.15s; }
.btn:hover span { transform: translateX(3px); }
.btn-sm { min-height: 2.5rem; padding: 0 1rem; font-size: 0.95rem; box-shadow: none; }
@media (max-width: 420px) {
    .top .btn-sm { display: none; }
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    gap: clamp(2.5rem, 6vw, 4rem);
    align-items: center;
    padding-top: calc(var(--top) + clamp(2rem, 7vw, 5rem));
    padding-bottom: clamp(1rem, 4vw, 3rem);
}
@media (min-width: 920px) {
    .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}
.hero::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0 auto auto 50%;
    width: 100vw;
    height: 34rem;
    transform: translateX(-50%);
    background: radial-gradient(40rem 22rem at 8% 0%, var(--peach), transparent 70%), radial-gradient(40rem 24rem at 92% 6%, var(--lilac), transparent 70%);
    opacity: 0.9;
    pointer-events: none;
}
.eyebrow { display: inline-flex; align-items: center; gap: 0.55rem; margin: 0 0 1.25rem; padding: 0.3rem 0.8rem 0.3rem 0.3rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font: 700 0.92rem/1.2 var(--body); color: var(--ink); }
.eyebrow .mark { width: 1.75rem; height: 1.75rem; flex: none; }
.hero h1 {
    margin: 0;
    font: 800 clamp(2.75rem, 8vw, 5.4rem)/0.98 var(--display);
    letter-spacing: -0.035em;
}
.lead { margin: 1.5rem 0 0; max-width: 34em; font-size: clamp(1.1rem, 2vw, 1.25rem); color: var(--ink-soft); }
.hero-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.note { margin: 1rem 0 0; font-size: 0.92rem; color: var(--ink-faint); }

/* The demo: two phone photos, then the framed proof with its approve button. */
.demo { position: relative; min-height: 33rem; isolation: isolate; }
.demo::before {
    content: '';
    position: absolute;
    z-index: -1;
    width: 70%;
    aspect-ratio: 1;
    right: 2%;
    top: 12%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, var(--butter), transparent 68%);
}
.snap {
    position: absolute;
    margin: 0;
    width: min(11.5rem, 40%);
    padding: 0.55rem 0.55rem 0.7rem;
    border-radius: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.snap svg { width: 100%; height: auto; border-radius: 6px; }
.snap figcaption { margin-top: 0.5rem; font: 700 0.78rem/1 var(--body); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); text-align: center; }
/* Desktop: the two photos stacked on the left, the framed proof on the right, nothing covering a caption. */
.snap-pet { left: 0; top: 0.5rem; transform: rotate(-5deg); }
.snap-you { left: 3%; top: 14rem; transform: rotate(4deg); z-index: 1; }
.portrait { position: absolute; right: 0; top: 2.5rem; width: min(23rem, 64%); z-index: 2; }
.frame { padding: 0.75rem; border-radius: 6px; background: var(--night); box-shadow: var(--shadow); }
.dark .frame { background: #3a3a40; }
.mat { padding: 1rem; background: var(--paper); }
.mat svg { width: 100%; height: auto; }
.proof {
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.proof-tag { font: 700 0.78rem/1 var(--body); color: var(--brand-deep); letter-spacing: 0.04em; text-transform: uppercase; }
.proof-act { margin-top: 0.65rem; display: grid; grid-template-columns: 1fr 1.4fr; gap: 0.4rem; }
.proof-act span { text-align: center; font-size: 0.85rem; font-weight: 700; padding: 0.55rem 0.25rem; border-radius: 10px; background: var(--mist); color: var(--ink-soft); }
.proof-act .on { background: var(--brand); color: #fff; }

@media (prefers-reduced-motion: no-preference) {
    .snap-you { animation: rise 0.6s 0.35s both cubic-bezier(0.2, 0.7, 0.2, 1); }
    .frame { animation: rise 0.7s 0.9s both cubic-bezier(0.2, 0.7, 0.2, 1); }
    .proof { animation: rise 0.6s 1.25s both cubic-bezier(0.2, 0.7, 0.2, 1); }
    .proof-act .on { animation: pick 0.4s 1.9s both; }
    @keyframes rise { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
    @keyframes pick { from { background: var(--mist); color: var(--ink-soft); } }
}
/* Phone: the photos side by side on top, the proof below them. */
@media (max-width: 560px) {
    .demo { min-height: 34rem; }
    .snap { width: 44%; }
    .snap-pet { top: 0; }
    .snap-you { left: auto; right: 2%; top: 0.75rem; }
    .portrait { top: 12.5rem; width: 84%; right: 50%; transform: translateX(50%); }
}

/* ── Sections ────────────────────────────────────────────────────────── */
.block { padding-block: clamp(3.5rem, 8vw, 6rem) 0; }
.block-first { padding-top: clamp(2.5rem, 6vw, 4rem); }
.block-head { margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.day h2, .block-head h2, .final h2 { margin: 0; font: 800 clamp(1.9rem, 4.5vw, 2.9rem)/1.08 var(--display); letter-spacing: -0.025em; }
.day-copy p, .block-head p { margin: 0.9rem 0 0; color: var(--ink-soft); max-width: 36em; }

/* How it works: 01–04. */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.steps li { counter-increment: step; padding-top: 1rem; border-top: 2px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 800 2.25rem/1 var(--display); color: var(--brand-deep); margin-bottom: 0.75rem; }
.steps strong { display: block; font: 700 1.2rem/1.3 var(--display); }
.steps span { display: block; margin-top: 0.35rem; color: var(--ink-soft); font-size: 0.98rem; }

/* Products: five tiles; the framed portrait spans two columns so every row is full (2 + 2 + 2, or 3 + 3). */
.feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 600px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .feat-frame { grid-column: span 2; } }
@media (min-width: 900px) { .feats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feat {
    padding: 1.4rem 1.4rem 1.5rem;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    transition: transform 0.2s, box-shadow 0.2s;
}
.feat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feat-icon { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: var(--tint, var(--sky)); color: var(--ink); }
.feat-oil { --tint: var(--lilac); } .feat-key { --tint: var(--peach); } .feat-tag { --tint: var(--mint); } .feat-gift { --tint: var(--butter); }
.feat h3 { margin: 1rem 0 0.4rem; font: 700 1.3rem/1.25 var(--display); letter-spacing: -0.01em; }
.feat p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.badge { display: inline-block; vertical-align: 0.2em; margin-left: 0.3rem; padding: 0.25rem 0.55rem; border-radius: 999px; background: var(--brand-wash); color: var(--brand-deep); font: 700 0.78rem/1 var(--body); letter-spacing: 0.02em; }
.feat-frame { background: var(--brand); border-color: transparent; color: #fff; }
.feat-frame .feat-icon { background: rgb(255 255 255 / 0.18); color: #fff; }
.feat-frame p { color: rgb(255 255 255 / 0.9); }
.feat-frame .badge { background: #fff; color: var(--brand); }
@media (min-width: 900px) {
    .feat-frame { display: grid; grid-template-columns: auto 1fr; column-gap: 1.25rem; align-content: start; }
    .feat-frame .feat-icon { grid-row: span 2; width: 3.5rem; height: 3.5rem; }
    .feat-frame h3 { margin-top: 0.2rem; font-size: 1.7rem; }
    .feat-frame p { font-size: 1.05rem; max-width: 34em; }
}

/* Memorial: the dark panel. Text on it stays light in both themes. */
.day { width: var(--page); margin: clamp(3.5rem, 8vw, 6rem) auto 0; border-radius: 22px; background: var(--night); color: #f2f2ef; scroll-margin-top: calc(var(--top) + 1rem); }
.day-inner { width: auto; padding: clamp(1.75rem, 5vw, 3.5rem); display: grid; gap: 2rem; align-items: start; }
@media (min-width: 920px) { .day-inner { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.day-copy p, .day-list span:not(.tick) { color: rgb(242 242 239 / 0.68) !important; }
.day-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.day-list li { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1rem 1.15rem; border-radius: 16px; background: var(--night-2); }
.tick {
    flex: none;
    display: grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    border: 2px solid rgb(255 255 255 / 0.3);
    color: #f2f2ef;
    font: 800 0.9rem/1 var(--display);
}
.day-list li:first-child .tick { background: var(--brand); border-color: var(--brand); color: #fff; }
.day-list strong { display: block; font-weight: 700; }
.day-list span:not(.tick) { display: block; font-size: 0.95rem; }

/* Promise: four checked cards. */
.promise { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.promise li { position: relative; padding: 1.3rem 1.3rem 1.4rem 3.5rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.promise li::before {
    content: '';
    position: absolute;
    left: 1.2rem;
    top: 1.35rem;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.promise strong { display: block; font: 700 1.15rem/1.3 var(--display); }
.promise span { display: block; margin-top: 0.35rem; color: var(--ink-soft); font-size: 0.98rem; }

/* FAQ: native details, so it works without script and with the keyboard. */
.faq { display: grid; gap: 0.6rem; max-width: 52rem; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.5rem;
    padding: 0.9rem 1.2rem;
    cursor: pointer;
    list-style: none;
    font: 700 1.08rem/1.35 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font: 400 1.6rem/1 var(--display); color: var(--brand-deep); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 1.2rem 1.1rem; color: var(--ink-soft); }

/* ── Closing band ────────────────────────────────────────────────────── */
.final { width: var(--page); margin: clamp(4rem, 9vw, 7rem) auto 0; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; position: relative; isolation: isolate; }
.final::after { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(30rem 16rem at 100% 0%, var(--lilac), transparent 70%), radial-gradient(26rem 14rem at 0% 100%, var(--peach), transparent 70%); pointer-events: none; }
.final-inner { width: auto; padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.5rem, 5vw, 3.5rem); display: flex; flex-direction: column; gap: 1.5rem; align-items: center; text-align: center; }
.final h2 { max-width: 16em; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.foot { padding-block: 2.5rem 3rem; color: var(--ink-soft); font-size: 0.95rem; }
.foot p { margin: 0 0 1rem; max-width: 46em; }
.foot a { color: var(--ink-soft); text-decoration-color: var(--line); text-underline-offset: 3px; }
.foot a:hover { color: var(--ink); }
.foot small { color: var(--ink-faint); }

/* ── Phone: the start button on a bottom progressive blur, once the hero's button has scrolled away ── */
.dock { display: none; }
@media (max-width: 720px) {
    .dock {
        display: block;
        position: fixed;
        z-index: 45;
        inset: auto 0 0;
        padding: 2.25rem 1rem calc(1rem + env(safe-area-inset-bottom));
        background: linear-gradient(to top, color-mix(in srgb, var(--mist) 70%, transparent), transparent);
        transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s;
    }
    .dock .btn { position: relative; z-index: 10; width: 100%; }
    .js .dock:not(.on) { transform: translateY(100%); opacity: 0; pointer-events: none; }
    .foot { padding-bottom: 7rem; }
}

/* ── Footer links, and the privacy / terms pages ─────────────────────── */
.foot-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin-bottom: 1rem; }
.foot-links a { color: var(--ink-soft); text-decoration-color: var(--line); text-underline-offset: 3px; }
.foot-links a:hover { color: var(--ink); }
.legal-top { border-bottom: 1px solid var(--line); }
.legal-top .top-row { min-height: var(--top); }
.legal { max-width: 46rem; padding-block: clamp(2rem, 6vw, 4rem); }
.legal h1 { margin: 0; font: 800 clamp(2rem, 6vw, 2.9rem)/1.08 var(--display); letter-spacing: -0.025em; }
.legal-updated { color: var(--ink-faint); margin: 0.6rem 0 2rem; }
.legal h2 { margin: 1.8rem 0 0.4rem; font: 700 1.25rem/1.3 var(--display); }
.legal p { margin: 0; color: var(--ink-soft); }
.legal a { color: var(--brand-deep); }
