/*
 * Front Porch: components
 * Every value comes from tokens.css. Load tokens.css first.
 */

/* ---------- Base ---------- */
.fp, .fp * { box-sizing: border-box; }
.fp {
  margin: 0;
  background: var(--fp-paper);
  color: var(--fp-ink);
  font-family: var(--fp-sans);
  font-size: var(--fp-text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.fp img, .fp svg { display: block; max-width: 100%; }
:where(.fp) a { color: inherit; }
.fp :focus-visible { outline: none; box-shadow: var(--fp-focus); border-radius: var(--fp-radius-sm); }

.fp-container { width: min(100% - 2 * var(--fp-gutter), var(--fp-container)); margin-inline: auto; }
.fp-narrow { width: min(100% - 2 * var(--fp-gutter), var(--fp-narrow)); margin-inline: auto; }
.fp-center { text-align: center; }
.fp-center .fp-lead, .fp-center .fp-actions { margin-inline: auto; justify-content: center; }

.fp-section { padding-block: var(--fp-section); }
.fp-section--cream { background: var(--fp-cream); }
.fp-section--ink { background: var(--fp-ink); color: var(--fp-on-scene); }
.fp-section--ink .fp-lead { color: rgba(255, 246, 232, .74); }
.fp-section--tight { padding-block: calc(var(--fp-section) * .6); }

/* ---------- Type ---------- */
.fp-hero-title, .fp-h1, .fp-h2, .fp-h3 { margin: 0; font-family: var(--fp-serif); font-weight: 400; }
.fp-hero-title { font-size: var(--fp-text-hero); line-height: var(--fp-leading-hero); letter-spacing: var(--fp-tracking-hero); text-wrap: balance; }
.fp-h1 { font-size: var(--fp-text-h1); line-height: .98; letter-spacing: var(--fp-tracking-hero); text-wrap: balance; }
.fp-h2 { font-size: var(--fp-text-h2); line-height: 1.02; letter-spacing: var(--fp-tracking-h2); text-wrap: balance; }
.fp-h3 { font-size: var(--fp-text-h3); line-height: 1.1; }
.fp-accent { font-style: italic; color: var(--fp-indigo); }
.fp-scene .fp-accent, .fp-section--ink .fp-accent { color: var(--fp-glow); }
.fp-lead { max-width: 580px; margin: 18px 0 0; color: var(--fp-soft); font-size: var(--fp-text-lead); line-height: 1.5; }
.fp-eyebrow { display: inline-block; margin-bottom: 16px; color: var(--fp-indigo); font-size: var(--fp-text-micro); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.fp-small { color: var(--fp-soft); font-size: var(--fp-text-small); }

/* ---------- Announce bar ---------- */
.fp-announce {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px var(--fp-gutter);
  background: var(--fp-indigo); color: var(--fp-white);
  font-size: var(--fp-text-small); line-height: 1.45;
}
.fp-announce strong { flex: none; font-weight: 600; }
.fp-announce svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.fp-announce a { color: inherit; text-underline-offset: 3px; }
@media (max-width: 640px) { .fp-announce strong { display: none; } }

/* ---------- Nav ---------- */
.fp-nav {
  display: flex; align-items: center; gap: 28px;
  min-height: var(--fp-nav-h);
  padding: 10px var(--fp-gutter);
  background: var(--fp-paper); border-bottom: var(--fp-border);
}
.fp-nav--over { position: absolute; inset: 0 0 auto; z-index: 2; background: transparent; border: 0; color: var(--fp-on-scene); }
.fp-logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--fp-sans); font-size: 26px; font-weight: 700; letter-spacing: -.04em; text-decoration: none; color: var(--fp-indigo); }
.fp-nav--over .fp-logo { color: var(--fp-on-scene); }
.fp-logo svg { width: 28px; height: 28px; }
.fp-nav__links { display: flex; gap: 26px; margin-right: auto; }
.fp-nav__links a { font-size: var(--fp-text-small); font-weight: 500; text-decoration: none; opacity: .86; }
.fp-nav__links a:hover, .fp-nav__links a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.fp-nav__end { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.fp-nav__end > a:not(.fp-btn) { font-size: var(--fp-text-small); font-weight: 500; text-decoration: none; white-space: nowrap; }
@media (max-width: 920px) { .fp-nav__links, .fp-nav__end > a:not(.fp-btn) { display: none; } }

/* ---------- Buttons ---------- */
.fp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px;
  border: 1.5px solid transparent; border-radius: var(--fp-radius-pill);
  font: 600 var(--fp-text-small)/1 var(--fp-sans);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .2s var(--fp-ease), transform .2s var(--fp-ease), color .2s var(--fp-ease);
}
.fp-btn:hover { transform: translateY(-1px); }
.fp-btn--primary { background: var(--fp-indigo); color: var(--fp-white); }
.fp-btn--primary:hover { background: var(--fp-indigo-dark); }
.fp-btn--light { background: var(--fp-white); color: var(--fp-ink); }
.fp-btn--outline { background: transparent; border-color: var(--fp-line-strong); color: var(--fp-ink); }
.fp-btn--outline:hover { border-color: var(--fp-ink); }
.fp-btn--ink { background: var(--fp-ink); color: var(--fp-white); }
.fp-btn--sm { min-height: 44px; padding: 0 20px; }
.fp-btn--block { width: 100%; }

.fp-link { color: var(--fp-indigo); font-weight: 600; text-decoration: none; white-space: nowrap; }
.fp-link::after { content: " \2192"; }
.fp-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Badges and chips ---------- */
.fp-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--fp-radius-pill); background: var(--fp-indigo-soft); color: var(--fp-indigo-dark); font-size: var(--fp-text-micro); font-weight: 600; white-space: nowrap; }
.fp-badge--peach { background: var(--fp-peach); color: var(--fp-ink); }
.fp-badge--sage { background: var(--fp-sage); color: var(--fp-ink); }
.fp-badge--butter { background: var(--fp-butter); color: var(--fp-ink); }
.fp-badge--glass { background: rgba(255, 246, 232, .18); color: var(--fp-on-scene); backdrop-filter: blur(10px); }

.fp-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.fp-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1.5px solid var(--fp-line-strong); border-radius: var(--fp-radius-pill); background: var(--fp-white); color: var(--fp-ink); font: 500 var(--fp-text-small)/1 var(--fp-sans); cursor: pointer; white-space: nowrap; }
.fp-chip[aria-pressed="true"] { background: var(--fp-ink); border-color: var(--fp-ink); color: var(--fp-white); }

/* ---------- Scene hero ---------- */
.fp-scene {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: min(88vh, 860px);
  padding: calc(var(--fp-nav-h) + 40px) var(--fp-gutter) clamp(48px, 7vw, 88px);
  background: var(--fp-wall); color: var(--fp-on-scene);
}
.fp-scene__art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.fp-scene::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fp-scrim); }
.fp-scene__body { width: min(100%, 1100px); margin-inline: auto; text-align: center; text-shadow: var(--fp-scene-shadow); }
.fp-scene__body .fp-btn, .fp-scene__body .fp-badge { text-shadow: none; }
.fp-scene__body .fp-lead { margin-inline: auto; color: rgba(255, 246, 232, .86); }
.fp-scene__body .fp-actions { justify-content: center; }
.fp-scene--panel { min-height: 100%; border-radius: var(--fp-radius-lg); padding: clamp(28px, 4vw, 48px); }
.fp-scene--panel .fp-scene__body { text-align: left; margin: 0; }
.fp-scene--panel .fp-scene__body .fp-lead { margin-inline: 0; }

/* Plain hero for inner pages */
.fp-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); background: var(--fp-cream); }

/* ---------- Trust strip ---------- */
.fp-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; padding: 26px var(--fp-gutter); border-bottom: var(--fp-border); color: var(--fp-soft); font-size: var(--fp-text-small); font-weight: 500; }
.fp-trust span { display: inline-flex; align-items: center; gap: 8px; }
.fp-trust svg { width: 18px; height: 18px; color: var(--fp-indigo); }

/* ---------- Section head ---------- */
.fp-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(36px, 5vw, 56px); }
.fp-head .fp-lead { margin-top: 12px; }

/* ---------- Cards ---------- */
.fp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fp-cards--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .fp-cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) { .fp-cards { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .fp-cards--4 { grid-template-columns: 1fr; } }
.fp-card { display: flex; flex-direction: column; gap: 12px; padding: 30px; border: var(--fp-border); border-radius: var(--fp-radius); background: var(--fp-white); box-shadow: var(--fp-shadow); }
.fp-card p { margin: 0; color: var(--fp-soft); }
.fp-card .fp-link { margin-top: auto; padding-top: 8px; }
.fp-card--flat { box-shadow: none; background: transparent; border: 0; padding: 0; }
.fp-tile { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--fp-peach); color: var(--fp-ink); }
.fp-tile svg { width: 28px; height: 28px; }
.fp-tile--sage { background: var(--fp-sage); }
.fp-tile--butter { background: var(--fp-butter); }
.fp-tile--sky { background: var(--fp-sky); }
.fp-tile--indigo { background: var(--fp-indigo-soft); color: var(--fp-indigo); }

/* Path cards: big pastel cards that split audiences */
.fp-path { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 300px; padding: 34px; border-radius: var(--fp-radius); background: var(--fp-peach); text-decoration: none; overflow: hidden; transition: transform .25s var(--fp-ease); }
.fp-path:hover { transform: translateY(-3px); }
.fp-path--sage { background: var(--fp-sage); }
.fp-path--butter { background: var(--fp-butter); }
.fp-path--sky { background: var(--fp-sky); }
.fp-path p { margin: 8px 0 0; max-width: 32ch; }
.fp-path__go { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--fp-ink); color: var(--fp-white); font-size: 22px; }

/* ---------- Split ---------- */
.fp-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.fp-split__art { aspect-ratio: 5 / 4; border-radius: var(--fp-radius-lg); overflow: hidden; background: var(--fp-wall); }
.fp-split__art svg { width: 100%; height: 100%; }
@media (max-width: 860px) { .fp-split { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.fp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: fp-step; list-style: none; margin: 0; padding: 0; }
.fp-steps li { counter-increment: fp-step; padding-top: 22px; border-top: 2px solid var(--fp-ink); }
.fp-steps li::before { content: counter(fp-step); display: block; margin-bottom: 14px; font-family: var(--fp-serif); font-size: 56px; line-height: 1; color: var(--fp-indigo); }
.fp-steps p { margin: 8px 0 0; color: var(--fp-soft); }
@media (max-width: 820px) { .fp-steps { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.fp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fp-stat strong { display: block; font-family: var(--fp-serif); font-size: clamp(52px, 6vw, 80px); font-weight: 400; line-height: 1; letter-spacing: -.02em; }
.fp-stat span { color: var(--fp-soft); }
.fp-section--ink .fp-stat span { color: rgba(255, 246, 232, .7); }
@media (max-width: 720px) { .fp-stats { grid-template-columns: 1fr; } }

/* ---------- Quote ---------- */
.fp-quote { margin: 0; font-family: var(--fp-serif); font-size: clamp(30px, 3.8vw, 48px); line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
.fp-byline { display: flex; align-items: center; gap: 14px; margin-top: 28px; font-size: var(--fp-text-small); }
.fp-byline strong { display: block; }
.fp-byline span { color: var(--fp-soft); }
.fp-avatar { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--fp-peach); color: var(--fp-ink); font-weight: 700; }
.fp-avatar--sage { background: var(--fp-sage); }
.fp-avatar--butter { background: var(--fp-butter); }

/* ---------- Segment toggle ---------- */
.fp-segment { display: inline-flex; padding: 5px; border-radius: var(--fp-radius-pill); background: var(--fp-white); border: var(--fp-border); }
.fp-segment button { min-height: 42px; padding: 0 20px; border: 0; border-radius: var(--fp-radius-pill); background: transparent; color: var(--fp-soft); font: 600 var(--fp-text-small)/1 var(--fp-sans); cursor: pointer; white-space: nowrap; }
.fp-segment button[aria-pressed="true"] { background: var(--fp-indigo); color: var(--fp-white); }

/* ---------- Pricing ---------- */
.fp-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 920px) { .fp-plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
.fp-plan { display: flex; flex-direction: column; gap: 18px; padding: 32px; border: var(--fp-border); border-radius: var(--fp-radius); background: var(--fp-white); box-shadow: var(--fp-shadow); }
.fp-plan--featured { border: 2px solid var(--fp-indigo); box-shadow: var(--fp-shadow-lift); }
.fp-plan__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fp-plan__name { margin: 0; font-size: 20px; font-weight: 700; }
.fp-plan__price { font-family: var(--fp-serif); font-size: 64px; line-height: 1; letter-spacing: -.02em; }
.fp-plan__price small { font-family: var(--fp-sans); font-size: var(--fp-text-small); color: var(--fp-soft); letter-spacing: 0; }
.fp-plan__note { margin: 0; color: var(--fp-soft); font-size: var(--fp-text-small); }
.fp-plan .fp-btn { margin-top: auto; }
.fp-checks { display: grid; gap: 10px; margin: 0; padding: 18px 0 8px; border-top: var(--fp-border); list-style: none; font-size: var(--fp-text-small); }
.fp-checks li { display: flex; gap: 10px; }
.fp-checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--fp-indigo-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5' fill='none' stroke='%235047ea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }

/* Compare table */
.fp-table-wrap { overflow-x: auto; border: var(--fp-border); border-radius: var(--fp-radius); background: var(--fp-white); }
.fp-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: var(--fp-text-small); }
.fp-table th, .fp-table td { padding: 16px 22px; border-bottom: var(--fp-border); text-align: left; }
.fp-table thead th { background: var(--fp-cream); font-weight: 700; }
.fp-table tr:last-child td { border-bottom: 0; }
.fp-table td:not(:first-child), .fp-table th:not(:first-child) { text-align: center; }

/* ---------- FAQ ---------- */
.fp-faq { display: grid; gap: 12px; }
.fp-faq details { padding: 0 26px; border: var(--fp-border); border-radius: var(--fp-radius); background: var(--fp-white); }
.fp-faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font-weight: 600; cursor: pointer; list-style: none; }
.fp-faq summary::-webkit-details-marker { display: none; }
.fp-faq summary::after { content: "+"; color: var(--fp-indigo); font-size: 24px; line-height: 1; }
.fp-faq details[open] summary::after { content: "\2212"; }
.fp-faq details p { margin: 0 0 22px; color: var(--fp-soft); }

/* ---------- Article ---------- */
.fp-article-head { padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 4vw, 48px); }
.fp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; color: var(--fp-soft); font-size: var(--fp-text-small); }
.fp-author { display: flex; align-items: center; gap: 12px; color: var(--fp-ink); font-weight: 600; }
.fp-figure { margin: 0 0 clamp(40px, 6vw, 72px); }
.fp-figure__art { aspect-ratio: 16 / 8; border-radius: var(--fp-radius-lg); overflow: hidden; background: var(--fp-wall); }
.fp-figure__art svg { width: 100%; height: 100%; }
.fp-figure figcaption { margin-top: 12px; color: var(--fp-soft); font-size: var(--fp-text-small); }
.fp-prose { font-size: 19px; line-height: 1.7; }
.fp-prose > * + * { margin-top: 1.1em; }
.fp-prose p { margin-bottom: 0; }
.fp-prose h2 { margin: 1.8em 0 0; font-family: var(--fp-serif); font-size: 40px; font-weight: 400; line-height: 1.05; }
.fp-prose ul { padding-left: 1.2em; }
.fp-prose li + li { margin-top: .4em; }
.fp-prose li::marker { color: var(--fp-indigo); }
.fp-prose a { color: var(--fp-indigo); text-underline-offset: 3px; }
.fp-prose blockquote { margin: 1.6em 0; padding: 0 0 0 24px; border-left: 3px solid var(--fp-indigo); font-family: var(--fp-serif); font-size: 32px; line-height: 1.15; }
.fp-note { display: flex; gap: 16px; padding: 22px 24px; border-radius: var(--fp-radius); background: var(--fp-butter); font-size: 17px; }
.fp-note strong { display: block; }

/* ---------- Forms ---------- */
.fp-form { display: grid; gap: 18px; }
.fp-field { display: grid; gap: 8px; }
.fp-label { font-size: var(--fp-text-small); font-weight: 600; }
.fp-input, .fp-select {
  width: 100%; min-height: 54px; padding: 0 18px;
  border: 1.5px solid var(--fp-line-strong); border-radius: var(--fp-radius-sm);
  background: var(--fp-white); color: var(--fp-ink);
  font: 400 16px/1.2 var(--fp-sans);
}
.fp-select { appearance: none; background: var(--fp-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%231e1b31' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") right 16px center / 18px no-repeat; }
.fp-input:focus, .fp-select:focus { outline: none; border-color: var(--fp-indigo); box-shadow: var(--fp-focus); }
.fp-hint { color: var(--fp-soft); font-size: var(--fp-text-micro); }
.fp-check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fp-text-small); color: var(--fp-soft); }
.fp-check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--fp-indigo); }
.fp-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 520px) { .fp-choices { grid-template-columns: 1fr; } }
.fp-choice { position: relative; display: grid; gap: 4px; padding: 16px; border: 1.5px solid var(--fp-line-strong); border-radius: var(--fp-radius-sm); background: var(--fp-white); font-size: var(--fp-text-small); cursor: pointer; }
.fp-choice input { position: absolute; opacity: 0; }
.fp-choice strong { font-size: 15px; }
.fp-choice span { color: var(--fp-soft); font-size: var(--fp-text-micro); }
.fp-choice:has(input:checked) { border-color: var(--fp-indigo); background: var(--fp-indigo-soft); }
.fp-progress { display: flex; gap: 8px; }
.fp-progress span { flex: 1; height: 6px; border-radius: var(--fp-radius-pill); background: var(--fp-sand); }
.fp-progress span.is-done { background: var(--fp-indigo); }
.fp-panel { padding: clamp(24px, 4vw, 40px); border: var(--fp-border); border-radius: var(--fp-radius); background: var(--fp-white); box-shadow: var(--fp-shadow); }

/* ---------- Footer ---------- */
.fp-footer { padding: clamp(56px, 8vw, 96px) 0 32px; background: var(--fp-cream); font-size: var(--fp-text-small); }
.fp-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
@media (max-width: 820px) { .fp-footer__grid { grid-template-columns: 1fr 1fr; } }
.fp-footer__title { margin: 0 0 14px; font-weight: 700; }
.fp-footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.fp-footer ul a { color: var(--fp-soft); text-decoration: none; }
.fp-footer ul a:hover { color: var(--fp-indigo); }
.fp-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--fp-line-strong); color: var(--fp-soft); }

/* ---------- Scene art helpers ----------
 * The hero scenes are inline SVG. These classes color their shapes from the tokens,
 * so a scene follows the palette. Swap a scene for a warm, lived-in photo when you have one.
 */
.fp-fill-wall { fill: var(--fp-wall); }
.fp-fill-wall-light { fill: var(--fp-wall-light); }
.fp-fill-glow { fill: var(--fp-glow); }
.fp-fill-wood { fill: var(--fp-wood); }
.fp-fill-leaf { fill: var(--fp-leaf); }
.fp-fill-shade { fill: var(--fp-shade); }
.fp-fill-peach { fill: var(--fp-peach); }
.fp-fill-sage { fill: var(--fp-sage); }
.fp-fill-butter { fill: var(--fp-butter); }
.fp-fill-sky { fill: var(--fp-sky); }
.fp-fill-cream { fill: var(--fp-cream); }
.fp-fill-indigo { fill: var(--fp-indigo); }
.fp-fill-ink { fill: var(--fp-ink); }
.fp-stroke-wood { fill: none; stroke: var(--fp-wood); }
.fp-stroke-cream { fill: none; stroke: var(--fp-cream); }
.fp-stop-glow { stop-color: var(--fp-glow); }
.fp-stop-wall { stop-color: var(--fp-wall); }
.fp-stop-wall-light { stop-color: var(--fp-wall-light); }
.fp-stop-shade { stop-color: var(--fp-shade); }
