/* Tik Tools – aligned, minimal brand */

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f4f6;
  color: #0f172a;
  min-height: 100vh;
}

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER – light, integrated with page */

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.7rem 1.3rem 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

/* Brand lockup */



.logo-box {
  width: 30px;
  height: 30px;
  border-radius: 0.6rem;
  background: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);
}

.logo-inner {
  width: 18px;
  height: 18px;
  border-radius: 0.5rem;
  border: 2px solid #6366f1;
  position: relative;
}

/* simple tick */
.logo-inner::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 4px;
  width: 9px;
  height: 5px;
  border-left: 2px solid #22c55e;
  border-bottom: 2px solid #22c55e;
  transform: rotate(-35deg);
}



.brand-name {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.brand-tagline {
  font-size: 0.8rem;
  color: #6b7280;
}

/* Header nav */

.nav {
  display: flex;
  gap: 0.9rem;
  font-size: 0.86rem;
}

.nav a {
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  color: #4b5563;
  border: 1px solid transparent;
}

.nav a:hover {
  border-color: #d1d5db;
  background: #e5e7eb;
  color: #111827;
}

/* MAIN LAYOUT */

.main {
  flex: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.1rem 1.3rem 2.8rem;
}

/* HERO / page headings */

.hero-title-eyebrow,
.money-tool-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #6b7280;
  margin-bottom: 0.35rem;
}

h1,
.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  color: #020617;
}

.hero-sub,
.tool-intro {
  margin: 0.7rem 0 1.3rem;
  color: #4b5563;
  max-width: 32rem;
  font-size: 0.97rem;
}

/* Calculator cards */

.card,
.calculator-card {
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.10);
  padding: 1.15rem 1.3rem 1.2rem;
}

.results-card {
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  padding: 1rem 1.3rem 1.1rem;
}

.form {
  display: grid;
  gap: 0.85rem;
}

.field label {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
  color: #111827;
}

.field input {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.8rem;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  font-size: 0.88rem;
}

.field input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.5);
}

/* Primary button – single Tik gradient, tidy */

.btn,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 18px 36px rgba(79, 70, 229, 0.5);
}

.btn:hover,
.btn-primary:hover {
  filter: brightness(1.06);
}

.disclaimer {
  font-size: 0.76rem;
  color: #6b7280;
  margin-top: 0.55rem;
}

/* Results text */

.results-empty {
  font-size: 0.86rem;
  color: #6b7280;
}

.result-main {
  font-size: 0.94rem;
  color: #111827;
}

.result-list {
  margin: 0.8rem 0;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  color: #111827;
}

.result-note {
  font-size: 0.82rem;
  color: #4b5563;
}

.error {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: #b91c1c;
}

/* Home cards / grids (if used) */

.section {
  margin-bottom: 2.5rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.section-title {
  font-size: 1.16rem;
  margin: 0.25rem 0 0;
  color: #020617;
}

.section-sub {
  font-size: 0.86rem;
  color: #6b7280;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card-title {
  font-size: 0.96rem;
  margin-bottom: 0.3rem;
  color: #111827;
}

.card-body {
  font-size: 0.86rem;
  color: #4b5563;
}

.card-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  font-size: 0.72rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  color: #374151;
  background: #f3f4f6;
}

.pill-soft {
  background: #e5e7eb;
}

/* Footer */

.footer {
  margin-top: auto;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.2rem 1.3rem 1.1rem;
}

.footer-bottom {
  font-size: 0.8rem;
  color: #6b7280;
}

.footer-bottom a {
  color: #4f46e5;
}

.footer-bottom a:hover {
  color: #1d4ed8;
}

/* Responsive tweaks */

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }
  .main {
    padding-top: 1.5rem;
  }
}
/* --- Tik Tools logo clean-up override --- */

/* --- Tik Tools logo v2: bigger + bolder --- */

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  padding: 3px;
  /* bright Tik-style gradient frame */
  background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 32px rgba(79, 70, 229, 0.55);
}

/* solid dark inner square so the tick is clear */
.logo-inner {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #020617;
}

/* hide any old decorative pieces */
.logo-line,
.logo-row,
.logo-row-line,
.logo-row-box {
  display: none;
}

/* big, clear green tick */
.logo-inner::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: 7px;
  width: 16px;
  height: 10px;
  border-left: 3px solid #22c55e;
  border-bottom: 3px solid #22c55e;
  transform: rotate(-35deg);
}

/* make the brand text match the stronger logo */
.brand-name {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-tagline {
  font-size: 0.82rem;
  color: #6b7280;
}
/* --- Tik Tools logo v3: text brand with tick, no box --- */

<a href="/index.html" class="brand">
  <div class="logo-icon">
    <img src="/assets/tiktools-logo-64.png" alt="Tik Tools logo" class="logo-img">
  </div>
  <div class="brand-text">
    <div class="brand-name">Tik Tools</div>
    <div class="brand-tagline">Tik sorts it.</div>
  </div>
</a>


/* Align brand text nicely */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Main name: bold, one clear style, integrated tick */
.brand-name {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #020617;
}


.brand-name::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 10px;
  border-left: 3px solid #22c55e;
  border-bottom: 3px solid #22c55e;
  transform: rotate(-35deg);
}

/* Tagline: one softer shade, no shadow effect */
.brand-tagline {
  font-size: 0.82rem;
  color: #6b7280;
}
.logo-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}
/* Put logo + text on one row in the header */

/* Force header logo and text into one row */
.brand-row {
  display: flex !important;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

/* Size and centre the logo icon next to the text */
.brand-row .logo-icon {
  width: 40px;
  height: 40px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0;
}

/* Tidy the text next to the logo */
.brand-row .brand-text {
  line-height: 1.1;
}
/* Force header logo and text into one row */
.brand-row {
  display: flex !important;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

/* Size and centre the logo icon next to the text */
.brand-row .logo-icon {
  width: 40px;
  height: 40px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0;
}

/* Tidy the text next to the logo */
.brand-row .brand-text {
  line-height: 1.1;
}
/* Force header logo and text into one row */
.brand-row {
  display: flex !important;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

/* Size and centre the logo icon next to the text */
.brand-row .logo-icon {
  width: 40px;
  height: 40px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0;
}

/* Tidy the text next to the logo */
.brand-row .brand-text {
  line-height: 1.1;
}.logo-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ... */

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

/* Put logo + text on one row in the header */
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem; /* space between logo and text */
  text-decoration: none;
}
/* === Tik Tools header v2 (independent from old styles) === */

.tik-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffffcc;        /* slight transparency */
  backdrop-filter: blur(10px);  /* subtle glass effect on modern browsers */
  border-bottom: 1px solid #e5e7eb;
}

.tik-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo + text in one row */
.tik-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

/* Logo icon box */

   {width: 40px;
  he.tik-logo-iconight: 40px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(88, 28, 135, 0.25); /* purple glow */
}

/* Actual image */
.tik-logo-img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

/* Text next to logo */
.tik-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.tik-brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #020617; /* very dark navy */
}

.tik-brand-tagline {
  font-size: 0.8rem;
  color: #6b7280; /* soft grey */
}

/* Navigation on the right */
.tik-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.tik-nav a {
  color: #4b5563;
  text-decoration: none;
}

.tik-nav a:hover {
  color: #111827;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .tik-header-inner {
    padding: 0.5rem 1rem;
  }

  .tik-brand-tagline {
    display: none;          /* save space on small screens */
  }

  .tik-nav {
    gap: 0.75rem;
    font-size: 0.85rem;
  }
}
/* === Tik Tools header v2 – standalone styles === */

.tik-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffffcc;        /* slight transparency */
  backdrop-filter: blur(10px);  /* soft glass effect */
  border-bottom: 1px solid #e5e7eb;
}

.tik-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo + text in one row */
.tik-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

/* Logo icon box */
.tik-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(88, 28, 135, 0.25); /* purple glow */
}

/* Actual image */
.tik-logo-img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

/* Text next to logo */
.tik-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.tik-brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #020617; /* very dark navy */
}

.tik-brand-tagline {
  font-size: 0.8rem;
  color: #6b7280; /* soft grey */
}

/* Navigation on the right */
.tik-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.tik-nav a {
  color: #4b5563;
  text-decoration: none;
}

.tik-nav a:hover {
  color: #111827;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .tik-header-inner {
    padding: 0.5rem 1rem;
  }

  .tik-brand-tagline {
    display: none; /* saves space on very small screens */
  }

  .tik-nav {
    gap: 0.75rem;
    font-size: 0.85rem;
  }
}
/* === Tik Tools brand colours (from approved logo set) === */
:root {
  --tik-bg-dark: #020617; /* deep navy */
  --tik-grad-start: #ec4899; /* pink */
  --tik-grad-mid:   #8b5cf6; /* purple */
  --tik-grad-end:   #22c1ff; /* blue */
}

/* Sticky, light header bar */
.tik-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffffee;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
}

.tik-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand wrapper (logo + text) */
.tik-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

/* Square tick icon – matches top logo on your sheet */
.tik-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  padding: 4px;
  background-image:
    linear-gradient(#0b1120, #0b1120),
    linear-gradient(135deg,
      var(--tik-grad-start),
      var(--tik-grad-mid),
      var(--tik-grad-end));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
}

/* Bold tick inside the box */
.tik-logo-tick {
  width: 20px;
  height: 20px;
  border-bottom: 3px solid #111827; /* very dark navy tick */
  border-left: 3px solid #111827;
  transform: rotate(-45deg) translateY(-3px);
}


/* Text next to logo */
.tik-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

/* Tik Tools – gradient text like in the logo */
.tik-brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background-image: linear-gradient(
    135deg,
    var(--tik-grad-start),
    var(--tik-grad-mid),
    var(--tik-grad-end)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Tik sorts it. – softer grey/blue */
.tik-brand-tagline {
  font-size: 0.82rem;
  color: #9ca3af;
}

/* Header nav (Tools / Guides) */
.tik-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.tik-nav a {
  color: #4b5563;
  text-decoration: none;
}

.tik-nav a:hover {
  color: #111827;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .tik-header-inner {
    padding: 0.5rem 1rem;
  }

  .tik-brand-tagline {
    display: none; /* hide tagline on very small screens */
  }

  .tik-brand-name {
    font-size: 1.15rem;
  }

  .tik-nav {
    gap: 0.8rem;
    font-size: 0.85rem;
  }
}
/* Header logo – tidy size and edges */
.tik-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);
  display: block;
}
.guide-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.guide-card:hover {
  text-decoration: none;
}
.tool-card,
.guide-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.tool-card:hover,
.guide-card:hover {
  text-decoration: none;
}
/* === Tik Tools header branding – shared on all pages === */
.tik-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.tik-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: block;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);
}

.tik-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.tik-brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #020617;
}

.tik-brand-tagline {
  font-size: 0.8rem;
  color: #6b7280;
}
/* Back to home link on sub-pages */
.back-link {
  margin-top: 2rem;
  font-size: 0.9rem;
}

.back-link a {
  color: #4b5563;
  text-decoration: none;
}

.back-link a:hover {
  text-decoration: underline;
  color: #111827;
}
/* Home page affiliate / partner block */
.ad-slot-home {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: #f9fafb;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
}

.ad-slot-home-title {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.ad-slot-home-note {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.35rem;
}
/* Home page affiliate / partner block */
.ad-slot-home {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: #f9fafb;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
}

.ad-slot-home-title {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.ad-slot-home-note {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.35rem;
}
/* Home page affiliate / partner block */
.ad-slot-home {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: #f9fafb;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
}

.ad-slot-home-title {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.ad-slot-home-note {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.35rem;
}
/* === Tik Tools header brand – FINAL OVERRIDE === */

.header .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

/* Square icon with gradient border */
.header .brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  padding: 2px;
  background: linear-gradient(135deg, #ff4fd8, #b255ff, #4ab5ff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(35, 35, 80, 0.55);
}

.header .brand-icon-inner {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: #020617;        /* deep navy, like your logo background */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tick */
.header .brand-tick {
  width: 62%;
  height: 62%;
  border-bottom: 4px solid #4ab5ff;
  border-left: 4px solid #ff4fd8;
  transform: rotate(-45deg) translateY(-2px);
  border-radius: 4px;
}

/* Text part */
.header .brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

/* Tik Tools – gradient text */
.header .brand-name {
  font-size: 1.25rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, #ff4fd8, #b255ff, #4ab5ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Tik sorts it. – softer, lighter */
.header .brand-tagline {
  font-size: 0.8rem;
  color: #c7d2ff;
  letter-spacing: 0.02em;
}

/* Slightly smaller on very small screens */
@media (max-width: 480px) {
  .header .brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .header .brand-icon-inner {
    border-radius: 10px;
  }

  .header .brand-name {
    font-size: 1.05rem;
  }

  .header .brand-tagline {
    font-size: 0.75rem;
  }
}
