/* ==========================================================================
   Dumaflow — shared site styles (all pages)
   Brand: navy #20295B + teal #1DA09E, taken straight from the mark.
   Rounded geometric type (Poppins) to match the wordmark. Light, calm
   surfaces with deep-navy anchor sections for contrast.
   ========================================================================== */
:root {
  /* brand */
  --ink: #20295B;
  --ink-rgb: 32, 41, 91;
  --ink-deep: #171F45;
  --teal: #1DA09E;
  --teal-rgb: 29, 160, 158;
  --teal-deep: #17827F;
  --blue: #3A4BA0;
  --amber: #F0A92E;

  /* surfaces */
  --paper: #FFFFFF;
  --paper-rgb: 255, 255, 255;
  --surface: #F4F7FC;
  --surface-2: #E9EFF9;
  --line: rgba(32, 41, 91, .10);
  --line-strong: rgba(32, 41, 91, .16);
  --muted: rgba(32, 41, 91, .70);

  /* shape */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(32, 41, 91, .06);
  --shadow: 0 14px 40px rgba(32, 41, 91, .10);
  --shadow-lg: 0 30px 70px rgba(32, 41, 91, .16);

  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.display {
  font-family: var(--font);
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.025em;
  line-height: 1.06;
}

/* the grain belonged to the old industrial look — retired, kept as a no-op
   so every `class="… grain"` already in the markup stays harmless */
.grain { position: relative; }
.grain::after { content: none; }
.grain > * { position: relative; z-index: 2; }

/* progress bar */
#progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 200;
  background: linear-gradient(90deg, var(--ink), var(--teal)); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 6vw;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav .brand img { height: 34px; width: auto; display: block; }
.nav .brand-name { display: none; }
.nav .links { display: flex; align-items: center; gap: 26px; }
.nav a.link {
  position: relative; color: rgba(var(--ink-rgb), .74); text-decoration: none;
  font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 0; padding: 4px 0;
  transition: color .2s ease;
}
.nav a.link:hover { color: var(--ink); }
.nav a.link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--teal); border-radius: 2px; transform: scaleX(0); transform-origin: right; transition: transform .3s cubic-bezier(.4,0,.2,1); }
.nav a.link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav a.cta {
  background: var(--teal); color: #fff; font-size: 14px; font-weight: 600;
  text-transform: none; letter-spacing: 0; text-decoration: none;
  padding: 10px 22px; border-radius: var(--radius-sm);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.nav a.cta:hover { background: var(--teal-deep); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(var(--teal-rgb), .3); }
.nav a.signin {
  border: 1.5px solid var(--line-strong); color: var(--ink); font-size: 14px; font-weight: 500;
  text-transform: none; letter-spacing: 0; text-decoration: none;
  padding: 9px 18px; border-radius: var(--radius-sm); white-space: nowrap;
  transition: border-color .2s ease, background .2s ease;
}
.nav a.signin:hover { border-color: var(--teal); background: rgba(var(--teal-rgb), .08); }
@media (max-width: 860px) { .nav .links a.link { display: none; } }
.nav a.cta { white-space: nowrap; }
@media (max-width: 540px) {
  .nav { padding: 12px 4vw; }
  .nav .brand img { height: 28px; }
  .nav a.signin { padding: 9px 12px; font-size: 12.5px; }
  .nav a.cta { padding: 9px 14px; font-size: 12.5px; }
  .nav .links { gap: 9px; }
}

/* ---------- buttons ---------- */
.btn-claim {
  display: inline-block; background: var(--teal); color: #fff; font-weight: 600; font-size: 16px;
  text-transform: none; letter-spacing: 0; padding: 16px 38px; text-decoration: none;
  border: none; cursor: pointer; font-family: var(--font); border-radius: var(--radius-sm);
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.btn-claim:hover { background: var(--teal-deep); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(var(--teal-rgb), .32); }
.btn-outline {
  display: inline-block; border: 1.5px solid rgba(255, 255, 255, .5); color: #fff;
  font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 16px;
  padding: 15px 36px; text-decoration: none; border-radius: var(--radius-sm);
  transition: background .2s ease, border-color .2s ease;
}
.btn-outline:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-ink {
  display: inline-block; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px;
  text-transform: none; letter-spacing: 0; padding: 15px 34px; text-decoration: none;
  border: none; cursor: pointer; font-family: var(--font); border-radius: var(--radius-sm);
  transition: background .2s ease, transform .15s ease;
}
.btn-ink:hover { background: var(--ink-deep); transform: translateY(-2px); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- subpage building blocks ---------- */
.page-hero {
  background: var(--ink);
  background-image: radial-gradient(120% 90% at 82% 8%, rgba(29, 160, 158, .30) 0%, rgba(29, 160, 158, 0) 58%);
  color: #fff; text-align: center; padding: 150px 6vw 78px;
}
.page-hero .eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: #6FD3D1; margin-bottom: 16px; }
.page-hero h1.display { font-size: clamp(32px, 5.4vw, 62px); line-height: 1.04; }
.page-hero .lede { font-size: clamp(15px, 1.7vw, 19px); font-weight: 400; margin: 18px auto 0; max-width: 54ch; color: rgba(255, 255, 255, .78); line-height: 1.6; }
.page-hero img.hero-flame { height: clamp(56px, 6vw, 78px); margin-bottom: 20px; }

.page-body { padding: 70px 6vw 90px; max-width: 1080px; margin: 0 auto; }
.page-body.narrow { max-width: 760px; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 34px 38px; }
.panel h2 { font-size: 21px; font-weight: 600; margin-bottom: 12px; letter-spacing: -.02em; }
.panel p { font-size: 15px; line-height: 1.7; color: var(--muted); }

/* ---------- forms ---------- */
.field { margin-bottom: 18px; text-align: left; }
.field label { display: block; font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: 0; margin-bottom: 7px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; font-size: 15px; font-family: var(--font);
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(29, 160, 158, .16); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.alert { border-radius: var(--radius-sm); padding: 13px 16px; font-size: 14px; font-weight: 500; margin-bottom: 18px; }
.alert-success { background: rgba(29, 160, 158, .12); color: var(--teal-deep); border: 1px solid rgba(29, 160, 158, .4); }
.alert-error { background: rgba(192, 57, 43, .08); color: #96281b; border: 1px solid rgba(192, 57, 43, .3); }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ---------- help centre ---------- */
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .help-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .help-grid { grid-template-columns: 1fr; } }
.help-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); display: block;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.help-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(29, 160, 158, .35); }
.help-card .hc-icon { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.help-card .hc-icon svg { width: 22px; height: 22px; }
.hc-icon.c1 { background: rgba(var(--ink-rgb), .08); color: var(--ink); }
.hc-icon.c2 { background: rgba(29, 160, 158, .13); color: var(--teal-deep); }
.hc-icon.c3 { background: rgba(240, 169, 46, .18); color: #8a5a05; }
.hc-icon.c4 { background: var(--ink); color: #fff; }
.help-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 7px; letter-spacing: -.01em; }
.help-card p { font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.help-card .hc-count { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--teal-deep); }

/* ---------- help article ---------- */
.help-article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 42px 46px; }
.help-article h2 { font-size: 21px; font-weight: 600; margin: 32px 0 10px; padding-top: 8px; letter-spacing: -.02em; }
.help-article h2:first-child { margin-top: 0; }
.help-article p { font-size: 15px; line-height: 1.75; color: rgba(var(--ink-rgb), .78); margin-bottom: 12px; }
.help-article ol, .help-article ul { margin: 0 0 14px 22px; }
.help-article li { font-size: 15px; line-height: 1.75; color: rgba(var(--ink-rgb), .78); margin-bottom: 6px; }
.help-article .tip { background: rgba(29, 160, 158, .08); border-left: 3px solid var(--teal); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 13px 16px; font-size: 14px; margin: 16px 0; color: rgba(var(--ink-rgb), .82); }
.help-article .warn { background: rgba(240, 169, 46, .12); border-left: 3px solid var(--amber); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 13px 16px; font-size: 14px; margin: 16px 0; color: rgba(var(--ink-rgb), .82); }
.help-back { display: inline-block; font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--teal-deep); text-decoration: none; margin-bottom: 20px; }
.help-back:hover { text-decoration: underline; }

/* ---------- FAQ accordion ---------- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 20px 22px; font-size: 15.5px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font); font-weight: 400; font-size: 24px; line-height: 1; color: var(--teal); transition: transform .25s ease; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 22px 20px; font-size: 14.5px; line-height: 1.75; color: var(--muted); }

/* ---------- legal pages ---------- */
.legal { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 44px; box-shadow: var(--shadow); }
.legal h2 { font-size: 18px; font-weight: 600; margin: 30px 0 10px; color: var(--ink); letter-spacing: -.01em; }
.legal h2:first-child { margin-top: 0; }
.legal p { font-size: 14.5px; line-height: 1.8; color: rgba(var(--ink-rgb), .78); }
.legal p + p { margin-top: 10px; }
.legal a { color: var(--teal-deep); font-weight: 500; }
@media (max-width: 620px) { .legal { padding: 28px 22px; } }

/* ---------- signup walkthrough shell ---------- */
.walkthrough { display: flex; flex-direction: column; gap: 14px; }
.wt-step { display: grid; grid-template-columns: 52px 1fr auto; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-sm); }
.wt-num { width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: #fff; font-family: var(--font); font-weight: 600; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.wt-step h3 { font-size: 17px; font-weight: 600; margin-bottom: 5px; letter-spacing: -.01em; }
.wt-step p { font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.wt-badge { font-size: 11px; font-weight: 600; text-transform: none; letter-spacing: 0; padding: 5px 13px; border-radius: var(--radius-pill); background: rgba(29, 160, 158, .13); color: var(--teal-deep); white-space: nowrap; align-self: start; }
@media (max-width: 620px) { .wt-step { grid-template-columns: 44px 1fr; } .wt-badge { display: none; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-deep); color: #fff; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 64px 6vw 40px; max-width: 1180px; margin: 0 auto; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand img { height: 34px; margin-bottom: 14px; }
.foot-brand span { display: none; }
.foot-brand p { font-size: 13.5px; color: rgba(255, 255, 255, .72); max-width: 36ch; line-height: 1.7; }
.foot-col h4 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .62); margin-bottom: 14px; }
.foot-col a { display: block; color: #fff; text-decoration: none; font-size: 14px; margin-bottom: 10px; opacity: .82; transition: opacity .2s ease, color .2s ease; }
.foot-col a:hover { opacity: 1; color: #6FD3D1; }
.footbar { display: flex; justify-content: space-between; padding: 22px 6vw 30px; font-size: 12.5px; color: rgba(255, 255, 255, .60); text-transform: none; letter-spacing: 0; border-top: 1px solid rgba(255, 255, 255, .1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
}

/* ---------- nav: products dropdown ---------- */
.navdrop { position: relative; }
.navdrop-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer; font-family: var(--font);
  color: rgba(var(--ink-rgb), .74); font-size: 14px; font-weight: 500;
  padding: 4px 0; transition: color .2s ease;
}
.navdrop-btn:hover, .navdrop.open .navdrop-btn { color: var(--ink); }
.navdrop-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; border-radius: 3px; }
.navdrop-caret { width: 14px; height: 14px; transition: transform .25s ease; }
.navdrop.open .navdrop-caret { transform: rotate(180deg); }

.navdrop-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  width: min(340px, calc(100vw - 32px));
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px; z-index: 120;
}
.navdrop-menu[hidden] { display: none; }
.navdrop-menu a {
  display: block; text-decoration: none; color: var(--ink);
  padding: 12px 14px; border-radius: var(--radius-sm);
  transition: background .18s ease;
}
.navdrop-menu a:hover, .navdrop-menu a:focus-visible { background: var(--surface); outline: none; }
.navdrop-menu a strong { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 3px; }
.navdrop-menu a span { display: block; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

/* the products menu stays reachable on small screens, where the plain links hide.
   below 860px it anchors to the nav bar itself rather than to the button, so a
   wide menu can't run off the left edge of a narrow screen. */
@media (max-width: 860px) {
  .navdrop { position: static; }
  .navdrop-menu {
    top: calc(100% + 8px); left: 16px; right: 16px;
    width: auto; max-width: none; transform: none;
  }
}
@media (max-width: 540px) {
  .navdrop-btn { font-size: 12.5px; }
}

/* compact brand mark on narrow screens, so the nav still fits with Products in it */
.nav .brand .brand-mark { display: none; }
@media (max-width: 600px) {
  .nav .brand .brand-full { display: none; }
  .nav .brand .brand-mark { display: block; height: 30px; width: auto; }
  .nav .links { gap: 12px; }
}
@media (max-width: 380px) {
  .nav a.signin { display: none; }
}
