/* ─────────────────────────────────────────────
   McBurrows Nua — Brand Tokens
───────────────────────────────────────────── */
:root {
  --orange:      #EF7722;
  --orange-lt:   #FAA533;
  --blue:        #0BA6DF;
  --accent-warm: #FFF0E5;
  --kept:        #9AB17A;
  --kept-warm:   #EEF4E6;
  --ink:         #111118;
  --ink-2:       #3D3A52;
  --ink-3:       #72708A;
  --ink-4:       #A8A6BC;
  --border:      rgba(239, 119, 34, 0.12);
  --border-2:    rgba(0, 0, 0, 0.06);
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 20px rgba(239, 119, 34, 0.14), 0 2px 6px rgba(0,0,0,0.05);
  --radius-sm:   8px;
  --radius:      16px;
  --radius-lg:   24px;
  --font:        "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --max-w:       1040px;
  --nav-h:       60px;
  --bg:          #ffffff;
  --bg-2:        #FAFAFA;
  --footer-bg:   #1A1A1A;
}

/* ─────────────────────────────────────────────
   Dark Mode
───────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:          #0F0F14;
  --bg-2:        #141418;
  --footer-bg:   #111111;
  --ink:         #F2F2F7;
  --ink-2:       #C7C7CC;
  --ink-3:       #8E8E93;
  --ink-4:       #48484A;
  --border:      rgba(239, 119, 34, 0.2);
  --border-2:    rgba(255, 255, 255, 0.08);
  --accent-warm: rgba(239, 119, 34, 0.14);
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md:   0 4px 20px rgba(239, 119, 34, 0.22), 0 2px 6px rgba(0,0,0,0.4);
}

/* ─────────────────────────────────────────────
   Reset
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ─────────────────────────────────────────────
   Layout helpers
───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section-heading {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--ink-3);
  max-width: 520px;
  line-height: 1.75;
  margin: 0 auto 40px;
}

.text-orange { color: var(--orange); }
.text-blue   { color: var(--blue); }
.text-green  { color: var(--kept); }

.section-chip {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 20px;
}
[data-theme="dark"] .section-chip { background: #F5F5F7; color: #1A1A1A; }

/* ─────────────────────────────────────────────
   Buttons
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.btn--primary:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.24);
  transform: translateY(-1px);
}

.btn--disabled {
  background: #E5E5E5;
  color: #ABABAB;
  cursor: not-allowed;
  box-shadow: none;
}
.btn--disabled:active { transform: none; }
[data-theme="dark"] .btn--disabled { background: #2C2C2E; color: #636366; }

.btn--ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1.5px solid var(--border-2);
}
.btn--ghost:hover {
  background: #f5f5f7;
  border-color: rgba(0,0,0,0.1);
}
[data-theme="dark"] .btn--ghost {
  color: var(--ink-2);
  border-color: rgba(255,255,255,0.12);
}
[data-theme="dark"] .btn--ghost:hover { background: rgba(255,255,255,0.06); }

.btn--coffee {
  background: #FFDD00;
  color: #111118;
  font-size: 1rem;
  font-weight: 700;
  padding: 15px 32px;
  box-shadow: 0 4px 16px rgba(255, 221, 0, 0.4);
}
.btn--coffee:hover {
  box-shadow: 0 6px 24px rgba(255, 221, 0, 0.55);
  transform: translateY(-1px);
}

/* ─────────────────────────────────────────────
   Nav
───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-2);
  transition: box-shadow 0.2s, background 0.2s;
}
[data-theme="dark"] .nav {
  background: rgba(15, 15, 20, 0.88);
}
.nav.scrolled { box-shadow: 0 1px 16px rgba(0,0,0,0.08); }

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.03em;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav__logo.visible { opacity: 1; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav__links a {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-3);
  transition: background 0.15s, color 0.15s;
}
.nav__links a:hover {
  background: #f5f5f7;
  color: var(--ink);
}
[data-theme="dark"] .nav__links a:hover { background: rgba(255,255,255,0.07); }
.nav__links a.active {
  background: #1A1A1A;
  color: #fff;
  font-weight: 600;
}
[data-theme="dark"] .nav__links a.active {
  background: #F5F5F7;
  color: #1A1A1A;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border-2);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
  padding: 0;
  color: var(--ink-3);
}
.nav__theme-toggle:hover         { background: #f5f5f7; }
[data-theme="dark"] .nav__theme-toggle:hover { background: rgba(255,255,255,0.07); }

/* Show moon in light mode, sun in dark mode */
.theme-icon--night { display: block; }
.theme-icon--day   { display: none;  }
[data-theme="dark"] .theme-icon--night { display: none;  }
[data-theme="dark"] .theme-icon--day   { display: block; }

@media (max-width: 560px) {
  .nav__links a { padding: 5px 10px; font-size: 0.82rem; }
}

/* ─────────────────────────────────────────────
   Hero
───────────────────────────────────────────── */
.hero {
  padding: calc(var(--nav-h) + 64px) 0 72px;
  text-align: center;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}

.hero__studio {
  opacity: 0;
  animation: fadeUp 0.5s ease 0.05s forwards;
}

.hero__studio-name {
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 16px;
}

.hero__studio-sub {
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  color: var(--ink-3);
  line-height: 1.7;
}

/* ─────────────────────────────────────────────
   Apps Grid
───────────────────────────────────────────── */
.apps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
}
@media (min-width: 700px) {
  .apps-grid { grid-template-columns: 1fr 1fr; }
}

.app-card {
  position: relative;
  background: var(--bg);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 40px 32px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
  overflow: hidden;
}
[data-theme="dark"] .app-card { background: #1C1C1E; border-color: rgba(255,255,255,0.08); }

.app-card__accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.app-card__accent--forage { background: var(--orange); }
.app-card__accent--kept   { background: var(--kept); }

.app-card__icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.app-card__name {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 8px;
}

.app-card__tagline {
  font-size: 0.95rem;
  color: var(--ink-3);
  line-height: 1.6;
  margin-bottom: 28px;
}

.app-card__pills {
  margin-bottom: 40px;
  max-width: 100%;
}

.app-card .btn {
  width: auto;
  min-width: 220px;
}

/* ─────────────────────────────────────────────
   App Showcase (screenshots per app)
───────────────────────────────────────────── */
.app-showcase {
  position: relative;
  padding: 56px 0 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(239,119,34,0.07) 0%, rgba(239,119,34,0.0) 70%);
  text-align: center;
}
.app-showcase--kept {
  background: linear-gradient(180deg, rgba(154,177,122,0.09) 0%, rgba(154,177,122,0.0) 70%);
}
[data-theme="dark"] .app-showcase {
  background: linear-gradient(180deg, rgba(239,119,34,0.1) 0%, rgba(239,119,34,0.0) 70%);
}
[data-theme="dark"] .app-showcase--kept {
  background: linear-gradient(180deg, rgba(154,177,122,0.12) 0%, rgba(154,177,122,0.0) 70%);
}

/* fade phones out at the bottom */
.app-showcase::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.app-showcase__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 40px;
}
.app-showcase__label img {
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.app-showcase__label span {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.app-showcase__label--kept { color: var(--ink); }

.screenshots__phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 8px;
  padding-bottom: 48px;
}

.phone {
  flex: 0 0 auto;
  width: min(230px, 44vw);
  border-radius: 48px;
  overflow: hidden;
  border: 1.5px solid rgba(0, 0, 0, 0.07);
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.10),
    0 8px 24px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.03);
  position: relative;
}

.phone img {
  width: 100%;
  height: auto;
  display: block;
}

.phone--left  { z-index: 2; margin-right: -28px; animation: jiggle-l 2.4s ease-in-out infinite; }
.phone--mid   { z-index: 3; margin-top: 52px;    animation: jiggle-m 2.8s ease-in-out infinite 0.3s; }
.phone--right { z-index: 2; margin-left: -28px;  animation: jiggle-r 2.6s ease-in-out infinite 0.15s; }

@keyframes jiggle-l {
  0%, 100% { transform: rotate(-2deg); }
  50%       { transform: rotate(-0.5deg); }
}
@keyframes jiggle-m {
  0%, 100% { transform: rotate(0.5deg) translateY(0); }
  50%       { transform: rotate(-0.5deg) translateY(-4px); }
}
@keyframes jiggle-r {
  0%, 100% { transform: rotate(2deg); }
  50%       { transform: rotate(0.5deg); }
}

@media (max-width: 560px) {
  .phone { width: min(120px, 30vw); border-radius: 28px; }
  .phone--left  { margin-right: -18px; }
  .phone--mid   { margin-top: 36px; }
  .phone--right { margin-left: -18px; }
}

/* ─────────────────────────────────────────────
   Feature Pills
───────────────────────────────────────────── */
.text-center {
  text-align: center;
  margin: 0 auto 36px;
}

.features-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 680px;
  margin-inline: auto;
}

.fpill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
  background: #fff;
  border: 1.5px solid var(--border-2);
  border-radius: 100px;
  padding: 8px 16px;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .fpill:not(.fpill--accent):not(.fpill--kept-accent) { background: #1C1C1E; border-color: rgba(255,255,255,0.08); }

.fpill--accent {
  background: var(--orange);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(239, 119, 34, 0.32);
}

.fpill--kept-accent {
  background: var(--kept);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(154, 177, 122, 0.35);
}

/* ─────────────────────────────────────────────
   About
───────────────────────────────────────────── */
.about {
  padding: 96px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: start;
}
@media (min-width: 760px) {
  .about__inner { grid-template-columns: 1fr 280px; gap: 80px; }
}

.about__content .section-heading { margin-bottom: 24px; }

.about__content p {
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.8;
  margin-bottom: 18px;
}

.about__quote {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-2);
  border-left: 3px solid var(--ink);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin-top: 8px;
  font-style: normal;
}

.about__aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about__icons {
  display: flex;
  gap: 16px;
  align-items: center;
}
.about__icons img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.about__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  padding: 5px 12px;
}

/* ─────────────────────────────────────────────
   Support
───────────────────────────────────────────── */
.support {
  padding: 96px 0;
  text-align: center;
}
.support__inner { max-width: 520px; }

.support__coffee {
  font-size: 3rem;
  margin-bottom: 24px;
  line-height: 1;
}
.support .section-heading { text-align: center; }
.support .section-sub {
  text-align: center;
  margin: 0 auto 36px;
}
.support__note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--ink-4);
}

/* ─────────────────────────────────────────────
   Footer
───────────────────────────────────────────── */
.footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.85);
  padding: 48px 0 36px;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.footer__icons {
  display: flex;
  gap: 8px;
  align-items: center;
}
.footer__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.footer__links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.footer__links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
}

.footer__legal {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.28);
}

/* ─────────────────────────────────────────────
   Animations
───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────────
   Cookie Banner
───────────────────────────────────────────── */
.cookie-banner[hidden] { display: none; }
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  background: var(--ink);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  box-sizing: border-box;
  animation: fadeUp 0.3s ease forwards;
}

/* Only use centred float on true desktop — above iPad landscape width */
@media (min-width: 1100px) {
  .cookie-banner {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: auto;
    max-width: 700px;
    min-width: 500px;
    bottom: 24px;
  }
}

[data-theme="dark"] .cookie-banner { background: #2C2C2E; }

.cookie-banner__text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  white-space: normal;
  flex: 1;
  min-width: 0;
}

.cookie-banner__actions { display: flex; gap: 8px; flex-shrink: 0; }

.cookie-btn {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
.cookie-btn:hover { opacity: 0.85; }
.cookie-btn--yes { background: var(--orange); color: #fff; }
.cookie-btn--no  { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.7); }

/* ─────────────────────────────────────────────
   Reduced motion
───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
