/* Zweikarta site styles. No external fonts, scripts or trackers: everything is served from this site. */

/* Layout: one narrow reading column, header and footer bands. */
:root {
  --bg: #F6F6F3;
  --surface: #FFFFFF;
  --fg: #16191D;
  --muted: #5E6368;
  --line: #DCDDD8;
  --accent: #C9831A;        /* saffron, used for the brand mark only */
  --link: #16191D;
  --todo-bg: #FFF1C2;
  --todo-fg: #5A4300;
  --mine: #1F7A76;
  --mine-tint: #E3F1F0;
  --ours: #B84A35;
  --ours-tint: #FBEAE5;
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101214;
    --surface: #1A1D20;
    --fg: #ECEDEA;
    --muted: #A3A7AB;
    --line: #2E3236;
    --accent: #E3A23B;
    --link: #ECEDEA;
    --todo-bg: #4A3A00;
    --todo-fg: #FFE59A;
    --mine: #5CC3BD;
    --mine-tint: #173533;
    --ours: #E58A73;
    --ours-tint: #3A1F18;
    color-scheme: dark;
  }
}

/* GeldSpace pages use the app's Sanctuary palette. */
.gs { --bg: #F2F2F7; --fg: #1C1C1E; --muted: #636366; --line: #D8D8DE; }
@media (prefers-color-scheme: dark) {
  .gs { --bg: #000000; --surface: #1C1C1E; --fg: #FFFFFF; --muted: #AEAEB2; --line: #38383A; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 44rem; margin: 0 auto; padding-inline: 20px; }

/* Header */
.site-header { padding-block: 22px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.02em; font-size: 19px; }
.brand svg { width: 30px; height: 20px; flex: none; }
.brand .lens { fill: var(--fg); } /* overlap of the mark: dark on light pages, light on dark */
.site-header nav { display: flex; gap: 18px; font-size: 15px; }
.site-header nav a { text-decoration: none; color: var(--muted); }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--fg); }

/* Type */
h1, h2, h3 { line-height: 1.15; text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); font-weight: 700; margin: 0 0 18px; }
h2 { font-size: 1.45rem; font-weight: 700; margin: 2.2em 0 0.5em; }
h3 { font-size: 1.1rem; font-weight: 600; margin: 1.6em 0 0.4em; }
p, ul, ol { margin: 0 0 1em; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.small { font-size: 14px; color: var(--muted); }

main { padding-block: 40px 72px; }

/* Home: name story */
.word { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 36px 0 8px; }
.word > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; min-width: 0; }
.word b { display: block; font-size: 1.5rem; letter-spacing: -0.02em; }
.word span { font-size: 14px; color: var(--muted); }
.word i { font-style: normal; display: block; margin-top: 6px; }

/* App cards */
.apps { display: grid; gap: 14px; margin-top: 18px; }
.app-card { display: flex; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; }
.app-card:hover { border-color: var(--muted); }
.app-icon { width: 60px; height: 60px; border-radius: 14px; flex: none; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 26px; background: linear-gradient(135deg, var(--mine) 0 50%, var(--ours) 50% 100%); }
.app-card div { min-width: 0; }
.app-card strong { display: block; font-size: 1.1rem; }
.app-card span { color: var(--muted); font-size: 15px; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); margin-top: 6px; }

/* GeldSpace page */
.spaces { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0; }
.space { border-radius: var(--radius); padding: 20px; min-width: 0; }
.space.mine { background: var(--mine-tint); }
.space.ours { background: var(--ours-tint); }
.space h3 { margin: 0 0 6px; }
.space.mine h3 { color: var(--mine); }
.space.ours h3 { color: var(--ours); }
.space p { margin: 0; font-size: 15px; }
.features { padding-left: 1.1em; }
.features li { margin-bottom: 0.5em; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.store { display: inline-flex; align-items: center; padding: 12px 20px; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 600; font-size: 15px; text-decoration: none; }
.store[aria-disabled="true"] { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; }

/* Legal pages */
.legal h2 { font-size: 1.25rem; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 600; }
.table-scroll { overflow-x: auto; margin: 0 0 1.2em; }
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; }
.callout > :last-child { margin-bottom: 0; }
.steps { padding-left: 1.3em; }
.steps li { margin-bottom: 0.4em; }
.copy-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

/* Placeholders still to be filled in before going live */
.todo { background: var(--todo-bg); color: var(--todo-fg); border-radius: 4px; padding: 0 4px; font-weight: 600; }
.draft-banner { background: var(--todo-bg); color: var(--todo-fg); font-size: 14px; padding: 10px 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 28px 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .word, .spaces { grid-template-columns: 1fr; }
}

/* GeldSpace product page */
.wrap:has(.gs-hero) { max-width: 60rem; }
.gs-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-bottom: 40px; }
.gs-brand { display: flex; align-items: center; gap: 10px; font-size: 22px; letter-spacing: -0.02em; color: var(--mine); margin-bottom: 18px; }
.gs-brand b { color: var(--fg); }
.gs-icon svg, .app-icon svg { display: block; width: 100%; height: 100%; }
.gs-icon { width: 40px; height: 40px; flex: none; }
.phone { display: block; width: 100%; max-width: 295px; height: auto; margin-inline: auto; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: center; border-radius: 28px; padding: 40px 32px 0; margin-bottom: 16px; overflow: hidden; }
.feature > div { padding-bottom: 40px; min-width: 0; }
.feature .phone { align-self: end; margin-bottom: -40px; }
.feature h2 { margin-top: 0; }
.tint-mine { background: var(--mine-tint); }
.tint-ours { background: var(--ours-tint); }
.tint-plain { background: var(--surface); border: 1px solid var(--line); }
.mine-word { color: var(--mine); }
.ours-word { color: var(--ours); }
.app-icon { background: none; }
@media (max-width: 720px) {
  .gs-hero, .feature { grid-template-columns: 1fr; }
  .gs-hero .phone { max-width: 240px; }
  .feature { padding: 28px 20px 0; gap: 20px; }
  .feature > div { order: -1; padding-bottom: 0; }
  .feature .phone { max-width: 230px; margin-bottom: -60px; }
}
