/* ════════════════════════════════════════════════════════
   TADAKADO — Design System (tadakado & Merchant pages)
   Organised as:
     1. Design Tokens  (:root)
     2. Reset & Base
     3. Layout Utilities
     4. Typography Utilities
     5. Button Components
     6. Trusted By (logo marquee)
     7. Shared Pill Navbar
     8. Shared TK-Footer
     9. Mobile Navbar
════════════════════════════════════════════════════════ */


/* ────────────────────────────────────────────────────────
   1. DESIGN TOKENS
   Edit here to retheme the entire site.
──────────────────────────────────────────────────────── */
:root {
  /* — Brand colours — */
  --color-primary:        #103294;
  --color-primary-hover:  #0d2677;
  --color-gold:           #FFB100;
  --color-gold-light:     #FFD154;
  --color-sky:            #2694F5;
  --color-success:        #22C55E;
  --color-danger:         #F87171;
  --color-info:           #7ECFFF;

  /* — Neutral palette — */
  --color-dark:           #282E40;
  --color-muted:          #555D6E;
  --color-subtle:         #959DA3;
  --color-white:          #ffffff;
  --color-bg:             #F8F9FE;
  --color-bg-card:        #dde4f5;

  /* — Dark surface palette (dark sections / footer) — */
  --color-navy:           #0B1F5E;
  --color-navy-deep:      #080F2E;

  /* — Tinted backgrounds — */
  --color-primary-tint:   #EEF4FF;
  --color-sky-tint:       #EDF5FF;
  --color-gold-tint:      #FFF8E6;
  --color-warm-tint:      #FFFAEF;

  /* — Typography — */
  --font-family:          'Poppins', sans-serif;

  --font-size-2xs:        11px;
  --font-size-xs:         12px;
  --font-size-sm:         13px;
  --font-size-base:       14px;
  --font-size-md:         15px;
  --font-size-lg:         16px;
  --font-size-xl:         18px;
  --font-size-2xl:        20px;
  --font-size-3xl:        clamp(22px, 2.5vw, 36px);
  --font-size-4xl:        clamp(24px, 3vw, 40px);
  --font-size-5xl:        clamp(28px, 3.5vw, 48px);
  --font-size-6xl:        clamp(32px, 4vw, 56px);

  --font-weight-normal:   400;
  --font-weight-medium:   500;
  --font-weight-semibold: 600;
  --font-weight-bold:     700;

  --line-height-tight:    1.1;
  --line-height-snug:     1.3;
  --line-height-normal:   1.5;
  --line-height-relaxed:  1.65;
  --line-height-loose:    1.7;

  /* — Spacing scale (4-point grid) — */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   20px;
  --space-6:   24px;
  --space-7:   28px;
  --space-8:   32px;
  --space-10:  40px;
  --space-12:  48px;
  --space-14:  56px;
  --space-16:  64px;
  --space-18:  72px;
  --space-20:  80px;

  /* — Border radius — */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-2xl:  24px;
  --radius-3xl:  32px;
  --radius-4xl:  40px;
  --radius-full: 100px;

  /* — Shadows — */
  --shadow-xs:   0 2px 10px rgba(27,37,68,.07);
  --shadow-sm:   0 2px 12px rgba(27,37,68,.08);
  --shadow-md:   0 2px 16px rgba(27,37,68,.10);
  --shadow-lg:   0 6px 28px rgba(27,37,68,.12);
  --shadow-card: 0 20px 60px rgba(16,50,148,.12);

  /* — Layout — */
  --nav-height:        72px;
  --max-width:         1280px;
  --section-padding-x: var(--space-20);
  --section-padding-y: var(--space-20);
}


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

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--color-dark);
  line-height: var(--line-height-normal);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}


/* ────────────────────────────────────────────────────────
   3. LAYOUT UTILITIES
──────────────────────────────────────────────────────── */
.sec {
  padding: var(--section-padding-y) var(--section-padding-x);
}

.sec-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.sec-center {
  text-align: center;
}


/* ────────────────────────────────────────────────────────
   4. TYPOGRAPHY UTILITIES
──────────────────────────────────────────────────────── */
.sec-eyebrow {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-dark);
  text-align: center;
}

.sec-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-dark);
  line-height: var(--line-height-snug);
}

.sec-subtitle {
  font-size: var(--font-size-md);
  color: var(--color-muted);
  line-height: var(--line-height-relaxed);
  margin-top: var(--space-3);
}

/* Inline tag / pill label */
.tag {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  background: var(--color-primary-tint);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  margin-bottom: var(--space-4);
}

.tag--gold {
  color: #B45309;
  background: #FEF3C7;
}


/* ────────────────────────────────────────────────────────
   5. BUTTON COMPONENTS
──────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 var(--space-7);
  background: var(--color-primary);
  border-radius: var(--radius-full);
  border: none;
  color: var(--color-white);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  transition: background .2s;
}

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

.btn-outline {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 var(--space-7);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  background: transparent;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  transition: all .2s;
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}


/* ────────────────────────────────────────────────────────
   6. TRUSTED BY (logo marquee)
──────────────────────────────────────────────────────── */
.trusted {
  padding: var(--space-16) var(--section-padding-x);
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-7);
  overflow: hidden;
}

.runway {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.runway::before,
.runway::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.runway::before {
  left: 0;
  background: linear-gradient(to right, var(--color-white), transparent);
}

.runway::after {
  right: 0;
  background: linear-gradient(to left, var(--color-white), transparent);
}

.runway-track {
  display: flex;
  width: max-content;
  animation: rl 36s linear infinite;
}

.runway-track-r {
  animation: rr 36s linear infinite;
}

@keyframes rl {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes rr {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.runway-track:hover,
.runway-track-r:hover {
  animation-play-state: paused;
}

.logo-slot {
  width: 168px;
  height: 108px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
}

.logo-slot img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}


/* ────────────────────────────────────────────────────────
   7. SHARED PILL NAVBAR (tadakado / merchant pages)
──────────────────────────────────────────────────────── */
.navbar {
  width: 1216px; height: 64px; padding: 0 24px;
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  background: #fff; box-shadow: 0px 2px 16px rgba(27,37,68,0.10);
  border-radius: 100px; display: flex; justify-content: space-between;
  align-items: center; z-index: 200;
}

.tada-logo { display: flex; align-items: flex-end; gap: 1.5px; text-decoration: none; }

.nav-link {
  padding: 8px 16px; color: #282E40; font-size: 14px;
  font-weight: 400; line-height: 20px; text-decoration: none; border-radius: 100px;
  transition: color 0.2s, box-shadow 0.2s;
}
.nav-link:hover {
  color: #103294;
  background: #F0F2F5;
}

.btn-demo-nav {
  height: 40px; padding: 8px 16px; background: #103294; border-radius: 100px;
  color: #fff; font-family: 'Poppins', sans-serif; font-size: 14px;
  font-weight: 500; line-height: 20px; border: none; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center;
  transition: background .2s;
}
.btn-demo-nav:hover { background: #3B5CE8; }


/* ────────────────────────────────────────────────────────
   8. SHARED TK-FOOTER (tadakado / merchant pages)
──────────────────────────────────────────────────────── */
.tk-footer { background: linear-gradient(180deg, #fff 0%, #F3F9FF 100%); padding: 0; }

/* ── Main row: 3 columns ── */
.tk-footer-inner {
  max-width: 1216px; margin: 0 auto; padding: 60px 24px 48px;
  box-sizing: border-box; width: 100%;
  display: flex; align-items: flex-start; gap: 40px;
}

/* ── Left: brand + badges ── */
.tk-footer-brand { display: flex; flex-direction: column; gap: 16px; flex-shrink: 0; }
.tk-footer-logo img { height: 32px; width: auto; }
.tk-footer-stores { display: flex; gap: 8px; }
.tk-footer-store-badge { width: 140px; height: 52px; object-fit: contain; border-radius: 8px; }
.tk-footer-badges { display: flex; align-items: center; gap: 8px; }
.tk-footer-badge-lg { width: 160px; height: 60px; object-fit: contain; border-radius: 8px; }
.tk-footer-badge-sm { width: 60px; height: 60px; object-fit: contain; border-radius: 8px; }

/* ── Middle: site map ── */
.tk-footer-nav { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; align-items: start; justify-items: start; padding-top: 6px; }
.tk-footer-nav a { color: #103294; font-size: 14px; font-weight: 400; line-height: 1.3; }
.tk-footer-nav a:hover { text-decoration: underline; }

/* ── Right: Follow Us + social icons ── */
.tk-footer-follow { display: flex; flex-direction: column; gap: 16px; flex-shrink: 0; padding-top: 6px; }
.tk-footer-follow-title { font-size: 16px; font-weight: 700; color: #1B2544; line-height: 1.3; }
.tk-footer-social { display: flex; align-items: center; gap: 20px; }
.tk-footer-social-btn {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0; text-decoration: none;
}
.tk-footer-social-btn svg { width: 32px; height: 32px; }

/* ── Addresses ── */
.tk-footer-addresses {
  max-width: 1216px; margin: 0 auto; padding: 32px 24px;
  box-sizing: border-box; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px;
  border-top: 1px solid #DBDFE9;
}
.tk-footer-addr { display: flex; flex-direction: column; gap: 8px; }
.tk-footer-addr-country { font-size: 14px; font-weight: 700; color: #1B2544; }
.tk-footer-addr-text { font-size: 13px; color: #848C9D; line-height: 1.5; }
.tk-footer-addr-link { font-size: 13px; font-weight: 600; color: #103294; text-decoration: none; width: fit-content; }
.tk-footer-addr-link:hover { text-decoration: underline; }

/* ── Bottom bar ── */
.tk-footer-bottom { border-top: 1px solid #DBDFE9; }
.tk-footer-bottom-inner {
  max-width: 1216px; margin: 0 auto; padding: 24px;
  box-sizing: border-box;
  display: flex; justify-content: space-between; align-items: center;
}
.tk-footer-copyright { font-size: 14px; color: #848C9D; }
.tk-footer-legal { display: flex; gap: 40px; }
.tk-footer-legal a { font-size: 14px; font-weight: 700; color: #103294; }
.tk-footer-legal a:hover { text-decoration: underline; }

@media (max-width: 1100px) {
  .navbar { width: calc(100% - 48px); }
}
@media (max-width: 900px) {
  .navbar { top: 12px; }
  .tk-footer-inner { flex-direction: column; gap: 32px; padding: 40px 24px 32px; }
  .tk-footer-nav { justify-items: start; }
  .tk-footer-addresses { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .tk-footer-bottom-inner { flex-direction: column; gap: 16px; align-items: flex-start; }
  .tk-footer-legal { gap: 20px; flex-wrap: wrap; }
}


/* ────────────────────────────────────────────────────────
   9. MOBILE NAVBAR (pill navbar used by tadakado / merchant pages)
──────────────────────────────────────────────────────── */
.navbar-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  border-radius: 8px;
}
.navbar-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #282E40;
  border-radius: 2px;
  transition: all .3s;
}
.navbar-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar-hamburger.open span:nth-child(2) { opacity: 0; }
.navbar-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.navbar-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  /* Space between the divider line and the first menu item below it — increase to push menu items further down */
  padding: 96px 24px 24px;
}
.navbar-drawer::before {
  content: '';
  position: absolute;
  /* Distance from the top of the overlay to the divider line.
     The logo/X row ends at 60px (top:20px + height:40px).
     76px means there is 16px of gap above the line.
     Increase this value to add more space above the line. */
  top: 76px;
  left: 0;
  right: 0;
  /* Thickness of the divider line — increase for a thicker line */
  height: 2px;
  background: #E5E7EB;
}
.navbar-drawer {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  z-index: 999;
  display: none;
}
.navbar-drawer.open {
  display: flex;
  animation: navFadeIn .2s ease;
}
@keyframes navFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.navbar-drawer-logo {
  position: absolute;
  top: 20px;
  left: 24px;
  height: 40px;
  display: flex;
  align-items: center;
}
.navbar-drawer-logo img {
  height: 24px; /* logo size in the mobile overlay — increase for bigger */
  width: auto;
}
.navbar-drawer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.navbar-drawer .nav-link {
  padding: 16px 8px;
  font-size: 16px; /* menu item font size in the mobile overlay — adjust as needed */
  font-weight: 400;
  border-bottom: none;
  color: #282E40;
  display: block;
  text-align: left;
}
.navbar-drawer .btn-demo-nav {
  width: 100%;
  padding: 0;
  height: 48px;
  font-size: 16px;
  justify-content: center;
  margin-top: 24px;
  border-radius: 100px;
  text-align: center;
}

@media (max-width: 640px) {
  .navbar .nav-links,
  .navbar > .btn-demo-nav { display: none; }
  .navbar-hamburger { display: flex; }
}

/* ───────────────────────────────────────────────
   Request Demo form section (HubSpot embed)
   Shared across all pages. Anchor target: #request-demo
   Structure classes mirror the design already defined inline in
   index.html so all pages render identically.
   ─────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
/* Offset the fixed navbar when jumping to the form */
#request-demo { scroll-margin-top: 120px; }

.tk-demo { background: #fff; padding: 60px 0; }
.tk-demo-container { max-width: 1216px; margin: 0 auto; padding: 0 24px; width: 100%; box-sizing: border-box; }
.tk-demo-inner { background: #F3F9FF; border-radius: 40px; padding: 40px; display: flex; gap: 40px; align-items: flex-start; }
.tk-demo-left { width: 460px; flex-shrink: 0; display: flex; flex-direction: column; gap: 40px; }
.tk-demo-label { font-size: 16px; font-weight: 500; color: #005EEB; }
.tk-demo-title { font-size: clamp(18px, 1.94vw, 28px); font-weight: 700; line-height: 1.4; color: #282E40; margin-top: 8px; }
.tk-demo-trust-label { font-size: 14px; color: #5D6C82; margin-bottom: 12px; }
.tk-demo-logos { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.tk-demo-logo { width: 65px; height: 50px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tk-demo-logo img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(.4); }
.tk-demo-right { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* HubSpot form — styled to match the site's form design + fonts */
#tk-hubspot-form,
#tk-hubspot-form * { font-family: 'Poppins', sans-serif !important; }
#tk-hubspot-form .hs-form-field > label {
  display: block;
  color: #282E40;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 8px;
}
#tk-hubspot-form .hs-form-required { color: #EA1C41; }

/* Inputs / selects / textareas — mirror .tk-form-input */
#tk-hubspot-form .hs-input:not([type="checkbox"]):not([type="radio"]) {
  width: 100% !important;
  box-sizing: border-box;
  height: 56px;
  padding: 12px;
  background: #fff;
  border: 1px solid #CBD0D6;
  border-radius: 16px;
  color: #282E40;
  font-size: 16px;
  outline: none;
  transition: border-color .2s;
}
#tk-hubspot-form textarea.hs-input { height: auto; min-height: 96px; }
#tk-hubspot-form .hs-input:focus { border-color: #103294; }
#tk-hubspot-form .hs-input::placeholder { color: #9EA4AF; }
#tk-hubspot-form select.hs-input {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23282E40' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}

/* Field spacing + responsive 2-column rows */
#tk-hubspot-form .hs-form-field { margin-bottom: 20px; }
#tk-hubspot-form fieldset { max-width: none !important; margin-bottom: 0; }
#tk-hubspot-form fieldset.form-columns-2 { display: flex; gap: 24px; }
#tk-hubspot-form fieldset.form-columns-2 .hs-form-field,
#tk-hubspot-form fieldset.form-columns-1 .hs-form-field { width: 100% !important; float: none !important; }
#tk-hubspot-form fieldset .hs-form-field .input { margin-right: 0 !important; }

/* Consent checkbox — mirror .tk-form-check */
#tk-hubspot-form .legal-consent-container,
#tk-hubspot-form .hs-form-booleancheckbox-display { color: #282E40; font-size: 14px; font-weight: 400; line-height: 1.4; }
#tk-hubspot-form .hs-form-booleancheckbox-display { display: flex; gap: 12px; align-items: flex-start; }
#tk-hubspot-form .hs-form-booleancheckbox-display input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; margin: 2px 0 0; accent-color: #103294; }

/* Submit — Request Demo CTA style (matches .btn-demo / .tk-form-submit) */
#tk-hubspot-form .hs-submit { margin-top: 4px; }
#tk-hubspot-form .hs-button,
#tk-hubspot-form input[type="submit"].hs-button {
  display: block;
  width: 100%;
  height: 50px;
  background: #103294;
  border: none;
  border-radius: 100px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s;
}
#tk-hubspot-form .hs-button:hover { background: #3B5CE8; }

/* Validation errors */
#tk-hubspot-form .hs-error-msgs { list-style: none; margin: 6px 0 0; padding: 0; }
#tk-hubspot-form .hs-error-msgs label { color: #EA1C41; font-size: 13px; font-weight: 400; }

/* Mobile responsive */
@media (max-width: 900px) {
  .tk-demo { padding: 40px 0; }
  .tk-demo-inner { flex-direction: column; gap: 32px; }
  .tk-demo-left { width: 100%; }
}
@media (max-width: 640px) {
  .tk-demo-container { padding: 0 16px; }
  .tk-demo-inner { padding: 24px; border-radius: 28px; }
  #tk-hubspot-form fieldset.form-columns-2 { flex-direction: column; gap: 0; }
  #tk-hubspot-form fieldset.form-columns-2 .hs-form-field { margin-bottom: 20px; }
}

/* ── Floating WhatsApp CTA ── */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(37, 211, 102, .35), 0 2px 6px rgba(0, 0, 0, .12);
  text-decoration: none;
  z-index: 9999;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.wa-float:hover {
  background: #1ebc59;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 211, 102, .45), 0 4px 10px rgba(0, 0, 0, .14);
}
.wa-float:focus-visible {
  outline: 3px solid #103294;
  outline-offset: 3px;
}
.wa-float:active { transform: translateY(0); }
.wa-float svg {
  width: 30px;
  height: 30px;
  display: block;
}
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: .35;
  animation: wa-pulse 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: .35; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float::before { animation: none; opacity: 0; }
  .wa-float, .wa-float:hover { transition: none; transform: none; }
}
@media (max-width: 640px) {
  .wa-float {
    right: 16px;
    bottom: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 52px;
    height: 52px;
  }
  .wa-float svg { width: 28px; height: 28px; }
}
