/* Keepway web — shared design system.
   Ported from the iOS app's DesignTokens.swift so the site reads as the same product.
   Brand: "Travel, remembered." Monocle-meets-travel-journal — earthy, editorial, photo-first. */

:root {
  /* Palette (from DesignTokens.swift WM enum) */
  --bg: #f3efe6;          /* warm parchment */
  --card: #fbf8f1;        /* surface */
  --accent: #1f5c4d;      /* forest green — primary */
  --accent-warm: #b8722f; /* amber */
  --accent-warm-text: #9a5e26;
  --text-pri: #29302c;
  --text-sec: #5f6258;
  --text-mid: #7d8079;
  --text-muted: #a59f90;
  --text-faint: #9a958a;
  --ink: #1b231f;         /* near-black field */
  --border: rgba(41, 48, 44, 0.10);
  --hairline: rgba(41, 48, 44, 0.07);
  --row-bg: rgba(41, 48, 44, 0.035);

  --radius-card: 13px;
  --radius-hero: 20px;
  --radius-glass: 28px;

  --shadow-card: 0 3px 6px rgba(41, 48, 44, 0.06);
  --shadow-hero: 0 9px 14px rgba(27, 35, 31, 0.22);

  --serif: "Newsreader", ui-serif, "New York", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--sans);
  color: var(--text-pri);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

/* ---- Typography ---- */
.serif { font-family: var(--serif); }

.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Wordmark / logo ---- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.42em;
}
.brand { --mark-stroke: var(--accent); }
.brand.on-dark { --mark-stroke: var(--bg); }  /* parchment mark over photos */
.brand .mark { flex: 0 0 auto; display: block; }
.brand .wordmark {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  line-height: 1;
}
.brand.on-dark .wordmark { color: var(--bg); }
.brand .tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent-warm-text);
}
.brand.on-dark .tagline { color: var(--accent-warm); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 2px 4px rgba(31, 92, 77, 0.35);
}
.btn-primary:hover { text-decoration: none; box-shadow: 0 4px 10px rgba(31, 92, 77, 0.4); }
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}
.btn-secondary:hover { text-decoration: none; background: var(--row-bg); }
.btn[disabled], .btn.is-disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

/* ---- Store badges ---- */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  min-width: 168px;
}
.store-badge:hover { text-decoration: none; opacity: 0.9; }
.store-badge svg { flex: 0 0 auto; }
.store-badge > span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.store-badge .sb-small { font-size: 10px; line-height: 1.1; opacity: 0.85; }
.store-badge .sb-big { font-size: 17px; font-weight: 600; line-height: 1.15; }
/* "Coming soon" placeholder: full-opacity badge (reads as intentional, not broken),
   with the store name slightly dimmed and a small pill marking it unreleased. */
.store-badge.is-disabled {
  pointer-events: none;
  background: var(--ink);
}
.store-badge.is-disabled .sb-big { opacity: 0.72; }
.store-badge.is-disabled svg { opacity: 0.72; }
.store-badge .sb-soon {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-warm);
  background: rgba(184, 114, 47, 0.18);
  padding: 2px 7px;
  border-radius: 999px;
  margin-top: 3px;
}

/* ---- Card ---- */
.card {
  background: var(--card);
  border-radius: var(--radius-card);
  border: 0.5px solid var(--border);
  box-shadow: var(--shadow-card);
}

/* ---- Layout ---- */
.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 22px;
}
.center-col {
  max-width: 460px;
  margin: 0 auto;
  padding: 0 22px;
}

/* generic footer */
.site-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  padding: 40px 22px 48px;
}
.site-footer .brand { transform: scale(0.85); margin-bottom: 8px; }
.site-footer a { color: var(--text-sec); }

@media (max-width: 520px) {
  .store-badge { min-width: 0; flex: 1 1 auto; }
}
