/* Australian Apps: one stylesheet for every page. Phone first; wider layouts in min-width queries. */

:root {
  --bg: #F3F5F3;
  --surface: #FFFFFF;
  --ink: #151A18;
  --muted: #56605C;
  --line: #DCE2DF;
  --link: #2E5C4F;
  --focus: #2E5C4F;
  --text-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --gutter: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0D0C;
    --surface: #141917;
    --ink: #EDF1EF;
    --muted: #9AA6A1;
    --line: #252C29;
    --link: #8CC4B1;
    --focus: #8CC4B1;
  }
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* Each app page sets its accent on <body>. */
.app-quotemate {
  --accent: #1E5A45;
  --accent-soft: rgba(87, 199, 163, .16);
  --stage: radial-gradient(120% 90% at 85% 0%, #287055 0%, #1E5A45 42%, #10372A 100%);
  --link: #1E5A45;
  --focus: #1E5A45;
}
.app-screenoff {
  --accent: #4B4FD6;
  --accent-soft: rgba(138, 141, 255, .16);
  --stage: radial-gradient(120% 90% at 85% 0%, #5054CC 0%, #34369A 42%, #14153F 100%);
  --link: #4B4FD6;
  --focus: #4B4FD6;
}
@media (prefers-color-scheme: dark) {
  .app-quotemate { --link: #57C7A3; --focus: #57C7A3; }
  .app-screenoff { --link: #8A8DFF; --focus: #8A8DFF; }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--text-font);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
picture { display: contents; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display-font); letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 16px; border-radius: 10px; background: var(--surface); color: var(--ink); }
.skip-link:focus { top: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid transparent; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; flex: none; }
.site-nav { display: flex; gap: 20px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.site-nav a:hover { color: var(--ink); }

/* Home: statement */
.intro { display: grid; gap: 20px; padding-block: 56px 40px; }
.intro h1 { margin: 0; font-weight: 700; font-size: clamp(44px, 8vw + 10px, 96px); line-height: .98; letter-spacing: -0.04em; max-width: 11ch; }
.intro p { margin: 0; max-width: 34ch; font-size: 19px; color: var(--muted); }
@media (min-width: 900px) {
  .intro { grid-template-columns: 1.5fr 1fr; align-items: end; padding-block: 112px 80px; }
  .intro p { margin-bottom: 10px; }
}

/* Home: one stage per app */
.stages { display: grid; gap: 16px; padding-bottom: 88px; }
@media (min-width: 900px) { .stages { grid-template-columns: 1fr 1fr; gap: 20px; } }
.stage { position: relative; display: flex; flex-direction: column; height: 700px; overflow: hidden; isolation: isolate; padding: 32px 24px 0; border-radius: 32px; background: var(--stage); color: #fff; }
@media (min-width: 720px) { .stage { height: 780px; padding: 36px 32px 0; } }
.stage .app-icon { width: 72px; height: 72px; }
.stage h2 { margin: 20px 0 6px; font-size: 32px; letter-spacing: -0.025em; }
.stage h2 a { color: inherit; text-decoration: none; }
.stage h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.stage h2 a:focus-visible { outline: none; }
.stage:has(h2 a:focus-visible) { outline: 3px solid var(--ink); outline-offset: 4px; }
.stage p { margin: 0; max-width: 30ch; font-size: 18px; color: rgba(255, 255, 255, .86); }
.stage .platforms { margin-top: 12px; font-size: 15px; color: rgba(255, 255, 255, .86); }
.stage .cta { align-self: flex-start; margin-top: 20px; padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 15px; font-weight: 600; transition: background .25s; }
.stage:hover .cta { background: rgba(255, 255, 255, .16); }
.stage .well { position: relative; flex: 1; margin: 28px -24px 0; }
.stage .device { position: absolute; left: 50%; top: 20px; margin-left: calc(var(--w) / -2); transition: transform .6s var(--ease-out); }
.stage:hover .device { transform: translateY(-14px); }

/* App icons: the PNGs are full squares; the mask is drawn here. */
.app-icon { display: block; width: 64px; height: 64px; border-radius: 22.5%; box-shadow: 0 10px 28px -12px rgba(0, 0, 0, .55), 0 0 0 .5px rgba(0, 0, 0, .12); }

/* Devices. --w sets the width; every other measure follows it. */
.device { --w: min(290px, 70vw); position: relative; width: var(--w); flex: none; }
.device img { display: block; width: 100%; height: auto; }
.phone { padding: calc(var(--w) * .03); border-radius: calc(var(--w) * .165); background: #0C0C0E; box-shadow: inset 0 0 0 1.5px #3B3B40, 0 50px 80px -34px rgba(0, 0, 0, .6); }
.phone img { border-radius: calc(var(--w) * .135); }
.phone::after { content: ""; position: absolute; top: calc(var(--w) * .062); left: 50%; width: calc(var(--w) * .27); height: calc(var(--w) * .08); transform: translateX(-50%); border-radius: 999px; background: #000; }
.tablet { padding: calc(var(--w) * .032); border-radius: calc(var(--w) * .06); background: #0C0C0E; box-shadow: inset 0 0 0 1.5px #3B3B40, 0 50px 80px -34px rgba(0, 0, 0, .5); }
.tablet img { border-radius: calc(var(--w) * .03); }
.laptop .screen { padding: calc(var(--w) * .022) calc(var(--w) * .022) calc(var(--w) * .03); border-radius: calc(var(--w) * .03) calc(var(--w) * .03) 0 0; background: #0C0C0E; box-shadow: inset 0 0 0 1.5px #3B3B40; }
.laptop .screen img { border-radius: calc(var(--w) * .006); }
.laptop .base { position: relative; height: calc(var(--w) * .028); margin: 0 calc(var(--w) * -.06); border-radius: 0 0 calc(var(--w) * .05) calc(var(--w) * .05) / 0 0 calc(var(--w) * .022) calc(var(--w) * .022); background: linear-gradient(#E3E5E8, #A9ADB3); box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .55); }
.laptop .base::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 40%; transform: translateX(-50%); border-radius: 0 0 10px 10px; background: #C2C5CA; }

/* Scroll tilt (site.js sets --scroll from -1 to 1 while the device crosses the screen). */
[data-tilt] { rotate: calc(var(--scroll, 0) * var(--tilt, 4deg)); translate: 0 calc(var(--scroll, 0) * 36px); }

/* Scroll reveal: only when site.js adds .motion, so the page is complete without JavaScript. */
.motion .reveal { transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.motion .reveal:not(.is-in) { opacity: 0; transform: translateY(32px); }

/* App page: hero */
.app-hero { padding-top: 16px; }
.app-hero .panel { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 32px; padding: 32px 24px 0; border-radius: 32px; background: var(--stage); color: #fff; }
@media (min-width: 900px) { .app-hero .panel { grid-template-columns: 1fr 1fr; align-items: center; min-height: 720px; padding: 56px 56px 0; } }
.app-hero .app-name { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; font-size: 20px; font-weight: 600; }
.app-hero .app-name .app-icon { width: 56px; height: 56px; }
.app-hero h1 { margin: 0 0 16px; font-weight: 700; font-size: clamp(40px, 6vw + 8px, 72px); line-height: 1; letter-spacing: -0.035em; max-width: 12ch; }
.app-hero .lede { max-width: 34ch; font-size: 19px; color: rgba(255, 255, 255, .88); }
.app-hero .platforms { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .86); }
@media (min-width: 900px) { .app-hero .copy { padding-bottom: 56px; } }
.store { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 28px 0 16px; }
.store img { display: block; height: 44px; width: auto; }
.coming-soon { display: inline-block; margin: 0; padding: 11px 18px; border-radius: 999px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); font-size: 15px; font-weight: 600; }
.app-hero .devices { position: relative; display: flex; justify-content: center; align-items: flex-start; min-height: 420px; margin: 0 -24px; }
@media (min-width: 900px) { .app-hero .devices { align-self: end; height: 640px; margin: 0; } }
.app-hero .devices .phone { --w: min(300px, 72vw); margin-top: 8px; }

/* A hero moment ([data-moment]) holds still until site.js sees it on screen. */
.motion [data-moment]:not(.is-in) * { animation-play-state: paused; }

/* Hero moments: a second screen (.after) takes over the first. Under Reduce Motion it simply shows. */
.device .after { position: absolute; inset: calc(var(--w) * .03); }
.device .after img { height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  /* Quotemate: the accepted quote's Convert to invoice sheet slides up over it. */
  .convert .after { animation: sheet-up .9s var(--ease-out) 1.4s both; }
  /* ScreenOff: the screen goes dark as the phone locks, then the Lock Screen lights up, still playing. */
  .lock .after { animation: lock-screen 2.2s ease 1.8s both; }
}
@keyframes sheet-up { from { opacity: 0; transform: translateY(12%); } }
@keyframes lock-screen {
  0% { opacity: 0; filter: brightness(0); }
  20%, 50% { opacity: 1; filter: brightness(0); }
  100% { opacity: 1; filter: brightness(1); }
}

/* App page: features */
.features { padding-block: 40px 24px; }
.feature { display: grid; gap: 28px; align-items: center; padding-block: 48px; }
.feature h2 { margin: 0 0 12px; font-size: clamp(28px, 3vw + 12px, 44px); letter-spacing: -0.03em; max-width: 16ch; }
.feature p { max-width: 38ch; font-size: 18px; color: var(--muted); }
.feature .media { display: flex; justify-content: center; padding: 24px 0; border-radius: 28px; background: var(--accent-soft); overflow: hidden; }
.feature .media .phone { --w: min(270px, 66vw); }
.feature .media .tablet { --w: min(440px, 80vw); }
.feature .media .laptop { --w: min(620px, 78vw); margin: 0 auto; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1.2fr; gap: 64px; padding-block: 64px; }
  .feature:nth-child(even) .copy { order: 2; }
  .feature .media { padding: 48px 0; }
  .feature .media .tablet { --w: min(440px, calc(44vw - 50px)); }
  .feature .media .laptop { --w: min(500px, calc(48vw - 62px)); }
}

/* App page: a statement band without a screenshot */
.band { margin: 32px 0; padding: 56px 24px; border-radius: 32px; background: var(--stage); color: #fff; }
@media (min-width: 900px) { .band { padding: 88px 72px; } }
.band h2 { margin: 0 0 16px; font-weight: 700; font-size: clamp(36px, 5vw + 10px, 72px); letter-spacing: -0.035em; max-width: 14ch; }
.band p { margin: 0; max-width: 40ch; font-size: 19px; color: rgba(255, 255, 255, .88); }

/* App page: short lists */
.points { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .points { grid-template-columns: 1fr 1fr; gap: 20px; } }
.points li { padding: 22px 22px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.points strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 18px; }

.section { padding-block: 48px; }
@media (min-width: 900px) { .section { padding-block: 72px; } }
.section > h2, .section-head h2 { margin: 0 0 24px; font-size: clamp(30px, 3vw + 14px, 48px); letter-spacing: -0.03em; }
.section-head p { max-width: 46ch; color: var(--muted); font-size: 18px; }
.more { margin: 24px 0 0; font-weight: 600; }

/* FAQ */
.faq { max-width: 50rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 20px 40px 20px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details > :not(summary) { max-width: 44rem; color: var(--muted); }
.faq details > :last-child { padding-bottom: 12px; }
.faq h3 { margin: 40px 0 0; padding-bottom: 8px; font-size: 22px; }

/* Links to an app's own pages, above the footer */
.app-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: 28px; border-top: 1px solid var(--line); }
.app-links strong { display: inline-flex; align-items: center; gap: 10px; margin-right: 8px; }
.app-links .app-icon { width: 28px; height: 28px; border-radius: 22.5%; box-shadow: none; }
.app-links a[aria-current="page"] { color: var(--ink); font-weight: 600; text-decoration: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: grid; gap: 28px; }
@media (min-width: 900px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { margin: 0 0 8px; color: var(--ink); font-family: var(--text-font); font-size: 15px; letter-spacing: 0; }
.site-footer p { margin: 0 0 4px; }
.site-footer a { color: var(--ink); }

/* Email with a copy button (the button is hidden until site.js shows it) */
.email { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.email a { user-select: all; -webkit-user-select: all; }
.copy-button { font: inherit; font-size: 13px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.copy-button:hover { border-color: var(--muted); }

/* Legal and support pages */
.doc { max-width: 44rem; margin: 0 auto; padding: 40px var(--gutter) 64px; font-size: 17px; line-height: 1.65; }
.doc-head { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.doc-head .app-icon { width: 60px; height: 60px; }
.doc-head .kicker { margin: 0; color: var(--muted); font-size: 15px; font-weight: 600; }
.doc h1 { margin: 0; font-size: clamp(32px, 3vw + 18px, 44px); letter-spacing: -0.03em; }
.doc .meta { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.doc h2 { margin: 44px 0 10px; font-size: 24px; }
.doc h3 { margin: 28px 0 6px; font-size: 19px; }
.doc ul { margin: 0 0 1em; padding-left: 1.25em; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--muted); }
.callout { margin: 0 0 8px; padding: 20px 22px; border-radius: 18px; background: var(--accent-soft, rgba(46, 92, 79, .1)); }
.callout > :last-child { margin-bottom: 0; }
.contact-card { padding: 20px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.contact-card > :last-child { margin-bottom: 0; }
.tips { display: grid; gap: 14px; margin: 0 0 12px; }
@media (min-width: 720px) { .tips { grid-template-columns: 1fr 1fr; } }
.tip { padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.tip h3 { margin: 0 0 4px; font-size: 17px; }
.tip p { margin: 0; color: var(--muted); font-size: 16px; }
.doc .faq summary { font-size: 17px; }

/* 404 */
.not-found { padding-block: 96px 120px; }
.not-found h1 { margin: 0 0 16px; font-size: clamp(40px, 6vw + 10px, 80px); letter-spacing: -0.04em; }
.not-found p { max-width: 36ch; color: var(--muted); font-size: 19px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  [data-tilt] { rotate: none; translate: none; }
}
