/*
  RecyApp website · built on the RecyApp graphic line.
  Layout: one 1120px column; each section is a band. Depth comes from a solid "lip", never glow.
  Tokens follow the RecyApp Dark Mode Pattern v2 (light value → dark value).
*/
:root {
  --bg: #fcfdf4;
  --surface: #e9f8dc;
  --raised: #ffffff;
  --border: #dae1d3;
  --text: #002112;
  --text-2: #57685a;
  --primary: #43b43a;
  --primary-lip: #008b1d;
  --primary-fg: #fcfdf4;
  --lime: #b3e14d;
  --cream: #fdf6d8;
  --sky: #7bd0f9;
  --sky-strong: #1cb0f6;
  --warning: #fdc436;
  --halo-a: #fdf6d8;
  --halo-b: #e9f8dc;
  --bezel: #002112;
  --link: #008b1d;

  --font-display: "Varela Round", "Nunito", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Poppins", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 20px;
  --radius-sm: 14px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f171b;
    --surface: #1b2b33;
    --raised: #243640;
    --border: #37464f;
    --text: #f1f7fb;
    --text-2: #8fa3ad;
    --lime: #93d333;
    --cream: #1b2b33;
    --sky: #1cb0f6;
    --halo-a: rgba(253, 246, 216, 0.10);
    --halo-b: rgba(67, 180, 58, 0.16);
    --bezel: #000000;
    --link: #93d333;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0f171b;
  --surface: #1b2b33;
  --raised: #243640;
  --border: #37464f;
  --text: #f1f7fb;
  --text-2: #8fa3ad;
  --lime: #93d333;
  --cream: #1b2b33;
  --sky: #1cb0f6;
  --halo-a: rgba(253, 246, 216, 0.10);
  --halo-b: rgba(67, 180, 58, 0.16);
  --bezel: #000000;
  --link: #93d333;
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--sky-strong); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.6rem); line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.4rem); line-height: 1.15; }
h3 { font-size: 1.375rem; line-height: 1.25; }
p { margin: 0; }

.wrap {
  max-width: var(--max); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; }
.skip:focus { top: 12px; }

/* Buttons: flat face + solid lip, pressed on click */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 16px;
  font-family: var(--font-body); font-size: 0.9375rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; border: 0; transition: transform 80ms ease, box-shadow 80ms ease, filter 120ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--primary); color: var(--primary-fg); box-shadow: 0 4px 0 var(--primary-lip); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-secondary {
  background: var(--raised); color: var(--text);
  border: 2px solid var(--border); box-shadow: 0 4px 0 var(--border);
}
.btn-secondary:hover { background: var(--surface); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 transparent; }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 0.8125rem; border-radius: 13px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--raised); color: var(--text-2);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; font-size: 0.8125rem; font-weight: 500;
}
.chip svg { width: 16px; height: 16px; color: var(--primary); flex: none; }

.eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary-lip);
}
:root[data-theme="dark"] .eyebrow { color: var(--lime); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eyebrow { color: var(--lime); } }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { width: 28px; height: auto; }
.brand span { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 12px;
  color: var(--text-2); text-decoration: none; font-size: 0.9375rem; font-weight: 500;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 13px; border: 2px solid var(--border); background: var(--raised);
  color: var(--text); cursor: pointer; box-shadow: 0 3px 0 var(--border);
}
.icon-btn:active { transform: translateY(3px); box-shadow: none; }
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn { display: none; }
.header-cta { margin-left: 6px; }

/* Language switcher with flags */
.lang-switch {
  display: inline-flex; padding: 3px; gap: 2px; border-radius: 14px;
  background: var(--raised); border: 2px solid var(--border);
}
.lang-switch button {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 9px;
  border: 0; border-radius: 10px; background: transparent; color: var(--text-2);
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; cursor: pointer;
}
.lang-switch button:hover { color: var(--text); background: var(--surface); }
.lang-switch button[aria-pressed="true"] { background: var(--primary); color: var(--primary-fg); }
.lang-switch .flag { width: 18px; height: 12px; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px var(--border); }

/* "In progress" state for download buttons */
.btn { white-space: nowrap; }
.btn.soon { position: relative; cursor: help; }
/* Small tag that sits on the button's top-right corner, so the label keeps its full width */
.soon-pill {
  position: absolute; top: -12px; right: -10px;
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 10px 0 8px;
  border-radius: 999px; border: 2px solid var(--bg);
  background: var(--warning); color: #3d2a00;
  font-family: var(--font-body); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.01em;
  text-transform: none; white-space: nowrap; line-height: 1;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12); pointer-events: none;
}
.soon-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3d2a00; opacity: 0.7; }
.cta-card .soon-pill { border-color: var(--primary); }
.btn-sm .soon-pill { top: -10px; right: -12px; height: 20px; font-size: 0.625rem; }
.btn.soon:not(.btn-light) { background: color-mix(in srgb, var(--primary) 82%, var(--bg)); }

.screens-note { margin-top: 16px; font-size: 0.8125rem; color: var(--text-2); }

.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.cta-actions .btn-light { margin-top: 0; }
.btn-ghost-light { background: transparent; color: #ffffff; border: 2px solid rgba(255, 255, 255, 0.75); box-shadow: 0 4px 0 #00591a; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); }

/* Hero */
.hero { padding-block: 56px 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px; align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero-copy .lead { font-size: 1.125rem; color: var(--text-2); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 4px; }
.hero-note { font-size: 0.875rem; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 18px; height: 18px; color: var(--primary); }

.stage { position: relative; display: grid; place-items: center; min-height: 440px; }
.halo {
  position: absolute; width: min(440px, 92%); aspect-ratio: 1; max-width: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--halo-a), var(--halo-b) 70%);
  border: 1px solid var(--border);
}
.stage .fraile { position: relative; width: min(340px, 74%); animation: bob 5s ease-in-out infinite; }
.bubble {
  position: absolute; top: 4%; left: 6%;
  background: var(--raised); color: var(--text); border: 2px solid var(--border);
  border-radius: 18px; padding: 10px 16px; font-family: var(--font-display); font-size: 1.125rem;
  box-shadow: 0 4px 0 var(--border); display: flex; align-items: center; gap: 8px;
}
.bubble svg { width: 18px; height: 18px; color: var(--primary); }
.bubble::after {
  content: ""; position: absolute; bottom: -9px; left: 34px; width: 14px; height: 14px;
  background: var(--raised); border-right: 2px solid var(--border); border-bottom: 2px solid var(--border);
  transform: rotate(45deg);
}
.badge {
  position: absolute; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  border: 4px solid var(--raised); box-shadow: 0 4px 0 var(--border);
}
.badge svg { width: 26px; height: 26px; }
.badge.home { background: var(--primary); }
.badge.truck { background: var(--sky-strong); }
.badge.store { background: var(--warning); color: #3d2a00; }
.stage .badge.home { right: 10%; top: 22%; }
.stage .badge.truck { right: 2%; bottom: 26%; }
.stage .badge.store { left: 4%; bottom: 18%; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Generic section */
.band { padding-block: 84px; }
.band.alt { background: var(--surface); }
.section-head { display: grid; gap: 12px; max-width: 42rem; margin-bottom: 40px; }
.section-head p { color: var(--text-2); font-size: 1.0625rem; }
.section-head.center { text-align: center; margin-inline: auto; justify-items: center; }

/* Roles */
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.role {
  background: var(--raised); border: 2px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 5px 0 var(--border);
  padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.role-art {
  position: relative; border-radius: 16px; aspect-ratio: 5 / 4; max-width: 100%;
  background: linear-gradient(135deg, var(--halo-a), var(--halo-b));
  display: grid; place-items: center; overflow: hidden;
}
.role-art img { height: 86%; width: auto; }
.role-art .badge { right: 12px; bottom: 12px; width: 50px; height: 50px; }
.role-art .badge svg { width: 22px; height: 22px; }
.role p { color: var(--text-2); }
.role .gain {
  margin-top: auto; display: flex; align-items: center; gap: 8px;
  font-size: 0.875rem; font-weight: 600; color: var(--text);
}
.role .gain svg { width: 18px; height: 18px; color: var(--primary); flex: none; }
.role .more { font-size: 0.9375rem; font-weight: 600; }

/* How it works */
.how { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: center; }
.progress { height: 14px; border-radius: 999px; background: var(--raised); border: 1px solid var(--border); overflow: hidden; margin-bottom: 22px; }
.progress span { display: block; height: 100%; width: 25%; background: var(--primary); border-radius: 999px; transition: width 320ms ease; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.step {
  width: 100%; text-align: left; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start;
  background: var(--raised); color: var(--text); border: 2px solid var(--border); border-radius: 18px;
  padding: 16px 18px; cursor: pointer; font: inherit; box-shadow: 0 4px 0 var(--border);
  transition: border-color 150ms ease, transform 80ms ease;
}
.step:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--border); }
.step .n {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: var(--text-2); font-family: var(--font-display); font-size: 1.125rem;
  border: 2px solid var(--border);
}
.step strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; line-height: 1.3; }
.step span.t { display: block; color: var(--text-2); font-size: 0.9375rem; margin-top: 2px; }
.step[aria-selected="true"] { border-color: var(--primary); box-shadow: 0 4px 0 var(--primary-lip); }
.step[aria-selected="true"] .n { background: var(--primary); color: var(--primary-fg); border-color: var(--primary-lip); }

.phone {
  width: 300px; max-width: 100%; aspect-ratio: 9 / 19.6; border-radius: 46px; padding: 11px;
  background: var(--bezel); box-shadow: 0 6px 0 var(--primary-lip), 0 0 0 1px var(--border);
  position: relative; justify-self: center;
}
.phone .screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; position: relative; background: var(--bg); }
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transition: opacity 260ms ease; }
.phone img.active { opacity: 1; }

.on-dark { display: none !important; }
:root[data-theme="dark"] .on-dark { display: block !important; }
:root[data-theme="dark"] .on-light { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .on-dark { display: block !important; }
  :root:not([data-theme="light"]) .on-light { display: none !important; }
}

/* Award */
.award {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 36px; align-items: center;
  background: var(--raised); border: 2px solid var(--border); border-radius: 28px;
  box-shadow: 0 6px 0 var(--border); padding: 36px 40px;
}
.award-art { width: 200px; aspect-ratio: 1; max-width: 100%; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, var(--halo-a), var(--halo-b) 70%); border: 1px solid var(--border); }
.award-art img { width: 78%; }
.award-copy { display: grid; gap: 14px; justify-items: start; }
.award-copy p { color: var(--text-2); max-width: 40rem; }
.prizes { display: flex; flex-wrap: wrap; gap: 10px; }
.prize {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; padding: 8px 14px;
  background: var(--cream); border: 1px solid var(--border); font-weight: 600; font-size: 0.875rem;
}
.prize svg { width: 18px; height: 18px; color: #c98a00; }
:root[data-theme="dark"] .prize svg { color: var(--warning); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .prize svg { color: var(--warning); } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details {
  background: var(--raised); border: 2px solid var(--border); border-radius: 18px;
  box-shadow: 0 4px 0 var(--border);
}
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-display); font-size: 1.1875rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm {
  width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface); color: var(--text); transition: transform 200ms ease;
}
.faq summary .pm svg { width: 16px; height: 16px; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--primary); color: var(--primary-fg); }
.faq .answer { padding: 0 22px 20px; color: var(--text-2); max-width: 44rem; }

/* Team */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.member {
  background: var(--raised); border: 2px solid var(--border); border-radius: 18px; box-shadow: 0 4px 0 var(--border);
  padding: 20px; display: grid; gap: 12px; justify-items: start; min-width: 0;
}
.avatar {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.25rem; color: var(--text);
  background: var(--surface); border: 2px solid var(--border);
}
.member .who { font-family: var(--font-display); font-size: 1.1875rem; line-height: 1.25; }
.member .role-name { color: var(--text-2); font-size: 0.875rem; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.contact-intro { display: grid; gap: 16px; justify-items: start; }
.contact-intro p { color: var(--text-2); max-width: 30rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list li {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  background: var(--raised); border: 2px solid var(--border); border-radius: 16px; padding: 14px 16px;
}
.contact-list .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--primary); }
.contact-list .ico svg { width: 22px; height: 22px; }
.contact-list .k { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.contact-list .v { font-weight: 500; color: var(--text); overflow-wrap: anywhere; text-decoration: none; }
.contact-list a.v:hover { text-decoration: underline; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }

/* Final CTA */
.cta-band { padding-block: 72px 84px; }
.cta-card {
  position: relative; overflow: hidden;
  background: var(--primary); color: var(--primary-fg); border-radius: 32px;
  box-shadow: 0 8px 0 var(--primary-lip);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
  padding: 40px 48px;
}
.cta-card h2 { color: #ffffff; }
.cta-card p { color: #f1fbe9; margin-top: 10px; max-width: 32rem; }
.cta-card .btn-light { background: #ffffff; color: #00591a; box-shadow: 0 4px 0 #00591a; margin-top: 22px; }
.cta-card img { width: 210px; max-width: 100%; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding-block: 28px; color: var(--text-2); font-size: 0.875rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: var(--text-2); }

.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 500; z-index: 60;
}

/* Responsive */
@media (max-width: 1279px) { .lang-switch .code { display: none; } .lang-switch button { padding: 0 8px; } }
@media (max-width: 1179px) { .header-cta { display: none; } }
@media (max-width: 960px) {
  .nav-links a { padding: 8px 9px; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero { padding-block: 32px 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 12px; }
  .stage { min-height: 360px; order: -1; }
  .roles { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .how { grid-template-columns: 1fr; gap: 36px; }
  .phone { order: -1; width: 260px; }
  .award { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 28px 22px; }
  .award-copy { justify-items: center; }
  .prizes { justify-content: center; }
  .contact { grid-template-columns: 1fr; }
  .cta-card { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 32px 22px; }
  .cta-card p { margin-inline: auto; }
  .cta-card img { width: 160px; order: -1; }
}
@media (max-width: 1023px) {
  .menu-btn { display: inline-grid; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 2px; background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 10px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px));
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; font-size: 1rem; }
}
@media (max-width: 760px) {
  .band { padding-block: 64px; }
}
@media (max-width: 480px) {
  .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .team { grid-template-columns: 1fr; }
  .bubble { font-size: 1rem; left: 0; }
  .badge { width: 50px; height: 50px; }
  .contact-list li { grid-template-columns: 40px minmax(0, 1fr); }
  .contact-list li .btn { grid-column: 1 / -1; }
  .lang-switch .code { display: none; }
  .lang-switch button { padding: 0 7px; }
  .brand span { font-size: 1.3rem; }
  .cta-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage .fraile { animation: none; }
  .progress span, .phone img { transition: none; }
}
