/* ============================================================
   InvoicesMate — Website
   Direction: App Store / native-iOS product page
   Light, SF Pro typography, iPhone device frames, generous space.
   ============================================================ */

:root {
  --brand: #2563EB;          /* app primary (Royal Sky) */
  --brand-2: #0EA5E9;        /* app accent */
  --ink: #1d1d1f;            /* Apple near-black */
  --ink-2: #6e6e73;          /* secondary text */
  --ink-3: #86868b;          /* tertiary */
  --paper: #ffffff;
  --paper-2: #f5f5f7;        /* Apple section gray */
  --paper-3: #fbfbfd;
  --hair: #d2d2d7;           /* hairline */
  --green: #15a06a;
  --red: #e0463c;
  --orange: #e08a00;

  --max: 1080px;
  --max-wide: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 70px; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.wrap-wide { width: 100%; max-width: var(--max-wide); margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.035em; line-height: 1.06; }

.eyebrow {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--brand);
  text-transform: none;
}

/* ============================================================
   Nav — translucent, hairline, Apple-like
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: 56px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; max-width: var(--max-wide); margin: 0 auto; padding: 0 28px; }
.nav-brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 1.05rem; color: var(--ink); letter-spacing: -0.02em; }
.nav-brand img { width: 26px; height: 26px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-size: 0.9rem; font-weight: 400; color: var(--ink-2); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-get { color: var(--brand); font-weight: 500; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.3rem; color: var(--ink); cursor: pointer; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 130px 0 0; text-align: center; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  margin: 18px auto 0;
  max-width: 14ch;
}
.hero .lede {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--ink-2);
  font-weight: 400;
  letter-spacing: -0.01em;
  max-width: 30ch;
  margin: 20px auto 0;
}
.hero-cta { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-cta .platforms { font-size: 0.85rem; color: var(--ink-3); }

/* App Store badge (black, Apple-style) */
.appstore-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: #000; color: #fff;
  padding: 11px 18px; border-radius: 12px;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}
.appstore-badge:hover { transform: scale(1.03); }
.appstore-badge svg { width: 22px; height: 26px; fill: #fff; }
.appstore-badge .t { text-align: left; line-height: 1.05; }
.appstore-badge .t small { display: block; font-size: 0.62rem; font-weight: 400; opacity: 0.92; }
.appstore-badge .t strong { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }

/* Hero device */
.hero-device { margin: 56px auto 0; max-width: 340px; }

/* ============================================================
   iPhone device frame
   ============================================================ */
.phone {
  position: relative;
  width: 300px; max-width: 100%;
  aspect-ratio: 300 / 612;
  margin: 0 auto;
  background: #1b1b1f;
  border-radius: 46px;
  padding: 11px;
  box-shadow:
    0 1px 0 2px #2c2c30 inset,
    0 50px 90px -30px rgba(0,0,0,0.35),
    0 18px 40px -20px rgba(0,0,0,0.25);
}
.phone::before { /* dynamic island */
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 26px; background: #000; border-radius: 100px; z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 35px; overflow: hidden;
  background: var(--paper-2);
  position: relative;
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* paper document (e.g. a PDF invoice) on a dark stage so the white sheet pops */
.paper-stage {
  width: 100%;
  background: radial-gradient(120% 120% at 30% 0%, #1c2c4f 0%, #0e1a30 60%, #0a1426 100%);
  border-radius: 28px;
  padding: 56px 44px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 40px 90px -34px rgba(10, 20, 40, 0.55);
}
.paper {
  width: 300px; max-width: 100%;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  transform: rotate(-2.5deg);
  box-shadow: 0 30px 60px -18px rgba(0,0,0,0.5), 0 8px 22px -10px rgba(0,0,0,0.4);
  transition: transform 0.4s var(--ease);
}
.paper:hover { transform: rotate(0deg) translateY(-4px); }
.paper img { width: 100%; display: block; }
/* placeholder when no screenshot yet */
.phone-screen .ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(160deg, #eef4ff, #e6f6ff);
  color: var(--brand); text-align: center; padding: 20px;
}
.phone-screen .ph img { width: 54px; height: 54px; object-fit: contain; }
.phone-screen .ph span { font-size: 0.8rem; color: var(--ink-3); font-weight: 500; }

/* ============================================================
   Gallery — horizontal snap scroller of phones
   ============================================================ */
.gallery { padding: 110px 0 100px; background: var(--paper); }
.gallery-head { text-align: center; margin-bottom: 14px; }
.gallery-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.gallery-head p { color: var(--ink-2); font-size: 1.1rem; margin-top: 12px; }
.gallery-track {
  display: flex; gap: 30px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  justify-content: safe center;       /* centered when they fit, scrollable when not */
  padding: 40px 28px 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--hair) transparent;
}
.gallery-track::-webkit-scrollbar { height: 8px; }
.gallery-track::-webkit-scrollbar-thumb { background: var(--hair); border-radius: 100px; }
.gallery-track::-webkit-scrollbar-track { background: transparent; }
.gallery-hint { text-align: center; font-size: 0.8rem; color: var(--ink-3); margin-top: 4px; }
.gallery-item { scroll-snap-align: center; flex: 0 0 auto; width: 250px; }
.gallery-item .phone { width: 250px; }
.gallery-item .cap { text-align: center; margin-top: 18px; }
.gallery-item .cap h4 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; }
.gallery-item .cap p { font-size: 0.9rem; color: var(--ink-2); margin-top: 3px; }

/* ============================================================
   Feature rows — alternating, Apple-like
   ============================================================ */
.feature {
  padding: 100px 0;
}
.feature:nth-child(even) { background: var(--paper-2); }
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  max-width: var(--max); margin: 0 auto; padding: 0 28px;
}
.feature.flip .feature-row { direction: rtl; }
.feature.flip .feature-row > * { direction: ltr; }
.feature-copy .eyebrow { display: block; margin-bottom: 14px; }
.feature-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 18px; }
.feature-copy p { font-size: 1.12rem; color: var(--ink-2); max-width: 42ch; }
.feature-list { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.02rem; color: var(--ink); }
.feature-list svg { flex: 0 0 auto; width: 21px; height: 21px; margin-top: 2px; }
.feature-visual { display: flex; justify-content: center; }
.feature-visual .phone { width: 280px; }

/* ============================================================
   Australia band
   ============================================================ */
.aus { padding: 110px 0; background: var(--ink); color: #fff; }
.aus .wrap { text-align: center; }
.aus .eyebrow { color: var(--brand-2); }
.aus h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 14px auto 16px; max-width: 16ch; }
.aus-lede { color: #b8b8bf; font-size: 1.15rem; max-width: 46ch; margin: 0 auto 56px; }
.aus-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: left; }
.aus-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 18px; padding: 26px;
}
.aus-card .k {
  font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em;
  color: var(--brand-2); margin-bottom: 10px;
}
.aus-card h4 { font-size: 1.02rem; font-weight: 600; margin-bottom: 6px; }
.aus-card p { font-size: 0.92rem; color: #b8b8bf; line-height: 1.45; }

/* ============================================================
   Security strip
   ============================================================ */
.security { padding: 100px 0; background: var(--paper); text-align: center; }
.security h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.security > .wrap > p { color: var(--ink-2); font-size: 1.1rem; max-width: 44ch; margin: 14px auto 52px; }
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: left; }
.sec-item { padding: 4px; }
.sec-item svg { width: 26px; height: 26px; color: var(--brand); margin-bottom: 14px; }
.sec-item h4 { font-size: 1.02rem; font-weight: 600; margin-bottom: 6px; }
.sec-item p { font-size: 0.92rem; color: var(--ink-2); line-height: 1.45; }

/* ============================================================
   Final CTA
   ============================================================ */
.final { padding: 120px 0; background: var(--paper-2); text-align: center; }
.final h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 16ch; margin: 0 auto 18px; }
.final p { color: var(--ink-2); font-size: 1.2rem; margin-bottom: 32px; }
.final .hero-cta { margin-top: 0; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--paper-2); border-top: 1px solid var(--hair); padding: 40px 0; font-size: 0.82rem; color: var(--ink-3); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; }
.footer-links a { color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); }
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.footer-brand img { width: 22px; height: 22px; object-fit: contain; }

/* ============================================================
   Legal pages (privacy / terms / support) — reuse classes
   ============================================================ */
.legal-page { padding: 110px 0 80px; }
.legal-content { max-width: 720px; margin: 0 auto; }
.legal-content h1 { font-size: 2.6rem; margin-bottom: 8px; }
.legal-date { color: var(--ink-3); font-size: 0.92rem; margin-bottom: 32px; }
.legal-content h2 { font-size: 1.5rem; margin: 38px 0 12px; letter-spacing: -0.025em; }
.legal-content h3 { font-size: 1.12rem; font-weight: 600; margin: 22px 0 8px; }
.legal-content p { color: var(--ink-2); margin-bottom: 14px; }
.legal-content ul { margin: 0 0 16px 22px; color: var(--ink-2); }
.legal-content li { margin-bottom: 8px; }
.legal-content a { text-decoration: underline; }
.faq-item { border-bottom: 1px solid var(--hair); padding: 22px 0; }
.faq-item h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.faq-item p { color: var(--ink-2); margin-bottom: 0; }
.contact-box { background: var(--paper-2); border-radius: 20px; padding: 36px; text-align: center; margin-top: 44px; }
.contact-box h2 { margin-top: 0; }

/* "not an accountant" notice callout */
.notice {
  background: #eef4ff;
  border: 1px solid #d3e2ff;
  border-left: 4px solid var(--brand);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 4px 0 30px;
}
.notice h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 6px; color: var(--ink); }
.notice p { color: var(--ink-2); margin: 0; font-size: 0.96rem; }

/* short disclaimer under the Australia band (on dark) */
.aus-note { margin: 38px auto 0; max-width: 58ch; font-size: 0.9rem; color: #8b93a5; }

/* fine-print disclaimer row in the footer */
.footer-note {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--hair);
  font-size: 0.78rem; color: var(--ink-3); line-height: 1.55;
}

/* legal/support page footer bottom row */
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.footer-bottom a { color: var(--ink-2); }
.footer-bottom a:hover { color: var(--ink); }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: #fff;
  padding: 12px 22px; border-radius: 980px; font-weight: 500; font-size: 0.98rem;
  transition: background 0.2s;
}
.btn-primary:hover { background: #1d4fd0; color: #fff; }
.nav.scrolled { } /* legacy hook, no-op */

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .feature.flip .feature-row { direction: ltr; }
  .feature-copy p, .feature-list { margin-left: auto; margin-right: auto; }
  .feature-list { max-width: 36ch; text-align: left; }
  .aus-grid { grid-template-columns: 1fr 1fr; }
  .sec-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links {
    position: absolute; top: 56px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255,255,255,0.96); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--hair);
    padding: 6px 28px 14px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--hair); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-toggle { display: block; }
  .aus-grid, .sec-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
