/* Bareuang - cozy minimal stylesheet
   Stack: no framework, mobile-first, GPU-only animations
   Sections: 1 tokens · 2 reset · 3 layout · 4 nav · 5 hero · 6 trust
             7 sections · 8 features · 9 how · 10 shots · 11 faq
             12 cta · 13 footer · 14 legal · 15 motion · 16 a11y/utility
*/

/* 1 - tokens */
:root {
  /* Role names mirror the Android theme; aliases keep existing selectors readable. */
  --brand-primary: #845400;
  --brand-primary-container: #f4a216;
  --brand-secondary: #396842;
  --surface: #fdf9f3;
  --surface-container: #f1ede7;
  --content-strong: #1c1c18;
  --content-muted: #524434;
  --outline: #857461;
  --outline-variant: #d8c3ad;
  --honey: var(--brand-primary-container);
  --honey-2: #ffb82e;
  --brown: var(--brand-primary);
  --brown-2: #6b4a12;
  --cream: #fff8e7;
  --cream-2: #fff1cc;
  --bg: var(--surface);
  --card: #ffffff;
  --text: var(--content-strong);
  --muted: var(--content-muted);
  --line: var(--outline-variant);
  --shadow: 0 8px 32px rgba(62, 42, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(62, 42, 0, 0.12);
  --max: 1120px;
}

/* 2 - reset */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body {
  margin: 0;
  font-family:
    "Plus Jakarta Sans",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}

/* 3 - layout */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 960px) {
  .container {
    padding: 0 24px;
  }
}

/* 4 - nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 252, 242, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition:
    box-shadow 0.25s,
    background 0.25s;
}
.nav.scrolled {
  box-shadow: 0 4px 24px rgba(62, 42, 0, 0.08);
  background: rgba(255, 252, 242, 0.92);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}
.brand--sm img {
  width: 32px;
  height: 32px;
}
.brand span {
  font-size: 18px;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}
.nav-links a {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--brown);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--honey);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}
.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-github {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  font-size: 13px;
  font-weight: 700;
  color: var(--brown-2) !important;
  text-decoration: none;
}
.nav-github:hover {
  border-color: var(--brand-primary);
  color: var(--brown) !important;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch button {
  border: 0;
  background: transparent;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  color: var(--muted);
  transition:
    background 0.18s,
    color 0.18s;
}
.lang-switch button.active {
  background: var(--brown);
  color: #fff;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hamburger {
  display: none;
  background: white;
  border: 1px solid var(--line);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.hamburger svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px;
  }
  .nav-links.open a {
    padding: 10px 0;
    border-bottom: 1px solid #fff1cc;
  }
  .hamburger {
    display: flex;
  }
  .nav-inner .btn-primary {
    display: none;
  }
  .nav-links.open .btn-primary {
    display: flex;
  }
  .nav-actions {
    gap: 8px;
  }
  .lang-switch button {
    padding: 5px 8px;
  }
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.18s,
    box-shadow 0.18s,
    background 0.18s,
    border-color 0.18s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0) scale(0.98);
}
.btn svg {
  flex: 0 0 auto;
}
.btn-primary {
  background: var(--brown);
  color: #fff !important;
}
.btn-primary:hover {
  background: #2e1f00;
  color: #fff !important;
}
.btn-primary svg {
  stroke: #fff;
}
.btn-ghost {
  background: white;
  border-color: var(--line);
  color: var(--brown-2) !important;
}
.btn-ghost:hover {
  border-color: var(--brand-primary);
  color: var(--brown) !important;
}
.btn-ghost svg {
  stroke: currentColor;
}

/* 5 - hero */
.hero {
  padding: 28px 0 12px;
}
.hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    padding: 24px 0;
  }
}
.eyebrow {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brown-2);
}
.hero h1 {
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 16px 0 14px;
  font-weight: 900;
}
@media (min-width: 600px) {
  .hero h1 {
    font-size: 48px;
  }
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--brand-primary) 0%, #a86100 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  color: var(--muted);
  font-size: 16px;
  max-width: 52ch;
  margin: 0 0 20px;
}
@media (min-width: 600px) {
  .hero p {
    font-size: 17px;
  }
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.hero-ctas .note {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.badges-row {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.phone-wrap {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.phone-wrap:hover {
  transform: translateY(-2px);
}
.phone-wrap img {
  border-radius: 20px;
  width: 100%;
  aspect-ratio: 9/19.5;
  object-fit: cover;
  object-position: top;
}
.phone-float {
  position: absolute;
  left: -10px;
  bottom: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 210px;
}
.phone-float svg {
  flex: 0 0 auto;
}
.phone-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
@media (max-width: 900px) {
  .phone-float {
    left: 8px;
    right: 8px;
    bottom: 12px;
  }
}
.phone-float strong {
  font-size: 14px;
  display: block;
  line-height: 1.1;
}
.phone-float span {
  font-size: 12px;
  color: var(--muted);
}

/* 6 - trust */
.trust {
  padding: 18px 0;
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px 16px;
}
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badge {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 7px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.badge svg {
  flex: 0 0 auto;
  opacity: 0.9;
}
.trust p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* 7 - sections */
.section {
  padding: 40px 0;
}
@media (min-width: 900px) {
  .section {
    padding: 64px 0;
  }
}
.section-head {
  max-width: 640px;
  margin: 0 auto 28px;
  text-align: center;
}
.section-head h2 {
  font-size: 28px;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  font-weight: 900;
}
@media (min-width: 600px) {
  .section-head h2 {
    font-size: 34px;
  }
}
.section-head p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}
.kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 8px;
}
.section--alt {
  background: white;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--cream {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* 8 - features */
.grid-features {
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .grid-features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .grid-features {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s,
    border-color 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary);
}
.feature-card--primary {
  border-color: var(--brand-primary);
  background: var(--cream);
}
@media (min-width: 640px) {
  .feature-card--primary {
    grid-column: 1 / -1;
  }
}
@media (min-width: 960px) {
  .feature-card--primary {
    grid-column: span 2;
  }
}
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--brown-2);
}
.card-icon svg {
  width: 18px;
  height: 18px;
}
.card h3 {
  font-size: 15px;
  margin: 12px 0 6px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.card p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* 9 - how */
.steps {
  display: grid;
  gap: 16px;
}
@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.step {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s,
    border-color 0.25s;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary);
}
.step-num {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--brand-primary);
}
.step h3 {
  margin: 8px 0 6px;
  font-size: 16px;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

/* 10 - shots */
.shots {
  display: flex;
  gap: 14px;
  overflow: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.shots::-webkit-scrollbar {
  height: 6px;
}
.shots figure {
  flex: 0 0 300px;
  scroll-snap-align: start;
  margin: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 10px;
  box-shadow: var(--shadow);
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s;
}
.shots figure:hover { transform: translateY(-3px) scale(1.015); }
.shots img {
  border-radius: 16px;
  width: 100%;
  height: auto;
  aspect-ratio: 9/19.5;
  object-fit: contain;
  background: var(--bg);
}
.shots figcaption {
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  margin-top: 8px;
  color: var(--brown-2);
}

/* 11 - faq */
.faq {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}
.faq details {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.faq details[open] {
  border-color: #e8c86a;
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq details[open] summary {
  margin-bottom: 8px;
}
.faq summary svg {
  flex: 0 0 auto;
  transition: transform 0.2s;
}
.faq details[open] summary svg {
  transform: rotate(45deg);
}
.faq p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

/* 12 - cta */
.cta {
  background: var(--brown);
  color: white;
  border-radius: 28px;
  padding: 28px 20px;
  display: grid;
  gap: 18px;
  align-items: center;
}
@media (min-width: 800px) {
  .cta {
    grid-template-columns: 1.2fr 0.8fr;
    padding: 32px;
  }
}
.cta h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.cta p {
  margin: 8px 0 0;
  color: #e8d9b8;
  font-size: 14px;
}
.cta .btn {
  background: white;
  color: var(--brown) !important;
}
.cta .btn:hover {
  background: var(--cream);
  color: var(--brown) !important;
}
.cta .btn svg {
  stroke: var(--brown);
}
.cta .btn-outline {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.35);
}
.cta .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff !important;
}
.cta .btn-outline svg {
  stroke: #fff;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

/* 13 - footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 32px;
  margin-top: 16px;
}
.footer-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.3fr 0.7fr 0.7fr;
  }
}
.footer-meta {
  font-size: 13px;
  color: var(--muted);
}
.footer-desc {
  margin: 8px 0 0;
}
.footer-contact {
  margin-top: 12px;
}
.footer-contact a {
  display: inline;
  color: var(--brown-2);
  text-decoration: underline;
}
.footer h4 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.footer a {
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  display: block;
  padding: 4px 0;
}
.footer a:hover {
  color: var(--brown);
  text-decoration: underline;
}
.subfooter {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

/* 14 - legal */
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}
@media (max-width: 480px) {
  .legal {
    padding-left: 14px;
    padding-right: 14px;
  }
}
.legal h1 {
  font-size: 30px;
  letter-spacing: -0.03em;
  margin: 8px 0;
}
.legal .meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}
.prose {
  font-size: 14.5px;
  line-height: 1.75;
  color: #2b1e00;
}
.prose h2 {
  font-size: 18px;
  margin: 28px 0 8px;
  letter-spacing: -0.02em;
}
.prose h3 {
  font-size: 15px;
  margin: 20px 0 6px;
}
.prose p {
  margin: 0 0 12px;
}
.prose ul {
  margin: 0 0 12px 18px;
}
.prose a {
  color: var(--brown-2);
  text-decoration: underline;
}
.toc {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 16px 0;
}
.toc-title {
  font-size: 13px;
}
.toc a {
  font-size: 13px;
  text-decoration: none;
  color: var(--muted);
}
.toc a:hover {
  color: var(--brown);
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: var(--brown-2);
  margin-bottom: 8px;
}
.callout {
  margin-top: 24px;
  padding: 12px 14px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
}
.highlight {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 6px;
}

/* 15 - motion: state changes and interaction transitions only */

/* 16 - a11y / utility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--brown);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  z-index: 100;
}
.skip-link:focus {
  left: 12px;
}
:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--outline);
  outline-offset: 3px;
}
.lang-switch button {
  min-width: 44px;
  min-height: 44px;
}
@media (max-width: 860px) {
  .nav-links.open a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .shots figure { flex: 0 0 260px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 30px; }
  .container { padding: 0 16px; }
  .cta { padding: 22px 16px; }
  .phone-wrap { padding: 10px; border-radius: 24px; }
  .shots figure { flex: 0 0 240px; }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* toast for download fallback */
.toast{
  position:fixed; left:50%; bottom:24px; transform:translateX(-50%) translateY(12px);
  background:var(--brown); color:#fff; padding:12px 16px; border-radius:12px;
  font-size:13px; font-weight:600; box-shadow:var(--shadow-lg);
  opacity:0; pointer-events:none; transition:opacity .25s, transform .25s; z-index:99;
  max-width:90vw; text-align:center;
}
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }
