/* Zweikarta studio home page. Self-hosted fonts only, no external requests.
   Layout: dark hero with a design + code Venn mark, then light editorial sections, dark contact band. */
@font-face { font-family: "Bricolage"; font-weight: 700; font-display: swap; src: url(fonts/bricolage-grotesque-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2212; }
@font-face { font-family: "Bricolage"; font-weight: 700; font-display: swap; src: url(fonts/bricolage-grotesque-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+1E00-1E9F,U+20A0-20AB,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Bricolage"; font-weight: 800; font-display: swap; src: url(fonts/bricolage-grotesque-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2212; }
@font-face { font-family: "Bricolage"; font-weight: 800; font-display: swap; src: url(fonts/bricolage-grotesque-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+1E00-1E9F,U+20A0-20AB,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --night: #0D1017;        /* hero and contact bands, both themes */
  --night-2: #171B24;
  --on-night: #F2F3F7;
  --on-night-muted: #A2A8B8;
  --bg: #F3F4F7;
  --surface: #FFFFFF;
  --fg: #11141B;
  --muted: #5B6172;
  --line: #DADDE5;
  --cobalt: #3D5AFE;        /* design */
  --saffron: #FFAE2B;       /* code */
  --cobalt-ink: #2F47D6;
  --mine: #1F7A76;
  --ours: #B84A35;
  --display: "Bricolage", -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-lg: 28px;
  --r-md: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0C11; --surface: #141822; --fg: #EEF0F5; --muted: #A2A8B8; --line: #262B37;
    --cobalt-ink: #8C9DFF; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A0C11; --surface: #141822; --fg: #EEF0F5; --muted: #A2A8B8; --line: #262B37;
  --cobalt-ink: #8C9DFF; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 72rem; margin: 0 auto; padding-inline: 24px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; text-wrap: balance; margin: 0; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }

/* Hero */
.hero { background: var(--night); color: var(--on-night); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -10% -45% 30%; height: 70%; background: radial-gradient(closest-side, rgba(61,90,254,0.22), transparent); pointer-events: none; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; position: relative; z-index: 1; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
.logo svg { width: 34px; height: 22px; }
.logo .lens { fill: #F2F3F7; } /* overlap matches the "Apps" lens in the hero */
.topbar nav { display: flex; gap: 22px; font-size: 15px; }
.topbar nav a { text-decoration: none; color: var(--on-night-muted); }
.topbar nav a:hover { color: var(--on-night); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: 56px 96px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(3.2rem, 7.5vw, 5.8rem); }
.hero h1 .dim { color: var(--on-night-muted); }
.hero .lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--on-night-muted); max-width: 32rem; margin: 28px 0 36px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; transition: transform .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--saffron); color: #1A1204; }
.btn-ghost { border: 1px solid rgba(242,243,247,0.25); color: var(--on-night); }

/* Venn: design + code = apps */
.venn { display: block; width: 100%; max-width: 460px; height: auto; margin-inline: auto; overflow: visible; }
.venn text { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.venn .mid { font-weight: 800; font-size: 26px; }
@media (prefers-reduced-motion: no-preference) {
  .venn .l { animation: meet-l 1.1s cubic-bezier(.2,.8,.2,1) both; }
  .venn .r { animation: meet-r 1.1s cubic-bezier(.2,.8,.2,1) both; }
  .venn .lens { animation: lens .6s ease-out .7s both; }
  @keyframes meet-l { from { transform: translateX(-40px); } to { transform: none; } }
  @keyframes meet-r { from { transform: translateX(40px); } to { transform: none; } }
  @keyframes lens { from { opacity: 0.15; } to { opacity: 1; } }
}

/* Sections */
section.block { padding-block: 96px; }
section.block + section.block { padding-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.section-head p { max-width: 26rem; color: var(--muted); margin: 0; }

/* Name equation */
.equation { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.2fr); gap: 16px; align-items: stretch; }
.eq-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; min-width: 0; }
.eq-card .word { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -0.035em; line-height: 1; }
.eq-card .lang { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
.eq-card .mean { font-size: 18px; margin-top: 4px; }
.eq-card.design .word { color: var(--cobalt-ink); }
.eq-card.code .word { color: #C47800; }
.eq-card .deva { font-size: 0.55em; font-weight: 600; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.op { align-self: center; font-family: var(--display); font-weight: 800; font-size: 2.4rem; color: var(--muted); }
.eq-card.result { background: var(--night); color: var(--on-night); border-color: var(--night); }
.eq-card.result .lang { color: var(--on-night-muted); }

/* Apps */
.app-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 32px; align-items: end; border-radius: 36px; padding: 56px 56px 0; overflow: hidden; color: #fff;
  background: radial-gradient(120% 120% at 100% 100%, #B84A35 0%, rgba(184,74,53,0) 55%), linear-gradient(135deg, #1F7A76, #134B48); }
.app-feature .copy { padding-bottom: 56px; min-width: 0; }
.app-tag { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 22px; }
.app-tag svg { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 0 0 1px rgba(255,255,255,0.25); }
.app-feature h3 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.app-feature p { color: #E3F1F0; font-size: 1.1rem; max-width: 28rem; margin: 20px 0 28px; }
.app-feature .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.14); }
.btn-light { background: #fff; color: #134B48; }
.app-feature img { display: block; width: 100%; max-width: 320px; height: auto; margin: 0 auto -70px; filter: drop-shadow(0 30px 40px rgba(0,0,0,0.3)); }
.next-app { margin-top: 16px; border: 2px dashed var(--line); border-radius: var(--r-lg); padding: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); }
.next-app strong { color: var(--fg); font-family: var(--display); font-size: 1.4rem; letter-spacing: -0.02em; }

/* People */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; display: flex; gap: 20px; align-items: flex-start; min-width: 0; }
.avatar { width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 26px; }
.person.design .avatar { background: var(--cobalt); color: #fff; }
.person.code .avatar { background: var(--saffron); color: #1A1204; }
.person h3 { font-size: 1.6rem; letter-spacing: -0.025em; }
.person .role { font-weight: 600; color: var(--muted); margin: 6px 0 10px; font-size: 15px; }
.person p { margin: 0; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.principle { border-top: 2px solid var(--fg); padding-top: 20px; min-width: 0; }
.principle h3 { font-size: 1.5rem; letter-spacing: -0.025em; margin-bottom: 10px; }
.principle p { color: var(--muted); margin: 0; }

/* Contact band */
.contact { background: var(--night); color: var(--on-night); padding-block: 96px; }
.contact h2 { font-size: clamp(2.6rem, 7vw, 5.4rem); }
.contact .mail { display: inline-block; margin-top: 28px; font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 4vw, 2.4rem); letter-spacing: -0.02em; color: var(--saffron); text-decoration: none; border-bottom: 2px solid rgba(255,174,43,0.4); word-break: break-word; }
.contact .mail:hover { border-bottom-color: var(--saffron); }
.contact p { color: var(--on-night-muted); margin: 18px 0 0; }

footer.foot { background: var(--night); color: var(--on-night-muted); border-top: 1px solid var(--night-2); font-size: 14px; padding-block: 28px 40px; }
footer.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer.foot a { color: var(--on-night-muted); }

.draft-banner { background: #FFE6A8; color: #4A3500; font-size: 14px; padding: 10px 0; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; padding-block: 24px 72px; }
  .venn { max-width: 340px; }
  .equation { grid-template-columns: 1fr; }
  .op { justify-self: center; font-size: 2rem; line-height: 1; }
  .app-feature { grid-template-columns: 1fr; padding: 36px 24px 0; border-radius: 28px; }
  .app-feature .copy { padding-bottom: 8px; }
  .app-feature img { max-width: 250px; }
  .people, .principles { grid-template-columns: 1fr; }
  section.block { padding-block: 72px; }
  .person { padding: 24px; }
}
@media (max-width: 480px) {
  .wrap { padding-inline: 18px; }
  .topbar nav { gap: 16px; }
  .topbar nav a.hide-sm { display: none; }
}

/* GeldSpace product page (uses the app's Sanctuary colours) */
.gs-page { --accent: #1F7A76; }
.gs-hero { background: radial-gradient(110% 120% at 100% 100%, #B84A35 0%, rgba(184,74,53,0) 50%), linear-gradient(140deg, #1F7A76, #134B48); color: #fff; overflow: hidden; }
.gs-hero .topbar nav a { color: #CFE6E4; }
.gs-hero .topbar nav a:hover { color: #fff; }
.gs-hero .hero-grid { padding-block: 40px 0; align-items: end; }
.gs-hero .copy { padding-bottom: 80px; }
.gs-hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); }
.gs-hero .lede { color: #E3F1F0; }
.gs-hero img { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto -40px; filter: drop-shadow(0 30px 40px rgba(0,0,0,0.3)); }
.soon { display: inline-flex; align-items: center; height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.35); font-weight: 600; font-size: 15px; }
.intro { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.2; letter-spacing: -0.025em; max-width: 52rem; margin: 0; text-wrap: pretty; }
.intro em { font-style: normal; color: var(--muted); }
.spaces2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.space2 { border-radius: var(--r-lg); padding: 32px; min-width: 0; }
.space2.mine { background: #E3F1F0; color: #134B48; }
.space2.ours { background: #FBEAE5; color: #5C2318; }
.space2 h3 { font-size: 2.2rem; margin-bottom: 14px; }
.space2 ul { margin: 0; padding-left: 1.1em; }
.space2 li { margin-bottom: 6px; }
.note { margin-top: 16px; color: var(--muted); font-size: 15px; }
.steps3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr); gap: 48px; align-items: center; }
.steps3 ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: s; }
.steps3 li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; counter-increment: s; }
.steps3 li::before { content: counter(s); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 22px; background: var(--surface); border: 1px solid var(--line); }
.steps3 h3 { font-size: 1.5rem; letter-spacing: -0.02em; margin: 10px 0 6px; }
.steps3 p { margin: 0; color: var(--muted); }
.steps3 img { display: block; width: 100%; max-width: 260px; height: auto; margin-inline: auto; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; min-width: 0; }
.panel h3 { font-size: 1.6rem; letter-spacing: -0.025em; margin-bottom: 12px; }
.panel ul { margin: 0; padding-left: 1.1em; }
.panel li { margin-bottom: 8px; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 24px; }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-weight: 800; font-size: 1.4rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; color: var(--muted); }
.help-links { display: flex; flex-wrap: wrap; gap: 12px; }
.help-links a { display: inline-flex; align-items: center; height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; }
.help-links a:hover { border-color: var(--fg); }
@media (max-width: 860px) {
  .gs-hero .copy { padding-bottom: 8px; }
  .gs-hero img { max-width: 240px; }
  .spaces2, .cols2, .steps3 { grid-template-columns: 1fr; }
  .steps3 img { max-width: 220px; }
  .space2, .panel { padding: 24px; }
}
