:root {
  --bg: #f4efe5;
  --surface: #ffffff;
  --ink: #2a1d12;
  --ink-soft: #6b5340;
  --ink-faint: #9a8a78;
  --red: #c0392b;
  --red-deep: #a8311f;
  --rule: rgba(192, 57, 43, 0.18);
  --badge-ink: #1a1410;
  --serif: ui-serif, "New York", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --maxw: 720px;
  --prose: 680px;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); min-height: 100vh;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--red-deep); }

/* recolorable logo mark (CSS mask → `color` drives the fill) */
.mark {
  display: inline-block;
  width: 24px; height: 21px;
  background-color: currentColor;
  -webkit-mask: url("/cochessqi-mark.svg") no-repeat center / contain;
          mask: url("/cochessqi-mark.svg") no-repeat center / contain;
}

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  background: rgba(244, 239, 229, 0.9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--rule);
}
.site-header .brand { display: flex; align-items: center; gap: 9px; font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--ink); text-decoration: none; }
.site-header .brand .mark { color: var(--red); }
.site-header nav { display: flex; gap: 18px; font-size: 14px; }
.site-header nav a { color: var(--ink-soft); text-decoration: none; }
.site-header nav a:hover { color: var(--red-deep); }

/* layout + type */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
main.prose { max-width: var(--prose); }
.section { padding: 40px 0; border-bottom: 1px solid var(--rule); }
.section:last-child { border-bottom: none; }
.center { text-align: center; }
h1 { font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1.2; margin: 28px 0 14px; }
h2 { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.25; margin: 0 0 14px; }
h3 { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
p { font-size: 17px; line-height: 1.6; margin: 0 0 14px; }
.subtle { color: var(--ink-soft); }
.trilingual { font-size: 14px; color: var(--ink-soft); letter-spacing: 0.02em; }
.lead { font-size: 19px; color: var(--ink-soft); line-height: 1.5; }

/* hero */
.hero { text-align: center; padding: 72px 0 56px; }
.hero .mark { width: 96px; height: 84px; color: var(--red); margin-bottom: 22px; }
.hero h1 { font-size: 40px; margin-top: 0; }
.hero .lead { max-width: 460px; margin: 16px auto 0; }

/* coming-soon badge */
.appstore-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; padding: 11px 20px; background: var(--badge-ink); color: #fff; border-radius: 11px; font-size: 14px; font-weight: 600; }
.appstore-badge .apple { width: 16px; height: 16px; }

/* card grids */
.grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 720px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border-radius: 12px; padding: 18px; border: 1px solid rgba(0,0,0,0.05); }
.card h3 { margin-bottom: 6px; }
.card p { font-size: 15px; margin: 0; color: var(--ink-soft); }
a.card { text-decoration: none; color: var(--ink); display: block; }
a.card:hover { border-color: var(--rule); }
a.card .more { color: var(--red-deep); font-size: 14px; font-weight: 600; }

/* tables */
table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; }

/* faq */
.faq-item { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.faq-item:last-child { border-bottom: none; }
.faq-item p { font-size: 16px; color: var(--ink-soft); margin: 0; }

/* footer */
.site-footer { border-top: 1px solid var(--rule); padding: 32px 24px; text-align: center; font-size: 13px; color: var(--ink-soft); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 14px; }
.site-footer nav a { color: var(--ink-soft); text-decoration: none; }
.site-footer nav a:hover { color: var(--red-deep); }
.site-footer .legal { color: var(--ink-faint); }
