/* tupalomar.com — the app's look on the web. Colours mirror mobile/src/lib/theme.ts:
   the Cuban-flag blue #002a8f leads, every other blue is that hue moved in lightness,
   red is never brand. The header band is navy in both themes: it is a brand surface. */

:root {
  --bg: #f2f3f5;
  --card: #ffffff;
  --text: #1c1c1e;
  --muted: #5b6068;
  --primary: #002a8f;
  --primary-dark: #001f6b;
  --primary-soft: #e5e9f6;
  --border: #e6e8eb;
  --gold: #d99a06;
  --gold-soft: #fdf3d7;
  --ink-top: #00256f;
  --ink-bottom: #001750;
  --on-ink: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 6px 18px rgba(0, 42, 143, 0.08);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131417;
    --card: #1e2024;
    --text: #f2f3f5;
    --muted: #9aa0a8;
    --primary: #5584f1;
    --primary-dark: #3366db;
    --primary-soft: #16213b;
    --border: #2c2f34;
    --gold: #e0a818;
    --gold-soft: #3a2f12;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 18px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  width: min(100% - 40px, 1040px);
  margin-inline: auto;
}

/* ---- the ink band --------------------------------------------------------- */

.band {
  position: relative;
  overflow: hidden;
  color: var(--on-ink);
  background: linear-gradient(160deg, var(--ink-top), var(--ink-bottom));
  padding-bottom: 36px;
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/tile-texture.png") repeat;
  opacity: 0.16;
  pointer-events: none;
}

.band > * {
  position: relative;
}

.band a {
  color: var(--on-ink);
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.12em;
}

.brand img {
  width: 36px;
  height: 36px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  font-weight: 600;
  font-size: 15.5px;
}

nav a {
  text-decoration: none;
  opacity: 0.9;
}

nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

nav .lang {
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  opacity: 1;
}

.band h1 {
  font-weight: 900;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 16px 0 6px;
}

.band .sub {
  margin: 0;
  font-size: 17px;
  opacity: 0.85;
}

/* ---- home hero ------------------------------------------------------------ */

.hero {
  padding-bottom: 64px;
}

.herobody {
  padding-top: 28px;
  max-width: 720px;
}

.herobird {
  width: 150px;
  height: 150px;
  margin-left: -6px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 64px);
  margin: 6px 0 14px;
}

.lead {
  font-size: clamp(19px, 2.4vw, 23px);
  line-height: 1.45;
  margin: 0 0 26px;
  opacity: 0.92;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.pill {
  display: inline-block;
  padding: 10px 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}

/* ---- home body ------------------------------------------------------------ */

main.home section {
  margin-top: 40px;
}

main.home section:last-child {
  margin-bottom: 56px;
}

.label {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.label.gold {
  color: var(--gold);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 16px;
}

.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 18px;
}

.card h3,
.promise h3,
.pro h3 {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 21px;
  line-height: 1.25;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.promise {
  background: var(--primary-soft);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
}

.promise p {
  margin: 0;
}

.pro {
  color: #ffffff;
  background: linear-gradient(160deg, #002a8f, #0c3fb8, #001c63);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px 22px;
}

.pro h3 {
  font-size: 26px;
}

.pro p {
  margin: 0 0 10px;
  opacity: 0.92;
}

.pro .price {
  font-size: 20px;
  margin-top: 16px;
}

.pro .price strong {
  font-weight: 900;
  font-size: 26px;
  color: #ffd45c;
}

.pro .small {
  font-size: 15px;
  opacity: 0.75;
  margin: 0;
}

/* ---- articles (legal, support) -------------------------------------------- */

main.article {
  padding: 8px 0 56px;
}

main.article .wrap {
  max-width: 760px;
}

.intro {
  font-size: 20px;
  line-height: 1.55;
  margin: 28px 0 8px;
}

main.article h2 {
  font-weight: 800;
  font-size: 24px;
  line-height: 1.25;
  margin: 40px 0 12px;
}

main.article p,
main.article li {
  margin: 0 0 12px;
}

main.article ul,
main.article ol {
  padding-left: 24px;
}

main.article li {
  margin-bottom: 10px;
}

dl {
  margin: 0;
}

dt {
  font-weight: 700;
  margin-top: 22px;
}

dd {
  margin: 6px 0 0;
  color: var(--muted);
}

.contact {
  margin-top: 44px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  font-size: 19px;
}

.contact p {
  margin: 0;
}

/* ---- footer --------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--border);
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 15px;
}

footer p {
  margin: 0 0 8px;
}

footer .links {
  font-weight: 600;
}

@media (max-width: 600px) {
  body {
    font-size: 17px;
  }

  .top {
    padding: 14px 0;
  }

  nav {
    gap: 4px 16px;
    font-size: 15px;
  }

  .herobird {
    width: 110px;
    height: 110px;
  }
}
