/* Ezy Kiwi home page. Bright violet hero with sweeping waves, light content sections, pastel accents. */
:root {
  --navy: #211E52;          /* header, footer, dark section */
  --navy-2: #2B2868;
  --violet: #5E4FC6;
  --violet-2: #7A5AF8;
  --sky: #62A6EE;
  --coral: #EE6B8A;
  --mint: #8EE3B5;
  --sun: #FFC857;
  --lilac: #C9BDFF;
  --paper: #F6F4FF;         /* light sections */
  --white: #FFFFFF;
  --ink: #FFFFFF;           /* text on dark/colour */
  --ink-soft: #E4E1FF;
  --ink-dark: #1F1D47;      /* text on light */
  --muted-dark: #58557E;
  --line: rgba(255, 255, 255, 0.18);
  --line-dark: rgba(31, 29, 71, 0.12);
  --radius: 18px;
}

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

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

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); max-width: 22ch; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }
a { color: var(--mint); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; }
.center h2 { margin-left: auto; margin-right: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--sun); color: var(--ink-dark); padding: 8px 14px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(33, 30, 82, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em;
}
.brand b { color: var(--sun); font-weight: 800; }
.brand-mark { width: 40px; height: 40px; flex: none; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--white); }

.signin { position: relative; }
.signin summary {
  list-style: none; cursor: pointer;
  background: var(--sun); color: var(--ink-dark); font-weight: 600;
  padding: 8px 18px; border-radius: 999px;
}
.signin summary::-webkit-details-marker { display: none; }
.signin-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 250px;
  background: var(--white); border-radius: 14px;
  padding: 8px; box-shadow: 0 20px 40px rgba(20, 16, 60, 0.35);
}
.nav-links .signin-menu a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink-dark); }
.signin-menu a:hover { background: var(--paper); }
.signin-menu span { display: block; font-size: 0.85rem; color: var(--muted-dark); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.bars, .bars::before, .bars::after {
  display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
}
.bars::before, .bars::after { content: ''; position: absolute; left: 0; }
.bars::before { top: -7px; }
.bars::after { top: 7px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a { display: block; padding: 12px 0; }
  .signin summary { display: inline-block; margin-top: 8px; }
  .signin-menu { position: static; margin-top: 10px; box-shadow: none; }
}

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions.center { justify-content: center; }
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px;
  background: var(--sun); color: var(--ink-dark);
  font-weight: 600; text-decoration: none; border: 2px solid var(--sun);
  box-shadow: 0 8px 20px rgba(255, 200, 87, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255, 200, 87, 0.35); }
.btn.ghost { background: rgba(255, 255, 255, 0.08); color: var(--ink); border-color: rgba(255, 255, 255, 0.45); box-shadow: none; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.16); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 104px 0 120px;
  background: linear-gradient(160deg, #6A55D9 0%, var(--violet) 45%, #4B3FB0 100%);
}
.hero-waves {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sun); margin-bottom: 14px;
}
.hero .eyebrow {
  display: inline-block; background: var(--navy); color: var(--white);
  padding: 6px 14px; border-radius: 999px; font-size: 0.75rem;
}
.hl {
  color: var(--mint);
  text-shadow: 0 2px 0 rgba(33, 30, 82, 0.35);
}
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 56ch; }

.flow { display: grid; gap: 14px; }
.flow-step {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  border-radius: 16px; padding: 18px 22px;
  color: var(--ink-dark);
  box-shadow: 0 16px 30px rgba(20, 16, 60, 0.28);
}
.flow-step .k { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.2rem; }
.flow-step .v { font-size: 0.95rem; text-align: right; opacity: 0.8; }
.flow-step.s1 { background: #A9D4FF; transform: rotate(-1.5deg); }
.flow-step.s2 { background: var(--mint); margin-left: 28px; transform: rotate(1deg); }
.flow-step.s3 { background: var(--sun); margin-left: 56px; transform: rotate(-1deg); }
.flow-step.s4 { background: #FFB3C4; margin-left: 84px; transform: rotate(1.5deg); }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--mint); color: var(--ink-dark);
  overflow: hidden; white-space: nowrap;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.ticker-track { display: inline-flex; animation: ticker 40s linear infinite; }
.ticker ul { display: inline-flex; list-style: none; margin: 0; padding: 14px 0; }
.ticker li { padding: 0 28px; position: relative; }
.ticker li::after { content: '\2022'; position: absolute; right: -4px; opacity: 0.5; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section.dark { background: var(--navy-2); }
.section-lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 64ch; }

/* Light sections: dark text on a pale lavender background */
.section.light { background: linear-gradient(160deg, #CFE3FF 0%, #DCD3FF 100%); color: var(--ink-dark); }
.section.light.mint { background: linear-gradient(160deg, #C6F1DC 0%, #CFE3FF 100%); }
.section.light.white { background: var(--white); }
.section.light .eyebrow { color: var(--violet-2); }
.section.light .section-lead { color: var(--muted-dark); }
.section.light a { color: #4F46E5; }
.section.light .btn { color: var(--ink-dark); }
.section.light .btn.ghost { background: transparent; color: var(--ink-dark); border-color: rgba(31, 29, 71, 0.25); }
.section.light .btn.ghost:hover { background: rgba(94, 79, 198, 0.08); }

/* Bright gradient section */
.section.bright {
  background: linear-gradient(135deg, var(--violet) 0%, #5A7FE0 55%, var(--sky) 100%);
}

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; position: relative;
}
.card p { color: var(--ink-soft); margin: 0; }

/* coloured badge on each service card */
.cards.services .card::before {
  content: ''; display: block; width: 44px; height: 44px; border-radius: 14px; margin-bottom: 18px;
  background: var(--accent, var(--sky));
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}
.cards.services .card { border-top: 4px solid var(--accent, var(--sky)); }
.cards.services .card:nth-child(1) { --accent: #7CC0FF; }
.cards.services .card:nth-child(2) { --accent: var(--mint); }
.cards.services .card:nth-child(3) { --accent: #FF9BB3; }
.cards.services .card:nth-child(4) { --accent: var(--sun); }

.section.bright .card {
  background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
}
.section.bright .card p { color: #F1F0FF; }
.section.bright .eyebrow { color: var(--sun); }

/* ---------- Products ---------- */
.product {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center;
  margin-top: 56px; padding: 40px;
  background: var(--white); border: 1px solid var(--line-dark); border-radius: 24px;
  box-shadow: 0 24px 50px rgba(60, 50, 150, 0.10);
  position: relative; overflow: hidden;
}
.product::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: linear-gradient(180deg, var(--sky), var(--mint));
}
.product.hs::before { background: linear-gradient(180deg, var(--sun), var(--coral)); }
.product h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.product-copy > p { color: var(--muted-dark); }
.tag {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.tag.teal { background: #D9F5EA; color: #0F7A55; }
.tag.amber { background: #FFEFD0; color: #A15C07; }

.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ''; position: absolute; left: 4px; top: 7px; width: 12px; height: 7px;
  border-left: 2px solid #1FA971; border-bottom: 2px solid #1FA971; transform: rotate(-45deg);
}
.more { margin-top: 20px; font-size: 0.95rem; color: var(--muted-dark); }

.product-visual {
  border-radius: var(--radius); padding: 24px; color: var(--ink);
  box-shadow: 0 20px 40px rgba(60, 50, 150, 0.25);
}
.product-visual.otb { background: linear-gradient(150deg, #4B6FD8, var(--violet)); }
.product-visual.hs { background: linear-gradient(150deg, var(--violet-2), #C0508F); }
.stages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.stages span {
  background: rgba(255, 255, 255, 0.16); border-radius: 10px; padding: 12px; font-weight: 600;
}
.stages b { display: block; color: var(--mint); font-size: 0.8rem; }
.spark { width: 100%; height: auto; }

.check {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.16); margin-bottom: 10px;
  font-weight: 500;
}
.check:last-child { margin-bottom: 0; }
.check i { font-style: normal; font-size: 0.85rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; color: var(--ink-dark); }
.check.done i { background: var(--mint); }
.check.warn i { background: #FFB3C4; }
.check.due i { background: var(--sun); }

/* ---------- FAQ ---------- */
.faq { margin-top: 32px; display: grid; gap: 12px; }
.faq details {
  background: var(--white); border: 1px solid var(--line-dark); border-radius: 14px; padding: 4px 22px;
  box-shadow: 0 6px 16px rgba(60, 50, 150, 0.06);
}
.faq details[open] { border-color: var(--lilac); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 28px 16px 0; position: relative;
  font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 0; top: 12px; font-size: 1.4rem; color: var(--violet-2);
}
.faq details[open] summary::after { content: '\2212'; }
.faq details p { color: var(--muted-dark); }

/* ---------- Contact + footer ---------- */
.contact {
  overflow: hidden;
  background: linear-gradient(120deg, #149C92 0%, #2F86D6 55%, var(--violet) 100%);
}
.contact .section-lead { color: #EAF8FF; margin-left: auto; margin-right: auto; }
.site-footer { background: var(--navy); padding: 56px 0 32px; color: var(--ink-soft); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: 1rem; font-family: 'Inter', sans-serif; letter-spacing: 0; color: var(--ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer .brand { color: var(--ink); margin-bottom: 10px; }
.copyright { margin-top: 40px; font-size: 0.9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .product { grid-template-columns: 1fr; }
  .flow { max-width: 520px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 64px 0 80px; }
  .section { padding: 72px 0; }
  .cards, .cards.three, .footer-grid { grid-template-columns: 1fr; }
  .product { padding: 28px 24px; }
  .flow-step.s2, .flow-step.s3, .flow-step.s4 { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .ticker-track { animation: none; }
}
