/* Callatt Group — site styles */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/jost-latin-wght-normal.woff2") format("woff2");
}

:root {
  --ink: #14213D;
  --ink-deep: #0E182E;
  --ink-soft: #46506A;
  --amber: #F2A541;
  --amber-deep: #B36B0A;
  --cream: #FAF6EE;
  --cream-deep: #F1EADB;
  --line: rgba(20, 33, 61, .14);
  --line-on-ink: rgba(250, 246, 238, .16);
  --sky: #E1F2F9;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --font: "Jost", "Century Gothic", "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 2; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 26px; padding-bottom: 26px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: clamp(18px, 3vw, 36px); font-size: 16px; letter-spacing: .04em; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 1.5px solid transparent; transition: border-color .2s; }
.nav a:hover { border-color: var(--amber); }

.on-ink { background: var(--ink); color: var(--cream); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink) url("brand/hero-bg.svg") center / cover no-repeat; }
.hero-rings {
  position: absolute;
  right: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  top: 54%;
  width: min(36vw, 460px);
  transform: translateY(-50%);
  pointer-events: none;
}
.hero-rings .r1 { stroke: var(--cream); }
.hero-rings .r2 { stroke: var(--amber); }
.hero-rings .bar { fill: var(--amber); }
.hero-body { position: relative; z-index: 1; padding-top: clamp(56px, 10vw, 128px); padding-bottom: clamp(72px, 12vw, 152px); }
.hero .eyebrow { color: var(--amber); }
.hero h1 {
  margin-top: 26px;
  max-width: 13ch;
  font-size: clamp(44px, 8vw, 92px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -.02em;
}
.hero h1 em { font-style: normal; color: var(--amber); }
.hero-lede { margin-top: 30px; max-width: 34ch; font-size: clamp(19px, 2.1vw, 23px); line-height: 1.5; color: rgba(250, 246, 238, .82); }
.hero-cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 17px; font-weight: 500; letter-spacing: .02em;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .15s, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #F6B55E; }
.btn-ghost { border-color: var(--line-on-ink); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: #1E3059; }
.btn-line { border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Apps ---------- */
.apps { padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); }
.section-head { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 22px; }
.section-head .eyebrow { color: var(--amber-deep); }
.section-head::after { content: ""; height: 1px; background: var(--line); }
.section-title { margin-top: 20px; max-width: 20ch; font-size: clamp(32px, 4.6vw, 52px); font-weight: 300; line-height: 1.1; letter-spacing: -.015em; }

.app-list { margin-top: clamp(36px, 5vw, 60px); display: grid; gap: clamp(28px, 4vw, 44px); }
.app {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(20,33,61,.03), 0 30px 60px -40px rgba(20,33,61,.35);
}
.app-copy { padding: clamp(28px, 4.4vw, 60px); display: flex; flex-direction: column; align-items: flex-start; }
.app-id { display: flex; align-items: center; gap: 18px; }
.app-icon { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 10px 24px -12px rgba(20,33,61,.55); }
.app-name { font-size: clamp(30px, 3.4vw, 40px); font-weight: 500; line-height: 1.05; letter-spacing: -.01em; }
.app-kind { margin-top: 4px; font-size: 15px; letter-spacing: .06em; color: var(--ink-soft); }
.app-tagline { margin-top: 30px; font-size: clamp(24px, 2.6vw, 30px); font-weight: 400; line-height: 1.2; }
.app-desc { margin-top: 14px; color: var(--ink-soft); max-width: 44ch; }
.app-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.app-points li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; line-height: 1.45; }
.app-points svg { margin-top: 3px; }
.app-points strong { font-weight: 500; }
.app-points span { color: var(--ink-soft); }
.pill {
  margin-top: 30px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; letter-spacing: .05em;
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.app-links { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }

.app-stage {
  position: relative;
  min-height: 560px;
  background:
    radial-gradient(120% 90% at 80% 0%, #F2FAFD 0%, rgba(242,250,253,0) 60%),
    linear-gradient(180deg, #CFEAF5 0%, var(--sky) 100%);
  overflow: hidden;
}
.phone {
  position: absolute;
  width: 43%;
  aspect-ratio: 540 / 1173;
  border-radius: 9% / 4.2%;
  background: #0B1224;
  padding: 1.6%;
  box-shadow: 0 40px 60px -30px rgba(20,33,61,.6), 0 0 0 1px rgba(20,33,61,.25);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 7.6% / 3.5%; }
.phone.p1 { left: 6%; top: 17%; transform: rotate(-7deg); }
.phone.p2 { left: 50%; top: 9%; transform: translateX(-50%); z-index: 2; width: 46%; }
.phone.p3 { right: 6%; top: 17%; transform: rotate(7deg); }
.stage-duck { position: absolute; z-index: 3; left: 4%; bottom: 3%; width: 21%; filter: drop-shadow(0 18px 18px rgba(20,33,61,.3)); }

/* ---------- Contact ---------- */
.contact { padding: clamp(40px, 6vw, 72px) 0 clamp(72px, 10vw, 128px); }
.contact-card {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px;
  padding-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--line);
}
.contact h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 300; line-height: 1.1; letter-spacing: -.015em; max-width: 16ch; }
.contact p { margin-top: 16px; color: var(--ink-soft); max-width: 46ch; }
.mail { font-size: clamp(20px, 2.6vw, 28px); text-decoration: none; border-bottom: 2px solid var(--amber); padding-bottom: 4px; white-space: nowrap; }
.mail:hover { color: var(--amber-deep); }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(48px, 7vw, 80px) 0 36px; }
.footer-top { display: grid; grid-template-columns: 1fr auto auto; gap: clamp(32px, 7vw, 96px); align-items: start; }
.footer-logo img { width: 190px; height: auto; }
.footer-col h3 { font-size: 13px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--amber); }
.footer-col ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9px; font-size: 17px; }
.footer-col a { text-decoration: none; color: rgba(250,246,238,.84); }
.footer-col a:hover { color: var(--cream); text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 5px; }
.footer-base { margin-top: clamp(40px, 6vw, 64px); padding-top: 22px; border-top: 1px solid var(--line-on-ink); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 15px; color: rgba(250,246,238,.6); }

/* ---------- Document pages (privacy, support) ---------- */
.doc-hero { padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(40px, 6vw, 72px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 15px; letter-spacing: .04em; color: rgba(250,246,238,.66); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--cream); }
.crumbs .sep { color: var(--amber); }
.doc-title { margin-top: 26px; display: flex; align-items: center; gap: 22px; }
.doc-title img { width: 84px; height: 84px; border-radius: 20px; flex: none; box-shadow: 0 14px 30px -14px rgba(0,0,0,.7); }
.doc-title h1 { font-size: clamp(34px, 5.6vw, 60px); font-weight: 300; line-height: 1.05; letter-spacing: -.015em; }
.doc-tabs { margin-top: 30px; display: flex; gap: 10px; flex-wrap: wrap; }
.doc-tabs a { text-decoration: none; padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--line-on-ink); font-size: 16px; letter-spacing: .03em; }
.doc-tabs a:hover { border-color: var(--cream); }
.doc-tabs a[aria-current="page"] { background: var(--amber); border-color: var(--amber); color: var(--ink); font-weight: 500; }

.doc { padding: clamp(36px, 6vw, 72px) 0 clamp(64px, 9vw, 112px); }
.doc-body { max-width: 720px; }
.doc-body > p:first-child { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.doc-body p { margin: 0 0 18px; }
.doc-body h2 { margin: 46px 0 14px; padding-top: 30px; border-top: 1px solid var(--line); font-size: 27px; font-weight: 500; line-height: 1.2; letter-spacing: -.005em; }
.doc-body ul { margin: 0 0 18px; padding-left: 0; list-style: none; display: grid; gap: 12px; }
.doc-body li { position: relative; padding-left: 26px; }
.doc-body li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 50%; border: 2.5px solid var(--amber); }
.doc-body strong { font-weight: 500; }
.doc-body a { color: var(--ink); text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.doc-body a:hover { color: var(--amber-deep); }
.doc-body > p.lead { font-size: 21px; line-height: 1.5; text-transform: none; letter-spacing: 0; color: var(--ink); }
.faq { margin: 0 0 14px; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.faq p { margin: 0; }
.faq p + p { margin-top: 6px; color: var(--ink-soft); }
.mail-card { margin: 26px 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 26px; border-radius: 20px; background: var(--ink); color: var(--cream); }
.mail-card span { font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--amber); }
.mail-card a { color: var(--cream); font-size: clamp(19px, 2.6vw, 24px); text-decoration-color: var(--amber); }
.mail-card a:hover { color: var(--amber); }

/* ---------- 404 ---------- */
.lost { min-height: 100vh; display: flex; flex-direction: column; }
.lost main { flex: 1; display: flex; align-items: center; }
.lost h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 300; line-height: 1.05; letter-spacing: -.02em; }
.lost p { margin-top: 18px; color: rgba(250,246,238,.8); max-width: 40ch; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-rings { width: min(62vw, 420px); right: var(--gutter); top: 50%; opacity: .1; }
  .app { grid-template-columns: 1fr; }
  .app-stage { min-height: 0; aspect-ratio: 1 / .98; order: -1; }
  .contact-card { grid-template-columns: 1fr; align-items: start; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-logo { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .brand img { height: 32px; }
  .nav { font-size: 15px; }
  .app { border-radius: 24px; }
  .app-icon { width: 64px; height: 64px; border-radius: 15px; }
  .doc-title { gap: 16px; }
  .doc-title img { width: 64px; height: 64px; border-radius: 15px; }
  .btn { padding: 13px 20px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
