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

/* Base */
.pd { margin: 0; background: var(--pd-night); color: var(--pd-text); font-family: var(--pd-sans); font-size: var(--pd-text-body); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
.pd *, .pd *::before, .pd *::after { box-sizing: border-box; }
.pd [hidden] { display: none !important; }
.pd img, .pd svg { max-width: 100%; display: block; }
.pd a { color: var(--pd-lilac); }
.pd-container { width: min(100% - 40px, var(--pd-container)); margin-inline: auto; }
.pd-narrow { width: min(100% - 40px, var(--pd-narrow)); margin-inline: auto; }
.pd-center { text-align: center; }
.pd-center .pd-lead { margin-inline: auto; }

/* Sections */
.pd-section { padding-block: var(--pd-section); }
.pd-section--alt { background: var(--pd-night-2); border-block: var(--pd-border); }
.pd-divider { height: 1px; border: 0; margin: 0; background: var(--pd-line); }

/* Type: one grotesk for everything, mono for labels and data */
.pd-hero-title, .pd-h2, .pd-h3 { margin: 0; font-weight: 600; color: var(--pd-text); }
.pd-hero-title { font-size: var(--pd-text-hero); letter-spacing: var(--pd-tracking-hero); line-height: 1.04; }
.pd-h2 { font-size: var(--pd-text-h2); letter-spacing: var(--pd-tracking-h2); line-height: 1.1; }
.pd-h3 { font-size: var(--pd-text-h3); letter-spacing: -.01em; line-height: 1.25; }
/* The signature: the second line of a headline turns lilac */
.pd-hero-title .pd-turn, .pd-h2 .pd-turn { display: block; color: var(--pd-lilac); font-style: normal; }
.pd-lead { max-width: 600px; margin: 22px 0 0; color: var(--pd-soft); font-size: var(--pd-text-lead); line-height: 1.55; }
.pd-eyebrow { display: inline-block; margin-bottom: 22px; color: var(--pd-amber); font-family: var(--pd-mono); font-size: var(--pd-text-micro); font-weight: 500; letter-spacing: var(--pd-tracking-label); text-transform: uppercase; }
.pd-mono { font-family: var(--pd-mono); font-size: var(--pd-text-micro); }
.pd-muted { color: var(--pd-soft); }

/* Announcement: a thin amber strip above the nav */
.pd-announce { display: block; padding: 9px 16px; background: var(--pd-amber); color: var(--pd-night); font-size: var(--pd-text-small); font-weight: 500; text-align: center; text-decoration: none; }
.pd .pd-announce { color: var(--pd-night); }
.pd-announce strong { font-weight: 700; }

/* Nav: hairline under it, logo left, links center, squared actions right */
.pd-nav-wrap { border-bottom: var(--pd-border); }
.pd-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; }
.pd-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--pd-text); font-size: 19px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
.pd .pd-logo { color: var(--pd-text); }
.pd-logo__mark { width: 26px; height: 26px; flex-shrink: 0; }
.pd-nav__links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.pd .pd-nav__links a { color: var(--pd-text); text-decoration: none; }
.pd .pd-nav__links a:hover { color: var(--pd-lilac); }
.pd-nav__actions { display: flex; gap: 10px; }
@media (max-width: 860px) { .pd-nav__links { display: none; } }
@media (max-width: 480px) { .pd-nav__actions .pd-btn--outline { display: none; } }

/* Buttons: squared, 6px radius. White solid for the main action, hairline outline for the rest */
.pd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border: 1px solid transparent; border-radius: var(--pd-radius); font-family: var(--pd-sans); font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s var(--pd-ease), border-color .2s var(--pd-ease), color .2s var(--pd-ease); }
.pd .pd-btn--primary, .pd-btn--primary { background: var(--pd-text); color: var(--pd-night); }
.pd-btn--primary:hover { background: #ffffff; }
.pd .pd-btn--outline, .pd-btn--outline { border-color: var(--pd-line-2); background: transparent; color: var(--pd-text); }
.pd-btn--outline:hover { border-color: var(--pd-lilac); }
.pd .pd-btn--lilac, .pd-btn--lilac { background: var(--pd-lilac); color: var(--pd-night); }
.pd-btn--lilac:hover { background: #cbbaf8; }
.pd-btn--sm { padding: 8px 14px; font-size: 14px; }
.pd-btn--block { width: 100%; }
.pd-btn__arrow { font-family: var(--pd-mono); font-weight: 400; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.pd-center .pd-actions { justify-content: center; }

/* Hero: centered text over the dawn horizon. Put a .pd-window or .pd-flow at the bottom */
.pd-hero { position: relative; overflow: hidden; padding: clamp(72px, 9vw, 112px) 0 0; text-align: center; }
.pd-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 70%; background: var(--pd-dawn); pointer-events: none; }
.pd-hero > * { position: relative; z-index: 1; }
.pd-hero .pd-lead { margin-inline: auto; }
.pd-hero .pd-actions { justify-content: center; }
.pd-hero__stage { margin-top: 64px; }

/* Window: a product window that rests on the horizon */
.pd-window { overflow: hidden; border: var(--pd-border); border-radius: var(--pd-radius-lg) var(--pd-radius-lg) 0 0; background: var(--pd-panel); box-shadow: var(--pd-shadow-window); text-align: left; }
.pd-window--closed { border-radius: var(--pd-radius-lg); }
.pd-window__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: var(--pd-border); color: var(--pd-soft); font-family: var(--pd-mono); font-size: var(--pd-text-micro); }
.pd-window__dots { display: flex; gap: 6px; }
.pd-window__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--pd-line-2); }
.pd-window__body { display: grid; grid-template-columns: 200px 1fr; min-height: 320px; }
.pd-window__side { padding: 16px 12px; border-right: var(--pd-border); font-size: 13px; }
.pd-window__side a { display: block; padding: 6px 10px; border-radius: var(--pd-radius-sm); color: var(--pd-soft); text-decoration: none; }
.pd-window__side a[aria-current] { background: var(--pd-panel-2); color: var(--pd-text); }
.pd-window__main { min-width: 0; padding: 20px; }
@media (max-width: 720px) { .pd-window__body { grid-template-columns: 1fr; } .pd-window__side { display: none; } }

/* Flow graph: the signature drawing. Steps as squared nodes joined by curved hairlines.
   Draw it as an inline SVG with these classes so colors come from the tokens */
.pd-flow { width: 100%; height: auto; }
.pd-flow__edge { fill: none; stroke: var(--pd-line-2); stroke-width: 1.5; }
.pd-flow__edge--live { stroke: var(--pd-amber); stroke-dasharray: 4 5; }
.pd-flow__node { fill: var(--pd-panel); stroke: var(--pd-line-2); stroke-width: 1; }
.pd-flow__node--live { stroke: var(--pd-amber); }
.pd-flow__label { fill: var(--pd-text); font-family: var(--pd-sans); font-size: 13px; font-weight: 500; }
.pd-flow__meta { fill: var(--pd-soft); font-family: var(--pd-mono); font-size: 10px; }
.pd-flow__dot--ok { fill: var(--pd-ok); }
.pd-flow__dot--live { fill: var(--pd-amber); }
.pd-flow__dot--wait { fill: var(--pd-faint); }

/* Run log: mono rows of time, step and status */
.pd-log { width: 100%; border-collapse: collapse; font-family: var(--pd-mono); font-size: 12px; }
.pd-log th { padding: 8px 10px; border-bottom: var(--pd-border); color: var(--pd-faint); font-weight: 400; text-align: left; text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; }
.pd-log td { padding: 9px 10px; border-bottom: var(--pd-border); color: var(--pd-soft); white-space: nowrap; }
.pd-log td:first-child { color: var(--pd-faint); }
.pd-log tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) { .pd-log .pd-log__hide { display: none; } }

/* Status pills inside product UI */
.pd-status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--pd-mono); font-size: 11.5px; }
.pd-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pd-status--ok { color: var(--pd-ok); }
.pd-status--live { color: var(--pd-amber); }
.pd-status--fail { color: var(--pd-fail); }

/* Badge: small squared label */
.pd-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border: 1px solid rgba(187, 166, 244, .35); border-radius: var(--pd-radius-sm); background: var(--pd-lilac-soft); color: var(--pd-lilac); font-family: var(--pd-mono); font-size: 11px; letter-spacing: .04em; }
.pd-badge--amber { border-color: rgba(241, 183, 101, .4); background: var(--pd-amber-soft); color: var(--pd-amber); }

/* Logo row: muted wordmarks under the hero */
.pd-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 44px; color: var(--pd-faint); font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.pd-logos__label { width: 100%; margin-bottom: 4px; color: var(--pd-soft); font-family: var(--pd-mono); font-size: 11px; font-weight: 400; letter-spacing: var(--pd-tracking-label); text-align: center; text-transform: uppercase; }

/* Cards: flat panels with hairlines; a number or icon tile on top */
.pd-grid { display: grid; gap: 1px; background: var(--pd-line); border: var(--pd-border); border-radius: var(--pd-radius-lg); overflow: hidden; }
.pd-grid--3 { grid-template-columns: repeat(3, 1fr); }
.pd-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .pd-grid--3, .pd-grid--2 { grid-template-columns: 1fr; } }
.pd-card { padding: 30px 28px; background: var(--pd-night); }
.pd-section--alt .pd-card { background: var(--pd-night-2); }
.pd-card .pd-h3 { margin-top: 18px; }
.pd-card p { margin: 10px 0 0; color: var(--pd-soft); }
.pd-tile { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--pd-line-2); border-radius: var(--pd-radius); color: var(--pd-amber); font-family: var(--pd-mono); font-size: 13px; }

/* Stats: big numbers with a mono caption */
.pd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 720px) { .pd-stats { grid-template-columns: 1fr; } }
.pd-stat__num { font-size: clamp(40px, 5vw, 60px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.pd-stat__num span { color: var(--pd-lilac); }
.pd-stat__label { margin-top: 10px; color: var(--pd-soft); font-family: var(--pd-mono); font-size: 12px; }

/* Quote */
.pd-quote { margin: 0; font-size: clamp(22px, 2.6vw, 30px); font-weight: 500; letter-spacing: -.015em; line-height: 1.35; }
.pd-quote__by { display: flex; align-items: center; gap: 12px; margin-top: 24px; color: var(--pd-soft); font-size: var(--pd-text-small); }
.pd-avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--pd-panel-2); color: var(--pd-amber); font-family: var(--pd-mono); font-size: 13px; }

/* Forms: dark inputs, hairline borders, lilac focus ring */
.pd-field { display: grid; gap: 7px; margin-bottom: 18px; }
.pd-label { font-size: var(--pd-text-small); font-weight: 500; }
.pd-hint { color: var(--pd-faint); font-size: 13px; }
.pd-input, .pd-select { width: 100%; padding: 11px 13px; border: var(--pd-border); border-radius: var(--pd-radius); background: var(--pd-panel); color: var(--pd-text); font: 400 15px var(--pd-sans); }
.pd-input::placeholder { color: var(--pd-faint); }
.pd-input:focus, .pd-select:focus { outline: none; border-color: var(--pd-lilac); box-shadow: var(--pd-glow-lilac); }
.pd-check { display: flex; align-items: flex-start; gap: 10px; color: var(--pd-soft); font-size: var(--pd-text-small); }
.pd-check input { margin-top: 3px; accent-color: var(--pd-lilac); }
.pd-or { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--pd-faint); font-family: var(--pd-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.pd-or::before, .pd-or::after { content: ""; flex: 1; height: 1px; background: var(--pd-line); }
.pd-form-card { padding: 32px; border: var(--pd-border); border-radius: var(--pd-radius-lg); background: var(--pd-night-2); }
@media (max-width: 480px) { .pd-form-card { padding: 22px; } }

/* Pricing: hairline columns; the featured plan gets a lilac top rule */
.pd-toggle { display: inline-flex; padding: 3px; border: var(--pd-border); border-radius: var(--pd-radius); background: var(--pd-night-2); }
.pd-toggle button { padding: 7px 14px; border: 0; border-radius: var(--pd-radius-sm); background: transparent; color: var(--pd-soft); font: 500 14px var(--pd-sans); cursor: pointer; white-space: nowrap; }
.pd-toggle button[aria-pressed="true"] { background: var(--pd-panel-2); color: var(--pd-text); }
.pd-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--pd-line); border: var(--pd-border); border-radius: var(--pd-radius-lg); overflow: hidden; text-align: left; }
@media (max-width: 900px) { .pd-plans { grid-template-columns: 1fr; } }
.pd-plan { display: flex; flex-direction: column; padding: 32px 28px; background: var(--pd-night); }
.pd-plan--featured { background: var(--pd-night-2); box-shadow: inset 0 2px 0 var(--pd-lilac); }
.pd-plan__name { font-size: 18px; font-weight: 600; }
.pd-plan__price { margin-top: 18px; font-size: 48px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.pd-plan__price small { color: var(--pd-soft); font-size: 15px; font-weight: 400; letter-spacing: 0; }
.pd-plan__desc { margin: 12px 0 24px; color: var(--pd-soft); font-size: var(--pd-text-small); }
.pd-plan__list { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; font-size: var(--pd-text-small); }
.pd-plan__list li { display: flex; gap: 10px; }
.pd-plan__list li::before { content: "+"; color: var(--pd-amber); font-family: var(--pd-mono); }
.pd-compare { width: 100%; border-collapse: collapse; font-size: var(--pd-text-small); }
.pd-compare th, .pd-compare td { padding: 13px 12px; border-bottom: var(--pd-border); text-align: left; }
.pd-compare th { color: var(--pd-soft); font-weight: 500; }
.pd-compare td:not(:first-child), .pd-compare th:not(:first-child) { text-align: center; }
.pd-compare .pd-yes { color: var(--pd-ok); font-family: var(--pd-mono); }
.pd-compare .pd-no { color: var(--pd-faint); font-family: var(--pd-mono); }

/* FAQ */
.pd-faq details { border-bottom: var(--pd-border); }
.pd-faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 17px; font-weight: 500; list-style: none; cursor: pointer; }
.pd-faq summary::-webkit-details-marker { display: none; }
.pd-faq summary::after { content: "+"; color: var(--pd-amber); font-family: var(--pd-mono); }
.pd-faq details[open] summary::after { content: "-"; }
.pd-faq p { margin: 0 0 20px; color: var(--pd-soft); }

/* Article */
.pd-article { font-size: 18px; line-height: 1.75; }
.pd-article h2 { margin: 48px 0 12px; font-size: 28px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.pd-article p { margin: 0 0 22px; color: #d9d2e2; }
.pd-article ul { margin: 0 0 22px; padding-left: 20px; color: #d9d2e2; }
.pd-article blockquote { margin: 36px 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--pd-lilac); font-size: 22px; font-weight: 500; line-height: 1.45; color: var(--pd-text); }
.pd-article code { padding: 2px 6px; border: var(--pd-border); border-radius: var(--pd-radius-sm); background: var(--pd-panel); font-family: var(--pd-mono); font-size: .82em; }
.pd-article figure { margin: 36px 0; }
.pd-article figcaption { margin-top: 10px; color: var(--pd-faint); font-family: var(--pd-mono); font-size: 12px; }
.pd-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; color: var(--pd-soft); font-size: var(--pd-text-small); }
.pd-byline .pd-mono { color: var(--pd-faint); }

/* Closing band: dawn glow rising from the bottom */
.pd-band { position: relative; overflow: hidden; padding-block: var(--pd-section); text-align: center; border-top: var(--pd-border); }
.pd-band::after { content: ""; position: absolute; inset: auto 0 0 0; height: 100%; background: var(--pd-dawn); pointer-events: none; }
.pd-band > * { position: relative; z-index: 1; }

/* Footer */
.pd-footer { padding: 56px 0 40px; border-top: var(--pd-border); color: var(--pd-soft); font-size: var(--pd-text-small); }
.pd-footer__grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 720px) { .pd-footer__grid { grid-template-columns: 1fr 1fr; } }
.pd-footer h4 { margin: 0 0 12px; color: var(--pd-faint); font-family: var(--pd-mono); font-size: 11px; font-weight: 400; letter-spacing: var(--pd-tracking-label); text-transform: uppercase; }
.pd-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pd .pd-footer a { color: var(--pd-soft); text-decoration: none; }
.pd .pd-footer a:hover { color: var(--pd-text); }
.pd-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: var(--pd-border); color: var(--pd-faint); font-family: var(--pd-mono); font-size: 11.5px; }
