/* Alynda - shared site styles (home + support centre).
   Palette: chalk page, indigo ink, Ideal Digital signal red for actions,
   screen blue for links. The only dark surfaces are screens. */
:root {
  --chalk: #f2f4f8;
  --paper: #ffffff;
  --ink: #151a3d;
  --ink-2: #2a3160;
  --muted: #59628a;
  --line: #dce1ec;
  --signal: #e5322b;
  --signal-deep: #c4241e;
  --glow: #2f6bff;
  --sun: #ffc93c;
  --leaf: #1fa37a;
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--chalk); color: var(--ink);
  font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--glow); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 750; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--muted); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; justify-content: center;
  font: 700 1rem/1 var(--body); padding: .95em 1.35em; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-signal { background: var(--signal); color: #fff; }
.btn-signal:hover { background: var(--signal-deep); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sun); color: var(--ink); }
.btn-wa { background: #1faa59; color: #fff; }
.btn-wa:hover { background: #178a48; color: #fff; }
.btn svg { width: 1.15em; height: 1.15em; }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(242, 244, 248, .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.45rem/1 var(--display); letter-spacing: -0.03em; }
.brand-mark { width: 34px; height: 34px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--signal); }
.top .btn { padding: .7em 1.1em; font-size: .95rem; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--paper); flex-direction: column; gap: 0; padding: 8px 20px 18px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-btn { display: block; }
  .top .btn-signal { display: none; }
}

/* ---- sections ---- */
section { padding: 96px 0; }
.sec-head { max-width: 40em; margin-bottom: 44px; }
.sec-head p { margin-top: 14px; font-size: 1.1rem; color: var(--ink-2); }
@media (max-width: 700px) { section { padding: 68px 0; } }

/* ---- footer ---- */
.foot { background: var(--paper); border-top: 1px solid var(--line); padding: 48px 0 36px; font-size: .95rem; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { font: 700 1rem/1.2 var(--display); margin: 0 0 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--signal); }
.foot .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 22px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 22px; }
@media (max-width: 800px) { .foot .wrap { grid-template-columns: 1fr 1fr; } }

/* ---- forms ---- */
.field { display: grid; gap: 6px; }
.field label, .field .lbl { font-weight: 700; font-size: .95rem; }
.field small { color: var(--muted); font-size: .85rem; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 2px solid var(--line); border-radius: var(--r-s); padding: .7em .85em; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--glow); }
textarea { min-height: 120px; resize: vertical; }
.err { color: var(--signal-deep); font-weight: 700; font-size: .95rem; min-height: 1.4em; }
