/* ============================================================
   EXACTLY THAT — Main Stylesheet
   ============================================================ */

/* ----------------------------------------------------------
   1. CSS CUSTOM PROPERTIES
   ---------------------------------------------------------- */
:root {
  /* Core colours */
  --clr-bg:            #ffffff;
  --clr-bg-alt:        #f7f7f8;
  --clr-dark:          #0c0c0d;
  --clr-dark-alt:      #141416;
  --clr-text:          #18181b;
  --clr-text-muted:    #71717a;
  --clr-text-faint:    #a1a1aa;
  --clr-white:         #ffffff;
  --clr-accent:        #5b5ef6;
  --clr-accent-2:      #8b5cf6;
  --clr-accent-glow:   rgba(91, 94, 246, 0.18);
  --clr-border:        #e4e4e7;
  --clr-border-dark:   #27272a;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing scale */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  48px;
  --space-xl:  80px;
  --space-2xl: 120px;

  /* Layout */
  --container: 1200px;
  --gutter:    clamp(20px, 5vw, 48px);

  /* Effects */
  --radius:    14px;
  --radius-sm: 8px;
  --radius-pill: 100px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-card-hover: 0 24px 56px rgba(0,0,0,0.12);

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur:  0.28s;
  --dur-slow: 0.5s;
}


/* ----------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--clr-text);
  background: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }

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


/* ----------------------------------------------------------
   3. LAYOUT UTILITIES
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding: var(--space-2xl) 0;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--space-sm);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--clr-text);
  margin-bottom: var(--space-sm);
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
}

.hide-mobile { display: inline; }


/* ----------------------------------------------------------
   4. BUTTONS
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease),
              color var(--dur) var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--clr-accent);
  color: var(--clr-white);
  box-shadow: 0 4px 20px rgba(91, 94, 246, 0.35);
}
.btn--primary:hover {
  background: #4347d9;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(91, 94, 246, 0.45);
}

.btn--ghost {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
  transform: translateY(-2px);
}

.btn--light {
  background: var(--clr-white);
  color: var(--clr-dark);
  box-shadow: var(--shadow-md);
}
.btn--light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}


/* ----------------------------------------------------------
   5. NAVIGATION
   ---------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--dur-slow) var(--ease),
              box-shadow var(--dur-slow) var(--ease),
              border-color var(--dur-slow) var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(12, 12, 13, 0.88);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom-color: var(--clr-border-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--clr-white);
  transition: opacity var(--dur) var(--ease);
}
.nav__logo:hover { opacity: 0.8; }

.nav__logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--clr-accent);
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--clr-white);
  flex-shrink: 0;
}

.nav__logo-name {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--clr-white);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: color var(--dur) var(--ease);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--clr-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover { color: var(--clr-white); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: var(--space-sm) var(--gutter) var(--space-md);
  background: rgba(12, 12, 13, 0.96);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--clr-border-dark);
  animation: slideDown 0.2s var(--ease);
}
.nav__mobile.open { display: flex; }

.nav__mobile-link {
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid var(--clr-border-dark);
  transition: color var(--dur) var(--ease);
}
.nav__mobile-link:last-child { border-bottom: none; }
.nav__mobile-link:hover { color: var(--clr-white); }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ----------------------------------------------------------
   6. HERO
   ---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-dark);
  overflow: hidden;
  padding: 120px var(--gutter) 80px;
}

/* Dot-grid background */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero__glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center,
    rgba(91, 94, 246, 0.22) 0%,
    rgba(139, 92, 246, 0.08) 45%,
    transparent 70%);
  filter: blur(40px);
  border-radius: 50%;
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(91, 94, 246, 0.4);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-accent);
  background: rgba(91, 94, 246, 0.08);
  margin-bottom: var(--space-md);
  animation: fadeUp 0.6s var(--ease) 0.1s both;
}

.hero__headline {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--clr-white);
  margin-bottom: var(--space-md);
  animation: fadeUp 0.65s var(--ease) 0.2s both;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 580px;
  margin: 0 auto var(--space-lg);
  animation: fadeUp 0.65s var(--ease) 0.3s both;
}

.hero__cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  animation: fadeUp 0.65s var(--ease) 0.4s both;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.3);
  animation: bounce 2.5s ease-in-out infinite;
  transition: color var(--dur) var(--ease);
  z-index: 1;
}
.hero__scroll:hover { color: rgba(255,255,255,0.7); }

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

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ----------------------------------------------------------
   7. ABOUT
   ---------------------------------------------------------- */
.about {
  background: var(--clr-bg);
}

.about__inner {
  position: relative;
}

.about__layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.about__label {
  display: block;
  margin-bottom: var(--space-md);
}

.about__headline {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--clr-text);
  position: sticky;
  top: 100px;
}

.about__right {}

.about__body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--clr-text-muted);
  margin-bottom: var(--space-md);
}
.about__body:last-of-type { margin-bottom: var(--space-lg); }

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--clr-border);
}

.about__stat {}

.about__stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--clr-text);
  margin-bottom: 4px;
}

.about__stat-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--clr-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* ----------------------------------------------------------
   8. WORK / PORTFOLIO — Product Feature Rows
   ---------------------------------------------------------- */
.work {
  background: var(--clr-bg-alt);
}

/* Shared card utility classes (used in product info) */
.card__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-faint);
  margin-bottom: 8px;
}

.card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.product__link { margin-top: 24px; align-self: flex-start; }

.card__pill {
  display: inline-block;
  padding: 5px 14px;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--clr-text-muted);
}

/* ── Product feature rows ── */
.products {
  display: flex;
  flex-direction: column;
  gap: clamp(80px, 10vw, 120px);
}

.product {
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.product--flip { flex-direction: row-reverse; }

.product__mockup {
  flex: 0 0 auto;
  width: 52%;
}

.product__mockup--phone {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product__info {
  flex: 1;
  min-width: 0;
}

.product__title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--clr-text);
  margin-bottom: 16px;
}

.product__desc {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--clr-text-muted);
}

/* ── Device mockup base ── */
.mockup { position: relative; }

/* Browser frame */
.mockup--browser {
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.08),
    0 24px 64px rgba(0,0,0,0.13),
    0 8px 24px rgba(0,0,0,0.06);
  background: #fff;
}

.mockup__chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #efefef;
  border-bottom: 1px solid #e0e0e0;
}

.mockup__dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.mockup__dots span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mockup__dots span:nth-child(1) { background: #ff5f57; }
.mockup__dots span:nth-child(2) { background: #febc2e; }
.mockup__dots span:nth-child(3) { background: #28c840; }

.mockup__urlbar {
  flex: 1;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.7rem;
  color: #999;
  font-family: var(--font);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
}

.mockup--browser .mockup__screen { overflow: hidden; }

.mockup__screenshot {
  width: 100%;
  display: block;
}

.mockup--browser .mockup__screenshot {
  object-fit: cover;
  object-position: top center;
}

/* Phone frame */
.mockup--phone {
  width: 270px;
  background: #1c1c1e;
  border-radius: 46px;
  padding: 16px 12px;
  box-shadow:
    0 0 0 2px #3a3a3c,
    0 0 0 3px #2c2c2e,
    0 28px 64px rgba(0,0,0,0.32),
    0 8px 20px rgba(0,0,0,0.18);
}

.mockup--phone .mockup__screen {
  border-radius: 32px;
  overflow: hidden;
  background: #fff;
}

.mockup__caption {
  text-align: center;
  font-size: 0.75rem;
  color: var(--clr-text-faint);
  font-style: italic;
  margin-top: 14px;
}

/* ── Margin helpers (scoped for use in mockups) ── */
.mb4  { margin-bottom: 4px; }
.mb6  { margin-bottom: 6px; }
.mb14 { margin-bottom: 14px; }

/* ── Shared placeholder UI primitives ── */
.pui-bar {
  background: #e5e7eb;
  border-radius: 4px;
  flex-shrink: 0;
}
.pui-bar--xs      { height: 8px;  width: 44px; }
.pui-bar--sm      { height: 9px;  width: 100%; }
.pui-bar--sub     { height: 9px;  width: 55%; }
.pui-bar--title   { height: 15px; width: 68%; }
.pui-bar--fill    { flex: 1;      height: 8px; }
.pui-bar--appname { height: 13px; width: 140px; }
.pui-bar--muted   { background: #d1d5db; width: 65%; }
.pui-bar--white   { background: rgba(255,255,255,0.88); }
.pui-bar--white50 { background: rgba(255,255,255,0.45); }
.pui-bar--ghost   { background: rgba(255,255,255,0.28); }
.pui-bar--dark    { background: rgba(0,0,0,0.2); }
.pui-bar--dark50  { background: rgba(0,0,0,0.1); }
.pui-bar--accent-sb { background: #fdba74; width: 56px; }

/* Phone status bar */
.pui-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px 6px;
}
.pui-status--green { background: #059669; }
.pui-status--amber { background: #d97706; }

.pui-time {
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font);
}
.pui-time--dark { color: rgba(0,0,0,0.6); }

.pui-status__icons { display: flex; gap: 4px; align-items: center; }
.pui-sicon {
  width: 14px; height: 8px;
  background: rgba(255,255,255,0.65);
  border-radius: 2px;
}
.pui-sicon--dark { background: rgba(0,0,0,0.25); }

/* ── SUBBIE BUDDY browser UI ── */
.pui-subbie { font-family: var(--font); background: #fff; }

.pui-subbie__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.pui-sb-logo {
  width: 88px; height: 16px;
  background: linear-gradient(90deg, #ea580c, #f97316);
  border-radius: 4px;
}

.pui-subbie__navlinks { display: flex; gap: 12px; }

.pui-subbie__hero {
  background: linear-gradient(135deg, #c2410c 0%, #ea580c 60%, #f97316 100%);
  padding: 20px 16px 14px;
}

.pui-subbie__search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.96);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
}

.pui-search-icon {
  width: 12px; height: 12px;
  border: 1.5px solid #ccc;
  border-radius: 50%;
  flex-shrink: 0;
}

.pui-btn-sm {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 700;
  flex-shrink: 0;
  font-family: var(--font);
}
.pui-btn--sb { background: #ea580c; color: #fff; }

.pui-subbie__chips { display: flex; gap: 6px; flex-wrap: wrap; }

.pui-chip {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.6rem;
  font-weight: 600;
  white-space: nowrap;
  font-family: var(--font);
}
.pui-chip--outline     { border: 1px solid rgba(255,255,255,0.5); color: rgba(255,255,255,0.9); }
.pui-chip--solid-sb    { background: #fff; color: #ea580c; }

.pui-subbie__listings {
  padding: 10px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pui-listing {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
}

.pui-listing__info { flex: 1; min-width: 0; }

.pui-avatar {
  width: 34px; height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
}
.pui-avatar--1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.pui-avatar--2 { background: linear-gradient(135deg, #ea580c, #f97316); }
.pui-avatar--3 { background: linear-gradient(135deg, #0284c7, #38bdf8); }

.pui-rating {
  font-size: 0.62rem;
  font-weight: 700;
  color: #92400e;
  white-space: nowrap;
  font-family: var(--font);
}

/* ── WHO GETS WHAT phone UI ── */
.pui-whogets {
  display: flex;
  flex-direction: column;
  background: #f8faf9;
  font-family: var(--font);
}

.pui-whogets__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 12px;
  background: #059669;
}

.pui-icon-btn {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pui-whogets__section-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  padding: 10px 16px 6px;
  font-family: var(--font);
}

.pui-whogets__items {
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pui-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.pui-item__meta { flex: 1; min-width: 0; }

.pui-thumb {
  width: 38px; height: 38px;
  border-radius: 8px;
  flex-shrink: 0;
}
.pui-thumb--1 { background: linear-gradient(135deg, #6366f1, #818cf8); }
.pui-thumb--2 { background: linear-gradient(135deg, #f97316, #fb923c); }
.pui-thumb--3 { background: linear-gradient(135deg, #d1d5db, #e5e7eb); }

.pui-badge {
  font-size: 0.58rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  white-space: nowrap;
  font-family: var(--font);
}
.pui-badge--green { background: #d1fae5; color: #065f46; }
.pui-badge--grey  { background: #f3f4f6; color: #6b7280; }

.pui-whogets__add {
  margin: 8px 12px;
  padding: 9px;
  background: #fff;
  border: 1.5px dashed #6ee7b7;
  border-radius: 10px;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #059669;
  font-family: var(--font);
}

.pui-tabs {
  display: flex;
  border-top: 1px solid #e5e7eb;
  background: #fff;
  margin-top: auto;
}

.pui-tab {
  flex: 1;
  text-align: center;
  padding: 9px 4px;
  font-size: 0.6rem;
  font-weight: 600;
  color: #9ca3af;
  font-family: var(--font);
}
.pui-tab--active     { border-top: 2px solid currentColor; }
.pui-tab--green      { color: #059669; }

/* ── DO I NEED IT phone UI ── */
.pui-dinit {
  display: flex;
  flex-direction: column;
  background: #fffbeb;
  font-family: var(--font);
}

.pui-dinit__header {
  padding: 12px 16px 14px;
  background: #d97706;
}

.pui-dinit__price-area {
  padding: 20px 20px 10px;
  text-align: center;
}

.pui-dinit__label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #92400e;
  margin-bottom: 6px;
}

.pui-dinit__price {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
}

.pui-dinit__currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: #92400e;
  padding-top: 8px;
  line-height: 1;
}

.pui-dinit__amount {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #1c1917;
  line-height: 1;
}

.pui-dinit__divider {
  height: 1px;
  background: #fde68a;
  margin: 12px 16px;
}

.pui-dinit__results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 12px 10px;
}

.pui-result-card {
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
}
.pui-result-card--hours { background: #ffedd5; }
.pui-result-card--pct   { background: #fef3c7; }

.pui-result-card__num {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.pui-result-card--hours .pui-result-card__num { color: #c2410c; }
.pui-result-card--pct   .pui-result-card__num { color: #92400e; }

.pui-result-card__label {
  font-size: 0.58rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 5px;
}

.pui-dinit__cta {
  margin: 4px 12px 14px;
  padding: 11px;
  background: #d97706;
  border-radius: 12px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font);
}


/* ----------------------------------------------------------
   9. CONTACT
   ---------------------------------------------------------- */
.contact {
  background: var(--clr-dark);
  position: relative;
  overflow: hidden;
  padding: var(--space-2xl) 0;
}

.contact__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 80% 50%,
      rgba(91, 94, 246, 0.12) 0%,
      transparent 60%);
}

.contact__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.contact__label {
  color: rgba(91, 94, 246, 0.9);
}

.contact__headline {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--clr-white);
  margin-bottom: var(--space-md);
}

.contact__sub {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-lg);
}

/* Animated concentric rings */
.contact__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 340px;
}

.contact__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: pulse-ring var(--dur-slow) ease-in-out infinite alternate;
}

.contact__ring--1 {
  width: 200px; height: 200px;
  border-color: rgba(91, 94, 246, 0.25);
  animation-delay: 0s;
}
.contact__ring--2 {
  width: 300px; height: 300px;
  border-color: rgba(91, 94, 246, 0.14);
  animation-delay: 0.15s;
}
.contact__ring--3 {
  width: 400px; height: 400px;
  border-color: rgba(91, 94, 246, 0.07);
  animation-delay: 0.3s;
}

.contact__dot {
  width: 16px; height: 16px;
  background: var(--clr-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(91,94,246,0.2), 0 0 40px rgba(91,94,246,0.5);
  animation: glow-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-ring {
  from { transform: scale(0.96); opacity: 0.6; }
  to   { transform: scale(1.04); opacity: 1; }
}

@keyframes glow-dot {
  0%, 100% { box-shadow: 0 0 0 8px rgba(91,94,246,0.2), 0 0 40px rgba(91,94,246,0.4); }
  50%       { box-shadow: 0 0 0 16px rgba(91,94,246,0.1), 0 0 60px rgba(91,94,246,0.6); }
}


/* ----------------------------------------------------------
   10. FOOTER
   ---------------------------------------------------------- */
.footer {
  background: var(--clr-dark-alt);
  border-top: 1px solid var(--clr-border-dark);
  padding: var(--space-lg) 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  background: var(--clr-accent);
  border-radius: 7px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--clr-white);
}

.footer__logo-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
}

.footer__copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
}


/* ----------------------------------------------------------
   11. SCROLL REVEAL ANIMATION
   ---------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal][data-delay="1"] { transition-delay: 0.1s; }
[data-reveal][data-delay="2"] { transition-delay: 0.2s; }
[data-reveal][data-delay="3"] { transition-delay: 0.3s; }


/* ----------------------------------------------------------
   12. MODAL & CONTACT FORM
   ---------------------------------------------------------- */

/* Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-slow) var(--ease),
              visibility var(--dur-slow) var(--ease);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Modal box */
.modal {
  background: var(--clr-bg);
  border-radius: 20px;
  padding: clamp(28px, 5vw, 44px);
  width: 100%;
  max-width: 480px;
  position: relative;
  max-height: 90dvh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.98);
  transition: transform var(--dur-slow) var(--ease);
  box-shadow: 0 32px 80px rgba(0,0,0,0.25), 0 8px 24px rgba(0,0,0,0.12);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

/* Close button */
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.modal__close:hover {
  background: var(--clr-text);
  color: var(--clr-white);
  border-color: var(--clr-text);
}

/* Modal header */
.modal__header { margin-bottom: 28px; }

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

.modal__sub {
  font-size: 0.9375rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

/* Form */
.modal__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--clr-text);
  letter-spacing: 0.01em;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--clr-text);
  background: var(--clr-bg-alt);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease);
  outline: none;
  -webkit-appearance: none;
}

.form-input::placeholder { color: var(--clr-text-faint); }

.form-input:focus {
  border-color: var(--clr-accent);
  background: var(--clr-bg);
  box-shadow: 0 0 0 3px var(--clr-accent-glow);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--clr-accent);
  color: var(--clr-white);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  margin-top: 4px;
  box-shadow: 0 4px 20px rgba(91, 94, 246, 0.35);
  transition: background var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.form-submit:hover {
  background: #4347d9;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(91, 94, 246, 0.45);
}
.form-submit:active { transform: translateY(0); }


/* ----------------------------------------------------------
   13. RESPONSIVE
   ---------------------------------------------------------- */

/* Tablet */
@media (max-width: 960px) {
  :root { --space-2xl: 90px; }

  .about__layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .about__headline { position: static; }

  /* Stack product rows */
  .product,
  .product--flip {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .product__mockup {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }

  .mockup--phone {
    width: 240px;
  }

  .contact__inner {
    grid-template-columns: 1fr;
  }

  .contact__visual {
    height: 260px;
  }

  .contact__ring--3 {
    width: 320px; height: 320px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --space-2xl: 72px;
    --space-xl:  56px;
  }

  .hide-mobile { display: none; }

  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .hero__badge { font-size: 0.68rem; }

  .hero__cta-group {
    flex-direction: column;
    align-items: center;
  }
  .hero__cta-group .btn {
    width: 100%;
    justify-content: center;
    max-width: 320px;
  }

  .about__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
  }
  .about__stat-num { font-size: 1.6rem; }

  .mockup--phone { width: 220px; }

  .contact__visual { display: none; }
  .contact__inner { grid-template-columns: 1fr; }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
}
