/* Ubbe Digital · ubbedigital.com */

:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --tint: #f4f1f6;
  --text: #1b1521;
  --muted: #615a6a;
  --line: #e7e2ec;
  --ubbe: #074180;
  --plum: #2a142e;
  --plum-2: #4a2a50;
  --accent: #1d8f92;
  --gold: #d99a1e;
  --on-plum: #f6f1f8;
  --shadow: 0 1px 2px rgb(27 21 33 / 6%), 0 12px 32px -12px rgb(27 21 33 / 18%);

  /* Indicator colors (match the app's dashboard) */
  --c1: #2b74d6;
  --c2: #1fae74;
  --c3: #47668f;
  --c4: #8a5a2c;
  --c5: #e6a00f;
  --c6: #7a4fd0;
  --c7: #c43c7a;

  --radius: 16px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #110d14;
    --surface: #1a151e;
    --tint: #161219;
    --text: #efeaf3;
    --muted: #a8a0b2;
    --line: #2c2532;
    --ubbe: #7fb2ff;
    --accent: #4cc7c9;
    --gold: #f0b43c;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 12px 32px -12px rgb(0 0 0 / 60%);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #110d14;
  --surface: #1a151e;
  --tint: #161219;
  --text: #efeaf3;
  --muted: #a8a0b2;
  --line: #2c2532;
  --ubbe: #7fb2ff;
  --accent: #4cc7c9;
  --gold: #f0b43c;
  --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 12px 32px -12px rgb(0 0 0 / 60%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }

.ico {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--plum); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow img { width: 20px; height: 20px; }
.eyebrow--light { color: #9fe3e4; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: 9px 16px; font-size: .92rem; }
.btn--primary { background: var(--plum); color: #fff; box-shadow: 0 8px 20px -10px rgb(42 20 46 / 70%); }
.btn--primary:hover { background: var(--plum-2); }
.btn--ghost { border-color: var(--line); background: var(--surface); color: var(--text); }
.btn--ghost:hover { border-color: var(--muted); }
.btn--light { background: #fff; color: var(--plum); }
.btn--outline-light { border-color: rgb(255 255 255 / 40%); color: #fff; }
.btn--outline-light:hover { border-color: #fff; }

:root[data-theme="dark"] .btn--primary { background: #f3e9f6; color: var(--plum); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn--primary { background: #f3e9f6; color: var(--plum); }
}

/* Logo (light/dark swap) */
.logo { width: auto; height: 34px; }
.logo--dark { display: none; }
:root[data-theme="dark"] .logo--light { display: none; }
:root[data-theme="dark"] .logo--dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo--light { display: none; }
  :root:not([data-theme="light"]) .logo--dark { display: block; }
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__brand { display: flex; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--muted); }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 8px; cursor: pointer;
}

@media (max-width: 880px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav__links .btn { margin-top: 16px; }
}

/* Hero */
.hero { padding: 56px 0 64px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: -1;
  width: 900px; height: 900px; right: -300px; top: -360px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 18%, transparent), transparent);
}
.hero__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.hero__copy h1 { margin-bottom: 20px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: .95rem; }
.hero__facts strong { color: var(--text); }
.hero__media { position: relative; padding-bottom: 40px; }

@media (max-width: 980px) {
  .hero { padding-top: 32px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Device frames */
.browser {
  margin: 0; border-radius: 14px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.browser__bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--tint); }
.browser__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser--wide { margin-top: 56px; }

.phone {
  margin: 0; border-radius: 34px; padding: 8px; background: #19121c;
  box-shadow: var(--shadow); border: 1px solid #3a2f40;
}
.phone img { border-radius: 27px; }
.phone--hero { position: absolute; width: 30%; max-width: 210px; right: -12px; bottom: 0; }
@media (max-width: 560px) { .phone--hero { width: 34%; right: -4px; } }

/* Sections */
.section { padding: 104px 0; }
.section--tight { padding: 0 0 104px; }
.section--tint { background: var(--tint); border-block: 1px solid var(--line); }
.section__head { margin-bottom: 48px; }
.section__head h2 { margin-bottom: 16px; max-width: 22ch; }
@media (max-width: 720px) { .section { padding: 72px 0; } .section--tight { padding-bottom: 72px; } }

/* Role cards */
.split { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.card h3 { font-size: 1.4rem; margin: 18px 0 4px; }
.card__icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
}
.card__icon--alt { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d8f92' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Perfect Store indicators */
.pss { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 920px) { .pss { grid-template-columns: 1fr; } }
.indicators { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.indicators li {
  display: flex; align-items: center; gap: 16px; position: relative; overflow: hidden;
  padding: 14px 18px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.indicators li::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 4px;
  width: calc(var(--w) * 1% * 3.333); max-width: 100%; background: var(--c);
}
.indicators li div { flex: 1; min-width: 0; }
.indicators strong { display: block; }
.indicators span { display: block; color: var(--muted); font-size: .9rem; }
.indicators b { font-size: 1.5rem; font-weight: 800; color: var(--c); font-variant-numeric: tabular-nums; }
.note { font-size: .88rem; color: var(--muted); margin-bottom: 24px; }
.pss__notes { display: grid; gap: 26px; }
.feature { display: flex; gap: 16px; }
.feature > .ico { width: 26px; height: 26px; color: var(--accent); margin-top: 2px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.steps h3 { margin: 18px 0 8px; }
.steps p { color: var(--muted); font-size: .96rem; }
.steps__n {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--plum); color: #fff; font-weight: 800;
}
:root[data-theme="dark"] .steps__n { background: #f3e9f6; color: var(--plum); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .steps__n { background: #f3e9f6; color: var(--plum); } }

/* Feature grid */
.grid-features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 28px; }
@media (max-width: 980px) { .grid-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid-features { grid-template-columns: 1fr; } }
.grid-features .ico { width: 26px; height: 26px; color: var(--accent); margin-bottom: 14px; }
.grid-features h3 { margin-bottom: 6px; }
.grid-features p { color: var(--muted); font-size: .96rem; }

/* Tabs + gallery */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 32px; }
.tabs__btn {
  font: inherit; font-weight: 700; font-size: .95rem; padding: 10px 20px; border-radius: 999px;
  border: 0; background: none; color: var(--muted); cursor: pointer;
}
.tabs__btn[aria-selected="true"] { background: var(--plum); color: #fff; }
:root[data-theme="dark"] .tabs__btn[aria-selected="true"] { background: #f3e9f6; color: var(--plum); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tabs__btn[aria-selected="true"] { background: #f3e9f6; color: var(--plum); } }

.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 12px; color: var(--muted); font-size: .92rem; }
.gallery--desktop { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.gallery--desktop figure:first-child { grid-column: 1 / -1; }
.gallery--desktop a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 720px) { .gallery--desktop { grid-template-columns: 1fr; } }
.gallery--phones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.gallery--phones .phone figcaption { text-align: center; color: #cfc6d6; padding: 10px 0 4px; margin: 0; }
@media (max-width: 900px) { .gallery--phones { grid-template-columns: repeat(2, 1fr); } }
.tabs__panel[hidden] { display: none; }

/* Team */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 820px) { .team { grid-template-columns: 1fr; } }
.person {
  display: flex; gap: 24px; align-items: center; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.person img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; flex: none; }
.person h3 { font-size: 1.25rem; }
.person p:last-child { margin-top: 8px; }
@media (max-width: 460px) { .person { flex-direction: column; align-items: flex-start; } }

/* Contact */
.contact { background: linear-gradient(135deg, var(--plum) 0%, #3c1f44 55%, #123a5c 100%); color: var(--on-plum); }
.contact .lead { color: #d9cfe0; }
.contact__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.contact h2 { margin-bottom: 16px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 860px) { .contact__inner { grid-template-columns: 1fr; } .contact__actions { justify-content: flex-start; } }

/* Footer */
.footer { padding: 56px 0 28px; border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.footer__brand .logo { height: 30px; margin-bottom: 10px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer__links a { text-decoration: none; color: var(--muted); font-weight: 600; }
.footer__links a:hover { color: var(--text); }
.footer__social { display: flex; gap: 8px; }
.footer__social a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--muted);
}
.footer__social a:hover { color: var(--text); border-color: var(--muted); }
.footer__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }

/* Floating WhatsApp */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 24px -8px rgb(0 0 0 / 45%);
}
.fab .ico { width: 26px; height: 26px; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound h1 { margin-bottom: 16px; }
.notfound .lead { margin: 0 auto 28px; }
