/* Shared base layout. BeYourKind overrides live in brand.css. */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/playfair-800.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #f6f5f2;
  --surface: #FFFFFF;
  --text: #1B4332;
  --muted: #4A6741;
  --accent: #0D9488;
  --accent-soft: rgba(13, 148, 136, .09);
  --border: #E8E4DF;
  --btn-bg: #1B4332;
  --btn-text: #F5F7FA;
  --footer-bg: #16352A;
  --footer-text: #B9CABF;
  --footer-link: #5FCFC0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(1120px, 100%); margin: 0 auto; padding: 0 28px; }

/* Header */
.site-header { position: sticky; z-index: 20; top: 0; padding: 18px 0; border-bottom: 1px solid var(--border); background: rgba(246,245,242,.94); backdrop-filter: blur(16px); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--text);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; background: #fff;
  border: 1px solid var(--border);
}
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a {
  text-decoration: none; color: var(--muted);
  font-size: .93rem; font-weight: 600;
}
.site-nav a:hover { color: var(--accent); }
.site-nav [aria-current="page"] { color: var(--text); text-decoration: underline; text-underline-offset: 7px; }
.site-nav[hidden] { display: none; }
.nav-toggle { display: none; }
.brand-mark { flex: none; }

@media (max-width: 960px) {
  .site-header .header-row { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px; }
  .site-header .brand { min-width: 0; gap: 9px; font-size: clamp(.95rem, 4.1vw, 1.12rem); }
  .site-header .site-nav { width: 100%; flex-wrap: wrap; gap: 10px 20px; overflow: visible; }
  .nav-enhanced .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none;
    min-width: 44px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border);
    border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer;
    font: inherit; font-size: .82rem; font-weight: 700; line-height: 1;
  }
  .nav-toggle-icon { width: 18px; display: grid; gap: 4px; }
  .nav-toggle-icon span { display: block; height: 2px; background: currentColor; border-radius: 2px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav-enhanced .site-nav {
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 0 0;
    border-top: 1px solid var(--border);
  }
  .nav-enhanced .site-nav a { padding: 10px 12px; border-radius: 8px; min-height: 44px; }
  .nav-enhanced .site-nav a:hover { background: var(--accent-soft); }
}
@media (max-width: 380px) {
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

/* Type */
h1 {
  font-family: "Playfair Display", Georgia, serif;
  max-width: 940px; font-size: clamp(2.65rem, 7vw, 5.45rem);
  line-height: .99; letter-spacing: -.038em;
  font-weight: 800; margin: 0 0 18px;
}
h2 {
  font-size: .74rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
  margin: 0 0 22px;
}
h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 6px;
}
p { margin: 0 0 18px; }
.lede { font-size: clamp(1.05rem, 2vw, 1.27rem); color: var(--muted); max-width: 760px; line-height: 1.68; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.section-intro { max-width: 710px; margin: -8px 0 28px; color: var(--muted); font-size: 1.04rem; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

section { padding: 82px 0 0; }
.hero { padding: 104px 0 64px; }
.hero p:last-child { margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }
.hero-actions .btn { padding: 12px 22px; }

/* App cards */
.apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: 16px;
}
.app {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 26px 28px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(27, 67, 50, .04);
}
.app-icon {
  width: 64px; height: 64px; border-radius: 15px; flex: none;
  border: 1px solid var(--border);
}
.app-body { display: flex; flex-direction: column; flex: 1; }
.app-body h3 a { color: inherit; text-decoration: none; }
.app-body h3 a:hover { color: var(--accent); }
.app-body p { color: var(--muted); margin: 0 0 14px; font-size: .97rem; }
.app-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 9px 18px; border-radius: 10px;
  background: var(--btn-bg); color: var(--btn-text); text-decoration: none;
  font-size: .87rem; font-weight: 700;
}
.btn:hover { filter: brightness(1.12); }
.btn.ghost { background: var(--accent-soft); color: var(--accent); }
.app.soon .app-icon { opacity: .75; }
.tag {
  display: inline-block; vertical-align: 3px; margin-left: 6px;
  padding: 3px 9px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}

/* Capabilities */
.capability-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.capability-card { position: relative; min-height: 210px; padding: 28px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.capability-card h3 { max-width: 80%; margin-bottom: 12px; }
.capability-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.capability-number { position: absolute; top: 25px; right: 25px; color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.services-strip { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-top: 16px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--accent-soft); }
.services-strip strong { margin-right: 8px; font-size: .82rem; }
.services-strip span { padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.8); color: var(--muted); font-size: .75rem; font-weight: 700; }

/* Founder */
.founder-card { display: grid; grid-template-columns: minmax(230px,.72fr) minmax(0,1.55fr); gap: clamp(30px,6vw,72px); align-items: center; padding: clamp(24px,4vw,44px); border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: 0 24px 60px -52px rgba(22,53,42,.55); }
.founder-photo { margin: 0; }
.founder-photo img { display: block; width: 100%; height: auto; border-radius: 16px; background: #171717; }
.founder-copy h3 { margin-bottom: 18px; font-size: clamp(1.8rem,4vw,2.75rem); }
.founder-copy p:not(.eyebrow) { color: var(--muted); }
.founder-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 26px; }
.founder-links a { font-size: .86rem; font-weight: 800; }
.brand-note { max-width: 760px; margin: 18px 0 0; color: var(--muted); font-size: .86rem; }

/* Contact */
.contact-card { display: grid; grid-template-columns:minmax(0,1.4fr) minmax(240px,.6fr); gap: 40px; align-items: center; margin-top: 82px; padding: clamp(28px,5vw,52px); border-radius: 22px; background: var(--footer-bg); color: #fff; }
.contact-card h2 { margin-bottom: 12px; color: #fff; font-family: "Playfair Display",Georgia,serif; font-size: clamp(1.7rem,4vw,2.65rem); letter-spacing: -.025em; line-height: 1.12; text-transform: none; }
.contact-card p:not(.eyebrow) { max-width: 620px; margin: 0; color: var(--footer-text); }
.contact-card .eyebrow { color: var(--footer-link); }
.contact-actions { display: grid; justify-items: start; gap: 10px; }
.contact-actions .btn { max-width: 100%; overflow-wrap: anywhere; background: var(--footer-link); color: #10261d; }
.contact-actions .text-link { color: #fff; font-size: .83rem; font-weight: 800; }

/* Prose pages (support, privacy, app pages) */
.prose { max-width: 780px; padding: 48px 28px 0; }
.prose h1 { margin-top: 0; }
.prose h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem; text-transform: none; letter-spacing: -.01em;
  color: var(--text); margin: 36px 0 10px;
}
.prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 7px; }
.updated { font-size: .88rem; color: var(--muted); }
.page-icon { width: 72px; height: 72px; border-radius: 17px; border: 1px solid var(--border); margin-bottom: 20px; }

/* Footer */
footer {
  margin-top: 88px; padding: 34px 0 48px;
  background: var(--footer-bg);
  font-size: .89rem; color: var(--footer-text);
}
footer a { color: var(--footer-text); }
footer a:hover { color: var(--footer-link); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 12px; }

:focus-visible { outline: 3px solid color-mix(in srgb,var(--accent) 68%,white); outline-offset: 3px; }

@media (max-width: 760px) {
  .wrap { padding-inline: 20px; }
  .site-header { position: static; padding: 15px 0; }
  .hero { padding: 70px 0 28px; }
  section { padding-top: 68px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card { min-height: auto; }
  .founder-card { grid-template-columns: 1fr; }
  .founder-photo { max-width: 340px; }
  .contact-card { grid-template-columns: 1fr; gap: 24px; margin-top: 68px; }
  .prose { padding-inline: 20px; }
}

@media (max-width: 460px) {
  h1 { font-size: clamp(2.45rem,13vw,3.55rem); }
  .hero-actions .btn { width: 100%; }
  .app { gap: 15px; padding: 22px 20px; }
  .app-icon { width: 54px; height: 54px; border-radius: 13px; }
  .services-strip { align-items: flex-start; flex-direction: column; }
  .founder-card { padding: 18px; }
}
