/* ==========================================================================
   plait.css — shared design system for Plait public pages
   Tokens · base · nav · footer · buttons · cards · pills · hero · article ·
   blog index · forms · legal · utilities. Class prefix: .pl-
   The landing page (index.html) is the design reference; this file mirrors it.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #0d0f12;
  --bg-card: #161a1f;
  --bg-card-2: #1c2127;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --accent: #00a3e0;
  --accent-2: #0086b8;
  --accent-soft: rgba(0, 163, 224, 0.12);
  --green: #00ff88;
  --green-soft: rgba(0, 255, 136, 0.1);
  --purple: #8a2be2;
  --warn: #ffb020;
  --danger: #ff6b6b;
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.76);
  --text-3: rgba(255, 255, 255, 0.58);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-accent: 0 4px 24px rgba(0, 163, 224, 0.28);
  --wrap: 1160px;
  --measure: 72ch;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3, h4 { text-wrap: balance; overflow-wrap: break-word; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(0, 163, 224, 0.35); }

.pl-skip {
  position: absolute; left: 16px; top: -200px; z-index: 1000;
  background: var(--accent); color: #fff; padding: 10px 16px;
  border-radius: 8px; font-weight: 600; text-decoration: none; font-size: 14px;
}
.pl-skip:focus { top: 16px; }

.pl-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.pl-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.pl-main { display: block; }
.pl-section { padding: 48px 0; }
.pl-section--tight { padding: 24px 0; }
.pl-section__title {
  font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.15; text-align: center; margin: 0 0 12px;
}
.pl-section__lead { text-align: center; color: var(--text-2); max-width: 640px; margin: 0 auto 36px; font-size: 17px; }
.pl-grid { display: grid; gap: 24px; }
.pl-grid--2 { grid-template-columns: repeat(2, 1fr); }
.pl-grid--3 { grid-template-columns: repeat(3, 1fr); }
.pl-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .pl-grid--3, .pl-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pl-grid--2, .pl-grid--3, .pl-grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Nav ---------- */
.pl-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 15, 18, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.pl-nav__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.pl-nav__logo { display: inline-flex; align-items: center; border-radius: 8px; }
.pl-nav__logo img { height: 42px; width: auto; display: block; }
.pl-nav__links { display: flex; align-items: center; gap: 28px; }
.pl-nav__links a { color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.pl-nav__links a:hover, .pl-nav__links a[aria-current="page"] { color: var(--text); }
.pl-nav__links .pl-btn { color: #fff; box-shadow: none; }
@media (max-width: 640px) {
  .pl-nav__inner { padding: 12px 16px; }
  .pl-nav__links { gap: 16px; }
  .pl-nav__links a.pl-nav__hide-sm { display: none; }
  .pl-nav__logo img { height: 36px; }
}

/* ---------- Buttons ---------- */
.pl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius);
  font: inherit; font-weight: 600; font-size: 15px; line-height: 1.2;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s, background 0.2s;
}
.pl-btn--primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: var(--shadow-accent); }
.pl-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0, 163, 224, 0.4); color: #fff; }
.pl-btn--ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.pl-btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.pl-btn--green { background: var(--green); color: #05130c; }
.pl-btn--green:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 255, 136, 0.3); }
.pl-btn--sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.pl-btn--lg { padding: 16px 32px; font-size: 17px; }
.pl-btn--block { width: 100%; }
.pl-btn:disabled, .pl-btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.pl-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.pl-link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: none; }
.pl-link-btn:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.pl-footer { border-top: 1px solid var(--border); padding: 48px 24px 40px; text-align: center; margin-top: 72px; }
.pl-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; margin: 0 0 24px; padding: 0; list-style: none; }
.pl-footer__links a { color: var(--text-2); font-size: 14px; text-decoration: none; transition: color 0.2s; }
.pl-footer__links a:hover { color: var(--accent); }
.pl-footer p { color: var(--text-3); font-size: 14px; margin: 0 0 10px; }
.pl-footer__tm { max-width: 660px; margin: 0 auto !important; line-height: 1.55; }
@media (max-width: 640px) { .pl-footer { padding: 40px 20px 32px; margin-top: 56px; } }

/* ---------- Hero / eyebrow / badge ---------- */
.pl-hero { position: relative; padding: 72px 24px 32px; text-align: center; overflow: hidden; }
.pl-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 30% 20%, rgba(0, 163, 224, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 78% 50%, rgba(0, 255, 136, 0.08) 0%, transparent 60%);
}
.pl-hero h1 {
  font-size: clamp(34px, 5vw, 58px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06;
  margin: 0 auto 18px; max-width: 900px;
}
.pl-hero__lead { font-size: clamp(17px, 2vw, 20px); color: var(--text-2); max-width: 660px; margin: 0 auto; line-height: 1.6; }
.pl-hero__lead strong { color: var(--text); font-weight: 600; }
.pl-hero--left { text-align: left; }
.pl-hero--left h1, .pl-hero--left .pl-hero__lead { margin-left: 0; }
.pl-eyebrow {
  display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.pl-badge {
  display: inline-flex; align-items: center; gap: 8px; background: var(--accent-soft);
  border: 1px solid rgba(0, 163, 224, 0.3); padding: 7px 14px; border-radius: 100px;
  font-size: 14px; font-weight: 500; color: var(--accent);
}
.pl-badge .pl-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; animation: pl-pulse 2s infinite; flex-shrink: 0; }
.pl-badge--neutral { background: rgba(255, 255, 255, 0.05); border-color: var(--border-strong); color: var(--text-2); }
.pl-tag {
  display: inline-block; font-size: 14px; line-height: 1; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--green); background: var(--green-soft); border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 100px; padding: 2px 8px; vertical-align: middle;
}
.pl-tag--warn { color: var(--warn); background: rgba(255, 176, 32, 0.12); border-color: rgba(255, 176, 32, 0.35); }
@keyframes pl-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.9); } }

/* ---------- Cards ---------- */
.pl-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: border-color 0.25s, transform 0.25s;
}
.pl-card--hover:hover { border-color: rgba(0, 163, 224, 0.45); transform: translateY(-2px); }
.pl-card--glow { position: relative; overflow: hidden; }
.pl-card--glow::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 20% 0%, rgba(0, 163, 224, 0.12), transparent 60%);
}
.pl-card--glow > * { position: relative; }
.pl-card h2, .pl-card h3 { margin-top: 0; }
.pl-card > :last-child { margin-bottom: 0; }
.pl-card__kicker { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.pl-card__title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 10px; }
.pl-card p { color: var(--text-2); font-size: 15px; line-height: 1.6; }

/* ---------- Pills ---------- */
.pl-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pl-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; line-height: 1.2; border: 1px solid var(--border-strong);
  color: var(--text-2); text-decoration: none; background: rgba(255, 255, 255, 0.02);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.pl-pill:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.32); }
.pl-pill--accent { color: var(--accent); border-color: rgba(0, 163, 224, 0.4); background: var(--accent-soft); }
.pl-pill--accent:hover { color: #5ccaf0; border-color: var(--accent); }
.pl-pill--green { color: var(--green); border-color: rgba(0, 255, 136, 0.3); background: var(--green-soft); }
.pl-pill--green:hover { color: var(--green); border-color: var(--green); }
.pl-pill--static { cursor: default; }

/* ---------- Stats ---------- */
.pl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pl-stat { text-align: center; padding: 22px 12px; }
.pl-stat__n { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.pl-stat__n em { font-style: normal; color: var(--accent); }
.pl-stat__l { font-size: 14px; color: var(--text-3); }
@media (max-width: 800px) { .pl-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Article ---------- */
.pl-article-wrap { max-width: 760px; margin: 0 auto; padding: 44px 24px 80px; }
.pl-article { display: block; }
.pl-article-header { margin-bottom: 36px; }
.pl-article-header h1 {
  font-size: clamp(30px, 4.6vw, 44px); font-weight: 800; letter-spacing: -0.025em;
  line-height: 1.12; margin: 0 0 20px; color: var(--text);
}
.pl-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; color: var(--text-3); font-size: 14px; margin: 0 0 24px; }
.pl-byline strong { color: var(--text); font-weight: 600; }
.pl-byline strong a { color: inherit; text-decoration: none; }
.pl-byline strong a:hover { color: var(--accent); }
.pl-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; border: 1px solid var(--border-strong); flex-shrink: 0; }
.pl-lede {
  padding: 16px 20px; border-left: 3px solid var(--green); background: var(--green-soft);
  border-radius: 0 var(--radius) var(--radius) 0; color: var(--text-2); font-size: 17px; line-height: 1.6; margin: 0;
}
.pl-lede em { font-style: italic; }

.pl-prose { font-size: 18px; line-height: 1.75; color: var(--text-2); }
.pl-prose > :first-child { margin-top: 0; }
.pl-prose p { margin: 0 0 1.35em; }
.pl-prose h2 {
  color: var(--text); font-size: clamp(24px, 3vw, 30px); font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.2; margin: 2.2em 0 0.7em;
}
.pl-prose h3 { color: var(--text); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; margin: 1.8em 0 0.6em; }
.pl-prose h4 { color: var(--text); font-size: 17px; font-weight: 600; margin: 1.5em 0 0.5em; }
.pl-prose a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(0, 163, 224, 0.35); text-underline-offset: 3px; transition: color 0.2s, text-decoration-color 0.2s; }
.pl-prose a:hover { color: #5ccaf0; text-decoration-color: currentColor; }
.pl-prose strong { color: var(--text); font-weight: 600; }
.pl-prose ul, .pl-prose ol { margin: 0 0 1.35em; padding-left: 1.4em; }
.pl-prose li { margin-bottom: 0.45em; }
.pl-prose li::marker { color: var(--accent); }
.pl-prose blockquote {
  margin: 1.6em 0; padding: 16px 22px; border-left: 3px solid var(--accent);
  background: var(--bg-card); border-radius: 0 var(--radius) var(--radius) 0; color: var(--text-2); font-style: italic;
}
.pl-prose blockquote p:last-child { margin-bottom: 0; }
.pl-prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }
.pl-prose img { border-radius: var(--radius); }
.pl-prose code { font-family: var(--mono); font-size: 0.88em; background: rgba(255, 255, 255, 0.08); padding: 2px 6px; border-radius: 6px; color: var(--text); }
.pl-prose pre { overflow-x: auto; padding: 16px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; line-height: 1.6; }
.pl-prose pre code { background: none; padding: 0; font-size: inherit; }
.pl-prose figure { margin: 1.6em 0; }
.pl-prose figcaption { font-size: 14px; color: var(--text-3); margin-top: 8px; }

.pl-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.6em 0; border: 1px solid var(--border); border-radius: var(--radius); }
.pl-table-wrap table { margin: 0; min-width: 480px; }
.pl-prose table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; margin: 1.6em 0; }
.pl-prose th, .pl-prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.pl-prose th { background: rgba(255, 255, 255, 0.03); color: var(--text); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.pl-prose td:first-child { color: var(--text); font-weight: 500; }
.pl-prose tr:last-child td { border-bottom: 0; }

.pl-callout {
  margin: 1.6em 0; padding: 20px 24px; background: var(--bg-card); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: var(--radius); color: var(--text-2); font-size: 17px;
}
.pl-callout > :first-child { margin-top: 0; }
.pl-callout > :last-child { margin-bottom: 0; }
.pl-callout h3, .pl-callout h4 { margin-top: 0; color: var(--text); font-size: 18px; }
.pl-callout--green { border-left-color: var(--green); }
.pl-callout--warn { border-left-color: var(--warn); }
.pl-callout--danger { border-left-color: var(--danger); }
.pl-callout--center { text-align: center; }
.pl-note { margin: 2em 0 0; text-align: center; color: var(--text-3); font-size: 14px; }
.pl-footnotes { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 15px; color: var(--text-3); }

.pl-aside { margin: 2.5rem 0; padding: 20px 24px; border-radius: var(--radius); background: rgba(0, 163, 224, 0.07); border: 1px solid rgba(0, 163, 224, 0.25); }
.pl-aside h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; color: var(--text); }
.pl-aside p { margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.6; }
.pl-aside a { color: var(--accent); }

.pl-cta-box {
  margin: 3rem 0 0; padding: 40px 32px; border-radius: var(--radius-xl); text-align: center;
  background: var(--bg-card); border: 1px solid var(--border); position: relative; overflow: hidden;
}
.pl-cta-box::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(0, 163, 224, 0.16), transparent 65%);
}
.pl-cta-box > * { position: relative; }
.pl-cta-box h3 { font-size: clamp(22px, 2.6vw, 26px); font-weight: 700; color: var(--text); margin: 0 0 10px; letter-spacing: -0.02em; }
.pl-cta-box p { color: var(--text-2); margin: 0 0 22px; font-size: 16px; }
.pl-cta-box .pl-btn { color: #fff; }

.pl-related { margin: 2.5rem 0 0; padding-top: 28px; border-top: 1px solid var(--border); }
.pl-related h3 { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin: 0 0 12px; }
.pl-related ul { list-style: none; margin: 0; padding: 0; }
.pl-related li { padding: 11px 0; border-bottom: 1px solid var(--border); margin: 0; }
.pl-related li:last-child { border-bottom: 0; }
.pl-related a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 16px; }
.pl-related a:hover { color: var(--accent); }
.pl-related p { margin: 16px 0 0; font-size: 15px; }

/* Sticky CTA bar at the bottom of blog posts */
.blog-sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 99;
  background: rgba(13, 15, 18, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border); padding: 12px 20px;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  transform: translateY(100%); transition: transform 0.3s ease;
}
.blog-sticky-cta.visible { transform: translateY(0); }
.blog-sticky-cta p { color: var(--text-2); font-size: 15px; margin: 0; }
.blog-sticky-cta a {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; padding: 10px 20px;
  border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap;
}
@media (max-width: 640px) {
  .blog-sticky-cta { gap: 10px; padding: 10px 16px; }
  .blog-sticky-cta p { font-size: 14px; }
}

/* ---------- Blog index ---------- */
.guides-strip { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 40px; }
.blog-categories { margin: 0 0 22px; }
.blog-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-post-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; transition: border-color 0.25s, transform 0.25s;
}
.blog-post-card:hover { border-color: rgba(0, 163, 224, 0.45); transform: translateY(-2px); }
.blog-post-card:focus-within { border-color: var(--accent); }
.blog-post-card .post-date { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin: 0 0 12px; font-variant-numeric: tabular-nums; }
.blog-post-card .post-title {
  font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; color: var(--text); margin: 0 0 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-post-card .post-author { display: none; }
.blog-post-card .post-excerpt {
  color: var(--text-2); font-size: 15px; line-height: 1.6; margin: 0 0 18px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-post-card .read-more { color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none; margin-top: auto; align-self: flex-start; }
.blog-post-card .read-more::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.blog-post-card .read-more:focus-visible { outline: none; }
/* Featured (latest) post */
.blog-posts-grid > .blog-post-card:first-child {
  grid-column: 1 / -1; padding: 40px;
  background: linear-gradient(135deg, rgba(0, 163, 224, 0.14) 0%, var(--bg-card) 55%);
}
.blog-posts-grid > .blog-post-card:first-child::before {
  content: 'Latest'; display: inline-block; align-self: flex-start; margin-bottom: 14px;
  font-size: 14px; line-height: 1.2; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green); background: var(--green-soft); border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 100px; padding: 3px 10px;
}
.blog-posts-grid > .blog-post-card:first-child .post-title { font-size: clamp(24px, 3vw, 34px); -webkit-line-clamp: 3; max-width: 26ch; }
.blog-posts-grid > .blog-post-card:first-child .post-excerpt { font-size: 17px; max-width: 70ch; }
.blog-posts-grid > .blog-post-card:first-child .read-more { font-size: 15px; }
@media (max-width: 960px) { .blog-posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .blog-posts-grid { grid-template-columns: 1fr; gap: 16px; }
  .blog-posts-grid > .blog-post-card:first-child { padding: 26px; }
}

/* ---------- Forms ---------- */
.pl-field { text-align: left; margin-bottom: 16px; }
.pl-label, .pl-field label { display: block; font-size: 14px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.pl-input, .pl-select, .pl-field input, .pl-field select {
  width: 100%; padding: 14px 16px; background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong); border-radius: var(--radius); color: var(--text);
  font: inherit; font-size: 16px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.pl-input:focus, .pl-select:focus, .pl-field input:focus, .pl-field select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 163, 224, 0.22);
}
.pl-input::placeholder, .pl-field input::placeholder { color: rgba(255, 255, 255, 0.35); }
.pl-select, .pl-field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239aa0a6' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.pl-select option, .pl-field select option { background: var(--bg-card-2); color: var(--text); }
.pl-code-input {
  text-align: center; font-size: 28px !important; font-weight: 700; letter-spacing: 0.35em;
  font-variant-numeric: tabular-nums; padding: 14px 8px !important; min-height: 64px;
}
.pl-form-row { display: flex; gap: 12px; }
.pl-form-row > * { flex: 1; min-width: 0; }
.pl-msg { font-size: 14px; margin-top: 8px; display: none; }
.pl-msg--error { color: #ff8a8a; }
.pl-msg--ok { color: var(--green); }
.pl-help { font-size: 14px; color: var(--text-3); line-height: 1.5; }

/* Auth / onboarding card pages */
.pl-auth-body { min-height: 100vh; display: flex; flex-direction: column; }
.pl-auth-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px 56px; }
.pl-auth-card {
  width: 100%; max-width: 460px; background: linear-gradient(160deg, #1a1e25 0%, #12151a 100%);
  border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 40px 32px; text-align: center;
}
.pl-auth-card--wide { max-width: 600px; }
.pl-auth-card h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 8px; color: var(--text); }
.pl-auth-card h2 { font-size: 17px; font-weight: 600; margin: 0 0 10px; color: var(--text); }
.pl-auth-card .pl-subtitle { color: var(--text-2); font-size: 15px; line-height: 1.55; margin: 0 0 26px; }
.pl-auth-logo { display: inline-flex; margin: 0 auto 22px; border-radius: 12px; }
.pl-auth-logo img { width: 60px; height: 60px; border-radius: 12px; display: block; }
@media (max-width: 480px) { .pl-auth-card { padding: 30px 20px; } }

/* ---------- Legal ---------- */
.pl-legal { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.pl-legal h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 10px; }
.pl-legal .pl-updated { color: var(--text-3); font-size: 14px; margin: 0 0 36px; }
.pl-legal h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin: 40px 0 10px; color: var(--text); }
.pl-legal p, .pl-legal li { color: var(--text-2); font-size: 16px; line-height: 1.7; }
.pl-legal p { margin: 0 0 1.1em; }
.pl-legal ul { padding-left: 1.3em; margin: 0 0 1.2em; }
.pl-legal li { margin-bottom: 0.5em; }
.pl-legal li::marker { color: var(--accent); }
.pl-legal strong { color: var(--text); font-weight: 600; }
.pl-legal a { color: var(--accent); }

/* ---------- Photos ---------- */
.pl-photo { margin: 0; }
.pl-photo__frame { aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--bg-card-2); }
.pl-photo__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }
.pl-photo figcaption { margin-top: 12px; }
.pl-photo__label { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 4px; }
.pl-photo__label--before { color: var(--danger); }
.pl-photo__label--after { color: var(--green); }
.pl-photo__label--now { color: var(--accent); }
.pl-photo__caption { font-size: 14px; color: var(--text-3); margin: 0; }
.pl-portrait { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 2px solid var(--border-strong); display: block; }

/* Social icon links */
.pl-social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pl-social a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--border-strong); color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color 0.2s, border-color 0.2s;
}
.pl-social a:hover { color: var(--text); border-color: var(--accent); }
.pl-social svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

/* ---------- Utilities ---------- */
.pl-center { text-align: center; }
.pl-muted { color: var(--text-3); }
.pl-tabular { font-variant-numeric: tabular-nums; }
.pl-mt-0 { margin-top: 0 !important; }
.pl-mt-2 { margin-top: 16px !important; }
.pl-mt-3 { margin-top: 24px !important; }
.pl-mt-4 { margin-top: 32px !important; }
.pl-mt-6 { margin-top: 48px !important; }
.pl-mb-0 { margin-bottom: 0 !important; }
.pl-mb-2 { margin-bottom: 16px !important; }
.pl-mb-3 { margin-bottom: 24px !important; }
.pl-mb-4 { margin-bottom: 32px !important; }
.pl-measure { max-width: var(--measure); }
.pl-mx-auto { margin-left: auto; margin-right: auto; }
.pl-quote { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.5; color: var(--text); font-style: italic; letter-spacing: -0.01em; }
.pl-quote cite { display: block; margin-top: 12px; font-style: normal; font-size: 14px; color: var(--text-3); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}
