/* Mail Works - mailworks.au */

@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('/assets/fonts/sora.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }

:root {
  --primary: #ff6b4a;
  --primary-strong: #d63f22;
  --primary-deep: #b8331a;
  --ink: #141a2b;
  --ink-2: #3d4558;
  --muted: #687085;
  --canvas: #fbf8f5;
  --surface: #ffffff;
  --tint: #fff1ec;
  --tint-2: #ffe4da;
  --line: #ece5df;
  --line-2: #ddd4cc;
  --focus: #3b6cf6;
  --ok: #10805b;
  --err: #c2321f;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, sans-serif;
  --display: 'Sora', var(--font);
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(20, 26, 43, .05), 0 10px 30px rgba(20, 26, 43, .08);
  --shadow-lg: 0 2px 6px rgba(20, 26, 43, .06), 0 30px 70px rgba(20, 26, 43, .16);
  --wrap: 1180px;
  --gutter: 24px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--primary-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-deep); }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
.lead, .card p, .split-copy > p { text-wrap: pretty; }
h1 { font-size: clamp(38px, 5.6vw, 66px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--tint-2); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: 15px; }

.eyebrow { font: 600 13px/1.3 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--primary-strong); margin-bottom: 14px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); line-height: 1.55; }
.hl { background: linear-gradient(100deg, var(--primary) 0%, #f0532f 60%, #ff8a66 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-lg { height: 54px; padding: 0 28px; font-size: 17px; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn-primary { background: var(--primary-strong); color: #fff; box-shadow: 0 6px 18px rgba(214, 63, 34, .28); }
.btn-primary:hover { background: var(--primary-deep); color: #fff; box-shadow: 0 8px 24px rgba(214, 63, 34, .34); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--primary-deep); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.btn[disabled] { opacity: .6; cursor: progress; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.text-link .arr { width: 18px; height: 18px; transition: transform .15s ease; }
.text-link:hover .arr { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 245, .82); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, transform .3s ease, background-color .2s ease; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header.hide { transform: translateY(-100%); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 20px/1 var(--display); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand .mark { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 12px rgba(255, 107, 74, .3); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 16px; padding: 8px 14px; border-radius: 999px; transition: background-color .15s ease, color .15s ease; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); background: rgba(20, 26, 43, .05); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; padding: 11px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; margin: 4px 0; transition: transform .2s ease, opacity .2s ease; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 0; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto; height: 760px; z-index: -1;
  background: radial-gradient(600px 380px at 18% 30%, rgba(255, 107, 74, .18), transparent 70%), radial-gradient(520px 360px at 85% 12%, rgba(59, 108, 246, .10), transparent 70%); }
.hero-copy { text-align: center; max-width: 900px; }
.hero-title { margin-bottom: 22px; }
.hero .lead { max-width: 700px; margin: 0 auto 30px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.center-row { justify-content: center; }
.trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px; color: var(--muted); font-size: 15px; }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.tick { width: 18px; height: 18px; color: var(--ok); flex: none; }
.hero-media { margin-top: 56px; perspective: 1600px; }

/* ---------- product screenshots in a window frame ---------- */
.app-shot { position: relative; margin: 0; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid rgba(20, 26, 43, .08); }
.app-shot img { border-radius: 0 0 var(--r-lg) var(--r-lg); width: 100%; }
.chrome { display: flex; gap: 7px; align-items: center; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #f7f4f1; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.chrome span { width: 11px; height: 11px; border-radius: 50%; background: #e2dad3; }
.hero-shot { transform-origin: 50% 0; }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: #fff; border-radius: 999px; font: 600 14px/1 var(--font); color: var(--ink);
  box-shadow: 0 12px 30px rgba(20, 26, 43, .16); border: 1px solid var(--line); white-space: nowrap; }
.chip b { color: var(--primary-strong); }
.chip-ic { width: 18px; height: 18px; color: var(--primary-strong); }
.chip-a { left: -18px; top: 38%; }
.chip-b { right: -14px; bottom: 16%; background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-b .chip-ic { color: #ff9b80; }
.chip-b b { color: #ff9b80; }

/* ---------- works with ---------- */
.works-with { padding: 64px 0 8px; }
.works-with .wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.works-with p { margin: 0; color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.works-with ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.works-with li { padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: 15px; }

/* ---------- sections ---------- */
.section { padding: 104px 0; }
.section.tight { padding: 48px 0 88px; }
.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-head .lead { margin-bottom: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; }
.card-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--primary-strong); margin-bottom: 18px; flex: none; }
.card-ic .ic { width: 24px; height: 24px; }

.split-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.split-rev .split-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split-rev .split-copy { order: 2; }
.split-copy h2 { margin-bottom: 16px; }
.split-copy > p { color: var(--ink-2); }
.split-media .app-shot { transform: rotate(-.6deg); }
.split-rev .split-media .app-shot { transform: rotate(.6deg); }
.shot-narrow { max-width: 600px; margin-left: auto; }
.ticks { display: grid; gap: 12px; margin: 22px 0 26px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 16px; }
.ticks .tick { margin-top: 3px; }

.platforms { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.platform { text-align: center; padding: 34px 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--canvas); }
.platform p { color: var(--ink-2); font-size: 16px; margin-bottom: 6px; }
.pl-ic { width: 44px; height: 44px; margin: 0 auto 14px; color: var(--ink); }

/* Download page */
.dl-pick { text-align: center; margin: 0 auto 34px; }
.dl-pick .eyebrow { margin-bottom: 14px; }
.dl-pick .btn { height: auto; min-height: 54px; padding: 12px 30px; white-space: normal; }
.dl-pick-alt { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.dl-card { display: flex; flex-direction: column; }
.dl-card.is-recommended { background: var(--surface); border-color: var(--primary); box-shadow: 0 0 0 3px var(--tint-2), var(--shadow); }
.dl-btns { display: grid; gap: 10px; margin: 18px 0 18px; }
.dl-btn { height: auto; min-height: 52px; padding: 9px 18px; flex-direction: column; gap: 1px; line-height: 1.3; text-align: center; white-space: normal; }
.dl-btn small { font-size: 13px; font-weight: 500; opacity: .75; }
.platform .dl-note { margin: auto 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.dl-note code, .prose code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9em; background: #f1ebe5; border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.dl-sums { margin: 26px 0 0; color: var(--muted); font-size: 15px; }
.prose ul { margin: 0 0 1em; padding-left: 1.25em; list-style: disc; }
.prose li { color: var(--ink-2); margin-bottom: .7em; }

.ai-band { padding: 88px 0; }
.ai-grid { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; max-width: 900px; margin: 0 auto; padding: 36px 40px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--tint) 0%, #fff 70%); border: 1px solid var(--tint-2); }
.ai-grid h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 10px; }
.ai-grid p:last-child { margin: 0; color: var(--ink-2); }
.ai-ic { width: 64px; height: 64px; border-radius: 18px; background: var(--ink); color: #ffb39f; display: grid; place-items: center; }
.ai-ic .ic { width: 30px; height: 30px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; margin-bottom: 30px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item[open] { border-color: var(--line-2); box-shadow: var(--shadow); }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font: 600 17px/1.4 var(--font); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ''; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--primary-strong); border-bottom: 2px solid var(--primary-strong);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-item p { margin: 0; padding: 0 24px 22px; color: var(--ink-2); font-size: 16px; }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 104px; }
.cta-inner { text-align: center; padding: 64px 32px; border-radius: 28px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(500px 260px at 15% 0%, rgba(255, 255, 255, .22), transparent 70%), linear-gradient(135deg, #ff7a57 0%, #e8492a 55%, #c63b20 100%); }
.cta-inner h2 { color: #fff; margin-bottom: 12px; }
.cta-inner p { color: rgba(255, 255, 255, .92); font-size: 19px; max-width: 620px; margin: 0 auto 28px; }

/* ---------- inner pages ---------- */
.page-hero { padding: 80px 0 32px; text-align: center; position: relative; }
.page-hero::before { content: ''; position: absolute; inset: 0 0 auto; height: 420px; z-index: -1; background: radial-gradient(560px 300px at 50% 0%, rgba(255, 107, 74, .14), transparent 70%); }
.page-hero h1 { font-size: clamp(34px, 4.8vw, 56px); }
.page-hero .lead { max-width: 680px; margin: 0 auto; }
.page-hero.nf { padding: 120px 0 140px; }
.nf .lead { margin-bottom: 30px; }

.fgroup { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; margin-bottom: 22px; display: grid; grid-template-columns: 240px 1fr; gap: 32px; }
.fgroup-head { display: flex; flex-direction: column; gap: 4px; }
.fgroup-head h2 { font-size: 26px; margin: 0; }
.flist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; }
.flist h3 { font-size: 17px; margin-bottom: 4px; }
.flist p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

.prose { font-size: 17px; }
.prose h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 1.8em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); }

/* ---------- forms ---------- */
.form-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.form-intro h2 { font-size: clamp(26px, 3vw, 36px); }
.form-intro p { color: var(--ink-2); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; box-shadow: var(--shadow); }
.form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field span { font-weight: 600; font-size: 15px; color: var(--ink); }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; font-size: 16px;
  transition: border-color .15s ease, box-shadow .15s ease; }
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px rgba(59, 108, 246, .16); }
.field .invalid { border-color: var(--err); }
.form .btn { justify-self: start; }
.form-note { margin: 0; color: var(--muted); font-size: 14px; }
.form-status { margin: 0; padding: 12px 16px; border-radius: 12px; font-weight: 500; font-size: 15px; }
.form-status.ok { background: #e6f6ef; color: var(--ok); }
.form-status.err { background: #fdecea; color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 72px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; }
.footer-brand p { margin: 16px 0 0; max-width: 340px; }
.brand-light, .brand-light:hover { color: #fff; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h2 { font: 600 13px/1.3 var(--font); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin: 4px 0 6px; }
.footer-col a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-base { margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: grid; gap: 6px; font-size: 13.5px; color: rgba(255, 255, 255, .5); }
.footer-base p { margin: 0; }

/* ---------- motion (hidden only when JS + motion are on; see js/head.js) ---------- */
html.js:not(.no-motion) .rv { opacity: 0; transform: translateY(26px); }
html.js:not(.no-motion) .hero-reveal { opacity: 0; transform: translateY(18px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .split-grid, .split-rev .split-grid { grid-template-columns: 1fr; gap: 40px; }
  .split-rev .split-copy { order: 0; }
  .split-media .app-shot, .split-rev .split-media .app-shot { transform: none; }
  .shot-narrow { margin: 0 auto; }
  .fgroup { grid-template-columns: 1fr; gap: 22px; }
  .form-wrap { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px var(--gutter) 24px; background: var(--canvas);
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(20, 26, 43, .12); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s; }
  .nav a:not(.btn) { padding: 14px 12px; font-size: 18px; border-radius: 12px; }
  .nav-cta { margin: 10px 0 0; height: 50px; }
  .nav-open .nav { opacity: 1; transform: none; visibility: visible; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .chip { display: none; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .hero { padding-top: 44px; }
  .hero-media { margin-top: 40px; }
  .section { padding: 72px 0; }
  .section.tight { padding: 32px 0 64px; }
  .section-head { margin-bottom: 36px; }
  .grid-3, .flist, .field-row { grid-template-columns: 1fr; }
  .app-shot { border-radius: 14px; }
  .app-shot img { border-radius: 0 0 14px 14px; }
  .chrome { height: 24px; border-radius: 14px 14px 0 0; }
  .chrome span { width: 8px; height: 8px; }
  .ai-grid { grid-template-columns: 1fr; padding: 28px 24px; }
  .fgroup, .form-card, .card { padding: 24px; }
  .cta-inner { padding: 48px 22px; border-radius: 22px; }
  .cta-row .btn { width: 100%; }
  .form .btn { justify-self: stretch; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-hero { padding-top: 52px; }
}
