/* ===========================================================================
   willowcare.co — site styles
   Built on the Willowcare design system tokens (ds/styles.css). Static, no
   build step. "Clarity" primary + "Signal" navy for trust sections.
   ===========================================================================*/

/* ---- Layout primitives ---------------------------------------------------*/
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }
.container--narrow { max-width: 920px; }
.section { padding: var(--section-y) 0; position: relative; }
.section--tight { padding: var(--section-y-tight) 0; }
.section--paper { background: var(--surface-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--navy { background: var(--surface-navy-deep); color: var(--text-on-navy); position: relative; overflow: hidden; }
.section--navy::before { content: ""; position: absolute; top: -220px; right: -180px; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle at center, rgba(47,138,99,0.26), transparent 68%); pointer-events: none; }

.eyebrow { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wc-green-deep); display: inline-flex; align-items: center; gap: 9px; }
.eyebrow .tick { width: 16px; height: 1.5px; background: currentColor; opacity: .8; }
.eyebrow--clay { color: var(--wc-clay-deep); }
.eyebrow--navy-bg { color: #8fd0ad; }

.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head h2 { font-family: var(--font-sans); font-weight: 600; font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.03em; line-height: 1.08; margin: 16px 0 14px; text-wrap: balance; }
.section__head h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--wc-green-deep); }
.section--navy .section__head h2 { color: #fff; }
.section--navy .section__head h2 em { color: var(--wc-cream); }
.section__head .lede { font-size: 17.5px; color: var(--text-body); max-width: 640px; line-height: 1.6; }
.section--navy .section__head .lede { color: var(--text-on-navy-mut); }

/* ---- Buttons -------------------------------------------------------------*/
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-sans); font-weight: 600; line-height: 1; border: 1px solid transparent; border-radius: var(--r-pill); cursor: pointer; white-space: nowrap; font-size: 14px; padding: 11px 18px; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out); }
.btn--lg { font-size: 15px; padding: 14px 24px; }
.btn--sm { font-size: 13px; padding: 8px 14px; }
.btn--primary { background: var(--wc-navy); color: #fff; }
.btn--primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); background: var(--wc-navy-hover); color: #fff; }
.btn--green { background: var(--wc-green); color: #fff; }
.btn--green:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); background: var(--wc-green-hover); color: #fff; }
.btn--ghost { background: var(--surface-card); color: var(--wc-ink); border-color: var(--wc-rule-strong); }
.btn--ghost:hover { border-color: var(--wc-ink-3); color: var(--wc-ink); }
.btn--on-navy { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.22); }
.btn--on-navy:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.4); color: #fff; }

/* ---- Nav -----------------------------------------------------------------*/
.nav { position: sticky; top: 0; z-index: 50; background: rgba(245,246,247,0.82); backdrop-filter: saturate(180%) blur(10px); -webkit-backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__in { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__name { font-family: var(--font-sans); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; color: var(--wc-ink); }
.brand__name span { font-weight: 400; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { font-size: 14px; font-weight: 500; color: var(--text-body); padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s; }
.nav__links a:hover { color: var(--wc-green-deep); }
.nav__links a.active { color: var(--wc-navy); }
.nav__cta { display: flex; gap: 10px; align-items: center; }

/* ---- Hero ----------------------------------------------------------------*/
.hero { padding: 76px 0 92px; }
.hero__pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px 7px 9px; background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--r-pill); font-size: 13px; color: var(--text-body); box-shadow: var(--shadow-xs); }
.hero__pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wc-green); box-shadow: 0 0 0 4px var(--wc-green-soft); }
.hero h1 { font-family: var(--font-sans); font-weight: 600; font-size: clamp(44px, 6vw, 78px); line-height: 1.03; letter-spacing: -0.035em; margin: 26px 0 0; max-width: 16ch; text-wrap: balance; color: var(--wc-ink); }
.hero h1 .g { color: var(--wc-green-deep); }
.hero__lede { font-size: 20px; line-height: 1.6; color: var(--text-body); max-width: 56ch; margin: 24px 0 0; text-wrap: pretty; }
.hero__ctas { display: flex; gap: 12px; align-items: center; margin-top: 34px; flex-wrap: wrap; }
.hero__trust { margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--border); display: flex; gap: 38px; flex-wrap: wrap; align-items: center; }
.hero__trust .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.hero__trust .items { display: flex; gap: 24px; flex-wrap: wrap; }
.hero__trust .items span { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--text-body); font-weight: 500; }
.hero__trust .items i { width: 5px; height: 5px; border-radius: 50%; background: var(--wc-green); }

/* ---- Cards / products ----------------------------------------------------*/
.card { background: var(--surface-card); border: 1px solid var(--wc-rule); border-radius: var(--r-2xl); box-shadow: var(--shadow-sm); position: relative; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out); }
.card--rail::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--wc-green); border-radius: var(--r-2xl) var(--r-2xl) 0 0; }
.card--hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--wc-rule-strong); }

.products { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.product { padding: 34px; display: flex; flex-direction: column; }
.product__top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.product__logo { width: 46px; height: 46px; border-radius: var(--r-md); flex-shrink: 0; display: grid; place-items: center; overflow: hidden; }
.product__name { font-family: var(--font-sans); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.product__tag { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.product__desc { font-size: 14.5px; color: var(--text-body); line-height: 1.6; margin: 0 0 16px; flex: 1; }
.product__meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.product__links { display: flex; gap: 16px; align-items: center; padding-top: 14px; border-top: 1px solid var(--border); }
.product__links a { font-size: 14px; font-weight: 600; color: var(--wc-navy); }
.product__links a:hover { color: var(--wc-green-deep); }
.product--future { border-style: dashed; box-shadow: none; background: transparent; }
.product--future .product__name { color: var(--text-muted); }
.product--future p { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; margin: 8px 0 0; }

.tag { display: inline-flex; align-items: center; font-family: var(--font-sans); font-weight: 600; font-size: 12px; color: var(--wc-ink-2); background: var(--wc-panel); padding: 6px 11px; border-radius: var(--r-pill); }
.tag--accent { background: var(--wc-green-soft); color: var(--wc-green-deep); }

/* ---- Badges --------------------------------------------------------------*/
.badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-sans); font-weight: 600; font-size: 11.5px; padding: 5px 10px; border-radius: var(--r-pill); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--ok { background: var(--wc-ok-soft); color: var(--wc-green-deep); }
.badge--warn { background: var(--wc-warn-soft); color: var(--wc-clay-deep); }
.badge--info { background: var(--wc-info-soft); color: var(--wc-navy); }

/* ---- Trust cards (navy) --------------------------------------------------*/
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tcard { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--r-xl); padding: 26px; }
.tcard__icon { width: 38px; height: 38px; border-radius: var(--r-md); background: rgba(255,255,255,0.08); display: grid; place-items: center; color: #8fd0ad; margin-bottom: 16px; }
.tcard h3 { font-family: var(--font-sans); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; color: #fff; margin: 0 0 8px; }
.tcard p { font-size: 13.5px; color: var(--text-on-navy-mut); line-height: 1.6; margin: 10px 0 0; }
.trust-foot { margin-top: 32px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* ---- Values --------------------------------------------------------------*/
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.value .n { font-family: var(--font-mono); font-size: 12px; color: var(--wc-green-deep); letter-spacing: 0.08em; display: block; margin-bottom: 10px; }
.value h3 { font-family: var(--font-sans); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; margin: 0 0 8px; }
.value p { font-size: 14.5px; color: var(--text-body); line-height: 1.6; margin: 0; }

/* ---- CTA -----------------------------------------------------------------*/
.cta { text-align: center; padding: 56px; position: relative; overflow: hidden; background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--r-2xl); box-shadow: var(--shadow-sm); }
.cta::before { content: ""; position: absolute; top: -120px; right: -80px; width: 320px; height: 320px; border-radius: 50%; background: var(--wc-green-soft); opacity: .55; }
.cta__in { position: relative; max-width: 600px; margin: 0 auto; }
.cta h2 { font-family: var(--font-sans); font-weight: 600; font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 14px; text-wrap: balance; }
.cta p { font-size: 17px; color: var(--text-body); margin: 0 0 26px; }
.cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Page head (interior pages) ------------------------------------------*/
.pagehead { padding: 64px 0 8px; }
.pagehead h1 { font-family: var(--font-sans); font-weight: 600; font-size: clamp(36px, 4.8vw, 58px); letter-spacing: -0.035em; line-height: 1.05; margin: 16px 0 16px; max-width: 20ch; text-wrap: balance; }
.pagehead h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--wc-green-deep); }
.pagehead .lede { font-size: 19px; color: var(--text-body); max-width: 60ch; line-height: 1.6; }

/* ---- Prose ---------------------------------------------------------------*/
.prose { padding: 24px 0 40px; }
.prose h2 { font-family: var(--font-sans); font-weight: 600; font-size: 26px; letter-spacing: -0.02em; margin: 44px 0 12px; }
.prose h3 { font-family: var(--font-sans); font-weight: 600; font-size: 18px; margin: 28px 0 8px; }
.prose p { color: var(--text-body); margin: 0 0 16px; line-height: 1.7; }
.prose strong { color: var(--text-strong); font-weight: 600; }
.prose ul { color: var(--text-body); line-height: 1.7; margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 7px; }
.prose a { color: var(--wc-navy); font-weight: 500; }
.prose a:hover { color: var(--wc-green-deep); }

/* ---- Facts grid + founder ------------------------------------------------*/
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; margin: 28px 0; }
.fact { background: var(--surface-card); padding: 20px 22px; }
.fact .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.fact .v { font-family: var(--font-sans); font-weight: 600; font-size: 18px; color: var(--wc-ink); letter-spacing: -0.01em; }
.founder { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); padding: 28px 30px; margin: 28px 0; display: flex; gap: 22px; align-items: flex-start; }
.founder .avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--wc-navy-soft); color: var(--wc-navy); display: grid; place-items: center; font-family: var(--font-serif); font-size: 24px; font-weight: 500; flex-shrink: 0; }
.founder h3 { margin: 0 0 2px; font-family: var(--font-sans); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.founder .role { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); margin-bottom: 12px; letter-spacing: 0.04em; }
.founder p { margin: 0; font-size: 14.5px; color: var(--text-body); line-height: 1.6; }

/* ---- Callout -------------------------------------------------------------*/
.callout { display: flex; gap: 13px; padding: 16px 18px; border-radius: var(--r-lg); border: 1px solid; }
.callout__ic { flex-shrink: 0; margin-top: 1px; }
.callout__title { font-weight: 600; font-size: 14.5px; color: var(--wc-ink); line-height: 1.4; margin-bottom: 3px; }
.callout__text { font-size: 13.5px; color: var(--text-body); line-height: 1.6; }
.callout--warn { background: var(--wc-warn-soft); border-color: #e8c8b2; }
.callout--warn .callout__ic { color: var(--wc-clay-deep); }
.callout--ok { background: var(--wc-ok-soft); border-color: #bfe0cd; }
.callout--ok .callout__ic { color: var(--wc-green-deep); }

/* ---- Posture + subprocessors ---------------------------------------------*/
.posture { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.posture .card { padding: 26px; }
.posture__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.posture__ic { width: 40px; height: 40px; border-radius: var(--r-md); background: var(--wc-navy-soft); color: var(--wc-navy); display: grid; place-items: center; flex-shrink: 0; }
.posture h3 { font-family: var(--font-sans); font-weight: 600; font-size: 17px; margin: 0; letter-spacing: -0.01em; }
.posture p { font-size: 13.5px; color: var(--text-body); line-height: 1.55; margin: 12px 0 0; }

.subtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.subtable th { text-align: left; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; padding: 0 14px 12px; border-bottom: 1px solid var(--border); }
.subtable td { padding: 14px; border-bottom: 1px solid var(--border); color: var(--text-body); }
.subtable tr:last-child td { border-bottom: none; }
.subtable td.name { font-weight: 600; color: var(--text-strong); }

/* ---- Forms ---------------------------------------------------------------*/
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--font-sans); font-weight: 600; font-size: 13.5px; color: var(--wc-ink); }
.field label .req { color: var(--wc-clay-deep); margin-left: 3px; }
.input, .textarea, .select { width: 100%; font-family: var(--font-sans); font-size: 14.5px; color: var(--wc-ink); background: var(--surface-card); border: 1px solid var(--wc-rule-strong); border-radius: var(--r-md); padding: 11px 13px; line-height: 1.4; transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.textarea { line-height: 1.55; resize: vertical; min-height: 110px; }
.select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7c8d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.input::placeholder, .textarea::placeholder { color: var(--wc-ink-4); }
.input:hover, .textarea:hover, .select:hover { border-color: var(--wc-ink-3); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--wc-green); box-shadow: var(--ring); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--wc-ink); }
.check input { width: 18px; height: 18px; accent-color: var(--wc-green); }

/* ---- Channels ------------------------------------------------------------*/
.channels { display: flex; flex-direction: column; gap: 18px; }
.channel { display: flex; gap: 13px; align-items: flex-start; }
.channel__ic { width: 38px; height: 38px; border-radius: var(--r-md); background: var(--wc-green-soft); color: var(--wc-green-deep); display: grid; place-items: center; flex-shrink: 0; }
.channel .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.channel .v { font-size: 15px; font-weight: 600; color: var(--text-strong); margin-top: 3px; }
.channel .d { font-size: 13px; color: var(--text-body); margin-top: 2px; }

/* ---- Footer --------------------------------------------------------------*/
.footer { background: var(--surface-card); border-top: 1px solid var(--border); padding: 56px 0 36px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer__desc { font-size: 13.5px; color: var(--text-body); line-height: 1.6; margin-top: 14px; max-width: 300px; }
.footer h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 13.5px; color: var(--text-body); }
.footer ul a:hover { color: var(--wc-green-deep); }
.footer__legal { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-muted); }

/* ---- 404 -----------------------------------------------------------------*/
.nf { min-height: 64vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 0; }
.nf .code { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wc-green-deep); }
.nf h1 { font-family: var(--font-sans); font-weight: 600; font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.035em; margin: 16px 0 12px; }
.nf h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--wc-green-deep); }
.nf p { font-size: 18px; color: var(--text-body); margin: 0 0 28px; max-width: 46ch; }

/* ---- Responsive ----------------------------------------------------------*/
@media (max-width: 900px) {
  .section { padding: 60px 0; }
  .products, .trust-grid, .values, .footer__grid, .posture, .form-row { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .cta { padding: 40px 24px; }
  .facts { grid-template-columns: 1fr; }
  .founder { flex-direction: column; }
}
