/*
 * Peach Mark: components
 * Needs tokens.css first. Every class starts with "pm-" so it can sit next to any other CSS.
 */

/* Base */
.pm { margin: 0; background: var(--pm-paper); color: var(--pm-ink); font-family: var(--pm-sans); font-size: var(--pm-text-body); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
.pm *, .pm *::before, .pm *::after { box-sizing: border-box; }
.pm img, .pm svg { max-width: 100%; }
.pm :where(a) { color: inherit; }
.pm-container { width: min(100% - 40px, var(--pm-container)); margin-inline: auto; }
.pm-narrow { width: min(100% - 40px, var(--pm-narrow)); margin-inline: auto; }
.pm-center { text-align: center; }
.pm-center .pm-lead { margin-inline: auto; }

/* Sections and panels.
   A panel is a big rounded block inset from the window edge. Pages are a stack of panels on paper. */
.pm-section { position: relative; padding-block: var(--pm-section); }
.pm-section--sand { background: var(--pm-sand); }
.pm-panel { position: relative; margin: 0 var(--pm-inset) 16px; border-radius: var(--pm-radius-panel); overflow: hidden; isolation: isolate; }
.pm-panel--glow { background: var(--pm-glow); }
.pm-panel--soft { background: var(--pm-glow-soft); }
.pm-panel--sand { background: var(--pm-sand); }
.pm-panel--forest { background: var(--pm-forest); color: var(--pm-on-dark); }
.pm-panel--forest .pm-lead, .pm-panel--forest .pm-muted { color: rgba(247, 241, 232, .78); }
.pm-panel__pad { padding: clamp(28px, 5vw, 64px); }
.pm-panel__close { position: absolute; top: 18px; right: 20px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: transparent; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; opacity: .8; }

/* Announcement panel: dark forest strip with a badge, one tangerine phrase and a peeking device */
.pm-announce { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; min-height: 200px; padding: 36px clamp(24px, 5vw, 64px); }
.pm-announce__title { margin: 12px 0 6px; font-family: var(--pm-sans); font-weight: 600; font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -.02em; line-height: 1.15; }
.pm-announce__text { margin: 0; font-size: 18px; color: rgba(247, 241, 232, .85); }
.pm-announce__text a { text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.pm-announce__peek { align-self: end; margin-bottom: -36px; width: 260px; height: 170px; transform: rotate(8deg) translateY(24px); }

/* Type: serif headlines with one italic word, grotesk for everything else */
.pm-hero-title, .pm-h2, .pm-h3 { margin: 0; font-family: var(--pm-serif); font-weight: 600; color: inherit; font-optical-sizing: auto; }
.pm-hero-title { font-size: var(--pm-text-hero); letter-spacing: var(--pm-tracking-hero); line-height: 1.04; }
.pm-h2 { font-size: var(--pm-text-h2); letter-spacing: -.02em; line-height: 1.1; }
.pm-h3 { font-size: var(--pm-text-h3); letter-spacing: -.01em; line-height: 1.25; }
.pm-hero-title em, .pm-h2 em, .pm-h3 em { font-style: italic; font-weight: 600; }
.pm-lead { max-width: 560px; margin: 18px 0 0; color: var(--pm-soft); font-size: var(--pm-text-lead); line-height: 1.5; }
.pm-panel--glow .pm-lead, .pm-panel--soft .pm-lead { color: #4A3F35; }
.pm-eyebrow { display: inline-block; margin-bottom: 14px; font-size: var(--pm-text-micro); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pm-soft); }
.pm-muted { margin: 0; color: var(--pm-soft); }
.pm-accent { color: var(--pm-tangerine); }

/* The highlighter: a yellow swipe behind ONE phrase per block */
.pm-mark { padding: 0 .12em; margin: 0 -.04em; background: linear-gradient(100deg, transparent 0 1%, var(--pm-mark) 2% 97%, transparent 99%); background-size: 100% 78%; background-position: 0 70%; background-repeat: no-repeat; color: var(--pm-ink); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Badges and chips */
.pm-badge { display: inline-block; padding: 5px 11px; border-radius: var(--pm-radius-pill); background: var(--pm-tangerine); color: var(--pm-white); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: var(--pm-radius-pill); background: var(--pm-pill); color: var(--pm-soft); font-size: var(--pm-text-micro); font-weight: 500; white-space: nowrap; }
.pm-chip--on { background: #FCE3CF; color: var(--pm-tangerine); }

/* Nav: square logo tile, plain links (the current one gets a short bar on top), grey pill on the right */
.pm-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px var(--pm-inset); }
.pm-nav__left { display: flex; align-items: center; gap: 40px; }
.pm-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--pm-serif); font-weight: 700; font-size: 20px; text-decoration: none; color: var(--pm-ink); }
.pm-logo__mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--pm-white); box-shadow: var(--pm-shadow-sm); font-family: var(--pm-serif); font-weight: 700; font-size: 24px; }
.pm-nav__links { display: flex; gap: 34px; font-size: 16px; font-weight: 500; }
.pm-nav__links a { position: relative; text-decoration: none; padding-block: 8px; }
.pm-nav__links a[aria-current]::before { content: ""; position: absolute; left: -4px; right: -4px; top: -14px; height: 2px; background: var(--pm-ink); }
@media (max-width: 860px) { .pm-nav__links { display: none; } }

/* Buttons: always pills */
.pm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border: 0; border-radius: var(--pm-radius-pill); font-family: var(--pm-sans); font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.pm-btn:hover { transform: translateY(-1px); }
.pm-btn--ink { background: var(--pm-ink); color: var(--pm-white); }
.pm-btn--ink:hover { background: #3A332C; }
.pm-btn--pill { background: var(--pm-pill); color: var(--pm-ink); font-weight: 500; }
.pm-btn--ghost { background: transparent; color: var(--pm-ink); box-shadow: inset 0 0 0 1.5px var(--pm-line-strong); }
.pm-btn--light { background: var(--pm-on-dark); color: var(--pm-forest); }
.pm-btn--sm { padding: 10px 20px; font-size: 15px; }
.pm-btn--block { width: 100%; }
.pm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.pm-center .pm-actions { justify-content: center; }

/* Hero inside a glow panel, with drifting paper cards behind it */
.pm-hero { position: relative; padding: clamp(72px, 10vw, 120px) 20px 0; text-align: center; }
.pm-hero .pm-lead { margin-inline: auto; }
.pm-hero .pm-actions { justify-content: center; }
.pm-hero__copy { position: relative; z-index: 2; max-width: 760px; margin-inline: auto; }
.pm-drift { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.pm-drift .pm-paper { position: absolute; opacity: .55; }
@media (max-width: 900px) { .pm-drift { display: none; } }

/* Paper card: a saved note. Serif snippet, small meta, tiny action icons. Tilt it with --tilt. */
.pm-paper { width: 300px; padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, .7); box-shadow: var(--pm-shadow-sm); transform: rotate(var(--tilt, 0deg)); text-align: left; }
.pm-paper__src { margin: 0 0 4px; font-family: var(--pm-serif); font-size: 17px; font-weight: 600; color: var(--pm-ink); }
.pm-paper__meta { margin: 0 0 8px; font-size: 12px; color: var(--pm-faint); }
.pm-paper__text { margin: 0; font-family: var(--pm-serif); font-size: 15px; line-height: 1.45; color: var(--pm-soft); }
.pm-paper__icons { display: flex; gap: 14px; margin-top: 12px; color: var(--pm-faint); }
.pm-paper__icons svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* App frame: a big white window that rises out of the bottom of the glow panel */
.pm-stage { position: relative; z-index: 2; max-width: 980px; margin: 64px auto 0; }
.pm-frame { position: relative; border-radius: var(--pm-radius-frame) var(--pm-radius-frame) 0 0; background: rgba(255, 255, 255, .92); box-shadow: var(--pm-shadow-lg); padding: 22px 28px 32px; text-align: left; }
.pm-frame--whole { border-radius: var(--pm-radius-frame); }
.pm-frame__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.pm-frame__title { margin: 0 auto; font-weight: 600; font-size: 16px; }
.pm-frame__icon { width: 18px; height: 18px; fill: none; stroke: var(--pm-soft); stroke-width: 1.8; }
.pm-frame__label { display: flex; align-items: center; gap: 8px; margin: 6px 0 12px; font-weight: 500; font-size: 15px; }
.pm-tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.pm-tile { aspect-ratio: 3 / 4; border-radius: 6px; box-shadow: var(--pm-shadow-sm); background: var(--pm-art-clay); position: relative; overflow: hidden; }
.pm-tile::after { content: ""; position: absolute; inset: 14% 14% auto; height: 46%; border-radius: 50%; background: rgba(255, 255, 255, .28); }
.pm-tile--moss { background: var(--pm-art-moss); }
.pm-tile--sky { background: var(--pm-art-sky); }
.pm-tile--plum { background: var(--pm-art-plum); }
.pm-tile--ochre { background: var(--pm-art-ochre); }
.pm-tile--ink { background: var(--pm-ink); }
.pm-tile--paper { background: var(--pm-sand); }
.pm-tile--paper::after { background: var(--pm-art-clay); opacity: .5; }
.pm-tile--frame::after { inset: 18% 18%; height: auto; border-radius: 2px; background: rgba(255, 255, 255, .3); }
@media (max-width: 700px) { .pm-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pm-tiles .pm-tile:nth-child(n+5) { display: none; } }

/* Phone: a small floating card that overlaps the frame's corner */
.pm-phone { position: absolute; right: -36px; bottom: -40px; width: 240px; padding: 16px; border-radius: 26px; background: var(--pm-white); box-shadow: var(--pm-shadow-lg); text-align: left; z-index: 3; }
.pm-phone__head { display: flex; justify-content: space-between; align-items: center; font-family: var(--pm-serif); font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.pm-stat { font-family: var(--pm-serif); font-size: 40px; font-weight: 600; line-height: 1; color: var(--pm-tangerine); }
@media (max-width: 900px) { .pm-phone { display: none; } }

/* Feature rows, cards and grids */
.pm-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.pm-split--flip > :first-child { order: 2; }
@media (max-width: 860px) { .pm-split { grid-template-columns: 1fr; } .pm-split--flip > :first-child { order: 0; } }
.pm-showcase { position: relative; padding: clamp(28px, 5vw, 48px); border-radius: var(--pm-radius-panel); background: var(--pm-glow-soft); display: grid; gap: 14px; justify-items: center; }
.pm-showcase .pm-paper { background: var(--pm-white); max-width: 100%; }
.pm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .pm-grid { grid-template-columns: 1fr; } }
.pm-card { padding: 28px; border-radius: var(--pm-radius-card); background: var(--pm-white); box-shadow: var(--pm-shadow-sm); }
.pm-card .pm-h3 { font-size: 21px; margin: 14px 0 8px; }
.pm-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #FCE3CF; color: var(--pm-tangerine); }
.pm-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pm-list { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pm-list li { position: relative; padding-left: 26px; color: var(--pm-soft); }
.pm-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 8px; border-radius: 2px; background: var(--pm-mark); }

/* Quote */
.pm-quote { margin: 0; font-family: var(--pm-serif); font-size: clamp(24px, 3vw, 36px); font-weight: 500; font-style: italic; line-height: 1.3; letter-spacing: -.01em; }
.pm-quote cite { display: block; margin-top: 20px; font-family: var(--pm-sans); font-style: normal; font-size: var(--pm-text-small); font-weight: 500; color: var(--pm-soft); }
.pm-panel--forest .pm-quote cite { color: rgba(247, 241, 232, .7); }

/* Logos row: plain serif names, faint */
.pm-proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; margin-top: 20px; font-family: var(--pm-serif); font-size: 20px; font-weight: 600; color: var(--pm-faint); }

/* Pricing */
.pm-billing { display: inline-flex; padding: 4px; border-radius: var(--pm-radius-pill); background: rgba(255, 255, 255, .6); margin-top: 28px; }
.pm-billing button { padding: 9px 18px; border: 0; border-radius: var(--pm-radius-pill); background: transparent; font: 500 15px var(--pm-sans); color: var(--pm-soft); cursor: pointer; white-space: nowrap; }
.pm-billing button[aria-pressed="true"] { background: var(--pm-ink); color: var(--pm-white); }
.pm-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; text-align: left; }
@media (max-width: 900px) { .pm-plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.pm-plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px; border-radius: var(--pm-radius-card); background: var(--pm-white); box-shadow: var(--pm-shadow-sm); }
.pm-plan--featured { box-shadow: var(--pm-shadow-lg), inset 0 0 0 2px var(--pm-tangerine); }
.pm-plan__badge { position: absolute; top: -13px; left: 28px; }
.pm-plan__name { margin: 0; font-family: var(--pm-serif); font-size: 26px; font-weight: 600; }
.pm-plan__price { margin: 18px 0 4px; font-family: var(--pm-serif); font-size: 52px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.pm-plan__price small { font-family: var(--pm-sans); font-size: 15px; font-weight: 500; color: var(--pm-soft); letter-spacing: 0; }
.pm-plan .pm-list { flex: 1; margin-bottom: 28px; }
.pm-faq { display: grid; gap: 12px; }
.pm-faq details { padding: 20px 24px; border-radius: var(--pm-radius-card); background: var(--pm-white); box-shadow: var(--pm-shadow-sm); }
.pm-faq summary { cursor: pointer; font-family: var(--pm-serif); font-size: 19px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.pm-faq summary::-webkit-details-marker { display: none; }
.pm-faq summary::after { content: "+"; font-family: var(--pm-sans); font-weight: 400; color: var(--pm-tangerine); }
.pm-faq details[open] summary::after { content: "\2212"; }
.pm-faq p { margin: 12px 0 0; color: var(--pm-soft); }

/* Article */
.pm-article { font-size: 19px; line-height: 1.7; }
.pm-article p { margin: 0 0 1.2em; }
.pm-article h2 { margin: 1.8em 0 .5em; font-family: var(--pm-serif); font-size: 30px; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.pm-article a { color: var(--pm-ink); text-decoration: underline; text-decoration-color: var(--pm-tangerine); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pm-pull { margin: 2em 0; padding: 28px 32px; border-radius: var(--pm-radius-card); background: var(--pm-glow-soft); font-family: var(--pm-serif); font-size: 26px; font-style: italic; font-weight: 500; line-height: 1.35; }
.pm-byline { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: var(--pm-text-small); color: var(--pm-soft); }
.pm-byline strong { color: var(--pm-ink); font-weight: 600; }
.pm-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--pm-forest); color: var(--pm-on-dark); font-family: var(--pm-serif); font-weight: 600; font-size: 17px; flex: none; }
.pm-figure { margin: 2em 0; }
.pm-figure figcaption { margin-top: 10px; font-size: var(--pm-text-micro); color: var(--pm-faint); text-align: center; }

/* Forms */
.pm-form { display: grid; gap: 18px; }
.pm-field { display: grid; gap: 7px; }
.pm-label { font-size: var(--pm-text-small); font-weight: 600; }
.pm-input { width: 100%; padding: 13px 16px; border: 1.5px solid var(--pm-line-strong); border-radius: var(--pm-radius-sm); background: var(--pm-white); font: 400 16px var(--pm-sans); color: var(--pm-ink); }
.pm-input:focus { outline: none; border-color: var(--pm-tangerine); box-shadow: 0 0 0 4px #FCE3CF; }
.pm-hint { font-size: var(--pm-text-micro); color: var(--pm-faint); }
.pm-checkline { display: flex; gap: 10px; align-items: flex-start; font-size: var(--pm-text-small); color: var(--pm-soft); }
.pm-checkline input { margin-top: 4px; accent-color: var(--pm-ink); }
.pm-or { display: flex; align-items: center; gap: 14px; font-size: var(--pm-text-micro); color: var(--pm-faint); }
.pm-or::before, .pm-or::after { content: ""; flex: 1; height: 1px; background: var(--pm-line); }

/* Footer */
.pm-footer { padding: 64px 0 40px; font-size: var(--pm-text-small); color: var(--pm-soft); }
.pm-footer__cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.pm-footer__cols h4 { margin: 0 0 12px; font-size: var(--pm-text-micro); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pm-ink); }
.pm-footer__cols a { display: block; padding: 3px 0; text-decoration: none; }
.pm-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--pm-line); font-size: var(--pm-text-micro); }
@media (max-width: 760px) { .pm-footer__cols { grid-template-columns: 1fr 1fr; } }
