/* Pantrio website. Colours follow the app's light theme (composeApp ui/theme/Theme.kt).
   The site is always light, also when the browser is set to dark mode. */
:root {
  color-scheme: light;
  --bg: #fbf7f2;
  --bg-low: #f7f1ea;
  --card: #ffffff;
  --text: #2a211c;
  --muted: #6b5d53;
  --accent: #e8603c;
  --accent-soft: #fde3d9;
  --on-accent-soft: #4a1a0a;
  --green: #2f9a72;
  --green-soft: #d6eede;
  --line: #e2d8ce;
  --red: #d9483b;
  --orange: #e8873a;
  --yellow: #b98a0e;
  --yellow-soft: #fdf3da;
  --blue: #2f6fae;
  --blue-soft: #e1edf8;
  --shadow: 0 18px 50px rgba(42, 33, 28, .14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
.muted { color: var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .8rem; padding-bottom: .8rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.25rem; text-decoration: none; color: var(--text); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-header nav { display: flex; gap: 1.1rem; font-weight: 600; font-size: .95rem; flex-wrap: wrap; justify-content: flex-end; }
.site-header nav a { text-decoration: none; color: var(--text); }
.site-header nav a:hover { color: var(--accent); }
.site-header nav a.lang { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--accent); color: #fff; font-weight: 700;
  padding: .75rem 1.3rem; border-radius: 999px; text-decoration: none;
  border: 0; font-size: 1rem; line-height: 1.2;
}
.btn:hover { filter: brightness(1.06); }
.btn.secondary { background: var(--accent-soft); color: var(--on-accent-soft); }
.badge {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--green-soft); color: var(--green); font-weight: 700;
  padding: .35rem .85rem; border-radius: 999px; font-size: .9rem;
}

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; padding: 3.5rem 1.25rem 3rem; }
.hero h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); font-weight: 800; margin: 1rem 0; overflow-wrap: anywhere; }
.hero > *, .step > *, .prep > * { min-width: 0; }
.hero .lead { font-size: 1.25rem; color: var(--muted); max-width: 34rem; margin-bottom: 1.6rem; }
.hero .actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.hero .note { color: var(--muted); font-size: .92rem; margin-top: 1rem; }
.hero .phone { justify-self: center; }

/* Phone frame around a screenshot. Screenshots are 720x1413 with the status bar
   and the Android navigation bar already cropped away (site/crop.ps1). */
.phone {
  width: min(300px, 80vw);
  aspect-ratio: 740 / 1433;
  border-radius: 34px;
  padding: 10px;
  background: #1c1714;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.phone .screen {
  width: 100%; height: 100%; overflow: hidden; border-radius: 26px;
  background: #fbf7f2; display: flex; align-items: center; justify-content: center;
  color: #6b5d53; font-size: .85rem; text-align: center; padding: 1rem;
}
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }

/* Sections */
section { padding: 3rem 0; }
section.alt { background: var(--bg-low); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head .eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; margin: .4rem 0 .6rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 1.35rem 1.35rem 1.2rem; }
.card .icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.45rem; background: var(--accent-soft); margin-bottom: .9rem;
}
.card .icon.green { background: var(--green-soft); }
.card .icon.blue { background: var(--blue-soft); }
.card .icon.yellow { background: var(--yellow-soft); }
.card h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.card p { color: var(--muted); font-size: .97rem; }

/* Colour legend (how rows look in the app) */
.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: .6rem; margin-top: 1.5rem; }
.row {
  display: flex; align-items: center; gap: .7rem; height: 50px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 0 .6rem 0 .5rem; position: relative; overflow: hidden; font-weight: 600;
}
.row .fill { position: absolute; inset: 0; width: var(--w, 0); z-index: 0; }
.row > * { position: relative; z-index: 1; }
.row .emoji { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--bg-low); font-size: 1.1rem; }
.row .name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .tag { font-size: .8rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; }
.row .qty { font-size: .85rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; background: var(--bg-low); color: var(--muted); }
.row.red .fill { background: #f7c9c3; } .row.red .tag { background: #fbe3e0; color: #b42b2b; }
.row.orange .fill { background: #fcd9b8; } .row.orange .tag { background: #fdebdb; color: #b45e10; }
.row.yellow .fill { background: #fce9b9; } .row.yellow .tag { background: #fdf3da; color: #8c6a0a; }
.row.green .tag { background: #e5f4eb; color: #2e8b5b; }
.row.frozen .tag { background: #e1edf8; color: #2f6fae; }
/* Guide: alternating text + phone */
.guide { display: grid; gap: 3.5rem; }
.step { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: center; }
.step:nth-child(even) { grid-template-columns: auto 1fr; }
.step:nth-child(even) .text { order: 2; }
.step .num {
  display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; margin-bottom: .8rem;
}
.step h3 { font-size: 1.45rem; font-weight: 800; margin-bottom: .6rem; }
.step p { color: var(--muted); margin-bottom: .7rem; }
.step ul { color: var(--muted); margin: 0; padding-left: 1.2rem; }
.step li { margin: .25rem 0; }
.step strong { color: var(--text); }
.step .phone { width: min(260px, 70vw); }

/* Preparedness strip */
.prep { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.coverage {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 1.25rem 1.35rem;
}
.coverage .title { font-weight: 800; display: flex; justify-content: space-between; margin-bottom: .9rem; }
.coverage .title span:last-child { color: var(--muted); font-weight: 600; font-size: .92rem; }
.coverage .bar { height: 10px; border-radius: 999px; background: var(--bg-low); overflow: hidden; margin: .35rem 0 .9rem; }
.coverage .bar i { display: block; height: 100%; border-radius: 999px; }
.coverage .bar i.ok { background: var(--green); }
.coverage .bar i.low { background: var(--orange); }
.coverage .line { display: flex; justify-content: space-between; font-weight: 600; }
.coverage .line b { color: var(--text); }
.coverage .foot { color: var(--muted); font-size: .9rem; margin-top: .4rem; }
.countries { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.countries span { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .75rem; font-size: .9rem; font-weight: 600; }

/* FAQ */
.faq { display: grid; gap: .6rem; max-width: 46rem; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: .2rem 1.1rem; }
summary { cursor: pointer; font-weight: 700; padding: .8rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-weight: 800; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); padding-bottom: 1rem; }

/* Promise */
.promise { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--green); border-radius: 16px; padding: 1.35rem 1.6rem; }
.promise h2 { font-size: 1.25rem; margin-bottom: .4rem; }
.promise p { color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 2rem; text-align: left; }
  .hero h1 br { display: none; }
  .site-header nav { gap: .8rem; font-size: .9rem; }
  .hero .phone { margin-top: 1rem; }
  .step, .step:nth-child(even) { grid-template-columns: 1fr; }
  .step:nth-child(even) .text { order: 0; }
  .step .phone { justify-self: center; }
  .prep { grid-template-columns: 1fr; }
}
