/* ============================================================
   Sol Reception — shared styles for feature & solutions pages
   Dark cream/sun/clay system, Fraunces + Inter. Paths in this
   file resolve relative to /features/, so assets use ../
   ============================================================ */

:root {
  --ink: #171311;
  --surface: #1e1a17;
  --cream: #FBF6EE;
  --fg: rgba(251, 246, 238, 0.82);
  --fg-muted: rgba(251, 246, 238, 0.55);
  --sun: #F2A93B;
  --clay: #C75B39;
  --sage: #2E7D5B;
  --border: rgba(251, 246, 238, 0.12);
  --border-strong: rgba(251, 246, 238, 0.18);
  --pad-x: 2rem;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-display: 'Fraunces', serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 1024px) { :root { --pad-x: 6rem; } }

@font-face { font-family: 'Fraunces'; src: url('../fonts/Fraunces-SemiBold.ttf') format('truetype'); font-weight: 600; }
@font-face { font-family: 'Fraunces'; src: url('../fonts/Fraunces-Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-Regular.ttf') format('truetype'); font-weight: 400; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-SemiBold.ttf') format('truetype'); font-weight: 600; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--ink); color: var(--cream); font-family: var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--sun); }
img { max-width: 100%; }

/* ---------- Header ---------- */
header.site { height: 88px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad-x); border-bottom: 1px solid var(--border); position: sticky; top: 0; background: rgba(23, 19, 17, 0.9); backdrop-filter: blur(20px); z-index: 100; }
header.site .brand img { height: 30px; display: block; }
header.site .actions { display: flex; align-items: center; gap: 1.75rem; }
header.site .actions a.link { font-size: 14px; font-weight: 500; color: var(--fg-muted); text-decoration: none; transition: color 200ms; }
header.site .actions a.link:hover { color: var(--cream); }
@media (max-width: 720px) { header.site .actions a.link { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border-radius: 8px; font-weight: 600; font-size: 15px; text-decoration: none; transition: all 200ms var(--ease); border: 1px solid transparent; cursor: pointer; }
.btn-sm { height: 40px; padding: 0 20px; font-size: 14px; border-radius: 6px; }
.btn-clay { background: var(--clay); color: #fff; }
.btn-clay:hover { filter: brightness(1.08); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); }

/* ---------- Header "Features" dropdown ---------- */
.nav-dd { position: relative; display: inline-flex; }
.nav-dd summary { list-style: none; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--fg-muted); display: inline-flex; align-items: center; gap: 0.4rem; transition: color 200ms; }
.nav-dd summary::-webkit-details-marker { display: none; }
.nav-dd summary:hover, .nav-dd[open] summary { color: var(--cream); }
.nav-dd summary::after { content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 200ms; }
.nav-dd[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.nav-dd .dd-menu { position: absolute; top: calc(100% + 16px); right: 0; min-width: 232px; max-width: 78vw; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; padding: 0.4rem; display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(0,0,0,0.5); z-index: 200; }
.nav-dd .dd-menu a { padding: 0.6rem 0.8rem; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--fg-muted); text-decoration: none; transition: background 150ms, color 150ms; white-space: nowrap; }
.nav-dd .dd-menu a:hover { background: rgba(251, 246, 238, 0.06); color: var(--cream); }
.nav-dd .dd-menu a[aria-current="page"] { color: var(--sun); }
.nav-dd .dd-menu a.dd-sep { margin-top: 0.4rem; padding-top: 0.75rem; border-top: 1px solid var(--border); }
.nav-dd .dd-only { display: none; }
@media (max-width: 720px) {
  .nav-dd .dd-only { display: block; }
  /* Pin the menu within the viewport instead of anchoring to the summary,
     which sits mid-header and pushed the menu off the left edge. */
  .nav-dd .dd-menu { position: fixed; top: 92px; left: var(--pad-x); right: var(--pad-x); min-width: 0; max-width: none; }
}

/* ---------- Shared bits ---------- */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sun); display: inline-flex; align-items: center; gap: 0.75rem; }
.eyebrow::before { content: "\2014"; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 var(--pad-x); }
.section-head { max-width: 640px; margin: 0 auto 3.25rem; text-align: center; }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.12; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
.section-head p { color: var(--fg-muted); font-size: 1.05rem; line-height: 1.6; margin: 1.1rem 0 0; }

/* ---------- Hero ---------- */
.fhero { padding: 6.5rem var(--pad-x) 4.5rem; text-align: center; border-bottom: 1px solid var(--border); background:
  radial-gradient(60% 60% at 50% 0%, rgba(242,169,59,0.08), transparent 70%); }
.fhero .inner { max-width: 820px; margin: 0 auto; }
.fhero .kicker { font-size: 1rem; font-weight: 600; color: var(--sun); margin: 0 0 1.25rem; }
.fhero h1 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.03em; line-height: 1.05; font-size: clamp(38px, 6vw, 68px); margin: 0; }
.fhero h1 em { color: var(--sun); font-style: italic; }
.fhero .sub { color: var(--fg); font-size: clamp(1.1rem, 2.2vw, 1.3rem); line-height: 1.6; margin: 1.75rem auto 0; max-width: 40ch; }
.fhero .hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 2.25rem; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; max-width: 760px; margin: 3.5rem auto 0; }
.facts .fact .v { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--sun); letter-spacing: -0.02em; line-height: 1; }
.facts .fact .l { color: var(--fg-muted); font-size: 0.86rem; line-height: 1.4; margin-top: 0.55rem; }
@media (max-width: 640px) { .facts { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1.25rem; } }

/* ---------- Hero figure ---------- */
.hero-figure-wrap { padding: 3rem var(--pad-x) 0; }
.hero-figure { max-width: 980px; margin: 0 auto; }
.hero-figure img { width: 100%; display: block; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Section wrappers ---------- */
.section { padding: 5rem 0; }
.section.alt { background: #1a1614; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Capability grid ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 900px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cap-grid { grid-template-columns: 1fr; } }
.cap-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.6rem; transition: border-color 200ms var(--ease), transform 200ms var(--ease); }
.cap-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.cap-card .ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; background: rgba(242,169,59,0.1); font-size: 1.25rem; margin-bottom: 1rem; }
.cap-card h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; color: var(--cream); margin: 0 0 0.5rem; }
.cap-card p { color: var(--fg-muted); font-size: 0.95rem; line-height: 1.6; margin: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; max-width: 900px; margin: 0 auto; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.6rem; }
.step .n { font-family: var(--font-display); font-size: 2rem; color: var(--clay); line-height: 1; margin-bottom: 0.9rem; }
.step h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; color: var(--cream); margin: 0 0 0.5rem; }
.step p { color: var(--fg-muted); font-size: 0.95rem; line-height: 1.6; margin: 0; }

/* ---------- Solution / practice cards ---------- */
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 900px) { .sol-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sol-grid { grid-template-columns: 1fr; } }
.sol-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.8rem; display: flex; flex-direction: column; }
.sol-card .ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: rgba(242,169,59,0.1); font-size: 1.4rem; margin-bottom: 1.1rem; }
.sol-card h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; font-size: 1.4rem; color: var(--cream); margin: 0 0 0.6rem; }
.sol-card .pain { color: var(--fg-muted); font-size: 0.95rem; line-height: 1.6; margin: 0 0 1.25rem; }
.sol-card ul { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.sol-card li { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.95rem; color: var(--fg); line-height: 1.45; }
.sol-card li::before { content: "\2713"; color: var(--sun); font-weight: 700; flex: none; }

/* ---------- Channels ribbon ---------- */
.ribbon { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 3rem var(--pad-x); text-align: center; }
.ribbon .lbl { color: var(--fg-muted); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; margin: 0 0 1.4rem; }
.ribbon .pills { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.ribbon .pill { background: rgba(251,246,238,0.06); border: 1px solid var(--border-strong); color: var(--cream); font-size: 0.9rem; font-weight: 600; border-radius: 100px; padding: 0.5rem 1.1rem; }
.ribbon .more { display: inline-block; margin-top: 1.6rem; color: var(--sun); font-size: 0.95rem; font-weight: 600; text-decoration: none; }
.ribbon .more:hover { text-decoration: underline; }
.ribbon .note { color: var(--fg-muted); font-size: 0.95rem; line-height: 1.6; max-width: 560px; margin: 1.5rem auto 0; }
.sol-card .read { display: inline-block; margin-top: 1.15rem; color: var(--sun); font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.sol-card .read:hover { text-decoration: underline; }

/* ---------- More features cross-links ---------- */
.more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: 1000px; margin: 0 auto; }
@media (max-width: 900px) { .more-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .more-grid { grid-template-columns: 1fr; } }
.more-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.4rem; text-decoration: none; display: block; transition: border-color 200ms var(--ease), transform 200ms var(--ease); }
.more-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.more-card h3 { font-family: var(--font-body); font-weight: 600; font-size: 1rem; color: var(--cream); margin: 0 0 0.4rem; }
.more-card p { color: var(--fg-muted); font-size: 0.88rem; line-height: 1.5; margin: 0 0 0.8rem; }
.more-card .go { color: var(--sun); font-size: 0.88rem; font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { padding: 5rem var(--pad-x); }
.cta-band .inner { max-width: 820px; margin: 0 auto; background: linear-gradient(135deg, var(--clay), var(--sun)); border-radius: 24px; padding: 3.25rem 2.5rem; text-align: center; color: var(--ink); }
.cta-band h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.1; margin: 0 0 0.85rem; color: var(--ink); }
.cta-band p { margin: 0 auto 1.9rem; max-width: 500px; line-height: 1.55; color: rgba(23,19,17,0.82); font-size: 1.05rem; }
.cta-band .cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }
.cta-band .btn-dark { background: var(--ink); color: var(--cream); height: 52px; padding: 0 30px; border-radius: 9px; font-weight: 600; font-size: 1rem; display: inline-flex; align-items: center; text-decoration: none; transition: transform 200ms var(--ease); }
.cta-band .btn-dark:hover { transform: translateY(-2px); }
.cta-band .btn-outline { background: transparent; border: 1px solid rgba(23,19,17,0.5); color: var(--ink); height: 52px; padding: 0 30px; border-radius: 9px; font-weight: 600; font-size: 1rem; display: inline-flex; align-items: center; text-decoration: none; transition: border-color 200ms var(--ease); }
.cta-band .btn-outline:hover { border-color: var(--ink); }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--border); padding: 3rem var(--pad-x); text-align: center; color: var(--fg-muted); font-size: 14px; }
footer.site a { color: var(--sun); text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site .foot-links { margin-top: 0.6rem; }
