/*
 * Antilles Software Co. / IslandBook brand kit — tokens, fonts, component styles.
 * Tokens + .stamp-badge / .btn-* / .service-* lifted verbatim from the Antilles
 * site (temp_copy_index.html). .section-heading / .comparison-table / .stat-grid
 * reproduce the IslandBook homepage (apps/platform/src/app/page.tsx) blocks.
 *
 * Fonts load from the Google Fonts CDN at runtime (the brand's real delivery),
 * so the sync reports [FONT_REMOTE] (informational) rather than shipping woff2.
 */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400;1,6..72,500&family=Source+Serif+4:wght@300;400;500&family=Space+Grotesk:wght@400;500;600&display=swap');

:root {
  --parchment: #f4f0e8;
  --parchment-dark: #e8e2d4;
  --parchment-light: #faf8f3;
  --ink: #2c2416;
  --ink-deep: #120a00;
  --ink-light: #5c4f3a;
  --ink-faint: #8a7d6b;
  --mahogany: #4a3728;
  --brass: #8b7355;
  --brass-warm: #775a19;
  --brass-light: #a08a6a;
  --gold: #b8963e;
  --gold-light: #d4b467;
  --seafoam: #2d7d5f;
  --coral: #b54a3f;
  --ocean: #0f5156;
  --rule: #c4b9a4;
  --white: #faf8f4;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-headline: 'Newsreader', Georgia, serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-data: 'Space Grotesk', Consolas, monospace;
}

/* ── Surfaces (preview/composition helpers) ───────────────────── */
.brand-light {
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
}
.brand-dark {
  background: var(--ink-deep);
  color: var(--parchment);
  font-family: var(--font-body);
}

/* ── Stamp badge (tiny uppercase Space Grotesk label) ─────────── */
.stamp-badge {
  font-family: var(--font-data);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-warm);
  display: inline-block;
}
.stamp-badge--light { color: var(--brass); }
/* On dark grounds every stamp reads in the lighter brass. */
.brand-dark .stamp-badge { color: var(--brass-light); }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn-solid,
.btn-ghost {
  font-family: var(--font-data);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.9rem 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 1px solid transparent;
}
.btn-solid {
  background: var(--parchment-light);
  color: var(--ink-deep);
}
.btn-solid:hover { background: var(--parchment); }
.btn-solid--dark {
  background: var(--ink-deep);
  color: var(--parchment-light);
}
.btn-solid--dark:hover { background: var(--mahogany); }
.btn-ghost {
  background: transparent;
  border-color: rgba(244, 240, 232, 0.2);
  color: rgba(244, 240, 232, 0.7);
}
.btn-ghost:hover { border-color: rgba(244, 240, 232, 0.5); color: var(--parchment-light); }
.btn-solid .arrow,
.btn-ghost .arrow { display: inline-block; transition: transform 0.25s; }
.btn-solid:hover .arrow,
.btn-ghost:hover .arrow { transform: translateX(3px); }

/* ── Section heading (stamp-badge + italic headline + intro) ──── */
.section-heading { max-width: 640px; }
.section-heading--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-heading .stamp-badge { margin-bottom: 1rem; }
.section-heading h2 {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 1rem;
}
.section-heading p {
  font-family: var(--font-body);
  color: var(--ink-light);
  font-size: 1rem;
  line-height: 1.75;
  margin: 0;
}
.brand-dark .section-heading h2 { color: var(--parchment-light); }
.brand-dark .section-heading p { color: rgba(244, 240, 232, 0.7); }

/* ── Service card ─────────────────────────────────────────────── */
.service-card {
  background: var(--parchment-light);
  border: 1px solid var(--rule);
  padding: 2.5rem 2.25rem;
  transition: border-color 0.3s;
  font-family: var(--font-body);
  max-width: 460px;
}
.service-card:hover { border-color: var(--brass); }
.service-card .stamp-badge { margin-bottom: 1.25rem; }
.service-card h3 {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 1.65rem;
  font-weight: 500;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.service-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-light);
  margin: 0;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.5rem;
}
.service-tag {
  font-family: var(--font-data);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brass);
  border: 1px solid var(--rule);
  padding: 0.35rem 0.7rem;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-data);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-warm);
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 115, 85, 0.3);
  padding-bottom: 0.25rem;
  margin-top: 1.5rem;
  transition: color 0.2s, border-color 0.2s;
}
.service-link:hover { color: var(--ink); border-color: var(--brass); }
.service-link .arrow { display: inline-block; transition: transform 0.25s; }
.service-link:hover .arrow { transform: translateX(3px); }

/* ── Comparison table (IslandBook vs. the alternatives) ───────── */
.comparison-table {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
  font-family: var(--font-body);
}
.comparison-table thead tr { background: var(--parchment-dark); }
.comparison-table th {
  padding: 0.875rem 1.25rem;
  font-family: var(--font-data);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
}
.comparison-table th.col-feature { color: var(--brass); }
.comparison-table th.col-ours { color: var(--ink); }
.comparison-table th.col-theirs { color: var(--ink-light); }
.comparison-table tbody tr:nth-child(odd) { background: var(--parchment); }
.comparison-table tbody tr:nth-child(even) { background: rgba(250, 248, 243, 0.5); }
.comparison-table td {
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
}
.comparison-table td.cell-feature { font-weight: 500; color: var(--ink); }
.comparison-table td.cell-ours { color: var(--seafoam); font-weight: 500; }
.comparison-table td.cell-theirs { color: var(--ink-light); }

/* ── Stat grid (Custom / Per Operator …) ─────────────────────── */
.stat-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(var(--stat-cols, 3), minmax(0, 1fr));
}
.stat-block { text-align: center; }
.stat-value {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  margin: 0;
}
.stat-label {
  font-family: var(--font-data);
  font-size: 0.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brass);
  margin: 0.25rem 0 0;
}
.stat-detail {
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--ink-light);
  margin: 0.75rem 0 0;
}
.brand-dark .stat-detail { color: rgba(244, 240, 232, 0.4); }
/* Boxed/dark variant (the "checkout problem" economics cards) */
.stat-grid--boxed .stat-block {
  padding: 1.5rem;
  background: rgba(244, 240, 232, 0.05);
  border: 1px solid rgba(244, 240, 232, 0.1);
}
.brand-dark .stat-value { color: var(--gold); }
.brand-dark .stat-label { color: rgba(244, 240, 232, 0.5); }
.brand-dark .stat-grid--boxed .stat-value { color: var(--brass); font-size: 2rem; }
