/* Easy Calculator — marketing site */
:root {
  --bg: #061018;
  --bg-soft: #0a1520;
  --surface: #0f1c28;
  --surface-2: #142433;
  --surface-elev: #1a2e40;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f2f7fb;
  --muted: #93a6b8;
  --dim: #6a7f93;

  --primary: #1f598d;
  --primary-2: #4390d8;
  --primary-dark: #16466f;
  --primary-glow: rgba(67, 144, 216, 0.38);

  /* Logo blues: navy #1f598d + GST tile #9dc6ed */
  --hl: #9dc6ed;
  --hl-soft: rgba(157, 198, 237, 0.16);
  --accent-soft: #9dc6ed;

  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 22px;
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.35);
  --max-width: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 10% -10%, rgba(67, 144, 216, 0.16), transparent 58%),
    radial-gradient(720px 480px at 92% 6%, rgba(157, 198, 237, 0.1), transparent 55%);
  z-index: -1;
}

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

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

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

ul {
  color: var(--muted);
}

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin: 0 auto;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(6, 16, 24, 0.78);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  z-index: 30;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px var(--primary-glow);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.nav-cta {
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
}

.nav-links a.nav-cta:hover {
  border-color: var(--primary-2);
  color: var(--accent-soft);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #ffffff;
  box-shadow: 0 14px 30px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px var(--primary-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--primary-2);
  color: var(--accent-soft);
  transform: translateY(-1px);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ===== Shared section bits ===== */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 1.25rem;
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--hl);
  box-shadow: 0 0 12px rgba(157, 198, 237, 0.55);
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-heading.left {
  text-align: left;
  margin-left: 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hl);
  margin-bottom: 0.65rem;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 1.2vw + 1.2rem, 2.2rem);
  margin-bottom: 0.65rem;
}

.section-heading p {
  margin: 0;
}

section {
  padding: 4.5rem 0;
}

.accent {
  color: var(--hl);
}

.hl {
  color: var(--hl);
}

/* ===== Product hero ===== */
.product-hero {
  padding: 5.5rem 0 3rem;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
}

.product-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.product-brand img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft);
  background: #fff;
}

.product-brand h1 {
  margin: 0;
  font-family: "Poppins", "Manrope", sans-serif;
  font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem);
}

.product-brand p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.product-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 1.75rem;
}

.product-hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.product-hero-card img {
  border-radius: 14px;
  width: 100%;
}

/* ===== Description ===== */
.description-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.callout h3 {
  margin-top: 0;
}

.callout ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.callout li + li {
  margin-top: 0.45rem;
}

/* ===== Feature showcase (phone cards) ===== */
.features-showcase {
  padding-top: 3.5rem;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.showcase-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(20, 42, 62, 0.95) 0%, rgba(10, 22, 34, 0.98) 55%, #08131e 100%);
  box-shadow:
    0 0 0 1px rgba(67, 144, 216, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.showcase-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 120px;
  background: radial-gradient(120% 100% at 50% 0%, rgba(157, 198, 237, 0.16), transparent 70%);
  pointer-events: none;
}

.showcase-card:hover {
  transform: translateY(-6px);
  border-color: rgba(157, 198, 237, 0.35);
  box-shadow:
    0 0 0 1px rgba(157, 198, 237, 0.14),
    0 28px 60px rgba(0, 0, 0, 0.45);
}

.showcase-card-wide {
  grid-column: auto;
}

.showcase-copy {
  position: relative;
  z-index: 1;
  padding: 1.15rem 1.1rem 0.5rem;
}

.showcase-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.85rem;
  height: 1.35rem;
  padding: 0 0.45rem;
  margin-bottom: 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--hl);
  background: var(--hl-soft);
  border: 1px solid rgba(157, 198, 237, 0.3);
}

.showcase-copy h3 {
  margin: 0 0 0.4rem;
  font-family: "Poppins", "Manrope", sans-serif;
  font-size: clamp(1.05rem, 0.6vw + 0.9rem, 1.28rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.showcase-copy p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 26ch;
}

.phone-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.5rem 1.25rem 0;
  margin-top: auto;
}

.phone-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background: linear-gradient(180deg, transparent, #08131e 88%);
  pointer-events: none;
  z-index: 2;
}

.phone-frame {
  width: min(78%, 175px);
  border-radius: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: translateY(16px);
  transition: transform 0.35s var(--ease);
}

.showcase-card:hover .phone-frame {
  transform: translateY(10px);
}

.phone-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: top center;
  image-rendering: -webkit-optimize-contrast;
  filter: drop-shadow(0 20px 32px rgba(0, 0, 0, 0.5));
}

/* ===== Download ===== */
.download {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.download .button-row {
  justify-content: center;
}

.download .section-heading {
  text-align: center;
}

/* ===== Footer ===== */
.site-footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  max-width: 34ch;
  font-size: 0.92rem;
}

.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 0.85rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--dim);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text);
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 14, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 50;
  backdrop-filter: blur(6px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-content {
  max-width: min(92vw, 420px);
  max-height: 85vh;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.lightbox-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--surface);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  cursor: pointer;
}

.lightbox-close:hover {
  border-color: var(--border-strong);
}

/* ===== Legal ===== */
.legal-content {
  padding: 4rem 0 5rem;
}

.legal-content h1 {
  margin-bottom: 0.5rem;
}

.legal-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  background: var(--surface);
  margin-top: 2rem;
}

.legal-card h2 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card a {
  color: var(--primary-2);
}

.legal-card a:hover {
  text-decoration: underline;
}

.coming-soon {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 0;
}

.coming-soon h1 {
  font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem);
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-card-wide {
    grid-column: auto;
  }
}

@media (max-width: 920px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 0;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 0.85rem 1.1rem;
    font-size: 0.92rem;
  }

  .button-row {
    width: 100%;
  }

  .btn {
    flex: 1 1 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .showcase-card {
    min-height: 400px;
  }

  .phone-frame {
    width: min(68%, 190px);
  }
}
