/* Flexi website styles. Colors and fonts come only from CLAUDE.md and Flexi Design Tokens.md. */

@font-face { font-family: "Barlow"; src: url("/assets/fonts/Barlow-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/Barlow-SemiBold.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/BarlowCondensed-Bold.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --pink: #E123C9;
  --hot-pink: #C2189F;
  --sky: #60A4C3;
  --pale-blue: #EDF3F6;
  --ink: #0F2834;
  --green: #00C0B3;
  --warm-grey: #ECEAE8;
  --teal: #155269;
  --grey: #7B7B7B;
  --light-pink: #FFD3F1;
  --white: #FFFFFF;
  --line: rgba(96, 164, 195, .45);
  --head: "Barlow Condensed", system-ui, sans-serif;
  --body: "Barlow", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--pale-blue); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; }
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--hot-pink); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--white); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; background: var(--hot-pink); color: var(--white); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; border: 0; font-family: inherit; cursor: pointer; }
.btn:hover, .btn:active { background: var(--pink); color: var(--white); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(237, 243, 246, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.site-header__bar { display: flex; align-items: center; gap: 20px; min-height: 52px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 8px; min-height: 44px; flex: none; text-decoration: none; }
.brand img { height: 32px; width: auto; }
.brand span { font-family: var(--head); font-weight: 700; font-size: 28px; line-height: 1; color: var(--ink); }
.main-nav { display: none; flex: 1; justify-content: center; gap: 2px; }
.main-nav__item { position: relative; }
.main-nav__link, .main-nav__toggle { min-height: 44px; display: flex; align-items: center; gap: 6px; padding: 0 14px; font: 600 15px var(--body); color: var(--ink); text-decoration: none; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; }
.main-nav__link[aria-current="page"], .main-nav__toggle.is-current { color: var(--teal); border-bottom-color: var(--hot-pink); }
.main-nav__toggle svg { width: 12px; height: 12px; }
.main-nav__panel { position: absolute; top: 100%; left: 0; z-index: 60; min-width: 240px; background: var(--white); border: 1px solid rgba(96, 164, 195, .6); box-shadow: 0 14px 30px rgba(15, 40, 52, .14); padding: 8px; display: flex; flex-direction: column; }
.main-nav__panel[hidden] { display: none; }
.main-nav__panel a { min-height: 44px; display: flex; align-items: center; padding: 0 12px; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; }
.main-nav__panel a:hover { background: var(--pale-blue); }
.header-cta { display: none; }
.spacer { flex: 1; }
.icon-link { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.icon-link svg { width: 22px; height: 22px; }
.menu-btn { min-height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid var(--teal); background: transparent; color: var(--teal); font: 600 15px var(--body); cursor: pointer; }

.mobile-menu { border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; padding: 12px 24px 20px; background: var(--pale-blue); max-height: calc(100vh - 64px); overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a, .mobile-menu summary { min-height: 48px; display: flex; align-items: center; font-size: 17px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(96, 164, 195, .3); }
.mobile-menu summary { justify-content: space-between; cursor: pointer; list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary::after { content: "+"; color: var(--hot-pink); font-size: 24px; line-height: 1; }
.mobile-menu details[open] > summary::after { content: "\2212"; }
.mobile-menu details > div { display: flex; flex-direction: column; background: var(--white); padding: 4px 14px; }
.mobile-menu .btn { min-height: 52px; font-size: 17px; justify-content: center; color: var(--white); border: 0; }

@media (min-width: 1000px) {
  .main-nav, .header-cta { display: flex; }
  .menu-btn, .mobile-menu, .spacer { display: none !important; }
}

/* Footer */
.site-footer { background: var(--ink); color: var(--pale-blue); }
.site-footer__inner { padding-top: 48px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 28px; }
.footer-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(237, 243, 246, .2); }
.footer-brand { display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.footer-brand a { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--white); align-self: flex-start; }
.footer-brand__mark { width: 68px; height: 68px; background: var(--pale-blue); display: grid; place-items: center; flex: none; }
.footer-brand__mark img { width: 50px; height: 50px; }
.footer-brand__words { display: flex; flex-direction: column; font-family: var(--head); font-weight: 700; line-height: .95; }
.footer-brand__words span:first-child { font-size: 46px; }
.footer-brand__words span:last-child { font-size: 22px; color: var(--hot-pink); }
.footer-brand p { font-size: 15px; max-width: 440px; }
.footer-guide { background: var(--teal); border: 3px solid var(--pale-blue); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.footer-guide__kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--white); }
.footer-guide__title { font-family: var(--head); font-weight: 700; font-size: 26px; line-height: 1.05; color: var(--white); }
.footer-guide form { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-guide input { flex: 1 1 200px; min-height: 52px; padding: 0 14px; border: 2px solid var(--pale-blue); font: inherit; font-size: 16px; color: var(--ink); background: var(--white); }
.footer-guide button { background: var(--hot-pink); color: var(--white); border: 2px solid var(--pale-blue); font: inherit; font-weight: 700; font-size: 16px; padding: 0 20px; min-height: 52px; cursor: pointer; }
.footer-guide button:hover { background: var(--pink); }
.footer-guide small { font-size: 14px; color: var(--pale-blue); }

.footer-cols { display: flex; flex-direction: column; margin-top: -14px; }
.footer-col { border-bottom: 1px solid rgba(237, 243, 246, .2); }
.footer-col summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--white); cursor: pointer; list-style: none; }
.footer-col summary::-webkit-details-marker { display: none; }
.footer-col summary::after { content: "+"; font-size: 24px; color: var(--hot-pink); letter-spacing: 0; }
.footer-col[open] summary::after { content: "\2212"; }
.footer-col ul { list-style: none; margin: 0; padding: 0 0 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.footer-col a { color: var(--pale-blue); text-decoration: none; font-size: 15px; min-height: 44px; display: flex; align-items: center; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }

@media (min-width: 760px) {
  .footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; margin-top: 0; }
  .footer-col { border-bottom: 0; }
  .footer-col summary { min-height: 0; padding-bottom: 2px; font-size: 13px; font-weight: 600; color: var(--sky); cursor: default; pointer-events: none; }
  .footer-col summary::after, .footer-col[open] summary::after { content: none; }
  .footer-col ul { grid-template-columns: 1fr; padding: 0; }
}

.footer-legal { border-top: 1px solid rgba(237, 243, 246, .2); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.5; }
.footer-legal strong { color: var(--white); }
.footer-legal a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal__copy { border-top: 1px solid rgba(237, 243, 246, .2); padding-top: 14px; margin-top: 8px; }

/* Starter page body (replaced by the real home page in step 2) */
.starter { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.starter h1 { font-size: clamp(44px, 7vw, 72px); }
.starter h1 em { font-style: normal; color: var(--hot-pink); }
.starter p { font-size: 18px; }

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