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

/* Base */
.gp { margin: 0; background: var(--gp-paper); color: var(--gp-ink); font-family: var(--gp-sans); font-size: var(--gp-text-body); line-height: 1.55; }
.gp *, .gp *::before, .gp *::after { box-sizing: border-box; }
.gp a { color: var(--gp-link); }
.gp a:hover { color: var(--gp-press); }
.gp p { margin: 0 0 14px; }
.gp-container { width: min(100% - 32px, var(--gp-container)); margin-inline: auto; }
.gp-narrow { width: min(100% - 32px, 620px); margin-inline: auto; }
.gp-section { padding-block: var(--gp-section); }
.gp-rule { height: 1px; margin: 0; border: 0; background: var(--gp-rule); }
.gp-muted { color: var(--gp-gray); }
.gp-small { font-size: var(--gp-text-small); }
.gp-center { text-align: center; }

/* Header: a small grey wordmark on the left, dot-separated links on the right, one rule under it */
.gp-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 10px 0 6px; border-bottom: var(--gp-border); }
.gp-logo { display: inline-flex; align-items: center; gap: 6px; color: var(--gp-gray); font-size: 19px; text-decoration: none; }
.gp .gp-logo { color: var(--gp-gray); }
.gp-logo svg { width: 16px; height: 16px; flex: none; }
.gp-logo__leaf { fill: var(--gp-lime); stroke: var(--gp-lime-edge); }
.gp-logo__vein { fill: none; stroke: var(--gp-lime-edge); }
.gp-toplinks { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; font-size: var(--gp-text-small); }
.gp-toplinks a { text-decoration: none; }
.gp-toplinks a:hover { text-decoration: underline; }
.gp-toplinks span { color: var(--gp-faint); }
.gp-toplinks .gp-toplinks__me { margin-left: 14px; }

/* Layout: an optional left rail, a main column and an action column on the right */
.gp-layout { display: grid; grid-template-columns: var(--gp-rail) minmax(0, 1fr) var(--gp-side); gap: var(--gp-gap); padding-top: 34px; }
.gp-layout--two { grid-template-columns: var(--gp-rail) minmax(0, 1fr); }
.gp-layout--main-side { grid-template-columns: minmax(0, 1fr) var(--gp-side); }

/* Rail: a short list of plain links; the selected one wears the highlighter */
.gp-rail { margin: 0; padding: 0; list-style: none; font-size: var(--gp-text-small); text-align: center; }
.gp-rail li { margin-bottom: 14px; }
.gp-rail a { padding: 1px 5px; text-decoration: none; }
.gp-rail a:hover { text-decoration: underline; }
.gp-rail [aria-current] { color: var(--gp-ink); background: var(--gp-mark); }
.gp-rail--left { text-align: left; }
.gp-rail__label { margin-bottom: 10px; color: var(--gp-faint); font-size: var(--gp-text-micro); text-transform: lowercase; letter-spacing: .04em; }

/* Type: sans titles at regular weight; red serif for press and labels */
.gp-title { margin: 0 0 4px; font-size: var(--gp-text-title); font-weight: 400; line-height: 1.2; color: var(--gp-ink); }
.gp-subtitle { margin: 0 0 22px; color: var(--gp-link); font-size: 15px; }
.gp-h2 { margin: 0 0 10px; font-size: var(--gp-text-h2); font-weight: 400; line-height: 1.25; }
.gp-press-title { margin: 0 0 10px; font-family: var(--gp-serif); font-size: var(--gp-text-press); font-weight: 400; line-height: 1.15; color: var(--gp-press); }
.gp-label { margin: 0 0 8px; font-family: var(--gp-serif); font-size: 17px; font-weight: 400; color: var(--gp-press); }
.gp-mark { padding: 0 3px; background: var(--gp-mark); }

/* Gel buttons: glossy pills with a light top, a darker belly and a thin edge */
.gp-gel { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 6px 18px 7px; border: 1px solid var(--gp-sky-edge); border-radius: var(--gp-radius-pill); background: linear-gradient(180deg, var(--gp-sky-top) 0%, var(--gp-sky) 52%, var(--gp-sky) 100%); box-shadow: var(--gp-gel-shine), var(--gp-gel-lift); color: var(--gp-ink); font-family: var(--gp-sans); font-size: 15px; font-weight: 700; line-height: 1.3; text-decoration: none; text-shadow: 0 1px 0 rgba(255, 255, 255, .7); white-space: nowrap; cursor: pointer; }
.gp a.gp-gel, .gp a.gp-gel:hover { color: var(--gp-ink); }
.gp-gel:hover { filter: brightness(1.03) saturate(1.1); }
.gp-gel:active { box-shadow: inset 0 2px 3px rgba(0, 0, 0, .14); transform: translateY(1px); }
.gp-gel--lime { border-color: var(--gp-lime-edge); background: linear-gradient(180deg, var(--gp-lime-top) 0%, var(--gp-lime) 52%, var(--gp-lime) 100%); }
.gp-gel--auto { width: auto; }
.gp-gel--sm { padding: 3px 14px 4px; font-size: var(--gp-text-small); }
.gp-actions { display: grid; gap: 14px; justify-items: center; }
.gp-actions a:not(.gp-gel) { font-size: var(--gp-text-small); text-decoration: none; }

/* Press quotes: a red serif source over a serif quote */
.gp-press { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; }
.gp-quote { margin: 0; }
.gp-quote blockquote { margin: 0; font-family: var(--gp-serif); font-size: var(--gp-text-quote); line-height: 1.6; color: var(--gp-ink); }

/* Box: a thin ruled box with a mist header strip */
.gp-box { border: var(--gp-border); border-radius: var(--gp-radius); background: var(--gp-paper); }
.gp-box__head { padding: 6px 12px; border-bottom: var(--gp-border); background: var(--gp-mist); color: var(--gp-gray); font-size: var(--gp-text-micro); }
.gp-box__body { padding: 14px 16px; }

/* Log table: the product shot. A plain table, zebra rows, small text */
.gp-table { width: 100%; border-collapse: collapse; font-size: var(--gp-text-small); }
.gp-table th { padding: 6px 10px; border-bottom: var(--gp-border); color: var(--gp-gray); font-weight: 400; text-align: left; }
.gp-table td { padding: 6px 10px; border-bottom: 1px solid var(--gp-rule-soft); }
.gp-table tr:nth-child(even) td { background: var(--gp-mist); }
.gp-table a { text-decoration: none; }
.gp-tag { display: inline-block; margin-right: 4px; color: var(--gp-link-visited); font-size: var(--gp-text-micro); }
.gp-wrap { overflow-x: auto; }

/* Steps and feature lists: plain, small, two columns */
.gp-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
.gp-cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gp-list { margin: 0; padding-left: 18px; }
.gp-list li { margin-bottom: 6px; }

/* Pricing: two ruled boxes side by side, a big plain price */
.gp-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.gp-plan { display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 24px; border: var(--gp-border); border-radius: var(--gp-radius); }
.gp-plan--picked { border-color: var(--gp-lime-edge); }
.gp-price { font-size: 34px; line-height: 1; }
.gp-price small { color: var(--gp-gray); font-size: 15px; }
.gp-plan .gp-list { flex: 1; }

/* FAQ: red serif questions, plain answers */
.gp-faq dt { margin-top: 22px; font-family: var(--gp-serif); font-size: 17px; color: var(--gp-press); }
.gp-faq dd { margin: 6px 0 0; }

/* Article: a narrow column, serif pull quotes, small meta line */
.gp-article { font-size: 15px; line-height: 1.7; }
.gp-article h2 { margin: 34px 0 10px; font-family: var(--gp-serif); font-size: 21px; font-weight: 400; color: var(--gp-press); }
.gp-article blockquote { margin: 24px 0; padding-left: 16px; border-left: 3px solid var(--gp-mark); font-family: var(--gp-serif); font-size: 17px; font-style: italic; }
.gp-meta { margin-bottom: 24px; color: var(--gp-gray); font-size: var(--gp-text-small); }

/* Forms: plain labels, inset fields, gel submit */
.gp-form { display: grid; gap: 16px; }
.gp-field { display: grid; gap: 5px; }
.gp-field label, .gp-legend { font-size: var(--gp-text-small); font-weight: 700; }
.gp-field small { color: var(--gp-gray); font-size: var(--gp-text-micro); }
.gp-input { width: 100%; padding: 6px 8px; border: 1px solid #b9b9b9; border-radius: var(--gp-radius); background: var(--gp-paper); box-shadow: var(--gp-input-inset); color: var(--gp-ink); font: 15px var(--gp-sans); }
.gp-input:focus { outline: 2px solid var(--gp-sky); border-color: var(--gp-sky-edge); }
.gp-choice { display: flex; align-items: flex-start; gap: 8px; font-size: var(--gp-text-body); }
.gp-choice input { margin-top: 3px; accent-color: var(--gp-lime-edge); }
.gp-fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.gp-legend { padding: 0; margin-bottom: 4px; }

/* Footer: grey small print and dot-separated links */
.gp-footer { margin-top: 64px; padding: 14px 0 40px; border-top: var(--gp-border); color: var(--gp-gray); font-size: var(--gp-text-micro); }
.gp-footer a { color: var(--gp-gray); }

/* Phone: columns stack, the rail turns into one wrapped row */
@media (max-width: 760px) {
  .gp-layout, .gp-layout--two, .gp-layout--main-side { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 22px; }
  .gp-rail { display: flex; flex-wrap: wrap; gap: 6px 14px; text-align: left; }
  .gp-rail li { margin: 0; }
  .gp-rail__label { width: 100%; margin: 0; }
  .gp-press, .gp-cols, .gp-cols--3, .gp-plans { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .gp-header { flex-wrap: wrap; }
  .gp-actions { max-width: 320px; }
}
