/* pocketsite Starter theme */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --text: #1f2330;
  --muted: #5d6475;
  --line: #e6e8ee;
  --bg: #ffffff;
  --bg-subtle: #f6f7fb;
  --container: 1160px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; color: #12141c; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code { background: var(--bg-subtle); padding: .1em .35em; border-radius: 4px; font-size: .9em; }
pre { background: #12141c; color: #e8eaf0; padding: 18px 20px; border-radius: var(--radius); overflow-x: auto; font-size: .88rem; line-height: 1.5; }
pre code { background: none; padding: 0; color: inherit; }
blockquote { margin: 1.5em 0; padding: .2em 0 .2em 1.2em; border-left: 4px solid var(--brand); color: var(--muted); font-size: 1.1em; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: #000; color: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow, .narrow { max-width: 760px; }
.section { padding: 88px 0; }
.section:not(.hero):not(.page-header):not(.bg-subtle) + .section:not(.cta):not(.bg-subtle) { padding-top: 24px; }
.bg-subtle { background: var(--bg-subtle); }
.muted { color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 32px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--brand); margin-bottom: 14px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46em; }
.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.split-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: var(--radius); font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; cursor: pointer; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: .92rem; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 88%, #000); }
.btn-white { background: #fff; color: #12141c; }
.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; transition: margin .15s ease; }
.link-arrow:hover::after { margin-left: 4px; }
.link-back { display: inline-block; margin-bottom: 24px; text-decoration: none; font-weight: 600; font-size: .95rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); padding: 4px 10px; border-radius: 999px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.header-dark .site-header { background: var(--dark); border-color: rgba(255,255,255,.08); }
.header-dark .site-header a, .header-dark .site-header .brand-name { color: #fff; }
.header-transparent .site-header { position: absolute; left: 0; right: 0; background: transparent; border: 0; backdrop-filter: none; }
.header-transparent .site-header a, .header-transparent .brand-name { color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #12141c; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand img { height: 36px; width: auto; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), var(--accent)); display: inline-block; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.site-nav li { position: relative; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; font-size: .98rem; }
.site-nav li > a:hover { background: var(--bg-subtle); }
.site-nav li.active > a { color: var(--brand); }
.header-dark .site-nav li > a:hover, .header-transparent .site-nav li > a:hover { background: rgba(255,255,255,.1); }
.site-nav .sub { position: absolute; top: 100%; left: 0; min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: none; flex-direction: column; }
.site-nav .sub a { color: var(--text) !important; }
.site-nav li.has-children:hover .sub, .site-nav li.has-children:focus-within .sub { display: flex; }
.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; width: 40px; height: 40px; align-items: center; justify-content: center; }
.nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.nav-toggle-label span::before, .nav-toggle-label span::after { content: ""; position: absolute; }
.nav-toggle-label span::before { top: -7px; }
.nav-toggle-label span::after { top: 7px; }
@media (max-width: 860px) {
  .nav-toggle-label { display: inline-flex; }
  .site-nav { position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 24px 24px; gap: 12px; display: none; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { color: var(--text) !important; }
  .site-nav .sub { position: static; display: flex; box-shadow: none; border: 0; padding-left: 12px; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
}

/* Hero */
.hero { padding: 120px 0 112px; position: relative; overflow: hidden; }
.hero-light { background: radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%), radial-gradient(900px 500px at -10% 110%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 60%); }
.hero-brand { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--accent))); color: #fff; }
.hero-dark { background: var(--dark); color: #fff; }
.hero-image { background-size: cover; background-position: center; color: #fff; padding: 160px 0; }
.hero-brand h1, .hero-dark h1, .hero-image h1 { color: #fff; }
.hero-brand .lead, .hero-dark .lead, .hero-image .lead { color: rgba(255, 255, 255, .86); }
.hero-brand .eyebrow, .hero-dark .eyebrow, .hero-image .eyebrow { color: rgba(255, 255, 255, .8); }
.hero-brand .btn-primary, .hero-image .btn-primary { background: #fff; color: #12141c; box-shadow: none; }
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; }
.hero.has-image:not(.hero-image) .hero-inner { grid-template-columns: 1.1fr 1fr; }
.hero.align-center .hero-copy { text-align: center; margin: 0 auto; max-width: 820px; }
.hero.align-center .lead { margin-left: auto; margin-right: auto; }
.hero.align-center .actions { justify-content: center; }
.hero h1 { font-size: clamp(2.5rem, 5.5vw, 4.4rem); }
.hero-media img { border-radius: calc(var(--radius) * 1.6); box-shadow: 0 30px 60px rgba(16, 24, 40, .18); }
.header-transparent .hero { padding-top: 180px; }
@media (max-width: 900px) { .hero.has-image:not(.hero-image) .hero-inner { grid-template-columns: 1fr; } .hero { padding: 80px 0; } }

/* Page header */
.page-header { padding: 96px 0 48px; background: linear-gradient(180deg, var(--bg-subtle), var(--bg)); text-align: center; }
.page-header .lead { margin: 0 auto; }
.page-header.has-bg { background-size: cover; background-position: center; color: #fff; padding: 140px 0 100px; }
.page-header.has-bg h1 { color: #fff; }
.page-header.has-bg .lead { color: rgba(255,255,255,.85); }
.page-header + .section { padding-top: 40px; }

/* Grid & cards */
.grid { display: grid; gap: 28px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.2); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-media { display: block; aspect-ratio: 36 / 22; background: var(--bg-subtle); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media.placeholder { display: grid; place-items: center; text-decoration: none; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 85%, #000), var(--accent)); }
.card-media.placeholder span { color: rgba(255,255,255,.95); font-weight: 800; font-size: 1.25rem; padding: 24px; text-align: center; letter-spacing: -0.02em; line-height: 1.2; }
.card-body { padding: 22px 24px 26px; }
.card-body h3 { margin: 10px 0 8px; font-size: 1.2rem; }
.card-body h3 a { color: inherit; text-decoration: none; }
.card-body h3 a:hover { color: var(--brand); }
.card-body p { color: var(--muted); font-size: .96rem; margin: 0; }
.meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .86rem; flex-wrap: wrap; }

/* Features */
.feature { padding: 28px; border-radius: calc(var(--radius) * 1.2); background: var(--bg-subtle); }
.feature-icon { font-size: 1.8rem; width: 56px; height: 56px; display: grid; place-items: center; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); margin-bottom: 18px; }
.feature-img { width: 56px; height: 56px; border-radius: var(--radius); object-fit: cover; margin-bottom: 18px; }
.feature p { color: var(--muted); margin-bottom: 10px; }

/* Split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.image-right .split-media { order: 2; }
.split-media img, .split-media iframe { border-radius: calc(var(--radius) * 1.4); width: 100%; }
.split-media iframe { aspect-ratio: 4 / 3; border: 0; }
.media-placeholder { aspect-ratio: 4 / 3; border-radius: calc(var(--radius) * 1.4); background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 20%, #fff), color-mix(in srgb, var(--accent) 25%, #fff)); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .image-right .split-media { order: 0; } }

/* Prose */
.prose { font-size: 1.08rem; }
.prose h2 { margin-top: 1.8em; font-size: 1.7rem; }
.prose h3 { margin-top: 1.5em; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose > :first-child { margin-top: 0; }

/* Post detail */
.post-detail { padding-top: 64px; }
.post-header { margin-bottom: 36px; }
.post-header h1 { margin-top: 14px; }
.post-header .meta { font-size: .95rem; margin-bottom: 18px; }
.post-cover { margin: 0 auto 48px; max-width: 1100px; }
.post-cover img { border-radius: calc(var(--radius) * 1.6); width: 100%; }

/* Featured */
.featured-card { display: grid; grid-template-columns: 1.2fr 1fr; border-radius: calc(var(--radius) * 1.6); overflow: hidden; background: var(--dark); color: #fff; text-decoration: none; }
.featured-card h2 { color: #fff; }
.featured-card .lead { color: rgba(255, 255, 255, .78); }
.featured-card .link-arrow { color: #fff; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; }
.featured-media .media-placeholder { border-radius: 0; height: 100%; }
.featured-copy { padding: 56px; align-self: center; }
.featured-copy .eyebrow { color: var(--accent); }
@media (max-width: 900px) { .featured-card { grid-template-columns: 1fr; } .featured-copy { padding: 32px; } }

/* CTA */
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 56px; border-radius: calc(var(--radius) * 2); flex-wrap: wrap; }
.cta-box h2 { margin-bottom: .3em; }
.cta-box p { margin: 0; font-size: 1.1rem; }
.cta-box .actions { margin-top: 0; }
.cta-brand { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 50%, var(--accent))); color: #fff; }
.cta-dark { background: var(--dark); color: #fff; }
.cta-brand h2, .cta-dark h2 { color: #fff; }
.cta-brand p, .cta-dark p { color: rgba(255, 255, 255, .85); }
.cta-light { background: var(--bg-subtle); border: 1px solid var(--line); }
@media (max-width: 640px) { .cta-box { padding: 32px; } }

/* Gallery */
.gallery-grid figure { margin: 0; }
.gallery-grid img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: opacity .2s; }
.gallery-grid a:hover img { opacity: .9; }
.gallery-grid figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; }

/* Testimonials */
.quote { padding: 28px; margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.quote blockquote { border: 0; padding: 0; margin: 0; color: var(--text); font-size: 1.06rem; }
.quote figcaption { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.quote figcaption img { border-radius: 50%; width: 48px; height: 48px; }
.quote strong { color: var(--text); }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .prose { padding-bottom: 18px; color: var(--muted); }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; margin: 0; }
.stats-grid div { text-align: center; padding: 24px; border-radius: calc(var(--radius) * 1.2); background: var(--bg-subtle); display: flex; flex-direction: column-reverse; }
.stats-grid dd { margin: 0; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--brand); letter-spacing: -0.03em; line-height: 1.1; }
.stats-grid dt { color: var(--muted); margin-top: 6px; }

/* Logos */
.logo-heading { text-align: center; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; margin-bottom: 28px; }
.logos { list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 48px; padding: 0; margin: 0; }
.logos img { height: 36px; width: auto; filter: grayscale(1); opacity: .7; transition: all .2s; }
.logos img:hover { filter: none; opacity: 1; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.contact-list span { color: var(--muted); font-size: .9rem; font-weight: 600; }
.contact-list address { font-style: normal; white-space: pre-line; }

/* Video */
.video-frame { aspect-ratio: 16 / 9; border-radius: calc(var(--radius) * 1.4); overflow: hidden; background: #000; }
.video-frame iframe, .video-frame video { width: 100%; height: 100%; border: 0; }
.video-frame .media-placeholder { height: 100%; border-radius: 0; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 56px; flex-wrap: wrap; }
.pagination a { text-decoration: none; padding: 8px 14px; border-radius: 8px; color: var(--text); font-weight: 600; }
.pagination a:hover { background: var(--bg-subtle); }
.pagination .current { background: var(--brand); color: #fff; }

/* Footer */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .72); padding: 64px 0 32px; margin-top: 64px; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand, .site-footer .brand-name { color: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand { max-width: 360px; }
.footer-brand .muted { color: rgba(255, 255, 255, .6); margin-top: 14px; font-size: .95rem; }
.footer-nav ul, .social { list-style: none; padding: 0; margin: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom { padding-top: 24px; font-size: .88rem; }
.footer-bottom p { margin: 0; }
.site-footer.minimal { margin-top: 0; padding: 24px 0; text-align: center; }
.section.cta + .site-footer, main > .section:last-child.cta { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Forms (markup from the built-in strata/form partial) */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.4); padding: 32px; box-shadow: var(--shadow); }
.form-narrow .form-intro { text-align: center; margin-bottom: 32px; }
.form-narrow .form-intro .lead { margin: 0 auto; }
.strata-form { display: grid; gap: 18px; position: relative; }
.strata-field { display: grid; gap: 6px; }
.strata-field > label, .strata-choices legend { font-weight: 600; font-size: .95rem; }
.strata-field abbr { text-decoration: none; color: var(--brand); }
.strata-form input:not([type=checkbox]), .strata-form select, .strata-form textarea {
  font: inherit; font-size: 1rem; width: 100%; padding: 11px 14px; border: 1px solid #cfd3dc; border-radius: var(--radius); background: #fff; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.strata-form textarea { resize: vertical; min-height: 120px; }
.strata-form input:focus, .strata-form select:focus, .strata-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.strata-form [aria-invalid=true] { border-color: #d7373f; }
.strata-choices { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.strata-check { display: flex; align-items: center; gap: 10px; font-weight: 400; cursor: pointer; }
.strata-check input { width: 18px; height: 18px; accent-color: var(--brand); }
.strata-help { color: var(--muted); font-size: .85rem; }
.strata-error { color: #c9252d; font-size: .88rem; }
.strata-error:empty { display: none; }
.strata-submit { justify-self: start; }
.strata-submit:disabled { opacity: .6; cursor: wait; }
.strata-form-success { padding: 8px 0; font-size: 1.1rem; }
.strata-form-success:focus { outline: none; }
.strata-form-message { text-align: center; }
