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

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

/* Sections */
.pt-section { padding-block: var(--pt-section); }
.pt-section--stone { background: var(--pt-stone); }
.pt-section--ink { background: var(--pt-ink); color: var(--pt-white); }
.pt-section--ink .pt-lead { color: rgba(255, 255, 255, .64); }
.pt-rule { height: 1px; border: 0; margin: 0; background: var(--pt-line); }

/* Type: heavy, tight geometric headlines; plain Geist for everything else */
.pt-hero-title, .pt-h2, .pt-h3 { margin: 0; font-family: var(--pt-display); font-weight: 700; color: inherit; }
.pt-hero-title { font-size: var(--pt-text-hero); letter-spacing: var(--pt-tracking-hero); line-height: 1.04; }
.pt-h2 { font-size: var(--pt-text-h2); letter-spacing: var(--pt-tracking-h2); line-height: 1.06; }
.pt-h3 { font-size: var(--pt-text-h3); font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.pt-lead { max-width: 600px; margin: 20px 0 0; color: var(--pt-soft); font-size: var(--pt-text-lead); line-height: 1.5; }
.pt-eyebrow { display: inline-block; margin-bottom: 14px; color: var(--pt-soft); font-family: var(--pt-mono); font-size: var(--pt-text-micro); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.pt-mono { font-family: var(--pt-mono); font-size: var(--pt-text-micro); }

/* Inline objects: little widgets that sit inside a headline line like words.
   Their height follows the font size (em), so they scale with the headline. */
.pt-inline { display: inline-flex; align-items: center; gap: .18em; height: .8em; margin-inline: .04em; padding: .08em .16em; vertical-align: .02em; border: 1px solid var(--pt-line); border-radius: .2em; background: var(--pt-stone); font-family: var(--pt-sans); font-size: 1em; letter-spacing: 0; line-height: 1; white-space: nowrap; overflow: hidden; }
.pt-inline__card { display: flex; flex-direction: column; justify-content: center; gap: .06em; height: 100%; padding: 0 .14em; border-radius: .12em; background: var(--pt-white); box-shadow: var(--pt-shadow); }
.pt-inline__label { font-size: max(.17em, 9px); line-height: 1.1; font-weight: 600; color: var(--pt-ink); }
.pt-inline__value { font-family: var(--pt-mono); font-size: max(.15em, 8px); line-height: 1.1; color: var(--pt-soft); }
.pt-inline__value b { color: var(--pt-leaf); font-weight: 500; }
.pt-inline--tile { width: 1.25em; padding: 0; overflow: hidden; }
.pt-inline--dial { width: .8em; padding: .07em; border-radius: 50%; background: var(--pt-white); }
.pt-inline--dial svg { width: 100%; height: 100%; }

/* Badge: a small bordered capsule with a dark tag at the start ("NEW") */
.pt-badge { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: var(--pt-border); border-radius: var(--pt-radius-sm); background: var(--pt-white); color: var(--pt-ink); font-size: var(--pt-text-small); font-weight: 500; text-decoration: none; white-space: nowrap; }
.pt-badge__tag { padding: 2px 7px; border-radius: 5px; background: var(--pt-stone); color: var(--pt-soft); font-family: var(--pt-mono); font-size: 11px; letter-spacing: .04em; }
.pt-badge:hover { border-color: var(--pt-line-strong); }

/* Nav: a stone capsule that floats a little below the top */
.pt-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 10px; padding: 8px 8px 8px 18px; border-radius: var(--pt-radius); background: var(--pt-stone); }
.pt-nav__links { display: flex; gap: 26px; font-size: 15px; font-weight: 500; }
.pt-nav__links a { color: var(--pt-ink); text-decoration: none; }
.pt-nav__links a:hover { color: var(--pt-soft); }
.pt-nav__actions { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 500; }
.pt-nav__actions a:not(.pt-btn) { color: var(--pt-ink); text-decoration: none; white-space: nowrap; }
.pt-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--pt-ink); font-family: var(--pt-display); font-size: 22px; font-weight: 700; letter-spacing: -.04em; text-decoration: none; }
.pt-logo__mark { width: 22px; height: 22px; border-radius: 7px; background: var(--pt-ink); }

/* Buttons: dark pill for the main action, white bordered for the rest */
.pt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border: 1px solid transparent; border-radius: var(--pt-radius-sm); font-family: var(--pt-sans); font-size: 16px; font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s var(--pt-ease), border-color .2s var(--pt-ease), transform .15s var(--pt-ease); }
.pt-btn:active { transform: translateY(1px); }
.pt-btn--primary { background: var(--pt-ink); color: var(--pt-white); box-shadow: var(--pt-shadow-inset); }
.pt-btn--primary:hover { background: var(--pt-ink-2); }
.pt-btn--secondary { border-color: var(--pt-line); background: var(--pt-white); color: var(--pt-ink); box-shadow: var(--pt-shadow); }
.pt-btn--secondary:hover { border-color: var(--pt-line-strong); }
.pt-btn--light { background: var(--pt-white); color: var(--pt-ink); }
.pt-btn--sm { padding: 8px 14px; font-size: 15px; }
.pt-btn--lg { padding: 16px 30px; border-radius: var(--pt-radius); font-size: 19px; }
.pt-btn--block { width: 100%; }
.pt-btn__icon { width: 18px; height: 18px; flex: none; }
.pt-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.pt-center .pt-actions { justify-content: center; }
.pt-note { margin-top: 16px; color: var(--pt-soft); font-size: var(--pt-text-small); }
.pt-note strong { color: var(--pt-ink); font-weight: 500; }

/* Segmented toggle: options in a stone capsule, the active one white */
.pt-segment { display: inline-flex; gap: 2px; padding: 4px; border-radius: var(--pt-radius-sm); background: var(--pt-stone); }
.pt-segment button { padding: 7px 16px; border: 0; border-radius: 6px; background: transparent; color: var(--pt-soft); font: 500 14px var(--pt-sans); cursor: pointer; white-space: nowrap; }
.pt-segment button[aria-pressed="true"] { background: var(--pt-white); color: var(--pt-ink); box-shadow: var(--pt-shadow); }

/* Frame: the stone panel holding a product shot. --bar adds a thin system bar on top */
.pt-frame { position: relative; overflow: hidden; border: var(--pt-border); border-radius: var(--pt-radius-lg); background: var(--pt-stone); }
.pt-frame__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 18px; border-bottom: var(--pt-border); background: var(--pt-stone-2); color: var(--pt-soft); font-size: var(--pt-text-micro); font-weight: 500; white-space: nowrap; overflow: hidden; }
.pt-frame__body { padding: 40px; }

/* Panel: a white card inside a frame, the app's own windows */
.pt-panel { border: var(--pt-border); border-radius: var(--pt-radius); background: var(--pt-white); box-shadow: var(--pt-shadow-lg); }
.pt-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: var(--pt-border); font-weight: 600; }
.pt-panel__body { padding: 18px; }

/* Chips and status dots: product UI only */
.pt-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--pt-radius-pill); background: var(--pt-stone); color: var(--pt-ink); font-size: var(--pt-text-micro); font-weight: 500; white-space: nowrap; }
.pt-chip--leaf { background: var(--pt-leaf-soft); color: #1e6b3f; }
.pt-chip--sun { background: var(--pt-sun-soft); color: #8a5a12; }
.pt-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pt-leaf); flex: none; }
.pt-dot--sun { background: var(--pt-sun); }
.pt-meter { height: 6px; overflow: hidden; border-radius: var(--pt-radius-pill); background: var(--pt-stone-2); }
.pt-meter i { display: block; height: 100%; border-radius: inherit; background: var(--pt-ink); }

/* Logo row: plain wordmarks in soft gray */
.pt-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 48px; color: var(--pt-faint); font-family: var(--pt-display); font-size: 22px; font-weight: 600; letter-spacing: -.03em; }

/* Cards: hairline white boxes on stone, or stone boxes on white */
.pt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pt-card { padding: 28px; border: var(--pt-border); border-radius: var(--pt-radius-lg); background: var(--pt-white); }
.pt-card--stone { border-color: transparent; background: var(--pt-stone); }
.pt-card__icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 40px; border: var(--pt-border); border-radius: 10px; background: var(--pt-white); box-shadow: var(--pt-shadow); }
.pt-card__icon svg { width: 20px; height: 20px; }
.pt-card__title { margin: 0 0 8px; font-family: var(--pt-display); font-size: 21px; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.pt-card__text { margin: 0; color: var(--pt-soft); font-size: 15px; }

/* Quote and stats */
.pt-quote { margin: 0; }
.pt-quote blockquote { margin: 0; font-family: var(--pt-display); font-size: clamp(26px, 3.2vw, 38px); font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.pt-quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 24px; font-size: 15px; }
.pt-quote figcaption span { color: var(--pt-soft); }
.pt-avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--pt-stone-2); color: var(--pt-ink); font-weight: 600; font-size: 14px; }
.pt-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: var(--pt-border); }
.pt-stat { padding: 28px 24px 0 0; }
.pt-stat strong { display: block; font-family: var(--pt-display); font-size: clamp(40px, 5vw, 60px); font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.pt-stat span { display: block; margin-top: 10px; color: var(--pt-soft); font-size: 15px; }

/* Pricing */
.pt-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.pt-plan { display: flex; flex-direction: column; padding: 28px; border: var(--pt-border); border-radius: var(--pt-radius-lg); background: var(--pt-white); }
.pt-plan--featured { border-color: var(--pt-ink); box-shadow: var(--pt-shadow-lg); }
.pt-plan__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pt-plan__name { margin: 0; font-family: var(--pt-display); font-size: 22px; font-weight: 600; letter-spacing: -.025em; }
.pt-plan__desc { min-height: 3.2em; margin: 8px 0 24px; color: var(--pt-soft); font-size: 15px; }
.pt-plan__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 24px; }
.pt-plan__price strong { font-family: var(--pt-display); font-size: 52px; font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.pt-plan__price span { color: var(--pt-soft); font-size: 15px; }
.pt-plan__list { display: grid; gap: 10px; margin: 24px 0 0; padding: 24px 0 0; border-top: var(--pt-border); list-style: none; font-size: 15px; }
.pt-plan__list li { display: flex; gap: 10px; }
.pt-plan__list li::before { content: ""; width: 16px; height: 16px; margin-top: 4px; flex: none; border-radius: 50%; background: var(--pt-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }

.pt-table-wrap { overflow-x: auto; border: var(--pt-border); border-radius: var(--pt-radius-lg); background: var(--pt-white); }
.pt-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.pt-table th, .pt-table td { padding: 14px 20px; border-bottom: var(--pt-border); text-align: left; }
.pt-table thead th { background: var(--pt-stone); font-weight: 600; }
.pt-table tbody th { font-weight: 400; color: var(--pt-soft); }
.pt-table tr:last-child td, .pt-table tr:last-child th { border-bottom: 0; }
.pt-table__yes { color: var(--pt-ink); font-weight: 600; }
.pt-table__no { color: var(--pt-faint); }

.pt-faq { border-top: var(--pt-border); }
.pt-faq details { border-bottom: var(--pt-border); }
.pt-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font-family: var(--pt-display); font-size: 20px; font-weight: 600; letter-spacing: -.02em; list-style: none; cursor: pointer; }
.pt-faq summary::-webkit-details-marker { display: none; }
.pt-faq summary::after { content: "+"; display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: var(--pt-radius-sm); background: var(--pt-stone); font-family: var(--pt-sans); font-weight: 400; transition: transform .2s var(--pt-ease); }
.pt-faq details[open] summary::after { transform: rotate(45deg); }
.pt-faq p { margin: 0 0 22px; max-width: 620px; color: var(--pt-soft); }

/* Article */
.pt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--pt-soft); font-size: var(--pt-text-small); }
.pt-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--pt-faint); }
.pt-author { display: flex; align-items: center; gap: 12px; }
.pt-author strong { display: block; font-weight: 500; }
.pt-author--card { padding: 24px; border-radius: var(--pt-radius-lg); background: var(--pt-stone); }
.pt-author--card p { margin: 4px 0 0; color: var(--pt-soft); font-size: 15px; }
.pt-prose { font-size: 18px; line-height: 1.7; }
.pt-prose > * + * { margin-top: 1.1em; }
.pt-prose h2 { margin-top: 2em; font-family: var(--pt-display); font-size: 32px; font-weight: 700; letter-spacing: -.035em; line-height: 1.15; }
.pt-prose h3 { margin-top: 1.6em; font-family: var(--pt-display); font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.pt-prose p, .pt-prose ul, .pt-prose ol { margin-bottom: 0; }
.pt-prose a { color: var(--pt-ink); text-decoration-color: var(--pt-line-strong); text-underline-offset: 3px; }
.pt-prose ul { padding-left: 1.2em; }
.pt-prose li::marker { color: var(--pt-faint); }
.pt-prose blockquote { margin-inline: 0; padding-left: 24px; border-left: 3px solid var(--pt-ink); font-family: var(--pt-display); font-size: 26px; font-weight: 600; letter-spacing: -.025em; line-height: 1.3; }
.pt-prose code { padding: 2px 6px; border-radius: 6px; background: var(--pt-stone); font-family: var(--pt-mono); font-size: .85em; }
.pt-prose pre { overflow-x: auto; padding: 20px; border-radius: var(--pt-radius); background: var(--pt-ink); color: #e9e9e4; font-family: var(--pt-mono); font-size: 14px; line-height: 1.6; }
.pt-prose pre code { padding: 0; background: none; font-size: inherit; }
.pt-prose figure { margin-inline: 0; }
.pt-prose figcaption { margin-top: 10px; color: var(--pt-soft); font-size: var(--pt-text-small); }
.pt-callout { display: flex; gap: 14px; padding: 18px 20px; border: var(--pt-border); border-radius: var(--pt-radius); background: var(--pt-stone); font-size: 16px; }
.pt-callout strong { font-weight: 600; }
.pt-post { display: block; color: inherit; text-decoration: none; }
.pt-post__thumb { display: grid; place-items: center; aspect-ratio: 16 / 10; margin-bottom: 16px; border: var(--pt-border); border-radius: var(--pt-radius-lg); background: var(--pt-stone); }
.pt-post h3 { margin: 6px 0 6px; font-family: var(--pt-display); font-size: 21px; font-weight: 600; letter-spacing: -.025em; line-height: 1.25; }
.pt-post p { margin: 0; color: var(--pt-soft); font-size: 15px; }
.pt-post:hover h3 { text-decoration: underline; text-underline-offset: 3px; }

/* Forms */
.pt-form { display: grid; gap: 18px; }
.pt-field { display: grid; gap: 6px; }
.pt-label { font-size: var(--pt-text-small); font-weight: 500; }
.pt-input, .pt-select { width: 100%; padding: 11px 14px; border: 1px solid var(--pt-line-strong); border-radius: var(--pt-radius-sm); background: var(--pt-white); color: var(--pt-ink); font: 400 16px var(--pt-sans); transition: border-color .15s, box-shadow .15s; }
.pt-input::placeholder { color: var(--pt-faint); }
.pt-input:focus, .pt-select:focus { outline: 0; border-color: var(--pt-ink); box-shadow: 0 0 0 3px var(--pt-stone-2); }
.pt-select { appearance: none; background: var(--pt-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%236a6a65' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; padding-right: 38px; }
.pt-input-wrap { position: relative; }
.pt-input-wrap .pt-input { padding-right: 70px; }
.pt-input-toggle { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); padding: 5px 9px; border: 0; border-radius: 6px; background: var(--pt-stone); color: var(--pt-ink); font: 500 13px var(--pt-sans); cursor: pointer; }
.pt-help { color: var(--pt-soft); font-size: 13px; }
.pt-error { color: #b4321f; font-size: 13px; }
.pt-field--error .pt-input { border-color: #b4321f; }
.pt-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--pt-soft); }
.pt-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--pt-ink); }
.pt-check a { color: var(--pt-ink); }
.pt-divider-text { display: flex; align-items: center; gap: 14px; color: var(--pt-faint); font-size: 13px; }
.pt-divider-text::before, .pt-divider-text::after { content: ""; flex: 1; height: 1px; background: var(--pt-line); }
.pt-btn__letter { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--pt-stone-2); color: var(--pt-ink); font-size: 12px; font-weight: 600; }

/* Footer */
.pt-footer { padding-block: 64px 32px; border-top: var(--pt-border); font-size: 15px; }
.pt-footer__cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.pt-footer h4 { margin: 0 0 14px; font-size: 14px; font-weight: 500; color: var(--pt-soft); }
.pt-footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pt-footer a { color: var(--pt-ink); text-decoration: none; }
.pt-footer a:hover { color: var(--pt-soft); }
.pt-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: var(--pt-border); color: var(--pt-soft); font-size: 13px; }

/* Entrance: a short rise, nothing bouncy */
@media (prefers-reduced-motion: no-preference) {
  .pt-rise { animation: pt-rise .8s var(--pt-ease) both; }
  .pt-rise--2 { animation-delay: .08s; }
  .pt-rise--3 { animation-delay: .16s; }
  @keyframes pt-rise { from { opacity: 0; transform: translateY(12px); } }
}

/* Small screens */
@media (max-width: 900px) {
  .pt-nav__links { display: none; }
  .pt-plan__desc { min-height: 0; }
  .pt-grid, .pt-plans { grid-template-columns: 1fr; }
  .pt-footer__cols { grid-template-columns: 1fr 1fr; }
  .pt-frame__body { padding: 20px; }
}
@media (max-width: 560px) {
  .pt-nav__actions .pt-nav__login { display: none; }
  .pt-stats { grid-template-columns: 1fr; }
  .pt-stat { padding-top: 20px; }
  .pt-actions .pt-btn { flex: 1 1 100%; }
}
