/* ============ Nuomity — pre-launch landing ============ */

:root {
  /* ---- Brand themes (toggle via [data-theme]) ---- */
  /* Blue (default) */
  --accent: #4D74D4;
  --accent-ink: #264091;
  --accent-2: #E4ED6E;

  --accent-soft: color-mix(in oklab, var(--accent) 8%, #FFFFFF);
  --accent-softer: color-mix(in oklab, var(--accent) 4%, #FBFBF9);
  --accent-border: color-mix(in oklab, var(--accent) 20%, #FFFFFF);

  --danger-soft: #FBEAEA;
  --danger-border: #F0CFCF;
  --danger-ink: #9E2C2C;

  --ink: #101826;
  --ink-2: #3D4756;
  --ink-3: #6B7585;
  --paper: #FBFBF9;
  --card: #FFFFFF;
  --line: #E7E8E6;

  --radius: 14px;
  --radius-lg: calc(var(--radius) * 1.5);
  --radius-sm: calc(var(--radius) * 0.55);

  --font-head: "Poppins", "Helvetica Neue", sans-serif;
  --font-body: "Inter", "Helvetica Neue", sans-serif;
  --font-logo: "Quicksand", "Helvetica Neue", sans-serif;

  --shadow-card: 0 1px 2px rgba(38, 64, 145, 0.05), 0 10px 28px rgba(38, 64, 145, 0.09);
  --shadow-pop: 0 2px 6px rgba(38, 64, 145, 0.06), 0 24px 56px rgba(38, 64, 145, 0.14);
}

/* ---- Green theme ---- */
[data-theme="green"] {
  --accent: #079890;
  --accent-ink: #095054;
  --accent-2: #D6FF7B;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(140deg, #FFFFFF 0%, #F4F8FE 38%, #E3ECFB 72%, #D3E0F8 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 1px 2px rgba(16, 24, 38, 0.12), 0 6px 16px color-mix(in oklab, var(--accent) 28%, transparent);
}

.btn-primary:hover { background: var(--accent-ink); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: color-mix(in oklab, var(--ink) 28%, transparent);
  background: #FFFFFF;
}

/* ---------- Navbar ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 8px 24px rgba(16, 24, 38, 0.05);
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.nav-inner .logo { justify-self: start; }
.nav-links { justify-self: center; }
.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Nav CTA hidden while the hero (main) CTA is on screen */
.nav-cta {
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.nav-cta.cta-hidden {
  opacity: 0;
  transform: translateY(-6px);
  visibility: hidden;
  pointer-events: none;
}

/* ---------- Language toggle ---------- */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: #FFFFFF;
  gap: 2px;
  flex-shrink: 0;
}
.lang-toggle button {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  padding: 6px 12px;
  border-radius: 999px;
  line-height: 1;
  transition: background 0.16s ease, color 0.16s ease;
}
.lang-toggle button:hover { color: var(--ink); }
.lang-toggle button[aria-pressed="true"] {
  background: var(--accent);
  color: #FFFFFF;
}
@media (max-width: 600px) {
  .lang-toggle button { padding: 6px 10px; font-size: 12px; }
}

.logo {
  font-family: var(--font-logo);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--ink);
}

.logo-n {
  height: 0.98em;
  width: auto;
  color: var(--accent);
  margin-right: 0.01em;
  margin-bottom: -0.04em;
  flex: none;
}

.logo-svg {
  height: 32px;
  width: auto;
  display: block;
}

.logo-accent { fill: var(--accent); }
.logo-ink { fill: var(--ink); }

.logo-word { color: var(--ink); }

.logo-dot { color: var(--accent); margin-left: 0.01em; }

/* On colored backgrounds the whole lockup goes white */
.logo.on-dark,
.logo.on-dark .logo-word,
.logo.on-dark .logo-dot { color: #FFFFFF; }
.logo.on-dark .logo-n { color: #FFFFFF; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  white-space: nowrap;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: color-mix(in oklab, var(--ink) 5%, transparent);
}

.nav .btn { padding: 11px 20px; font-size: 15px; }

/* ---------- Mobile hamburger + menu ---------- */

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #FFFFFF;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 20px 16px;
  border-top: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 13px 14px;
  border-radius: 10px;
  transition: color 0.15s ease, background 0.15s ease;
}

.mobile-menu a:hover {
  color: var(--ink);
  background: color-mix(in oklab, var(--ink) 5%, transparent);
}

.mobile-menu-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 16px 14px 4px;
  border-top: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
}

.mobile-menu-foot .lang-toggle { flex: none; }

@media (max-width: 980px) {
  .nav-burger { display: flex; }
  .nav-actions .lang-toggle-desktop { display: none; }
  /* The scroll-CTA reserves width even when hidden (visibility:hidden);
     mobile users get the CTA in the hamburger + hero, so drop it entirely. */
  .nav-cta { display: none; }
}

/* Keep the dropdown hidden on desktop even if left open on resize */
@media (min-width: 981px) {
  .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 68px 0 60px;
  background: transparent;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 70% -10%, color-mix(in oklab, var(--accent) 7%, transparent), transparent 70%),
    radial-gradient(700px 380px at 12% 8%, color-mix(in oklab, var(--accent) 4%, transparent), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

@media (max-width: 860px) {
  .hero-copy .hero-form { margin-left: auto; margin-right: auto; }
}

.hero h1 {
  font-size: clamp(44px, 6.4vw, 72px);
  max-width: 14ch;
}

.hero-sub {
  margin-top: 24px;
  max-width: none;
  font-size: 18px;
  color: var(--ink);
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Hero form ---------- */

.hero-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  max-width: 480px;
  width: 100%;
  margin: 36px 0 0;
}

.hero-form input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 15px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #FFFFFF;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hero-form input::placeholder { color: var(--ink-3); }

.hero-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 14%, transparent);
}

.hero-form-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-3);
}

.hero-form-note a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
}

.hero-form-note a:hover { color: var(--accent-ink); }

.hero-form-success {
  display: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
  margin-top: 28px;
}

/* ---------- Hero mockup ---------- */

.mockup-stage {
  position: relative;
  margin-top: 72px;
  width: min(960px, 100%);
}

.mockup-stage::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 140px;
  background: linear-gradient(to bottom, transparent, var(--paper));
  pointer-events: none;
}

.mockup {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: #FDFDFC;
}

.mockup-dots { display: flex; gap: 6px; }

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E3E4E1;
  display: block;
}

.mockup-url {
  flex: 1;
  max-width: 360px;
  margin: 0 auto;
  font-size: 12.5px;
  color: var(--ink-3);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  text-align: center;
}

.mockup-body {
  display: grid;
  grid-template-columns: 1.05fr 1.5fr;
  min-height: 380px;
}

.mockup-side {
  border-right: 1px solid var(--line);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #FDFDFC;
}

.mockup-side-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.mockup-listing {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: #FFFFFF;
}

.mockup-listing.active {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.mockup-listing-title { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.mockup-listing-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }

.mockup-main { padding: 24px 28px; }

.mockup-main-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.mockup-main-title { font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.mockup-main-sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; }

.applicant {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #FFFFFF;
  margin-bottom: 10px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 13.5px;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border: 1px solid var(--accent-border);
}

.applicant-info { flex: 1; min-width: 0; }
.applicant-name { font-weight: 600; font-size: 14.5px; }
.applicant-meta { font-size: 12.5px; color: var(--ink-3); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-ok {
  background: #EAF6EE;
  color: #176A3A;
  border: 1px solid #CDE9D7;
}

.badge-wait {
  background: var(--paper);
  color: var(--ink-3);
  border: 1px solid var(--line);
}

.badge-accent {
  background: var(--accent-soft);
  color: var(--accent-ink);
  border: 1px solid var(--accent-border);
}

.check-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.mockup-cta-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.mockup-btn {
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--accent);
  border-radius: 999px;
  padding: 9px 18px;
}

/* ---------- Trust strip ---------- */

.trust {
  padding: 40px 0 72px;
  text-align: center;
}

.trust p {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Sections ---------- */

.section { padding: 60px 0; background: transparent; }

.section-head {
  text-align: center;
  margin-bottom: 44px;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--accent-ink);
  background: #FFFFFF;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(38, 64, 145, 0.08);
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 46px);
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  margin-bottom: 22px;
}

.step h3 { font-size: 21px; line-height: 1.3; margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: 16px; }
.step { text-align: center; }
.step .step-num { margin-left: auto; margin-right: auto; }

/* ---------- Features (alternating) ---------- */

.features { background: transparent; border-block: 1px solid var(--line); }

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 40px 0;
}

.feature-row + .feature-row { border-top: 1px solid var(--line); }

.feature-row.flip .feature-copy { order: 2; }
.feature-row.flip .feature-visual { order: 1; }

.feature-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 14px;
}

.feature-copy h3 { font-size: clamp(26px, 3vw, 34px); line-height: 1.25; margin-bottom: 14px; }
.feature-copy p { color: var(--ink-2); font-size: 17.5px; max-width: 44ch; }

.tag-soon {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8A5A00;
  background: #FBF1DD;
  border: 1px solid #EFDDB6;
  border-radius: 999px;
  padding: 4px 10px;
}

.feature-visual {
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  place-items: center;
  min-height: 340px;
}

/* Grid children must be allowed to shrink below their min-content, otherwise
   the mock card's nowrap text blows the 1fr track out past the viewport on mobile. */
.feature-copy, .feature-visual { min-width: 0; }

/* Feature animations are display-only: the user cannot press the mock
   controls, but the auto-play (class-driven) animation still runs. */
.feature-visual button,
.feature-visual .ha-chk,
.feature-visual .ha-view,
.feature-visual .ui-cal-day,
.feature-visual .ui-cal-slot,
.feature-visual .ui-slot {
  pointer-events: none;
}

.ui-card {
  width: min(360px, 100%);
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: 22px;
}

.ui-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.ui-card-title { font-family: var(--font-head); font-weight: 700; font-size: 15.5px; }
.ui-card-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

.ui-candidates {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ui-candidates-label {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 4px;
}

.ui-candidate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  border-radius: 10px;
}

.ui-candidate-name {
  font-size: 13.5px;
  font-weight: 600;
}

.ui-candidate-icon {
  font-size: 19px;
  line-height: 1;
}

.ui-candidate-ok {
  background: #EAF6EE;
  border: 1px solid #CDE9D7;
}
.ui-candidate-ok .ui-candidate-name,
.ui-candidate-ok .ui-candidate-icon {
  color: #176A3A;
}

.ui-candidate-bad {
  background: var(--danger-soft);
  border: 1px solid var(--danger-border);
}
.ui-candidate-bad .ui-candidate-name,
.ui-candidate-bad .ui-candidate-icon {
  color: var(--danger-ink);
}

.ui-contract-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.ui-contract-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.ui-contract-icon i {
  font-size: 18px;
  color: var(--accent-ink);
}

.ui-contract-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 13px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 14px;
}

.ui-contract-file-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ui-pdf-icon {
  font-size: 22px;
  color: var(--danger-ink);
}

.ui-pdf-name {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.ui-pdf-meta {
  margin: 0;
  font-size: 11px;
  color: var(--ink-3);
}

.ui-pdf-download {
  font-size: 19px;
  color: var(--accent-ink);
}

.ui-sign-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ui-sign-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.ui-sign-who {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
}
.ui-sign-who i {
  font-size: 16px;
  color: #176A3A;
  transition: color 0.35s ease;
}

.ui-sign-status {
  font-size: 12px;
  font-weight: 600;
  color: #176A3A;
  transition: color 0.35s ease;
}

.ui-deposit-amount {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 6px 0 2px;
}

.ui-meter {
  height: 8px;
  border-radius: 999px;
  background: #EEEFEC;
  overflow: hidden;
  margin-top: 16px;
}

.ui-meter span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: var(--accent);
  opacity: 0.85;
}

.ui-meter-caption {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 8px;
}

/* ---------- Schedule slots ---------- */

.ui-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.ui-slot {
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
  padding: 9px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  background: var(--paper);
}

.ui-slot-selected {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-ink);
  font-weight: 600;
}

.ui-slot-confirm {
  display: flex;
  margin-top: 14px;
}

.ui-slot-confirm .badge { flex: 1; justify-content: center; }

/* ---------- Calendar UI (Feature 2) ---------- */

.ui-card-calendar { padding: 16px; }

.ui-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ui-cal-title { font-weight: 600; font-size: 14px; color: var(--ink); }

.ui-cal-icon {
  width: 16px; height: 16px;
  display: inline-block;
  opacity: 0.4;
}

.ui-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 10px;
}

.ui-cal-dow {
  text-align: center;
  font-size: 10px;
  color: var(--ink-3);
  padding-bottom: 2px;
}

.ui-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--ink-3);
}

.ui-cal-day-available {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-ink);
  font-weight: 600;
  position: relative;
}

.ui-cal-day-available::after { display: none; }

.ui-cal-day-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.ui-cal-day-selected::after { display: none; }

.ui-cal-date-label {
  font-size: 11px;
  color: var(--ink-3);
  margin: 0 0 8px;
}

.ui-cal-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.ui-cal-slot {
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  padding: 6px 4px;
  font-size: 12px;
  text-align: center;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 600;
}

.ui-cal-slot-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.ui-confirm-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #EAF6EE;
  color: #176A3A;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
}

.ui-confirm-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #176A3A;
  flex-shrink: 0;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.faq-item[open] {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-card);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17.5px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-chevron {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-3);
  transition: transform 0.22s ease, background 0.18s ease, color 0.18s ease;
}

.faq-chevron::before { content: "▾"; font-size: 12px; line-height: 1; }

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-color: var(--accent-border);
}

.faq-item p {
  padding: 0 24px 22px;
  color: var(--ink-2);
  font-size: 16px;
}

/* ---------- Waitlist CTA ---------- */

.waitlist { padding: 60px 0; background: transparent; }

.waitlist-card {
  background: #FFFFFF;
  border: 1px solid var(--accent-border);
  border-radius: calc(var(--radius-lg) * 1.3);
  box-shadow: var(--shadow-card);
  padding: 72px 32px;
  text-align: center;
}

.waitlist-card h2 {
  font-size: clamp(30px, 3.8vw, 42px);
  max-width: 22ch;
  margin: 0 auto 40px;
}

.waitlist-sub {
  margin: 18px auto 36px;
  color: var(--ink-2);
  font-size: 18px;
}

.waitlist-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto;
}

.waitlist-form input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 15px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #FFFFFF;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.waitlist-form input::placeholder { color: var(--ink-3); }

.waitlist-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 14%, transparent);
}

.waitlist-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-3);
}

.waitlist-success {
  display: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--accent-ink);
  padding: 14px 0;
}

.waitlist-card.submitted .waitlist-form,
.waitlist-card.submitted .waitlist-note,
.waitlist-card.submitted .waitlist-consent { display: none; }

/* Share block that appears in place of the waitlist CTA once submitted */
.waitlist-card .wl-share { display: none; }
.waitlist-card.submitted .wl-share { display: block; margin: 34px auto 0; text-align: center; }

/* Share block in the hero CTA (shown after signup, no scroll) */
.hero-share { display: none; margin: 30px auto 0; text-align: center; }

.waitlist-card.submitted .waitlist-success { display: block; }

/* ---------- Partners strip ---------- */

.partners {
  padding: 36px 0;
  background: #FFFFFF;
  border-block: 1px solid var(--line);
}

.partners .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.partners-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.partner-logo {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 0.18s ease, filter 0.18s ease;
}

.partner-logo:hover {
  opacity: 0.85;
  filter: grayscale(0);
}

/* ---------- Roadmap / kryptis ---------- */

.kryptis {
  background: #FFFFFF;
  border-block: 1px solid var(--line);
  padding: 60px 0;
  text-align: center;
}

.kryptis .section-head { margin-bottom: 32px; }

.kryptis-body {
  max-width: 880px;
  margin: 0 auto;
}

.kryptis-intro {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 480px;
  margin: 0 auto;
  text-wrap: pretty;
}

.kryptis-timeline {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 48px;
  position: relative;
}

.kryptis-timeline::before {
  content: "";
  position: absolute;
  left: var(--kline-x, 0px);
  top: var(--kline-y, 0px);
  width: var(--kline-w, 0px);
  height: var(--kline-h, 0px);
  background: var(--line);
  z-index: 1;
}

.kryptis-stage {
  flex: 1;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.kryptis-stage-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  position: relative;
  z-index: 2;
}

.kryptis-timeline .kryptis-stage-dot { margin-top: 1.5px; }

.kryptis-stage-active .kryptis-stage-dot {
  background: var(--accent);
  border-color: var(--accent);
}

.kryptis-future .kryptis-stage-dot {
  background: #C4CAD4;
  border-color: #C4CAD4;
}

.kryptis-stage:not(:last-child)::after {
  display: none;
}

.kryptis-stage-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-top: 16px;
}

.kryptis-stage-active .kryptis-stage-label { color: var(--accent-ink); }

.kryptis-future {
  display: flex;
  align-items: flex-start;
  flex: 2;
  max-width: 460px;
  position: relative;
  margin-top: -18px;
  padding: 18px 14px;
}

.kryptis-future .kryptis-stage { max-width: none; }

.kryptis-future::before {
  display: none;
}

.kryptis-future-tag {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 5px 13px;
}

.kryptis-note {
  max-width: 560px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-3);
  text-wrap: pretty;
}

.kryptis-stage-text {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-2);
  margin-top: 4px;
  max-width: 180px;
  text-wrap: pretty;
}

/* ---------- Team ---------- */

.team { background: transparent; }

.team-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.team-row + .team-row { margin-top: 0; }

.team-row-reverse { flex-direction: row-reverse; }

.team-photo-wrap {
  width: 260px;
  height: 260px;
  flex-shrink: 0;
  overflow: hidden;
  align-self: center;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: scale(1.28);
  transform-origin: center top;
}

.team-photo-zoom {
  transform: scale(1.42);
  transform-origin: center top;
}

.team-info {
  flex: 1;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.team-row-reverse .team-info { text-align: left; }

.team-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 4px;
}

.team-role {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 12px;
}

.team-bio {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0 0 12px;
}

/* LinkedIn button variants */
.team-linkedin {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s ease, background 0.15s ease;
}

.team-linkedin:hover { text-decoration: none; opacity: 0.75; }
.team-linkedin i { font-size: 16px; line-height: 1; }
.team-row-reverse .team-linkedin { flex-direction: row; }

/* Variant 2: pill button */
[data-linkedin-style="mygtukas"] .team-linkedin {
  padding: 7px 14px;
  border: 1.5px solid var(--accent-border);
  border-radius: 999px;
  background: var(--accent-soft);
  text-decoration: none;
}

[data-linkedin-style="mygtukas"] .team-linkedin:hover {
  background: color-mix(in oklab, var(--accent) 14%, #FFFFFF);
  text-decoration: none;
}

[data-linkedin-style="mygtukas"] .team-linkedin::before {
  content: "in";
  font-size: 9px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--accent-ink);
  color: #FFFFFF;
  border-radius: 3px;
  padding: 1px 3px;
  line-height: 1.3;
  flex-shrink: 0;
}

.team-mission {
  text-align: center;
  font-size: 17px;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0 auto;
  font-style: italic;
}

@media (max-width: 640px) {
  .team-row, .team-row-reverse { flex-direction: column; }
  .team-photo-wrap { width: 100%; height: 320px; max-width: 100%; margin: 0; align-self: stretch; }
  .team-photo { width: 100%; height: 100%; object-fit: cover; object-position: center center; transform: scale(1.28); transform-origin: center top; }
  .team-photo-zoom { transform: scale(1.42); transform-origin: center top; }
  .team-row-reverse .team-info { text-align: left; }
  .team-row-reverse .team-linkedin { flex-direction: row; }
  .team-info { padding: 20px 20px 24px; }
  .team-row { margin-bottom: 20px; }
  .partners-logos { gap: 24px; }
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 64px;
  background: #FFFFFF;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 32px;
}

.footer-brand p {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 15.5px;
  max-width: 36ch;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.footer-social a:hover {
  color: var(--accent-ink);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.footer-social i { font-size: 19px; line-height: 1; }

.footer-bar {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.footer-copy { justify-self: center; text-align: center; color: var(--ink-3); }
.footer-email {
  justify-self: start;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
}
.footer-legal {
  justify-self: end;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
}
.footer-email:hover, .footer-legal:hover { color: var(--accent-ink); }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 920px) {
  .feature-row { grid-template-columns: 1fr; gap: 32px; padding: 56px 0; }
  .feature-row.flip .feature-copy { order: 1; }
  .feature-row.flip .feature-visual { order: 2; }
  .feature-copy { text-align: center; }
  .feature-copy p { max-width: 46ch; margin-left: auto; margin-right: auto; }
  .feature-kicker { justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .mockup-body { grid-template-columns: 1fr; }
  .mockup-side { border-right: none; border-bottom: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; }
  .mockup-side-label { width: 100%; }
}

@media (max-width: 760px) {
  .kryptis-timeline {
    flex-direction: column;
    align-items: stretch;
    gap: 26px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }
  .kryptis-stage {
    display: grid;
    grid-template-columns: 14px 1fr;
    column-gap: 16px;
    max-width: none;
    text-align: left;
  }
  .kryptis-stage-dot { grid-column: 1; grid-row: 1 / 3; margin-top: 4px; }
  .kryptis-stage-label { grid-column: 2; grid-row: 1; margin-top: 0; }
  .kryptis-stage-text { grid-column: 2; grid-row: 2; max-width: none; }
  .kryptis-stage:not(:last-child)::after {
    display: none;
  }
  .kryptis-timeline > .kryptis-stage { padding-left: 19.5px; }
  .kryptis-timeline .kryptis-stage-dot { margin-top: 4px; }
  .kryptis-future .kryptis-stage:not(:last-child)::after {
    display: none;
  }
  .kryptis-future {
    flex-direction: column;
    gap: 26px;
    max-width: none;
    margin-top: 8px;
    padding: 30px 18px 20px;
  }
  .kryptis-future::before {
    display: none;
  }
  .kryptis-future-tag { white-space: normal; text-align: center; }
}

@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .hero { padding-top: 56px; }
  .hero-form { flex-direction: column; }
  .waitlist-form { flex-direction: column; }
  .ui-slot-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .footer-bar { grid-template-columns: 1fr; justify-items: center; gap: 10px; text-align: center; }
  .footer-email, .footer-legal, .footer-copy { justify-self: center; }
  .hero-form .btn, .waitlist-form .btn { align-self: center; width: auto; min-width: 0; }
  .wrap { padding: 0 20px; }
  .waitlist-card { padding: 48px 22px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .nav-inner { gap: 10px; }
  .nav .btn { padding: 9px 14px; font-size: 13.5px; }
  .logo-svg { height: 27px; }
  .nav-burger { width: 40px; height: 40px; }
  .ui-cal-day, .ui-cal-dow { font-size: 10px; }
  .ui-cal-slot { font-size: 11px; padding: 5px 2px; }
  /* Drop the inline padding so the mock card gets the full column width
     and cannot blow past the viewport on ~320px screens. */
  .feature-visual { padding: 20px 0; }
}

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 32px);
  max-width: 520px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cookie-banner[hidden] { display: none; }

.cookie-text {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
}

.cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-banner .btn { padding: 10px 18px; font-size: 14.5px; }

@media (max-width: 480px) {
  .cookie-banner { bottom: 12px; padding: 16px; }
  .cookie-actions { flex-direction: column; }
  .cookie-actions .btn { width: 100%; }
}

/* =====================================================================
   HERO PRODUCT ANIMATION
   Sits in the hero's mockup position (centered, below the form).
===================================================================== */
.hero-anim {
  width: 100%;
  max-width: 440px;
  margin: 0;
  justify-self: end;
}

.hero-anim-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: 20px;
  text-align: left;
}

.hero-anim-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-anim-count { font-size: 11px; font-weight: 400; }

.ha-cand {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #FFFFFF;
  opacity: 0;
  transform: translateY(-8px);
  transition: background 0.4s ease, border-color 0.4s ease, opacity 0.34s ease, transform 0.34s ease;
}

.ha-cand:last-child { margin-bottom: 0; }
.ha-cand.in { opacity: 1; transform: translateY(0); }

.ha-cand-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.ha-cand-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  transition: color 0.4s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.ha-cand-name .ha-verdict {
  font-size: 17px;
  opacity: 0;
  width: 0;
  transition: opacity 0.3s ease, width 0.3s ease;
  flex-shrink: 0;
}

.ha-cand.ok { background: #EAF6EE; border-color: #CDE9D7; }
.ha-cand.ok .ha-cand-name { color: #176A3A; }
.ha-cand.ok .ha-verdict { opacity: 1; width: 17px; }

.ha-cand.bad { background: #FBEDEC; border-color: #F3D6D4; }
.ha-cand.bad .ha-cand-name { color: #B4302E; }
.ha-cand.bad .ha-verdict { opacity: 1; width: 17px; }

.ha-chk {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  background: color-mix(in oklab, var(--ink) 4%, #FFFFFF);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ha-chk:hover { color: var(--accent-ink); border-color: var(--accent); background: var(--accent-soft); }
.ha-chk.gone { display: none; }
.ha-cand.checking .ha-chk { color: var(--accent-ink); background: var(--accent-soft); border-color: var(--accent); }

.ha-view {
  margin-top: 0;
  background: var(--accent);
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  padding: 6px 13px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 12px color-mix(in oklab, var(--accent) 28%, transparent);
  animation: ha-pop 0.34s ease;
}

/* Appears in the same slot the "Tikrinti" button occupied — no extra row, no white space, no resize */
.ha-view.show { display: inline-flex; }
.ha-view:hover { background: var(--accent-ink); }

@keyframes ha-pop {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.ha-spin { display: inline-block; animation: ha-spin 0.55s linear infinite; }
@keyframes ha-spin { to { transform: rotate(360deg); } }

/* =====================================================================
   WAITLIST COUNTER
===================================================================== */
.wl-counter {
  width: min(440px, 100%);
  margin: 22px auto 0;
  text-align: left;
}

.wl-counter-slots {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 9px;
  gap: 12px;
}

.wl-counter-lead {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

.wl-counter-lead b { color: var(--accent); }

.wl-counter-meta { font-size: 12px; color: var(--ink-3); }

.wl-counter-bar {
  height: 8px;
  background: color-mix(in oklab, var(--ink) 6%, var(--paper));
  border-radius: 999px;
  overflow: hidden;
}

.wl-counter-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.9s ease;
}

/* =====================================================================
   IMPLIED CONSENT LINES
===================================================================== */
.hero-form-consent,
.waitlist-consent {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
}

.hero-form-consent a,
.waitlist-consent a {
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-form-consent a:hover,
.waitlist-consent a:hover { color: var(--accent-ink); }

.waitlist-consent { text-align: center; }

/* =====================================================================
   SHARE BLOCK (extends the waitlist CTA)
===================================================================== */
.share-card {
  max-width: 560px;
  margin: 22px auto 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  text-align: center;
}

.share-card.share-in-cta {
  max-width: 460px;
  margin: 44px auto 0;
  padding: 30px 0 0;
  background: transparent;
  border: none;
  border-top: 1px solid var(--accent-border);
  border-radius: 0;
}

/* Standalone share section (after the team section) */
.share-section { padding: 8px 0 76px; }
.share-section .share-card { margin: 0 auto; scroll-margin-top: 80px; }
.share-highlight { animation: share-pulse 1.5s ease; }
@keyframes share-pulse {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  25% { box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 24%, transparent); }
}

.share-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  margin: 0 0 6px;
}

.share-sub {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0 0 18px;
}

.share-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.share-native {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  max-width: 280px;
  height: 46px;
  background: var(--accent);
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 6px 16px color-mix(in oklab, var(--accent) 28%, transparent);
}

.share-native:hover { background: var(--accent-ink); }

.share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.share-btn {
  height: 42px;
  min-width: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #FFFFFF;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.share-btn i { font-size: 18px; }
.share-btn:hover { color: var(--accent-ink); border-color: var(--accent); background: var(--accent-soft); }

/* When native share is available, the explicit buttons become a secondary row */
@media (max-width: 560px) {
  .share-card { padding: 22px 20px; }
}

/* =====================================================================
   REDUCED MOTION: show final states instantly, no transitions
===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .ha-cand,
  .ha-cand-name,
  .ha-verdict,
  .ha-chk,
  .ha-view,
  .wl-counter-fill { transition: none !important; animation: none !important; }
  .ha-spin { animation: none !important; }
}

/* =====================================================================
   HERO WORD-RISE (two lines: fixed "Nuoma be" + rotating rising word)
   The line clips moving letters (they travel +/-100%); vertical padding
   keeps settled descenders (ų, g, p, š) fully visible, not clipped.
===================================================================== */
.hero-rise { margin: 0; }
.hero-rise-static { display: block; }
.hero-rise-line {
  display: block;
  color: var(--accent);
  overflow: hidden;
  /* padding gives descenders room; negative margin keeps layout tight */
  padding: 0.14em 0.06em 0.2em;
  margin: -0.14em -0.06em -0.2em;
  line-height: 1.12;
  min-height: 1.12em;
}
.hero-rise-word { display: inline-block; white-space: nowrap; }
.hero-rise-word .rise-ch {
  display: inline-block;
  white-space: pre;
  will-change: transform, opacity;
}
.rise-ch.rise-in { animation: hero-rise-in 0.5s cubic-bezier(0.2, 0.9, 0.2, 1) both; }
.rise-ch.rise-out { animation: hero-rise-out 0.42s cubic-bezier(0.6, 0, 0.75, 0) both; }
@keyframes hero-rise-in {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes hero-rise-out {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-100%); opacity: 0; }
}

/* =====================================================================
   FEATURE 1 ANIMATION WRAPPER (moved from hero; card label + count)
   The card itself reuses .ui-card; .ha-cand/.ha-chk/.ha-view/.ha-verdict
   styles already exist and are element-agnostic.
===================================================================== */
.ha-card { text-align: left; }
.ha-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ha-count { font-size: 11px; font-weight: 400; }

@media (prefers-reduced-motion: reduce) {
  .rise-ch.rise-in, .rise-ch.rise-out { animation: none; }
}

/* =====================================================================
   FOUNDER STORY (intro to Komanda; editorial quote-statement layout)
===================================================================== */
.founder-story {
  max-width: 720px;
  margin: 0 auto 80px;
  text-align: center;
}
.founder-story-lead {
  margin-bottom: 26px;
}
.founder-story-body {
  position: relative;
  padding: 42px 56px;
}
.founder-story-body::before,
.founder-story-body::after {
  content: "";
  position: absolute;
  width: 52px;
  height: 52px;
}
.founder-story-body::before {
  left: 0;
  bottom: 0;
  border-left: 4px solid var(--accent);
  border-bottom: 4px solid var(--accent);
  border-radius: 0 0 0 9px;
}
.founder-story-body::after {
  right: 0;
  top: 0;
  border-right: 4px solid var(--accent);
  border-top: 4px solid var(--accent);
  border-radius: 0 9px 0 0;
}
.founder-story-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 15px;
  text-align: left;
}
.founder-story-body p:last-child { margin-bottom: 0; }
.founder-story-open {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

@media (max-width: 768px) {
  .founder-story {
    margin-bottom: 52px;
  }
  .founder-story-lead { margin-bottom: 18px; }
  .founder-story-open { font-size: 25px; }
  .founder-story-body { padding: 28px 30px; }
  .founder-story-body::before,
  .founder-story-body::after { width: 34px; height: 34px; }
}

/* =====================================================================
   FEATURE 2 — VIEWING CALENDAR ANIMATION
===================================================================== */
.ui-confirm-btn {
  width: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 4px 12px color-mix(in oklab, var(--accent) 28%, transparent);
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.ui-confirm-btn i { font-size: 16px; }

.ui-card-calendar.anim-armed .ui-cal-day-available { background: #fff; border-color: var(--line); color: var(--ink-3); font-weight: 400; }
.ui-card-calendar.anim-armed .ui-cal-day-selected { background: #fff; border-color: var(--line); color: var(--ink-3); font-weight: 400; }
.ui-card-calendar.anim-armed .ui-cal-slot-selected { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent-ink); }
.ui-card-calendar.anim-armed .ui-confirm-badge { display: none; }

/* Reveal groups — fade only, space is reserved from the start so the card never resizes */
.ui-card-calendar.anim-armed .ui-cal-grid,
.ui-card-calendar.anim-armed .ui-cal-date-label,
.ui-card-calendar.anim-armed .ui-cal-slots { opacity: 0; transition: opacity 0.45s ease; }
.ui-card-calendar.anim-armed.cal-reveal-grid .ui-cal-grid { opacity: 1; }
.ui-card-calendar.anim-armed.cal-reveal-slots .ui-cal-date-label,
.ui-card-calendar.anim-armed.cal-reveal-slots .ui-cal-slots { opacity: 1; }

/* Footer reserves a fixed height so the button -> badge swap doesn't shift layout */
.ui-cal-footer { position: relative; min-height: 42px; display: flex; align-items: center; }

.ui-cal-day, .ui-cal-slot { transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.12s ease; }

.ui-cal-day.cal-lit { background: var(--accent-soft) !important; border-color: var(--accent-border) !important; color: var(--accent-ink) !important; font-weight: 600; position: relative; }
.ui-cal-day.cal-lit::after { display: none; }
.ui-cal-day.cal-selected { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; font-weight: 600; }
.ui-cal-day.cal-selected::after { display: none; }
.ui-cal-slot.cal-slot-selected { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; font-weight: 600; }
.cal-press { transform: scale(0.88); background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; font-weight: 600 !important; transition: transform 0.12s ease !important; }
.ui-cal-slot.cal-press { transform: scale(0.9); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent); }

.ui-confirm-btn.cal-btn-show { display: flex; animation: cal-pop 0.3s ease; }
.ui-confirm-btn.cal-btn-press { transform: scale(0.95); background: var(--accent-ink); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 20%, transparent); }
.ui-confirm-badge.cal-badge-show { display: flex; animation: cal-pop 0.3s ease; }
@keyframes cal-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* =====================================================================
   FEATURE 3 — CONTRACT ANIMATION
===================================================================== */
/* Fixed at the END (compact PDF) size from the very start, so the card is the same size at the beginning as at the end while the doc collapses into the PDF */
.ui-contract-stage { position: relative; margin-bottom: 14px; min-height: 116px; }

.ui-doc-write {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #fff;
  transform-origin: center 42%;
  transition: transform 0.55s cubic-bezier(0.5, 0, 0.75, 0), opacity 0.5s ease 0.05s;
}
.ui-doc-h { font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--ink); margin: 0 0 10px; letter-spacing: -0.01em; }
.ui-doc-rule { display: block; height: 1px; background: var(--line); width: 100%; margin: 0 0 13px; transform-origin: left center; }
.ui-doc-line { position: relative; display: block; height: 7px; border-radius: 4px; background: color-mix(in oklab, var(--ink) 9%, var(--paper)); margin-bottom: 9px; width: 100%; }
.ui-doc-line-short { width: 52%; }
.ui-doc-line-mid { width: 74%; }
.ui-doc-line:last-child { margin-bottom: 0; }

.ui-contract-file { flex-direction: column; align-items: stretch; gap: 11px; }
.ui-contract-file-top { display: flex; align-items: center; justify-content: space-between; }
.ui-pdf-preview { display: flex; flex-direction: column; gap: 5px; padding-top: 11px; border-top: 1px solid var(--line); }
.ui-pdf-pv-line { height: 5px; border-radius: 3px; background: color-mix(in oklab, var(--ink) 8%, var(--paper)); }
.ui-pdf-pv-short { width: 52%; }

/* Armed = hidden start state (no transition here, so nothing animates on page load) */
.ui-contract.anim-armed .ui-doc-h { opacity: 0; transform: translateY(-4px); }
.ui-contract.anim-armed .ui-doc-rule { transform: scaleX(0); }
.ui-contract.anim-armed .ui-doc-line { width: 0; }
.ui-contract.anim-armed .ui-doc-write { position: absolute; left: 0; right: 0; top: 0; }

/* Reveal states are scoped under .anim-armed so they out-specify the hidden state and actually show during the animation */
.ui-contract.anim-armed .ui-doc-h.doc-in { opacity: 1; transform: translateY(0); transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.ui-contract.anim-armed .ui-doc-rule.doc-in { transform: scaleX(1); transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.ui-contract.anim-armed .ui-doc-line.doc-in { width: 100%; transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.ui-contract.anim-armed .ui-doc-line.ui-doc-line-short.doc-in { width: 52%; }
.ui-contract.anim-armed .ui-doc-line.ui-doc-line-mid.doc-in { width: 74%; }

/* Caret riding the line currently being written */
.ui-doc-line.line-active::after {
  content: ""; position: absolute; right: -1px; top: 50%; transform: translateY(-50%);
  width: 2px; height: 13px; border-radius: 1px; background: var(--accent);
  animation: doc-caret 0.75s steps(1, end) infinite;
}
@keyframes doc-caret { 0%, 100% { opacity: 1; } 50% { opacity: 0.12; } }
.ui-contract.anim-armed .ui-contract-file {
  position: absolute; left: 0; right: 0; top: 0;
  opacity: 0; transform: scale(0.6);
  transition: opacity 0.35s ease 0.3s, transform 0.45s cubic-bezier(0.34, 1.4, 0.6, 1) 0.3s;
}
.ui-contract.anim-armed .ui-sign-item { opacity: 0; transform: translateY(6px); transition: opacity 0.3s ease, transform 0.3s ease, background 0.4s ease, border-color 0.4s ease; }

.ui-doc-write.doc-suck { position: absolute; left: 0; right: 0; top: 0; transform: scale(0.12) translateY(46px); opacity: 0; }
.ui-contract-file.pdf-show { position: relative !important; opacity: 1 !important; transform: scale(1) !important; }

.ui-sign-item.sign-reveal { opacity: 1 !important; transform: translateY(0) !important; }

/* Pending (not yet signed): neutral grey tick + grey label */
.ui-contract.anim-armed .ui-sign-item .ui-sign-who i { color: #C3C8D0; }
.ui-contract.anim-armed .ui-sign-item .ui-sign-status { color: #9AA1AC; }
/* Signed: the tick lights green with a pop and the label turns green — only for the party that just signed */
.ui-contract.anim-armed .ui-sign-item.sign-done .ui-sign-who i { color: #176A3A; animation: sign-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.ui-contract.anim-armed .ui-sign-item.sign-done .ui-sign-status { color: #176A3A; }
/* Final resting state after the animation ends */
.ui-sign-item.sign-done .ui-sign-who i { color: #176A3A; }
.ui-sign-item.sign-done .ui-sign-status { color: #176A3A; }
.ui-sign-spin { display: inline-block; color: var(--accent); animation: sign-spin 0.6s linear infinite; }
@keyframes sign-spin { to { transform: rotate(360deg); } }
@keyframes sign-pop { 0% { transform: scale(0.5); } 55% { transform: scale(1.2); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .ui-cal-day, .ui-cal-slot, .ui-confirm-btn,
  .ui-doc-write, .ui-doc-line, .ui-sign-item { transition: none !important; animation: none !important; }
  .ui-doc-write, .ui-doc-pull { display: none; }
  .ui-contract-stage { min-height: 0; }
}
