/* ===================================================
   Octopus Smart Tech — Main Stylesheet
   Domain: octopustechreferral.co.uk
   Colours: Hot Pink #e91e8c | Deep Pink #b4146e | Light Pink #f472b6
   =================================================== */

:root {
  --pink:       #e91e8c;
  --pink-dark:  #b4146e;
  --pink-light: #f472b6;
  --pink-pale:  #fce4f3;
  --pink-bg:    #fff0f8;
  --dark:       #1a0a12;
  --dark-mid:   #2d1020;
  --grey:       #6b7280;
  --grey-light: #f9fafb;
  --white:      #ffffff;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 20px rgba(233,30,140,0.12);
  --shadow-lg:  0 8px 40px rgba(233,30,140,0.2);
  --transition: 0.25s ease;
  --max-w:      1200px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--pink-dark); }
ul { list-style: none; }

/* ---- Typography ---- */
h1 { font-size: clamp(1.8rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.6rem); font-weight: 600; line-height: 1.35; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { font-size: 1.05rem; color: #374151; }

/* ---- Layout Utilities ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.section    { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.text-center { text-align: center; }
.text-pink   { color: var(--pink); }
.text-dark   { color: var(--dark); }
.bg-pink-pale { background: var(--pink-pale); }
.bg-pink-bg   { background: var(--pink-bg); }
.bg-dark      { background: var(--dark); color: var(--white); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
}
.btn-primary {
  background: var(--pink);
  color: var(--white);
  border-color: var(--pink);
}
.btn-primary:hover {
  background: var(--pink-dark);
  border-color: var(--pink-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-outline {
  background: transparent;
  color: var(--pink);
  border-color: var(--pink);
}
.btn-outline:hover {
  background: var(--pink);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--pink);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--pink-pale);
  color: var(--pink-dark);
  transform: translateY(-2px);
}
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid rgba(233,30,140,0.12);
  box-shadow: 0 2px 12px rgba(233,30,140,0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo img {
  height: 52px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--dark);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--pink-pale);
  color: var(--pink);
}
.nav-cta {
  margin-left: 12px;
  flex-shrink: 0;
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 40%, #4a0a2e 100%);
  color: var(--white);
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(233,30,140,0.18) 0%, transparent 60%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(233,30,140,0.2);
  border: 1px solid rgba(233,30,140,0.4);
  color: var(--pink-light);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--pink-light); }
.hero-desc { font-size: 1.1rem; color: rgba(255,255,255,0.85); margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(233,30,140,0.3);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  backdrop-filter: blur(10px);
}
.hero-card-amount {
  font-size: 4rem;
  font-weight: 900;
  color: var(--pink-light);
  line-height: 1;
  margin-bottom: 8px;
}
.hero-card-label {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-card-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.hero-card-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}
.hero-card-item .check {
  width: 22px;
  height: 22px;
  background: var(--pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--white);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.hero-stat {
  text-align: center;
  padding: 20px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--pink-light);
  display: block;
}
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.7); }

/* ---- Section Headers ---- */
.section-header { margin-bottom: 48px; }
.section-header .eyebrow {
  display: inline-block;
  color: var(--pink);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.05rem; color: var(--grey); max-width: 640px; }
.section-header.text-center p { margin: 0 auto; }

/* ---- Cards — equal-height with pinned button ---- */
.card {
  background: var(--white);
  border: 1px solid rgba(233,30,140,0.12);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  box-shadow: var(--shadow);
  /* Flex column so button can be pushed to bottom */
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(233,30,140,0.3);
}
.card-icon {
  width: 56px;
  height: 56px;
  background: var(--pink-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.card h3 { margin-bottom: 12px; }
/* Card body text grows to fill space, pushing button to bottom */
.card p  { color: var(--grey); font-size: 0.975rem; flex: 1; }
/* Card button always at the bottom */
.card .btn { margin-top: 24px; align-self: flex-start; }

/* ---- Grid layouts ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---- Referral CTA Banner ---- */
.referral-banner {
  background: linear-gradient(135deg, var(--pink-dark) 0%, var(--pink) 60%, var(--pink-light) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.referral-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.referral-banner > * { position: relative; z-index: 1; }
.referral-banner h2 { color: var(--white); margin-bottom: 16px; }
.referral-banner p  { color: rgba(255,255,255,0.9); font-size: 1.05rem; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.referral-banner .amount {
  font-size: 3.5rem;
  font-weight: 900;
  display: block;
  margin-bottom: 8px;
}

/* ---- Steps ---- */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(233,30,140,0.1);
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 48px;
  height: 48px;
  background: var(--pink);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.step-content h4 { margin-bottom: 6px; font-size: 1.05rem; }
.step-content p  { color: var(--grey); font-size: 0.95rem; }

/* ---- Savings Table ---- */
.savings-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.savings-table th {
  background: var(--pink);
  color: var(--white);
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}
.savings-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(233,30,140,0.08);
  font-size: 0.975rem;
}
.savings-table tr:nth-child(even) td { background: var(--pink-bg); }
.savings-table tr:last-child td { border-bottom: none; }
.savings-table .highlight { color: var(--pink); font-weight: 700; }

/* ---- Savings Calculator ---- */
.calc-form {
  background: var(--white);
  border: 1px solid rgba(233,30,140,0.15);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(233,30,140,0.08);
  font-size: 0.975rem;
  flex-wrap: wrap;
  gap: 8px;
}
.calc-row:last-child { border-bottom: none; }
.calc-output { margin-top: 16px; }

/* ---- FAQ Accordion ---- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid rgba(233,30,140,0.15);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.975rem;
  background: var(--white);
  transition: background var(--transition);
  user-select: none;
  gap: 12px;
}
.faq-question:hover { background: var(--pink-bg); }
.faq-question.open { background: var(--pink-pale); color: var(--pink-dark); }
.faq-icon {
  width: 24px;
  height: 24px;
  background: var(--pink-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink);
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-question.open .faq-icon { transform: rotate(45deg); background: var(--pink); color: var(--white); }
.faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: var(--grey);
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-answer.open { display: block; }

/* ---- Trust Badges ---- */
.trust-bar {
  background: var(--pink-bg);
  border-top: 1px solid rgba(233,30,140,0.1);
  border-bottom: 1px solid rgba(233,30,140,0.1);
  padding: 20px 0;
}
.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark-mid);
}
.trust-item .icon { font-size: 1.3rem; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  padding: 14px 0;
  font-size: 0.875rem;
  color: var(--grey);
}
.breadcrumb a { color: var(--pink); }
.breadcrumb span { margin: 0 6px; }

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 50%, #4a0a2e 100%);
  color: var(--white);
  padding: 70px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(233,30,140,0.2) 0%, transparent 60%);
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p  { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 640px; margin: 0 auto; }

/* ---- Highlight Box ---- */
.highlight-box {
  background: var(--pink-pale);
  border-left: 4px solid var(--pink);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.highlight-box p { color: var(--dark-mid); margin: 0; }

/* ---- Stat Cards ---- */
.stat-card {
  background: var(--white);
  border: 1px solid rgba(233,30,140,0.15);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-card .num {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--pink);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-card .label { font-size: 0.9rem; color: var(--grey); font-weight: 500; }

/* ---- Comparison Cards ---- */
.compare-card {
  background: var(--white);
  border: 2px solid rgba(233,30,140,0.15);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.compare-card h3 { margin-bottom: 20px; font-size: 1.3rem; }

/* ---- Footer ---- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand img { height: 44px; width: auto; max-width: 260px; object-fit: contain; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--pink-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }
.footer-disclaimer {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================
   RESPONSIVE BREAKPOINTS
   =================================================== */

/* ---- Tablet (≤1024px) ---- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-inner { gap: 40px; }
  .nav-links a { padding: 7px 10px; font-size: 0.875rem; }
}

/* ---- Mobile (≤768px) ---- */
@media (max-width: 768px) {
  /* Nav */
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 12px 16px 20px;
    border-bottom: 2px solid rgba(233,30,140,0.15);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; font-size: 1rem; border-radius: 8px; }
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }
  .nav-logo img { height: 40px; max-width: 220px; }
  .nav { position: relative; }

  /* Hero */
  .hero { padding: 60px 0 50px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-card { padding: 28px 24px; }
  .hero-card-amount { font-size: 3.2rem; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-stat { padding: 14px 10px; }
  .hero-stat-num { font-size: 1.4rem; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Sections */
  .section { padding: 56px 0; }
  .section-sm { padding: 36px 0; }
  .section-header { margin-bottom: 36px; }

  /* Grids */
  .grid-2 { grid-template-columns: 1fr; gap: 20px; }
  .grid-3 { grid-template-columns: 1fr; gap: 20px; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 16px; }

  /* Cards */
  .card { padding: 24px 20px; }
  .card .btn { width: 100%; justify-content: center; }

  /* Referral banner */
  .referral-banner { padding: 36px 24px; }
  .referral-banner .amount { font-size: 2.8rem; }

  /* Steps */
  .step { gap: 16px; padding: 20px 0; }
  .step-num { width: 40px; height: 40px; font-size: 1rem; }

  /* Savings table — horizontal scroll */
  .savings-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .savings-table { min-width: 420px; }
  .savings-table th, .savings-table td { padding: 12px 14px; font-size: 0.875rem; }

  /* Trust bar */
  .trust-items { gap: 16px; justify-content: flex-start; }
  .trust-item { font-size: 0.8rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }

  /* Page hero */
  .page-hero { padding: 50px 0 40px; }
  .page-hero h1 { font-size: 1.8rem; }
  .page-hero p { font-size: 1rem; }

  /* Compare cards */
  .compare-card { padding: 24px 20px; }
}

/* ---- Small Mobile (≤480px) ---- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 10px; }
  .hero-stat-num { font-size: 1.3rem; }
  .trust-items { gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }
  .hero { padding: 50px 0 40px; }
  .hero-card-amount { font-size: 2.8rem; }
  .btn { padding: 12px 22px; font-size: 0.95rem; }
  .btn-lg { padding: 14px 28px; font-size: 1rem; }
  .referral-banner { padding: 28px 18px; }
  .referral-banner .amount { font-size: 2.4rem; }
  .section { padding: 44px 0; }
  .faq-question { padding: 14px 16px; font-size: 0.9rem; }
  .faq-answer { padding: 0 16px 14px; }
  .calc-form { padding: 20px 16px; }
  .footer { padding: 40px 0 24px; }
  .footer-bottom { font-size: 0.8rem; }
}
