/* ==========================================================================
   Pasatemp — hand-written stylesheet (no framework).
   01 · tokens, base, buttons, ink links, letterhead header, Contents sheet,
        ink-underline motion, stationery objects, editorial cover hero
   Built into ../styles.css by concatenating src/0*.css (see README.md).
   ========================================================================== */

:root {
    --paper: #eef2f6;        /* cool mist ground */
    --paper-2: #e3e9f0;      /* deeper paper for alternate sections */
    --ivory: #f8fafc;        /* cards */
    --ink: #1b2238;          /* ink-navy text + dark panels */
    --ink-2: #283252;
    --ink-soft: #414a63;
    --dim: #5a6479;
    --lilac: #b3b8e6;
    --lilac-2: #e2e5f6;
    --lilac-deep: #5459a8;
    --rose-line: #c3c8ea;    /* notebook margin line (periwinkle) */
    --pewter: #8a9bb4;         /* pewter / silver-blue, decorative */
    --silver: #c9d3e0;
    --pewter-deep: #4c5c75;    /* pewter as text on mist */
    --on-ink: #eef2f6;
    --on-ink-dim: #b8c2d4;

    --line: rgba(27, 34, 56, .12);
    --line-strong: rgba(27, 34, 56, .26);
    --shadow: 0 30px 60px -34px rgba(27, 34, 56, .38), 0 2px 6px -2px rgba(27, 34, 56, .08);
    --shadow-sm: 0 14px 30px -20px rgba(27, 34, 56, .4), 0 1px 3px rgba(27, 34, 56, .06);

    --f-display: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
    --f-script: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
    --f-body: 'IBM Plex Sans', 'Helvetica Neue', 'Segoe UI', system-ui, sans-serif;
    --f-mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, Consolas, monospace;

    --wrap: 1240px;
    --top-h: 0px; /* the letterhead sits in the page flow, not fixed */
    --ease: cubic-bezier(.2, .8, .2, 1);
    --ease-soft: cubic-bezier(.45, .05, .25, 1);
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.pt-body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 17px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Paper tooth — one static SVG noise tile, very faint. */
body.pt-body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    opacity: .045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.pt-lock { overflow: hidden; }

img, svg, video { max-width: 100%; }
img { display: block; height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

button { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; }

p { margin: 0; }

::selection { background: var(--lilac-2); color: var(--ink); }

:focus-visible { outline: 1.5px solid var(--pewter-deep); outline-offset: 3px; border-radius: 4px; }

.pt-skip {
    position: fixed;
    top: -60px;
    left: 16px;
    z-index: 300;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--on-ink);
    font-weight: 600;
    text-decoration: none;
    transition: top .3s var(--ease);
}
.pt-skip:focus { top: 12px; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.pt-main { position: relative; overflow-x: clip; }

.pt-wrap {
    width: calc(100% - 32px);
    max-width: var(--wrap);
    margin-inline: auto;
}
.pt-wrap--narrow { max-width: 940px; }
.pt-wrap--wide { max-width: 1600px; }

.pt-section { position: relative; padding: clamp(80px, 10vw, 136px) 0; }
.pt-section--tight { padding: 0 0 clamp(72px, 9vw, 110px); }

/* ---------- type helpers ---------- */

.pt-eyebrow {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--pewter-deep);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
}
.pt-rule { display: inline-block; width: 34px; height: 1px; background: currentColor; opacity: .7; }

.pt-title {
    font-family: var(--f-display);
    font-size: clamp(36px, 5vw, 66px);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -.015em;
    color: var(--ink);
}
.pt-title em, .pt-hero__title em { font-style: italic; color: var(--lilac-deep); }

.pt-lead { color: var(--ink-soft); font-size: clamp(16px, 1.35vw, 18.5px); max-width: 600px; }

.pt-script {
    font-family: var(--f-script);
    font-style: italic;
    font-weight: 400;
    line-height: 1;
    color: var(--lilac-deep);
}

.pt-head { position: relative; max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.pt-head .pt-lead { margin-top: 18px; }
.pt-head--center { margin-inline: auto; text-align: center; }
.pt-head--center .pt-eyebrow { justify-content: center; }
.pt-head--center .pt-lead { margin-inline: auto; }
.pt-head--split {
    max-width: none;
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 40px;
    align-items: end;
}
.pt-head--split .pt-lead { margin-top: 0; }

.pt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pt-chips li {
    padding: 3px 11px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 12.5px;
    line-height: 1.5;
    background: rgba(255, 255, 255, .5);
}

.pt-ticks { display: grid; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.pt-ticks li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-soft); font-size: 16px; }
.pt-ticks .pt-ico { flex: 0 0 auto; margin-top: 3px; color: var(--pewter-deep); }

/* ---------- letterpress button ---------- */

.pt-btn {
    --btn-bg: var(--ink);
    --btn-fg: var(--on-ink);
    --btn-fill: var(--silver);
    --btn-fill-fg: var(--ink);
    --btn-icon-bg: var(--on-ink);
    --btn-icon-fg: var(--ink);
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 52px;
    padding: 0 7px 0 26px;
    border: 0;
    border-radius: 2px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--f-body);
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    overflow: hidden;
    transition: color .5s var(--ease), transform .35s var(--ease), box-shadow .5s var(--ease);
    box-shadow: 0 14px 28px -18px rgba(27, 34, 56, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.pt-btn__fill {
    position: absolute;
    left: -10%;
    right: -10%;
    top: 0;
    bottom: 0;
    z-index: -1;
    background: var(--btn-fill);
    border-radius: 0;
    transform: translateY(102%);
    transition: transform .65s var(--ease), border-radius .65s var(--ease);
}
.pt-btn__text { position: relative; display: grid; height: 1.15em; overflow: hidden; }
.pt-btn__a, .pt-btn__b { display: block; transition: transform .55s var(--ease); }
.pt-btn__b { position: absolute; top: 100%; left: 0; }
.pt-btn__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 1px;
    background: var(--btn-icon-bg);
    color: var(--btn-icon-fg);
    transition: transform .6s var(--ease), background .5s, color .5s;
}
.pt-btn:hover, .pt-btn:focus-visible { color: var(--btn-fill-fg); }
.pt-btn:hover .pt-btn__fill, .pt-btn:focus-visible .pt-btn__fill { transform: translateY(0); border-radius: 0; }
.pt-btn:hover .pt-btn__a, .pt-btn:hover .pt-btn__b,
.pt-btn:focus-visible .pt-btn__a, .pt-btn:focus-visible .pt-btn__b { transform: translateY(-100%); }
.pt-btn:hover .pt-btn__icon, .pt-btn:focus-visible .pt-btn__icon { transform: translateX(3px); background: var(--btn-bg); color: var(--btn-fg); }
.pt-btn:active { transform: scale(.97); }

.pt-btn--ghost {
    --btn-bg: transparent;
    --btn-fg: var(--ink);
    --btn-fill: var(--ink);
    --btn-fill-fg: var(--on-ink);
    --btn-icon-bg: var(--ink);
    --btn-icon-fg: var(--on-ink);
    box-shadow: inset 0 0 0 1px var(--line-strong);
}
.pt-btn--ghost:hover .pt-btn__icon, .pt-btn--ghost:focus-visible .pt-btn__icon { background: var(--on-ink); color: var(--ink); }

.pt-btn--paper {
    --btn-bg: var(--ivory);
    --btn-fg: var(--ink);
    --btn-fill: var(--silver);
    --btn-fill-fg: var(--ink);
    --btn-icon-bg: var(--ink);
    --btn-icon-fg: var(--on-ink);
    box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .55);
}
.pt-btn--paper:hover .pt-btn__icon, .pt-btn--paper:focus-visible .pt-btn__icon { background: var(--ink); color: var(--on-ink); }

.pt-btn--lg { height: 60px; padding-left: 30px; font-size: 16.5px; }
.pt-btn--lg .pt-btn__icon { width: 46px; height: 46px; }
.pt-btn--full { width: 100%; justify-content: space-between; }

.pt-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border: 0;
    background: none;
    color: var(--ink);
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: .02em;
    cursor: pointer;
    background-image: linear-gradient(var(--pewter), var(--pewter));
    background-size: 0 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size .45s var(--ease), color .3s;
}
.pt-link-btn .pt-ico { transition: transform .45s var(--ease); }
.pt-link-btn:hover { background-size: 100% 1px; color: var(--lilac-deep); }
.pt-link-btn:hover .pt-ico { transform: translateX(4px); }

/* ---------- ink text links (header actions, hero CTAs, auth links) ---------- */

.pt-ink-link {
    position: relative;
    display: inline-block;
    padding: 5px 0;
    border: 0;
    background: none;
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}
.pt-ink-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(.3);
    transform-origin: left;
    transition: transform .55s var(--ease);
}
.pt-ink-link:hover::after, .pt-ink-link:focus-visible::after { transform: scaleX(1); }
.pt-ink-link--strong::after { height: 1.5px; transform: scaleX(1); }
.pt-ink-link--strong:hover { color: var(--lilac-deep); }

/* ---------- letterhead header ---------- */

.pt-lh { position: relative; z-index: 20; background: var(--paper); }
.pt-lh__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
    width: calc(100% - 48px);
    max-width: 1320px;
    margin-inline: auto;
    padding: 26px 0 22px;
}
.pt-lh__side { display: flex; align-items: center; gap: 28px; min-width: 0; }
.pt-lh__side--l { justify-content: flex-end; }
.pt-lh__side--r { justify-content: space-between; }
.pt-lh__links { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.pt-lh__links a {
    display: block;
    padding: 6px 0;
    color: var(--ink-soft);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1px no-repeat;
    transition: background-size .55s var(--ease), color .3s;
}
.pt-lh__links a:hover, .pt-lh__links a[aria-current] { color: var(--ink); background-size: 100% 1px; }
.pt-lh__acts { display: flex; align-items: center; gap: 22px; }
.pt-lh__mark { display: flex; justify-content: center; }
.pt-lh__rule {
    display: block;
    width: calc(100% - 48px);
    max-width: 1320px;
    height: 5px;
    margin-inline: auto;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
}
.pt-lh__contents, .pt-lh__mob-cta { display: none; }
.pt-lh__contents {
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border: 0;
    background: none;
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    cursor: pointer;
}
.pt-lh__lines { display: inline-block; width: 18px; height: 1px; background: var(--ink); box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink); }

/* letterhead mark: seal above the spaced serif name */
.pt-logo { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.pt-logo .pt-seal { display: block; transition: transform .8s var(--ease); }
.pt-logo .pt-seal svg { display: block; overflow: visible; }
.pt-logo:hover .pt-seal { transform: rotate(-12deg); }
.pt-seal__edge { fill: var(--ink); }
.pt-seal__ring { fill: none; stroke: var(--silver); stroke-width: .8; }
.pt-seal__letter { fill: var(--silver); font-family: var(--f-display); font-size: 19px; font-style: italic; font-weight: 500; }
.pt-logo__name { font-family: var(--f-display); font-size: 21px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; margin-right: -.32em; line-height: 1; }
.pt-logo--menu { flex-direction: row; gap: 12px; }
.pt-logo--menu .pt-logo__name { font-size: 17px; }

/* Embossed (blind-stamped) seal pressed into paper */
.pt-seal--emboss { display: block; overflow: visible; }
.pt-seal--emboss .pt-seal__edge {
    fill: var(--paper-2);
    filter: drop-shadow(-1px -1px 0 rgba(255, 255, 255, .95)) drop-shadow(1px 1.5px 1px rgba(27, 34, 56, .22));
}
.pt-seal--emboss .pt-seal__ring { stroke: rgba(27, 34, 56, .16); stroke-width: .7; }
.pt-seal--emboss .pt-seal__letter { fill: var(--paper-2); stroke: rgba(27, 34, 56, .3); stroke-width: .35; }

.pt-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    border: 0;
    background: none;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    cursor: pointer;
}
.pt-lang:hover { color: var(--ink); }

/* ---------- "Contents" sheet (mobile menu) ---------- */

.pt-sheet { position: fixed; inset: 0; z-index: 90; visibility: hidden; pointer-events: none; }
.pt-sheet__body {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 18px 22px 30px;
    overflow-y: auto;
    background: var(--paper);
    opacity: 0;
    transition: opacity .45s var(--ease), visibility 0s .45s;
}
.pt-sheet.is-open { visibility: visible; pointer-events: auto; }
.pt-sheet.is-open .pt-sheet__body { opacity: 1; transition: opacity .45s var(--ease); }
.pt-sheet__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); box-shadow: 0 4px 0 -3px var(--line-strong); }
.pt-sheet__title { margin-top: 14px; font-family: var(--f-display); font-size: 44px; text-align: center; }
.pt-sheet__toc { margin: 0; padding: 0; list-style: none; }
.pt-sheet__toc a { display: flex; align-items: baseline; gap: 12px; padding: 13px 0; color: var(--ink); text-decoration: none; }
.pt-sheet__no { min-width: 36px; color: var(--pewter-deep); font-family: var(--f-display); font-style: italic; font-size: 18px; }
.pt-sheet__label { font-family: var(--f-display); font-size: 26px; line-height: 1.1; }
.pt-sheet__dots { flex: 1; min-width: 20px; border-bottom: 1.5px dotted var(--line-strong); transform: translateY(-6px); }
.pt-sheet__page { color: var(--dim); font-family: var(--f-mono); font-size: 12px; }
.pt-sheet__appendix { padding-top: 16px; border-top: 1px solid var(--line); text-align: center; }
.pt-sheet__sub { margin-bottom: 10px; color: var(--pewter-deep); font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.pt-sheet__appendix ul { margin: 0; padding: 0; list-style: none; }
.pt-sheet__appendix li { display: inline; }
.pt-sheet__appendix li + li::before { content: " · "; color: var(--pewter); }
.pt-sheet__appendix a { color: var(--ink-soft); font-family: var(--f-display); font-style: italic; font-size: 16px; text-decoration: none; }
.pt-sheet__acts { display: flex; justify-content: center; gap: 26px; margin-top: auto; padding-top: 18px; }

/* ---------- signature motion: an ink underline drawn under headings ---------- */

.pt-ink::after {
    content: "";
    display: block;
    width: 72px;
    height: 1.5px;
    margin-top: 20px;
    background: var(--lilac-deep);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.2s var(--ease) .1s;
}
.pt-head--center .pt-ink::after,
.pt-letterhead__title.pt-ink::after,
.pt-card-letter__title.pt-ink::after { margin-inline: auto; transform-origin: center; }
.pt-ink.is-inked::after, .no-js .pt-ink::after { transform: scaleX(1); }

/* ==========================================================================
   Stationery objects
   ========================================================================== */

/* Passe-partout mat with a fine pewter inner line */
.pt-mat {
    position: relative;
    display: block;
    margin: 0;
    padding: clamp(12px, 1.6vw, 20px);
    background: var(--ivory);
    box-shadow: var(--shadow);
}
.pt-mat__inner { position: relative; display: block; overflow: hidden; }
.pt-mat__inner::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
    pointer-events: none;
}
.pt-mat::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid var(--silver);
    pointer-events: none;
}
.pt-mat img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Satin ribbon bookmark with a V-cut tail */
.pt-ribbon {
    position: absolute;
    top: -10px;
    right: 16%;
    z-index: 2;
    width: 22px;
    height: 132px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 88%, 0 100%);
    background: linear-gradient(90deg, #9da2d8 0, #cbcef0 45%, #adb1e2 60%, #9196cf 100%);
    box-shadow: 0 2px 4px rgba(27, 34, 56, .2);
    transform-origin: top center;
    animation: pt-sway 7s ease-in-out infinite;
}
.pt-ribbon--silver {
    right: calc(16% + 28px);
    height: 92px;
    width: 16px;
    background: linear-gradient(90deg, #8e9bb0 0, #dfe5ee 45%, #aab6c8 62%, #7f8ca2 100%);
    animation-delay: -2.5s;
}
@keyframes pt-sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(1.6deg); } }

/* Mounted print with silver photo corners */
.pt-print { position: relative; margin: 0; padding: 10px; background: var(--ivory); box-shadow: var(--shadow-sm); }
.pt-print img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pt-print__corner {
    position: absolute;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #b4c0d0, #7f8ca2);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .15);
}
.pt-print__corner--tl { top: 3px; left: 3px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.pt-print__corner--tr { top: 3px; right: 3px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.pt-print__corner--bl { bottom: 3px; left: 3px; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.pt-print__corner--br { bottom: 3px; right: 3px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }

/* Letterpress place card */
.pt-place {
    position: relative;
    display: block;
    padding: 18px 22px 20px;
    background: #fbfcfe;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.pt-place::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid var(--silver);
    pointer-events: none;
}
.pt-place__hello { display: block; margin-bottom: 4px; font-size: 34px; color: var(--ink); }
.pt-place__line { display: block; color: var(--ink-soft); font-family: var(--f-display); font-style: italic; font-size: 16.5px; line-height: 1.4; text-shadow: 0 1px 0 #fff; }
.pt-place__today {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--line-strong);
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 600;
}
.pt-place__today span { color: var(--pewter-deep); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }

/* Ruled notebook scrap */
.pt-scrap {
    position: relative;
    padding: 26px 20px 22px 44px;
    background:
        linear-gradient(to right, transparent 32px, var(--rose-line) 32px 33px, transparent 33px),
        repeating-linear-gradient(to bottom, transparent 0 25px, rgba(84, 89, 168, .2) 25px 26px),
        #fbfcfe;
    background-position: 0 0, 0 13px, 0 0;
    box-shadow: var(--shadow-sm);
}
.pt-scrap__code { display: block; color: var(--ink); font-family: var(--f-mono); font-size: 13.5px; line-height: 26px; white-space: nowrap; }
.pt-scrap__note { position: absolute; right: 14px; bottom: -14px; font-size: 30px; transform: rotate(-6deg); }
.pt-clip { position: absolute; top: -22px; left: 18px; fill: none; stroke: var(--pewter); stroke-width: 1.8; stroke-linecap: round; }

/* code tokens (shared by the scrap and the notebook) */
.t-k { color: var(--lilac-deep); }
.t-s { color: #3f6f8f; }
.t-n { color: #7a4f9a; }
.t-p { color: var(--ink-2); }
.t-c { color: #7a7f95; font-style: italic; }

/* ---------- editorial cover hero ---------- */

.pt-cover { padding: clamp(56px, 7vw, 100px) 0 clamp(70px, 8vw, 110px); text-align: center; }
.pt-cover__text { max-width: 1080px; }
.pt-cover__eyebrow { color: var(--pewter-deep); font-size: 12.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }
.pt-cover__title { margin-top: 28px; font-family: var(--f-display); font-size: clamp(52px, 8.6vw, 132px); font-weight: 400; line-height: .98; letter-spacing: -.025em; }
.pt-cover__line { display: block; }
.pt-cover__script { display: block; margin: -.02em 0 .02em; color: var(--lilac-deep); font-family: var(--f-script); font-style: italic; font-size: .9em; line-height: 1.05; letter-spacing: -.02em; }
.pt-cover__after { display: block; margin-top: .2em; color: var(--ink-soft); font-size: .36em; font-style: italic; letter-spacing: -.005em; }
.pt-cover__lead { max-width: 620px; margin: 30px auto 0; color: var(--ink-soft); font-size: clamp(16px, 1.35vw, 18.5px); }
.pt-cover__links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px; margin-top: 30px; }
.pt-cover__sep { color: var(--pewter); font-size: 12px; }
.pt-cover__band { position: relative; margin: clamp(50px, 6vw, 84px) auto 0; padding: 14px; }
.pt-cover__band::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--pewter); pointer-events: none; }
.pt-cover__band img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; }
/* ==========================================================================
   02 · sections: tracks (table of contents), steps, notebook, path +
        projects, pricing invitations, FAQ, page letterhead,
        panels, auth card, contact, about, modal, colophon footer
   ========================================================================== */

/* ---------- tracks: table of contents ---------- */

.pt-tracks { background: var(--paper); }
.pt-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; margin: 0 0 30px; }
.pt-filter {
    padding: 6px 0;
    border: 0;
    background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1px no-repeat;
    color: var(--dim);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .3s, background-size .5s var(--ease);
}
.pt-filter:hover, .pt-filter.is-active { color: var(--ink); background-size: 100% 1px; }
.pt-toc-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); box-shadow: 0 -4px 0 -3px var(--line-strong); }
.pt-chapter { border-bottom: 1px solid var(--line); }
.pt-chapter.is-hidden { display: none; }
.pt-chapter__btn {
    display: grid;
    grid-template-columns: 56px 1fr 128px;
    gap: 24px;
    align-items: center;
    width: 100%;
    padding: 28px 0;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.pt-chapter__no { align-self: start; padding-top: 4px; color: var(--pewter-deep); font-family: var(--f-display); font-style: italic; font-size: 24px; }
.pt-chapter__main { display: block; min-width: 0; }
.pt-chapter__head { display: flex; align-items: baseline; gap: 14px; }
.pt-chapter__name { font-family: var(--f-display); font-size: clamp(23px, 2.4vw, 31px); line-height: 1.12; transition: color .3s; }
.pt-chapter__dots { flex: 1; min-width: 24px; border-bottom: 1.5px dotted var(--line-strong); transform: translateY(-7px); }
.pt-chapter__page { color: var(--dim); font-family: var(--f-mono); font-size: 14px; }
.pt-chapter__meta { display: block; margin-top: 8px; color: var(--pewter-deep); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.pt-chapter__text { display: block; max-width: 560px; margin-top: 8px; color: var(--ink-soft); font-size: 15.5px; }
.pt-chapter__thumb { display: block; padding: 5px; background: var(--ivory); box-shadow: var(--shadow-sm); transform: rotate(2deg); transition: transform .6s var(--ease); }
.pt-chapter__thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pt-chapter__btn:hover .pt-chapter__name { color: var(--lilac-deep); }
.pt-chapter__btn:hover .pt-chapter__thumb { transform: rotate(0) scale(1.04); }
.pt-empty { margin-top: 30px; color: var(--dim); text-align: center; font-family: var(--f-display); font-style: italic; }
.pt-tools { margin-top: 48px; color: var(--ink-soft); font-family: var(--f-display); font-style: italic; font-size: 18px; line-height: 1.8; text-align: center; }
.pt-tools__label { display: block; margin-bottom: 6px; color: var(--pewter-deep); font-family: var(--f-body); font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; }

/* ---------- steps: index cards ---------- */

.pt-steps { background: var(--paper-2); }
.pt-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin: 0; padding: 34px 0 0; list-style: none; }
.pt-card {
    position: relative;
    padding: 12px 12px 22px;
    background: var(--ivory);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transform: rotate(var(--r, 0deg));
    transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.pt-card:nth-child(1) { --r: -1.2deg; }
.pt-card:nth-child(2) { --r: .8deg; }
.pt-card:nth-child(3) { --r: -.5deg; }
.pt-card:nth-child(4) { --r: 1.1deg; }
.pt-card:hover { transform: rotate(0) translateY(-8px); box-shadow: var(--shadow); }
.pt-card__tab {
    position: absolute;
    top: -31px;
    left: 18px;
    min-width: 64px;
    padding: 4px 16px 6px;
    background: var(--ivory);
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    color: var(--pewter-deep);
    font-family: var(--f-display);
    font-style: italic;
    font-size: 18px;
    text-align: center;
}
.pt-card__photo { margin: 0; overflow: hidden; }
.pt-card__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pt-card__body { padding: 18px 8px 0; background: repeating-linear-gradient(to bottom, transparent 0 27px, rgba(84, 89, 168, .12) 27px 28px); }
.pt-card__ico { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 10px; border: 1px solid var(--silver); border-radius: 50%; color: var(--pewter-deep); background: var(--ivory); }
.pt-card__title { margin-bottom: 6px; font-family: var(--f-display); font-size: 23px; line-height: 1.2; }
.pt-card__text { color: var(--ink-soft); font-size: 15px; line-height: 28px; }

/* ---------- notebook (code preview) ---------- */

.pt-notebook__grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.pt-notebook__head { margin-bottom: 0; }
.pt-notebook__print { width: 72%; margin-top: 40px; transform: rotate(-2.5deg); }

.pt-book { position: relative; }
.pt-book__tabs { position: relative; z-index: 2; display: flex; gap: 6px; padding-left: 26px; }
.pt-book__tab {
    padding: 10px 20px 12px;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    background: var(--lilac-2);
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transform: translateY(6px);
    transition: transform .4s var(--ease), background .3s, color .3s;
}
.pt-book__tab:nth-child(2) { background: #dde6ef; }
.pt-book__tab:nth-child(3) { background: #e3e6ee; }
.pt-book__tab:nth-child(4) { background: #e4e1f2; }
.pt-book__tab:hover { transform: translateY(2px); }
.pt-book__tab.is-active { background: var(--ivory); color: var(--ink); transform: translateY(1px); }

.pt-book__spread {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 430px;
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--shadow);
}
.pt-book__page { position: relative; padding: 26px 26px 30px; }
.pt-book__page--code {
    padding-left: 0;
    border-radius: 6px 0 0 6px;
    background:
        linear-gradient(to right, transparent 46px, var(--rose-line) 46px 47px, transparent 47px),
        repeating-linear-gradient(to bottom, transparent 0 27px, rgba(84, 89, 168, .14) 27px 28px) 0 72px / 100% calc(100% - 72px) no-repeat,
        #fbfcfe;
    box-shadow: inset -26px 0 30px -28px rgba(27, 34, 56, .35);
}
.pt-book__page--out {
    border-radius: 0 6px 6px 0;
    background: #f8fafc;
    box-shadow: inset 26px 0 30px -28px rgba(27, 34, 56, .35);
}
.pt-book__file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 34px;
    margin: 0 0 12px;
    padding-left: 60px;
    color: var(--ink);
    font-family: var(--f-mono);
    font-size: 13px;
}
.pt-book__page--out .pt-book__file { padding-left: 0; font-family: var(--f-body); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--pewter-deep); }
.pt-book__file small { color: var(--dim); font-family: var(--f-body); font-size: 12px; letter-spacing: .02em; }
.pt-code { margin: 0; padding: 0; list-style: none; counter-reset: ln; }
.pt-code li {
    position: relative;
    min-height: 28px;
    padding-left: 60px;
    font-family: var(--f-mono);
    font-size: 13.5px;
    line-height: 28px;
    white-space: pre;
    counter-increment: ln;
}
.pt-code li::before {
    content: counter(ln);
    position: absolute;
    left: 0;
    width: 36px;
    color: var(--lilac);
    text-align: right;
    font-size: 12px;
}
.pt-code code { font: inherit; color: var(--ink); }
.pt-caret { display: inline-block; width: 1.5px; height: 1.1em; margin-left: 1px; vertical-align: -2px; background: var(--ink); animation: pt-blink 1s steps(1) infinite; }
@keyframes pt-blink { 50% { opacity: 0; } }
.pt-book__note { position: absolute; right: 22px; bottom: 26px; font-size: 32px; transform: rotate(-5deg); }
.pt-book__arrow { position: absolute; right: 120px; bottom: 54px; fill: none; stroke: var(--lilac-deep); stroke-width: 1.4; stroke-linecap: round; transform: rotate(160deg) scaleY(-1); opacity: .7; }

.pt-run {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: 2px;
    background: var(--ink);
    color: var(--on-ink);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: none;
    cursor: pointer;
    transition: background .3s, transform .3s var(--ease);
}
.pt-run:hover { background: var(--lilac-deep); }
.pt-run:active { transform: scale(.96); }
.pt-run.is-busy { background: var(--pewter-deep); }

.pt-out { display: grid; place-items: center; min-height: 300px; }
.pt-out__wait { max-width: 240px; color: var(--dim); font-family: var(--f-display); font-style: italic; font-size: 18px; text-align: center; }
.pt-out > * { animation: pt-rise-in .7s var(--ease) both; }
.pt-out__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.pt-out__grid span {
    display: grid;
    place-items: end start;
    aspect-ratio: 3 / 4;
    padding: 10px;
    background: var(--lilac-2);
    color: var(--ink);
    font-family: var(--f-display);
    font-style: italic;
    font-size: 15px;
}
.pt-out__grid span:nth-child(2) { background: #dde6ef; }
.pt-out__grid span:nth-child(3) { background: #e3e6ee; }
.pt-out__console { width: 100%; padding: 18px 20px; border-radius: 8px; background: var(--ink); color: var(--silver); font-family: var(--f-mono); font-size: 14px; }
.pt-out__console small { display: block; margin-bottom: 8px; color: var(--on-ink-dim); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.pt-out__bars { display: flex; align-items: flex-end; gap: 12px; width: 100%; height: 230px; padding: 0 6px; border-bottom: 1px solid var(--line-strong); }
.pt-out__bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.pt-out__bar i {
    display: block;
    width: 100%;
    height: var(--h);
    background: linear-gradient(to top, var(--lilac-deep), var(--lilac));
    border-radius: 3px 3px 0 0;
    transform-origin: bottom;
    animation: pt-grow .9s var(--ease) both;
    animation-delay: calc(var(--i) * .08s);
}
.pt-out__bar b { color: var(--ink); font-family: var(--f-mono); font-size: 12px; font-weight: 500; }
.pt-out__bar span { color: var(--dim); font-size: 12px; margin-bottom: -26px; }
@keyframes pt-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.pt-out__json { width: 100%; margin: 0; padding: 18px 20px; border: 1px dashed var(--line-strong); border-radius: 8px; color: var(--ink); font-family: var(--f-mono); font-size: 14px; white-space: pre-wrap; }
.pt-out__json small { display: block; margin-bottom: 8px; color: var(--pewter-deep); font-family: var(--f-body); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.pt-book__bookmark {
    position: absolute;
    right: 34px;
    bottom: -46px;
    width: 18px;
    height: 70px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 86%, 0 100%);
    background: linear-gradient(90deg, #8e9bb0 0, #dfe5ee 45%, #aab6c8 62%, #7f8ca2 100%);
}

/* ---------- path + projects ---------- */

.pt-path { background: var(--paper-2); }
.pt-route {
    --p: 0;
    position: relative;
    margin-bottom: clamp(50px, 6vw, 80px);
    padding: 30px 30px 34px;
    background: var(--ivory);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.pt-route__label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 30px; font-family: var(--f-display); font-size: 24px; }
.pt-route__label .pt-script { font-size: 30px; }
.pt-route__stops { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.pt-route__stops li { display: flex; flex-direction: column; gap: 12px; }
.pt-route__num {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--ivory);
    color: var(--ink-soft);
    font-family: var(--f-display);
    font-style: italic;
    font-size: 17px;
    transition: background .5s, color .5s, border-color .5s;
}
.pt-route__stops li.is-done .pt-route__num { background: var(--ink); border-color: var(--ink); color: var(--silver); }
.pt-route__name { color: var(--ink-soft); font-size: 14.5px; line-height: 1.45; }
.pt-route__stops li:last-child .pt-route__name { color: var(--ink); font-weight: 600; }
.pt-route__line { position: absolute; left: 50px; right: 50px; top: 118px; height: 1px; background: var(--line-strong); }
.pt-route__ink { position: absolute; left: 0; top: 0; height: 1px; width: calc(var(--p) * 100%); background: var(--pewter); }
.pt-route__mark {
    position: absolute;
    top: 76px;
    left: calc(50px + var(--p) * (100% - 100px));
    width: 14px;
    height: 46px;
    margin-left: -7px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 84%, 0 100%);
    background: linear-gradient(90deg, #9da2d8 0, #cbcef0 45%, #9196cf 100%);
    z-index: 2;
}

.pt-prints { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.pt-project .pt-print { transform: rotate(var(--r, 0deg)); transition: transform .6s var(--ease); }
.pt-project:nth-child(1) { --r: -1.4deg; }
.pt-project:nth-child(2) { --r: 1deg; }
.pt-project:nth-child(3) { --r: -.6deg; }
.pt-project:nth-child(4) { --r: 1.5deg; }
.pt-project:hover .pt-print { transform: rotate(0) scale(1.02); }
.pt-project__track { margin-top: 22px; color: var(--pewter-deep); font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.pt-project__title { margin: 6px 0 6px; font-family: var(--f-display); font-size: 23px; line-height: 1.15; }
.pt-project__text { color: var(--ink-soft); font-size: 15px; }

/* ---------- pricing: invitations ---------- */

.pt-pricing { background: var(--paper-2); }
.pt-invites { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); align-items: stretch; max-width: 1120px; margin-inline: auto; }
.pt-invites--1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.pt-invites--2 { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }
.pt-invites--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; }
.pt-invite {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 96px 30px 30px;
    background: var(--ivory);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.pt-invite::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(138, 155, 180, .4); pointer-events: none; }
.pt-invite:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.pt-invite__flap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 74px;
    background: var(--paper-2);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    filter: drop-shadow(0 2px 0 rgba(27, 34, 56, .06));
}
.pt-invite__seal {
    position: absolute;
    top: 46px;
    left: 50%;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-left: -26px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #e6ebf2, #8a9bb4 55%, #5e6d86);
    box-shadow: 0 0 0 4px rgba(138, 155, 180, .18), 0 4px 10px -2px rgba(27, 34, 56, .35);
    color: #ffffff;
    font-family: var(--f-display);
    font-style: italic;
    font-size: 19px;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, .25);
}
.pt-invite__flag { margin: 8px 0 -4px; color: var(--silver); font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.pt-invite__name { margin-top: 12px; font-family: var(--f-display); font-size: 27px; }
.pt-invite__price { margin-top: 8px; font-family: var(--f-display); font-size: clamp(42px, 4vw, 54px); line-height: 1.05; letter-spacing: -.01em; }
.pt-invite__interval { margin-top: 4px; color: var(--dim); font-size: 14px; }
.pt-invite__trial { margin-top: 12px; padding: 4px 14px; border-radius: 999px; background: var(--lilac-2); color: var(--ink); font-size: 13.5px; font-weight: 600; }
.pt-invite__rule { position: relative; display: block; width: 100%; height: 1px; margin: 26px 0 22px; background: var(--line-strong); }
.pt-invite__rule span { position: absolute; left: 50%; top: 50%; padding: 0 10px; background: var(--ivory); color: var(--pewter); font-size: 13px; transform: translate(-50%, -50%); }
.pt-invite__list { display: grid; gap: 10px; width: 100%; margin: 0 0 28px; padding: 0; list-style: none; text-align: left; }
.pt-invite__list li { display: flex; gap: 10px; color: var(--ink-soft); font-size: 15px; }
.pt-invite__list .pt-ico { flex: 0 0 auto; margin-top: 4px; color: var(--pewter-deep); }
.pt-invite .pt-btn { margin-top: auto; }

.pt-invite.is-featured { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.pt-invite.is-featured::before { border-color: rgba(201, 211, 224, .4); }
.pt-invite.is-featured .pt-invite__flap { background: var(--ink-2); }
.pt-invite.is-featured .pt-invite__interval { color: var(--on-ink-dim); }
.pt-invite.is-featured .pt-invite__trial { background: rgba(201, 211, 224, .18); color: var(--silver); }
.pt-invite.is-featured .pt-invite__rule { background: rgba(238, 242, 246, .2); }
.pt-invite.is-featured .pt-invite__rule span { background: var(--ink); }
.pt-invite.is-featured .pt-invite__list li { color: var(--on-ink); }
.pt-invite.is-featured .pt-invite__list .pt-ico { color: var(--silver); }
.pt-pricing__note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 40px; color: var(--dim); font-size: 14px; }
.pt-pricing__note span { color: var(--pewter); }
.pt-pricing__note .pt-ico { color: var(--pewter-deep); }

/* ---------- FAQ ---------- */

.pt-faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.pt-faq__aside { position: sticky; top: calc(var(--header-h) + 30px); }
.pt-faq__photo { width: 78%; margin-top: 34px; transform: rotate(-2deg); }
.pt-faq__photo img { aspect-ratio: 4 / 5; }
.pt-faq__more { margin-top: 30px; color: var(--ink-soft); }
.pt-faq__more a { color: var(--lilac-deep); font-weight: 600; }
.pt-faq__list { border-top: 1px solid var(--line-strong); }
.pt-qa { border-bottom: 1px solid var(--line-strong); }
.pt-qa summary {
    display: grid;
    grid-template-columns: 48px 1fr 30px;
    align-items: center;
    gap: 10px;
    padding: 24px 0;
    cursor: pointer;
    list-style: none;
}
.pt-qa summary::-webkit-details-marker { display: none; }
.pt-qa__num { color: var(--pewter-deep); font-family: var(--f-display); font-style: italic; font-size: 18px; }
.pt-qa__q { color: var(--ink); font-family: var(--f-display); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.3; transition: color .3s; }
.pt-qa summary:hover .pt-qa__q { color: var(--lilac-deep); }
.pt-qa__plus { position: relative; width: 30px; height: 30px; border: 1px solid var(--line-strong); border-radius: 50%; transition: transform .5s var(--ease), background .3s; }
.pt-qa__plus::before, .pt-qa__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.2px; background: var(--ink); transform: translate(-50%, -50%); }
.pt-qa__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.pt-qa[open] .pt-qa__plus { transform: rotate(45deg); background: var(--lilac-2); }
.pt-qa__a { padding: 0 40px 26px 58px; color: var(--ink-soft); }

/* ---------- letterhead (inner page hero) ---------- */

.pt-letterhead { padding: calc(var(--top-h) + clamp(44px, 6vw, 80px)) 0 clamp(44px, 6vw, 70px); text-align: center; }
.pt-letterhead__inner { display: flex; flex-direction: column; align-items: center; }
.pt-letterhead__seal { margin-bottom: 18px; }
.pt-letterhead__script { font-size: clamp(34px, 4vw, 46px); margin-bottom: 6px; }
.pt-letterhead__title { max-width: 900px; font-family: var(--f-display); font-size: clamp(42px, 6vw, 82px); line-height: 1.02; letter-spacing: -.02em; }
.pt-letterhead__text { max-width: 620px; margin-top: 20px; color: var(--ink-soft); font-size: 18px; }
.pt-letterhead__rule { position: relative; display: block; width: min(360px, 80%); height: 1px; margin-top: 36px; background: var(--line-strong); }
.pt-letterhead__rule span { position: absolute; left: 50%; top: 50%; padding: 0 12px; background: var(--paper); color: var(--pewter); font-size: 13px; transform: translate(-50%, -50%); }

/* ---------- panels ---------- */

.pt-panel {
    position: relative;
    padding: clamp(24px, 3.4vw, 42px);
    background: var(--ivory);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.pt-panel::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(138, 155, 180, .35); pointer-events: none; }
.pt-panel__title { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-family: var(--f-display); font-size: 28px; line-height: 1.15; }
.pt-panel__title .pt-ico { color: var(--pewter-deep); }
.pt-panel__text { margin: -8px 0 22px; color: var(--ink-soft); }
.pt-panel__script { font-size: 38px; margin-bottom: 16px; color: var(--silver); }
.pt-panel__buttons { display: grid; gap: 10px; }
.pt-panel--ink { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.pt-panel--ink::before { border-color: rgba(201, 211, 224, .35); }
.pt-panel--ink .pt-btn--ghost { --btn-fg: var(--on-ink); --btn-fill: var(--on-ink); --btn-fill-fg: var(--ink); --btn-icon-bg: var(--on-ink); --btn-icon-fg: var(--ink); box-shadow: inset 0 0 0 1px rgba(238, 242, 246, .3); }
.pt-panel--ink .pt-btn--ghost:hover .pt-btn__icon { background: var(--ink); color: var(--on-ink); }

.pt-profile-page { display: grid; grid-template-columns: 1.35fr .95fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
.pt-profile-page__side { display: grid; gap: clamp(20px, 3vw, 36px); }

/* ---------- auth: centred stationery card ---------- */

.pt-auth { padding: clamp(50px, 7vw, 96px) 0 clamp(70px, 9vw, 120px); }
.pt-card-letter {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 56px);
    background: var(--ivory);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.pt-card-letter::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(138, 155, 180, .45); pointer-events: none; }
.pt-card-letter__head { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 30px; }
.pt-card-letter__brand { font-family: var(--f-display); font-size: 15px; letter-spacing: .32em; text-transform: uppercase; }
.pt-card-letter__rule { display: block; width: 100%; height: 5px; margin-top: 6px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.pt-card-letter .pt-eyebrow { display: block; text-align: center; }
.pt-card-letter__title { font-family: var(--f-display); font-size: clamp(32px, 4vw, 44px); line-height: 1.08; letter-spacing: -.01em; text-align: center; }
.pt-card-letter__text { margin: 14px 0 28px; color: var(--ink-soft); text-align: center; }
.pt-card-letter__big { color: var(--lilac); font-family: var(--f-display); font-style: italic; font-size: clamp(80px, 12vw, 128px); line-height: .9; text-align: center; }
.pt-card-letter__links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 24px; }
.pt-card-letter__links--center { justify-content: center; }
.pt-card-letter__ps { margin-top: 26px; color: var(--ink-soft); font-family: var(--f-display); font-style: italic; font-size: 17px; }
.pt-card-letter__ps .pt-script { margin-right: 4px; font-size: 30px; color: var(--ink); }
.pt-card-letter__safe { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line-strong); color: var(--dim); font-size: 13px; }
.pt-card-letter__safe .pt-ico { color: var(--pewter-deep); }

/* ---------- contact ---------- */

.pt-contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.pt-contact__photo { position: relative; max-width: 420px; transform: rotate(-1.5deg); }
.pt-contact__photo img { aspect-ratio: 4 / 5; }
.pt-contact__place { position: absolute; right: -24px; bottom: 26px; width: min(260px, 72%); transform: rotate(2deg); }
.pt-contact__list { display: grid; gap: 16px; margin: 44px 0 0; padding: 0; list-style: none; }
.pt-contact__list li { display: flex; align-items: flex-start; gap: 16px; color: var(--ink-soft); }
.pt-contact__list small { display: block; color: var(--pewter-deep); font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.pt-contact__list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.pt-contact__list a:hover { color: var(--lilac-deep); text-decoration: underline; }
.pt-contact__ico { display: grid; place-items: center; flex: 0 0 auto; width: 46px; height: 46px; border: 1px solid var(--silver); border-radius: 50%; color: var(--pewter-deep); background: var(--ivory); }

/* ---------- about ---------- */

.pt-values { background: var(--paper-2); }
.pt-values__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.pt-value { position: relative; padding: 34px 26px 30px; background: var(--ivory); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.pt-value::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(138, 155, 180, .35); pointer-events: none; }
.pt-value__num { display: block; margin-bottom: 18px; color: var(--paper-2); font-family: var(--f-display); font-style: italic; font-size: 64px; line-height: .9; text-shadow: -1px -1px 0 #fff, 1px 1px 1px rgba(27, 34, 56, .25); }
.pt-value__title { margin-bottom: 8px; font-family: var(--f-display); font-size: 26px; }
.pt-value__text { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- dashboard ---------- */

.pt-dashboard { padding: calc(var(--top-h) + 20px) 0 40px; }

/* ---------- modal (syllabus + language) ---------- */

.pt-modal,
.languages.pt-modal {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(27, 34, 56, .55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s var(--ease), visibility 0s .45s;
}
.pt-modal.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.pt-modal__card {
    position: relative;
    width: min(980px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: var(--ivory);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5);
    transform: translateY(26px) scale(.98);
    transition: transform .6s var(--ease);
}
.pt-modal.is-open .pt-modal__card { transform: none; }
.pt-modal__card--sm { width: min(460px, 100%); padding: 30px; }
.pt-modal__card--sm::before { content: ""; position: absolute; left: 30px; right: 30px; top: 14px; height: 4px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
@keyframes pt-rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.pt-modal__x {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--ivory);
    color: var(--ink);
    cursor: pointer;
    transition: transform .4s var(--ease);
}
.pt-modal__x:hover { transform: rotate(90deg); }
.pt-syllabus { display: grid; grid-template-columns: .85fr 1.15fr; }
.pt-syllabus__photo { margin: 26px 0 26px 26px; box-shadow: var(--shadow-sm); align-self: start; }
.pt-syllabus__body { padding: 40px 36px 34px; }
.pt-syllabus__name { padding-right: 40px; font-family: var(--f-display); font-size: clamp(30px, 3.4vw, 42px); line-height: 1.05; }
.pt-syllabus__aside { margin: 6px 0 14px; font-size: 32px; }
.pt-syllabus__summary { color: var(--ink-soft); }
.pt-syllabus__h { margin: 26px 0 8px; color: var(--pewter-deep); font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.pt-toc { margin: 0 0 20px; padding: 0; list-style: none; counter-reset: toc; }
.pt-toc li { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; color: var(--ink); font-size: 15.5px; counter-increment: toc; }
.pt-toc li::before { content: counter(toc, upper-roman) "."; min-width: 34px; color: var(--pewter-deep); font-family: var(--f-display); font-style: italic; }
.pt-toc li::after { content: ""; order: 2; flex: 1; border-bottom: 1px dotted var(--line-strong); transform: translateY(-4px); }
.pt-toc li span { order: 1; }
.pt-toc li i { order: 3; color: var(--dim); font-family: var(--f-mono); font-size: 12px; font-style: normal; }
.pt-syllabus__project { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 14px 16px; background: var(--paper-2); }
.pt-syllabus__project .pt-ico { color: var(--pewter-deep); flex: 0 0 auto; }
.pt-syllabus__project small { display: block; color: var(--dim); font-size: 12px; }
.pt-syllabus__project strong { font-family: var(--f-display); font-weight: 500; font-size: 18px; }
.pt-syllabus__actions { margin-top: 24px; }

.languages .modal-content .image-close { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.languages .modal-content .title { color: var(--pewter-deep); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.languages .modal-content h3 { margin: 6px 0 18px; font-family: var(--f-display); font-size: 26px; }
.languages .ddl-select { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink); font-size: 16px; }
.languages .pt-modal__x { position: static; }

/* ---------- colophon footer ---------- */

.pt-colophon { padding: 20px 0 64px; color: var(--ink-soft); font-size: 14px; text-align: center; }
.pt-colophon__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 700px; }
.pt-colophon__rule { display: block; width: 140px; height: 1px; margin-bottom: 30px; background: var(--pewter); }
.pt-colophon__title { color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; margin-right: -.34em; }
.pt-colophon__about { max-width: 520px; color: var(--ink); font-family: var(--f-display); font-size: 18px; line-height: 1.5; }
.pt-colophon__set { color: var(--dim); font-family: var(--f-display); font-style: italic; font-size: 15px; }
.pt-colophon__pub { line-height: 1.8; }
.pt-colophon__pub a { color: var(--ink); text-decoration-color: var(--pewter); }
.pt-colophon__dot { margin: 0 6px; color: var(--pewter); }
.pt-colophon__label { display: block; margin-bottom: 4px; color: var(--pewter-deep); font-size: 10.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; }
.pt-colophon__index { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.pt-colophon .footer-menu-list { display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.pt-colophon .footer-menu-list li { margin: 0; padding: 0; }
.pt-colophon .footer-menu-list li a { color: var(--ink-soft); font-family: var(--f-body); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.pt-colophon .footer-menu-list li a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--pewter); }
.pt-pay { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
.pt-pay svg { width: 44px; height: auto; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.pt-footer__copy { max-width: 620px; margin-top: 6px; color: var(--dim); font-size: 12px; }

.pt-totop {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 64;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    background: var(--ivory);
    color: var(--ink);
    cursor: pointer;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    box-shadow: var(--shadow-sm);
    transition: opacity .4s, transform .4s var(--ease), background .3s;
}
.pt-totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.pt-totop:hover { background: var(--silver); }
body.pt-cookie-open .pt-totop { opacity: 0; pointer-events: none; }
.pt-form .crm-forgot-password-description, .pt-form .crm-change-password-description { text-align: left; }
.pt-book { min-width: 0; }
.pt-book__page--code { overflow-x: auto; }
.pt-chapter__page { white-space: nowrap; }
/* ==========================================================================
   03 · CRM / CF7 forms, tables, policy prose, cookie, responsive, motion
   The CRM plugin and the parent theme render their own markup, so every
   field, button, notice and table is restyled here through .pt-form,
   .pt-table and .pt-prose wrappers.
   ========================================================================== */

/* ---------- forms ---------- */

.pt-form form { display: flex; flex-direction: column; gap: 16px; width: 100%; text-align: left; }
.pt-form p { margin: 0; }
.pt-form label { display: block; margin-bottom: 8px; color: var(--ink); font-size: 14px; font-weight: 600; }

.pt-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
.pt-form select,
.pt-form textarea {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 16px;
    outline: none;
    box-shadow: none;
    transition: border-color .3s, box-shadow .3s, background .3s;
}
.pt-form input:hover, .pt-form select:hover, .pt-form textarea:hover { border-color: rgba(27, 34, 56, .4); }
.pt-form input:focus, .pt-form select:focus, .pt-form textarea:focus {
    border-color: var(--lilac-deep);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(84, 89, 168, .16);
}
.pt-form input[disabled], .pt-form input[readonly] { opacity: .7; }
.pt-form textarea { min-height: 140px; resize: vertical; }
.pt-form input::placeholder, .pt-form textarea::placeholder { color: var(--dim); opacity: 1; }
.pt-form select option { background: var(--ivory); color: var(--ink); }
.pt-form input[type="checkbox"], .pt-form input[type="radio"] { width: 18px; height: 18px; accent-color: var(--lilac-deep); }

/* Browser autofill keeps the dark field on every form. !important is needed:
   the field rule above (:not() chain) out-specifies this and its box-shadow:none
   would otherwise let Chrome's light-blue fill show under the ink text. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--ink) !important;
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    caret-color: var(--ink);
    transition: background-color 600000s 0s, color 600000s 0s;
}
input:-webkit-autofill:focus,
textarea:-webkit-autofill:focus,
select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset, 0 0 0 4px rgba(84, 89, 168, .16) !important;
    box-shadow: 0 0 0 1000px #fff inset, 0 0 0 4px rgba(84, 89, 168, .16) !important;
}
input:autofill, textarea:autofill, select:autofill { -webkit-text-fill-color: var(--ink) !important; }

.pt-form input[type="submit"],
.pt-form button[type="submit"],
.pt-form button.button,
.pt-form button.btn,
.pt-form .crm-btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    padding: 12px 26px;
    border: 0;
    border-radius: 2px;
    background: var(--ink);
    color: var(--on-ink);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .01em;
    cursor: pointer;
    box-shadow: 0 14px 30px -14px rgba(27, 34, 56, .6);
    transition: background .35s, color .35s, transform .3s var(--ease), box-shadow .35s;
}
.pt-form input[type="submit"]:hover,
.pt-form button[type="submit"]:hover,
.pt-form button.button:hover,
.pt-form button.btn:hover,
.pt-form .crm-btn-primary:hover { background: var(--silver); color: var(--ink); transform: translateY(-2px); }
.pt-form input[type="submit"]:active, .pt-form button[type="submit"]:active { transform: scale(.98); }

.pt-form--quiet button[type="submit"],
.pt-form--quiet input[type="submit"] { background: var(--lilac-deep); }

.pt-form a { color: var(--lilac-deep); }
.pt-form a:hover { color: var(--ink); }
.pt-form h1, .pt-form h2, .pt-form h3, .pt-form h4 { color: var(--ink); font-family: var(--f-display); font-weight: 500; }

.pt-form .wpcf7-not-valid-tip, .pt-form .error, .pt-form .crm-error { color: #9b3048; font-size: 14px; }
.pt-form .crm-error { padding: 12px 16px; border: 1px solid rgba(155, 48, 72, .35); border-radius: 10px; background: rgba(155, 48, 72, .08); }

.pt-form .wpcf7-response-output,
.pt-form .crm-message,
.pt-form .crm-auth-messages:not(:empty) {
    margin: 0;
    padding: 12px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    color: var(--ink);
}
.pt-form .crm-auth-messages:empty { display: none; }
.pt-form .crm-button-loading { display: none; }

/* --- Contact Form 7 (contact + unsubscribe).
   The parent's contact.css / unsubscribe.css force light fields, #333 labels and
   a blue submit through `.wpcf7 form.contact-form …`; match that specificity. */
.pt-form .wpcf7 form.contact-form,
.pt-form .wpcf7 form.unsubscribe-form { max-width: none; margin: 0; font-family: inherit; }

.pt-form .wpcf7 form.contact-form label,
.pt-form .wpcf7 form.unsubscribe-form label { display: block; margin-bottom: 8px; color: var(--ink) !important; font-size: 14px; font-weight: 600; }

.pt-form .wpcf7 form.contact-form input[type="text"],
.pt-form .wpcf7 form.contact-form input[type="email"],
.pt-form .wpcf7 form.contact-form input[type="tel"],
.pt-form .wpcf7 form.contact-form input[type="number"],
.pt-form .wpcf7 form.contact-form input[type="url"],
.pt-form .wpcf7 form.contact-form input[type="password"],
.pt-form .wpcf7 form.contact-form input[type="search"],
.pt-form .wpcf7 form.contact-form input[type="date"],
.pt-form .wpcf7 form.contact-form textarea,
.pt-form .wpcf7 form.contact-form select,
.pt-form .wpcf7 form.unsubscribe-form input[type="text"],
.pt-form .wpcf7 form.unsubscribe-form input[type="email"],
.pt-form .wpcf7 form.unsubscribe-form input[type="tel"],
.pt-form .wpcf7 form.unsubscribe-form textarea,
.pt-form .wpcf7 form.unsubscribe-form select {
    width: 100%;
    padding: 14px 16px;
    background: #fff !important;
    border: 1px solid var(--line-strong) !important;
    border-radius: 10px !important;
    color: var(--ink) !important;
    font-family: inherit;
    font-size: 16px;
}
.pt-form .wpcf7 form.contact-form input::placeholder,
.pt-form .wpcf7 form.contact-form textarea::placeholder,
.pt-form .wpcf7 form.unsubscribe-form input::placeholder { color: var(--dim) !important; }
.pt-form .wpcf7 form.contact-form input:focus,
.pt-form .wpcf7 form.contact-form textarea:focus,
.pt-form .wpcf7 form.contact-form select:focus,
.pt-form .wpcf7 form.unsubscribe-form input:focus,
.pt-form .wpcf7 form.unsubscribe-form textarea:focus {
    border-color: var(--lilac-deep) !important;
    box-shadow: 0 0 0 4px rgba(84, 89, 168, .16) !important;
    outline: none;
}
.pt-form .wpcf7 form.contact-form textarea,
.pt-form .wpcf7 form.unsubscribe-form textarea { min-height: 140px; }

.pt-form .wpcf7 form.contact-form input[type="submit"],
.pt-form .wpcf7 form.unsubscribe-form input[type="submit"] {
    display: block;
    width: 100%;
    min-height: 54px;
    padding: 12px 26px;
    background: var(--ink) !important;
    border: 0 !important;
    border-radius: 2px !important;
    color: var(--on-ink) !important;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.pt-form .wpcf7 form.contact-form input[type="submit"]:hover,
.pt-form .wpcf7 form.unsubscribe-form input[type="submit"]:hover { background: var(--silver) !important; color: var(--ink) !important; }
.pt-form--quiet .wpcf7 form.unsubscribe-form input[type="submit"],
.pt-form--quiet .wpcf7 form.contact-form input[type="submit"] { background: var(--lilac-deep) !important; }
.pt-form--quiet .wpcf7 form.unsubscribe-form input[type="submit"]:hover { background: var(--silver) !important; color: var(--ink) !important; }

.pt-form .wpcf7 form.contact-form .wpcf7-not-valid-tip,
.pt-form .wpcf7 form.unsubscribe-form .wpcf7-not-valid-tip { color: #9b3048 !important; font-size: 13px; }
.pt-form .wpcf7 form.contact-form .wpcf7-response-output,
.pt-form .wpcf7 form.unsubscribe-form .wpcf7-response-output {
    margin: 4px 0 0 !important;
    border: 1px solid var(--line-strong) !important;
    border-radius: 10px !important;
    background: rgba(27, 34, 56, .03) !important;
    color: var(--ink) !important;
}
.pt-form .wpcf7 form.contact-form .wpcf7-mail-sent-ok,
.pt-form .wpcf7 form.unsubscribe-form .wpcf7-mail-sent-ok { background: rgba(47, 107, 79, .1) !important; color: #2f6b4f !important; }
.pt-form .wpcf7 form.contact-form .wpcf7-validation-errors,
.pt-form .wpcf7 form.unsubscribe-form .wpcf7-validation-errors { background: rgba(155, 48, 72, .1) !important; color: #9b3048 !important; }

.pt-form .captcha-cf7-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.pt-form .captcha-cf7-wrap > p { flex: 0 0 100%; margin: 0; }
.pt-form .captcha-cf7-wrap > p:empty { display: none; }
.pt-form .captcha-cf7-wrap .main-cf7-captcha { flex: 1 1 160px; }
.pt-form .captcha-cf7-wrap .main-cf7-captcha .wpcf7-form-control-wrap { display: block; }
.pt-form .wpcf7 form.contact-form #input-captcha-cf7 { margin: 0 !important; }
.pt-form .captcha-image-container { flex: 0 0 auto; margin: 0; gap: 10px; }
.pt-form .captcha-image-container img#captcha-image { height: 52px; width: auto; border: 1px solid var(--line-strong) !important; border-radius: 12px !important; }
.pt-form a#reload_captcha {
    width: 52px !important;
    height: 52px !important;
    background: var(--lilac-2) !important;
    border: 1px solid var(--line-strong) !important;
    border-radius: 12px !important;
    color: var(--lilac-deep) !important;
}
.pt-form a#reload_captcha:hover { background: var(--silver) !important; }
.pt-form a#reload_captcha img.emoji { width: 20px; height: 20px; }
.pt-form .wpcf7-spinner { margin: 0 auto; }
.page-unsubscribe .pt-form .unsubscribe-form label { color: var(--ink) !important; }

/* --- CRM plugin forms: login, forgot / change password, profile, subscription.
   The plugin ships a white 400px card; the theme supplies the card, so flatten it. */
.pt-form .crm-login-form,
.pt-form .crm-forgot-password-form,
.pt-form .crm-change-password-form,
.pt-form .crm-user-dashboard,
.pt-form .crm-user-profile-edit {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
/* The auth pages already print a big heading — drop the plugin's own title. */
.pt-form--auth .crm-login-title,
.pt-form--auth .crm-forgot-password-title,
.pt-form--auth .crm-change-password-title { display: none; }

.pt-form .crm-field-group label,
.pt-form .crm-form-group label { color: var(--ink); font-size: 14px; font-weight: 600; }
.pt-form .crm-field-group,
.pt-form .crm-form-group { display: flex; flex-direction: column; width: 100%; margin-bottom: 0; }

.pt-form .crm-login-title,
.pt-form .crm-forgot-password-title,
.pt-form .crm-change-password-title { margin: 0; color: var(--ink); font-family: var(--f-display); font-size: 30px; font-weight: 400; line-height: 1.1; }
.pt-form .crm-forgot-password-description,
.pt-form .crm-change-password-description { margin: -4px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.pt-form .crm-field-hint { display: block; margin-top: 6px; color: var(--dim); font-size: 13px; }

.pt-form .login-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pt-form .login-actions .form-input-wrapper { margin: 0; }
.pt-form label.inline { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--ink-soft); font-weight: 500; cursor: pointer; }
.pt-form label.inline input[type="checkbox"] { margin: 0; flex-shrink: 0; }

/* "I forgot my password" ships as a.button — keep it a link, not a second CTA. */
.pt-form a.button,
.pt-form a.btn,
.pt-form .crm-back-to-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--lilac-deep);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(84, 89, 168, .4);
}
.pt-form a.button:hover, .pt-form a.btn:hover, .pt-form .crm-back-to-login:hover { color: var(--ink); background: none; }
.pt-form .crm-forgot-password-footer { margin-top: 4px; text-align: center; }

.pt-form .crm-btn-secondary,
.pt-form .crm-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 10px 24px;
    border-radius: 2px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .3s, color .3s, border-color .3s;
}
.pt-form .crm-btn-secondary { border: 1px solid var(--line-strong); background: transparent; color: var(--ink); }
.pt-form .crm-btn-secondary:hover { border-color: var(--lilac-deep); color: var(--lilac-deep); }
.pt-form .crm-btn-danger { border: 0; background: #7a3a4a; color: #fff; }
.pt-form .crm-btn-danger:hover { background: var(--lilac-deep); color: #fff; }

.pt-form button:disabled,
.pt-form input[type="submit"]:disabled,
.pt-form .crm-login-button:disabled,
.pt-form .crm-reset-password-button:disabled,
.pt-form .crm-change-password-button:disabled { background: rgba(27, 34, 56, .12); color: rgba(27, 34, 56, .45); box-shadow: none; cursor: not-allowed; transform: none; }

.pt-form .crm-form-actions,
.pt-form .crm-subscription-actions,
.pt-form .crm-dashboard-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.pt-form .crm-form-actions > *, .pt-form .crm-subscription-actions > * { flex: 1 1 auto; }

.pt-form .crm-profile-field,
.pt-form .crm-subscription-field {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.pt-form .crm-profile-field:last-child, .pt-form .crm-subscription-field:last-child { border-bottom: 0; }
.pt-form .crm-profile-field label, .pt-form .crm-subscription-field label { margin: 0; color: var(--dim); font-size: 14px; font-weight: 500; }
.pt-form .crm-profile-field span, .pt-form .crm-subscription-field span { color: var(--ink); font-size: 15px; font-weight: 600; text-align: right; word-break: break-word; }

.pt-form .crm-user-info-section,
.pt-form .crm-subscription-section,
.pt-form .crm-dashboard-header,
.pt-form .crm-info-item { margin-bottom: 8px; padding: 0; border: 0; background: transparent; }
.pt-form .crm-user-info-section h4,
.pt-form .crm-subscription-section h4,
.pt-form .crm-dashboard-header h3 { color: var(--ink); }
.pt-form .crm-info-item label { color: var(--dim); }
.pt-form .crm-info-item span { color: var(--ink); }
.pt-form .crm-access-badge { background: rgba(155, 48, 72, .1); color: var(--lilac-deep); }

.pt-form .crm-subscription-item { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .6); }
.pt-form .crm-subscription-item + .crm-subscription-item { margin-top: 16px; }
.pt-form .crm-subscription-name { margin: 0 0 8px; color: var(--ink); font-family: var(--f-display); font-size: 22px; font-weight: 400; }
.pt-form .crm-subscription-field span.crm-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(27, 34, 56, .07);
    font-size: 13px;
    font-weight: 700;
    text-transform: capitalize;
}
.pt-form .crm-subscription-field span.crm-status-active { background: rgba(47, 107, 79, .12); color: #2f6b4f; }
.pt-form .crm-subscription-field span.crm-status-cancelled,
.pt-form .crm-subscription-field span.crm-status-canceled,
.pt-form .crm-subscription-field span.crm-status-expired,
.pt-form .crm-subscription-field span.crm-status-inactive { background: rgba(155, 48, 72, .1); color: #9b3048; }
.pt-form .crm-subscription-field span.crm-status-pending,
.pt-form .crm-subscription-field span.crm-status-trial { background: rgba(138, 155, 180, .18); color: var(--pewter-deep); }

.pt-form .crm-login-required,
.pt-form .crm-no-access,
.pt-form .crm-logged-in-message,
.pt-form .crm-subscription-message,
.pt-form .crm-info { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: rgba(27, 34, 56, .025); color: var(--ink-soft); text-align: center; }
.pt-form .crm-login-required p, .pt-form .crm-no-access p { margin: 0 0 12px; }
.pt-form .crm-auth-message { margin: 0; }
.pt-form .crm-auth-warning { color: var(--pewter-deep); }
.pt-form .crm-auth-info { color: #2f6b4f; }

/* ---------- orders / invoice tables ---------- */

.pt-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--ivory); }
.pt-table table { width: 100%; margin: 0; font-size: 15px; text-align: left; border-collapse: collapse; }
.pt-table thead tr, .pt-table table tr:first-child th { background: var(--ink); color: var(--on-ink); }
.pt-table th { padding: 14px 22px; font-weight: 600; white-space: nowrap; }
.pt-table td { padding: 16px 22px; color: var(--ink); border-bottom: 1px solid var(--line); }
.pt-table tbody tr { transition: background .3s; }
.pt-table tbody tr:hover { background: rgba(27, 34, 56, .025); }
.pt-table .profile-orders { color: var(--ink); }
.pt-table .orders-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; }
.pt-table .orders-header h2, .pt-table .orders-header h3 { margin: 0; color: var(--ink); font-family: var(--f-display); font-size: 26px; font-weight: 400; }
.pt-table .orders-table-container { overflow-x: auto; }
.pt-table .orders-empty, .pt-table .crm-orders-empty { padding: 34px 22px; color: var(--ink-soft); text-align: center; }
.pt-table .product-info { display: flex; flex-direction: column; gap: 2px; }
.pt-table .order-invoice { font-weight: 600; white-space: nowrap; }
.pt-table .order-date { white-space: nowrap; color: var(--dim); }
.pt-table .order-actions { white-space: nowrap; }
.pt-table a, .pt-table button { color: var(--lilac-deep); font-weight: 600; background: transparent; border: 0; cursor: pointer; }
.pt-table a:hover, .pt-table button:hover { color: var(--ink); text-decoration: underline; }
.pt-table .invoice-detail, .pt-table .invoice-container { padding: 24px; color: var(--ink); }

/* ---------- policy prose (CRM HTML authored for a light page) ---------- */

.pt-prose, .pt-prose p, .pt-prose li, .pt-prose td, .pt-prose th { color: var(--ink-soft); line-height: 1.75; }
.pt-prose h1, .pt-prose h2, .pt-prose h3, .pt-prose h4 { margin: 1.6em 0 .6em; color: var(--ink); font-family: var(--f-display); font-weight: 400; line-height: 1.15; }
.pt-prose > :first-child, .pt-prose > div > :first-child { margin-top: 0; }
.pt-prose h1 { font-size: 36px; }
.pt-prose h2 { font-size: 30px; }
.pt-prose h3 { font-size: 23px; }
.pt-prose p { margin: 0 0 1em; }
.pt-prose ul, .pt-prose ol { margin: 0 0 1em 1.25em; padding: 0; list-style: revert; }
.pt-prose li::marker { color: var(--lilac-deep); }
.pt-prose a { color: var(--lilac-deep); text-decoration: underline; }
.pt-prose table { width: 100%; margin: 0 0 1em; border-collapse: collapse; }
.pt-prose td, .pt-prose th { padding: 8px 12px; border: 1px solid var(--line); }

/* Inline colours, <font> tags and grey fills in the CRM HTML are forced to the
   theme ink so policies read like the rest of the page. */
.pt-prose [style*="color"], .pt-prose [style*="COLOR"], .pt-prose font, .pt-prose span, .pt-prose section, .pt-prose article { color: inherit !important; }
.pt-prose [style*="background"], .pt-prose [style*="BACKGROUND"] { background: transparent !important; background-color: transparent !important; }
.pt-prose h1[style], .pt-prose h2[style], .pt-prose h3[style], .pt-prose h4[style], .pt-prose h5[style], .pt-prose h6[style],
.pt-prose h1 span, .pt-prose h2 span, .pt-prose h3 span, .pt-prose h4 span, .pt-prose h5 span, .pt-prose h6 span,
.pt-prose h1 font, .pt-prose h2 font, .pt-prose h3 font, .pt-prose h4 font, .pt-prose h5 font, .pt-prose h6 font { color: var(--ink) !important; }
.pt-prose strong, .pt-prose b { color: var(--ink); font-weight: 600; }
.pt-prose a, .pt-prose a[style], .pt-prose a span, .pt-prose a font { color: var(--lilac-deep) !important; }
.pt-prose .crm-privacy-policy, .pt-prose .crm-cookie-policy, .pt-prose .crm-subscription-policy, .pt-prose .crm-terms-of-service { max-width: none; color: var(--ink-soft); background: transparent; }

/* The CRM pricing table forces a white ground with !important INLINE styles,
   which no stylesheet can beat — so it is styled as a deliberate light island.
   Every selector here is >= (0,2,1) to outrank the prose rules above. */
.pt-prose div.dataTables_wrapper { margin: 0 0 1.5em; padding: 18px !important; overflow-x: auto; border: 1px solid rgba(0, 0, 0, .14) !important; border-radius: 10px; font: inherit !important; }
.pt-prose div.dataTables_wrapper, .pt-prose div.dataTables_wrapper p, .pt-prose div.dataTables_wrapper li, .pt-prose div.dataTables_wrapper span, .pt-prose div.dataTables_wrapper div { color: #1f2937 !important; line-height: 1.6; }
.pt-prose div.dataTables_wrapper .product_name { margin: 0 0 14px; font-size: 20px; font-weight: 700; line-height: 1.3; }
.pt-prose div.dataTables_wrapper table { width: 100% !important; min-width: 560px; margin: 0 !important; border: 0 !important; border-collapse: collapse !important; }
.pt-prose div.dataTables_wrapper table th { padding: 11px 14px !important; border: 0 !important; background-color: #353A40 !important; color: #fff !important; font-weight: 700 !important; text-align: left !important; vertical-align: middle !important; white-space: nowrap; width: auto !important; }
.pt-prose div.dataTables_wrapper table th:first-child { border-radius: 8px 0 0 0; }
.pt-prose div.dataTables_wrapper table th:last-child { border-radius: 0 8px 0 0; }
.pt-prose div.dataTables_wrapper table td { padding: 11px 14px !important; border: 0 !important; border-bottom: 1px solid rgba(0, 0, 0, .08) !important; color: #1f2937 !important; vertical-align: middle !important; }
.pt-prose div.dataTables_wrapper table tbody tr, .pt-prose div.dataTables_wrapper table tbody tr td { background: transparent !important; }
.pt-prose div.dataTables_wrapper table a { color: var(--lilac-deep) !important; }

/* ---------- admin-only notice ---------- */

.admin-notice { width: 100%; max-width: 900px; margin: 0 auto 30px; padding: 14px 18px; border: 1px solid var(--line-strong); border-radius: 16px; background: rgba(27, 34, 56, .04); color: var(--ink); font-size: 14px; }
.admin-notice a { color: var(--lilac-deep); }

/* ---------- WordPress bits ---------- */

.pt-entry + .pt-entry { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.pt-prose .nav-links { display: flex; gap: 12px; margin-top: 30px; }
.pt-prose .page-numbers { padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; }
.pt-prose .page-numbers.current { background: var(--lilac-deep); border-color: var(--lilac-deep); }


/* ---------- cookie notice ---------- */

#cookie-modal.pt-cookie {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 70;
    width: min(540px, calc(100vw - 32px));
    padding: 22px;
    background: var(--ivory);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    animation: pt-rise-in .6s var(--ease) both;
}
#cookie-modal.pt-cookie::before { content: ""; position: absolute; left: 22px; right: 22px; top: 12px; height: 4px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); pointer-events: none; }
#cookie-modal.pt-cookie { padding-top: 32px; border-radius: 0; }
#cookie-modal.hide-cookie { display: none; }
#cookie-modal .content { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; align-items: start; }
.pt-cookie__icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--silver); color: var(--pewter-deep); }
#cookie-modal .cookie-title { margin: 0 0 6px; color: var(--ink); font-family: var(--f-display); font-size: 21px; font-weight: 400; }
#cookie-modal p { margin: 0; color: var(--ink-soft); font-size: 14px; }
#cookie-modal a { color: var(--lilac-deep); }
#cookie-modal .cookie-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; }
.pt-cookie__btn {
    min-height: 44px;
    padding: 10px 22px;
    border: 0;
    border-radius: 2px;
    background: var(--ink);
    color: var(--on-ink);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .3s, color .3s;
}
.pt-cookie__btn:hover { background: var(--silver); color: var(--ink); }
.pt-cookie__btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.pt-cookie__btn--ghost:hover { background: var(--paper-2); color: var(--ink); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
    .pt-lh__inner { gap: 24px; }
    .pt-lh__links, .pt-lh__side { gap: 18px; }
    .pt-lh__links a { letter-spacing: .14em; }
    .pt-prints { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pt-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
    .pt-values__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pt-invites--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
    .pt-lh__inner { grid-template-columns: 1fr auto 1fr; padding: 16px 0 14px; }
    .pt-lh__side { display: none; }
    .pt-lh__contents { display: inline-flex; justify-self: start; }
    .pt-lh__mob-cta { display: inline-block; justify-self: end; }
    .pt-lh__mark { grid-column: 2; grid-row: 1; }
    .pt-lh__contents { grid-column: 1; grid-row: 1; }
    .pt-lh__mob-cta { grid-column: 3; grid-row: 1; }
    .pt-head--split { grid-template-columns: 1fr; gap: 16px; }
    .pt-notebook__grid { grid-template-columns: minmax(0, 1fr); }
    .pt-notebook__print { display: none; }
    .pt-invites { grid-template-columns: 1fr; max-width: 460px; }
    .pt-invites--2 { grid-template-columns: 1fr; }
    .pt-faq__grid { grid-template-columns: 1fr; }
    .pt-faq__aside { position: static; }
    .pt-faq__photo { display: none; }
    .pt-contact__grid { grid-template-columns: 1fr; }
    .pt-profile-page { grid-template-columns: 1fr; }
    .pt-syllabus { grid-template-columns: 1fr; }
    .pt-syllabus__photo { display: none; }
    .pt-contact__photo { max-width: 340px; }
    .pt-route__stops { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; }
    .pt-route__line, .pt-route__mark { display: none; }
}

@media (max-width: 720px) {
    body.pt-body { font-size: 16px; }
    .pt-lh__inner { width: calc(100% - 32px); gap: 10px; }
    .pt-lh__rule { width: calc(100% - 32px); }
    .pt-logo .pt-seal svg { width: 34px; height: 34px; }
    .pt-logo__name { font-size: 15px; letter-spacing: .26em; margin-right: -.26em; }
    .pt-lh__contents, .pt-lh__mob-cta { font-size: 11px; letter-spacing: .14em; }
    .pt-cover__title { font-size: clamp(46px, 13vw, 64px); }
    .pt-cover__after { font-size: .44em; }
    .pt-cover__band { padding: 8px; }
    .pt-cover__sep { display: none; }
    .pt-cover__band img { aspect-ratio: 16 / 9; }
    .pt-chapter__btn { grid-template-columns: 34px 1fr; gap: 12px; padding: 22px 0; }
    .pt-chapter__thumb { display: none; }
    .pt-chapter__no { font-size: 19px; }
    .pt-chapter__page { font-size: 12px; }
    .pt-tools { font-size: 16px; }
    .pt-card__photo img { aspect-ratio: 16 / 9; }
    .pt-cards { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
    .pt-book__tabs { padding-left: 8px; gap: 4px; overflow-x: auto; }
    .pt-book__tab { padding: 8px 12px 10px; font-size: 13px; }
    .pt-book__spread { grid-template-columns: 1fr; min-height: 0; }
    .pt-book__page--code { border-radius: 6px 6px 0 0; box-shadow: inset 0 -26px 30px -28px rgba(27, 34, 56, .35); padding-bottom: 70px; }
    .pt-book__page--out { border-radius: 0 0 6px 6px; box-shadow: inset 0 26px 30px -28px rgba(27, 34, 56, .35); }
    .pt-code li { font-size: 12px; padding-left: 52px; }
    .pt-book__file { padding-left: 52px; }
    .pt-out { min-height: 230px; }
    .pt-route { padding: 22px 18px 24px; }
    .pt-route__stops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pt-prints { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .pt-project__title { font-size: 19px; }
    .pt-project__text { font-size: 14px; }
    .pt-qa summary { grid-template-columns: 34px 1fr 30px; }
    .pt-qa__a { padding: 0 0 22px 44px; }
    .pt-values__grid { grid-template-columns: 1fr; }
    .pt-contact__place { right: -6px; }
    .pt-invite { padding-inline: 22px; }
    .pt-syllabus__body { padding: 30px 22px 26px; }
    #cookie-modal .cookie-actions { justify-content: stretch; }
    #cookie-modal .cookie-actions button { flex: 1; }
}

@media (max-width: 359px) {
    .pt-prints { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Reduced motion: keep every element visible and still.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: .001ms !important;
        transition-delay: 0s !important;
        scroll-behavior: auto !important;
    }
    .pt-ink::after { transform: scaleX(1); }
    .pt-ribbon { animation: none !important; }
}

/* CF7 wraps its hidden inputs in a bordered <fieldset>; it showed as an empty
   box above the contact / unsubscribe fields. Hide it outright. */
html body .hidden-fields-container,
html body .wpcf7 form fieldset.hidden-fields-container,
html body .pt-form .wpcf7 form.contact-form fieldset.hidden-fields-container,
html body .pt-form .wpcf7 form.unsubscribe-form fieldset.hidden-fields-container {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* CF7's response box (sent / validation notice) — hidden on request. */
html body .wpcf7 form .wpcf7-response-output,
html body .wpcf7-response-output { display: none !important; }
