/* ==========================================================
   WatuFlex — watuflex.com
   Palette and type from the WatuFlex brand: navy leads, teal
   carries emphasis. Nothing here is loaded from a CDN except
   the typeface, so the site works behind a slow link.
   ========================================================== */

:root {
  --navy:      #19396E;
  --teal:      #049F9C;
  --deep:      #132C55;
  --pale:      #C9D3E3;
  --field:     #0D1526;

  --ink:       #16223a;
  --muted:     #5b6b86;
  --faint:     #7d8ba3;
  --line:      #e3e9f2;
  --wash:      #f6f8fc;
  --card:      #ffffff;

  --maxw: 1120px;
  --radius: 12px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--card);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: var(--navy); }
a:hover { color: var(--teal); }

/* ---------------------------------------------- header */
header.site {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(8px);
}
.bar { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 30px; width: auto; display: block; }
nav.main { display: flex; gap: 22px; flex: 1; flex-wrap: wrap; }
nav.main a {
  text-decoration: none; color: var(--muted);
  font-size: 14.6px; font-weight: 500; padding: 4px 0;
  border-bottom: 2px solid transparent;
}
nav.main a:hover { color: var(--navy); }
nav.main a.on { color: var(--navy); font-weight: 600; border-bottom-color: var(--teal); }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  font-size: 14.6px; padding: 10px 18px; border-radius: 9px;
  background: var(--navy); color: #fff; border: 1.5px solid var(--navy);
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.on-dark { background: var(--teal); border-color: var(--teal); }
.btn.on-dark:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------------------------------------------- hero */
.hero { background: var(--field); color: #fff; padding: 76px 0 84px; }
.hero h1 {
  margin: 0 0 18px; font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15; letter-spacing: -.02em; font-weight: 700; max-width: 18ch;
}
.hero p.lead { margin: 0 0 28px; font-size: 18px; color: var(--pale); max-width: 62ch; line-height: 1.6; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.kicker {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 14px;
}

/* ---------------------------------------------- page head */
.phead { background: var(--wash); border-bottom: 1px solid var(--line); padding: 46px 0 40px; }
.phead h1 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 36px); letter-spacing: -.015em; }
.phead p { margin: 0; color: var(--muted); font-size: 16.5px; max-width: 70ch; }

.crumb { font-size: 13.2px; color: var(--faint); margin-bottom: 12px; }
.crumb a { color: var(--faint); text-decoration: none; }
.crumb a:hover { color: var(--navy); }

/* ---------------------------------------------- sections */
section { padding: 56px 0; }
section.tint { background: var(--wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.dark { background: var(--field); color: #fff; }
section.dark h2, section.dark h3 { color: #fff; }
section.dark p { color: var(--pale); }

h2 { font-size: clamp(22px, 3vw, 28px); margin: 0 0 12px; letter-spacing: -.015em; }
h3 { font-size: 17.5px; margin: 0 0 8px; }
p  { color: var(--muted); }
.section-lead { max-width: 66ch; margin-bottom: 30px; font-size: 16.5px; }

/* ---------------------------------------------- grid + cards */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; display: flex; flex-direction: column;
}
a.card { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--teal); transform: translateY(-2px); }
.card .ic { font-size: 22px; line-height: 1; margin-bottom: 10px; }
.card strong { font-size: 15.5px; color: var(--ink); margin-bottom: 6px; display: block; }
.card span.d { font-size: 14px; color: var(--muted); line-height: 1.6; flex: 1; }
.card .go { margin-top: 14px; font-size: 13.4px; font-weight: 600; color: var(--teal); }
section.dark .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
section.dark .card strong { color: #fff; }
section.dark .card span.d { color: var(--pale); }

/* ---------------------------------------------- tables */
table { width: 100%; border-collapse: collapse; font-size: 14.6px; margin: 6px 0 4px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12.4px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 700; }
td code { background: var(--wash); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; font-size: 13px; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.tbl-wrap table { margin: 0; }
.tbl-wrap tr:last-child td { border-bottom: none; }

.tag {
  display: inline-block; font-size: 11.6px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 20px; white-space: nowrap;
}
.tag.ready   { background: #e9f6ec; color: #215b32; border: 1px solid #b6ddc1; }
.tag.soon    { background: #fff6e6; color: #6b4d12; border: 1px solid #e8cf9a; }
.tag.draft   { background: #eef1f7; color: #4b5a74; border: 1px solid #dbe2ee; }
.tag.beta    { background: #eaf3fb; color: #1d4e77; border: 1px solid #b9d6ec; }

/* ---------------------------------------------- notes */
.note {
  background: #fffaf0; border-left: 3px solid #e0b979; padding: 15px 18px;
  border-radius: 0 9px 9px 0; color: #5c4813; font-size: 14.4px; line-height: 1.65; margin: 22px 0;
}
.note strong { display: block; margin-bottom: 3px; color: #4a3a0f; }
.note.info { background: #eef5fc; border-left-color: var(--teal); color: #1f4160; }
.note.info strong { color: #14375c; }

/* ---------------------------------------------- misc */
ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { position: relative; padding-left: 26px; margin-bottom: 9px; color: var(--muted); font-size: 15px; }
ul.ticks li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 700; }
ul.crosses li::before { content: "\2717"; color: #c9543f; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; margin: 8px 0 0; }
.stat b { display: block; font-size: 26px; color: #fff; line-height: 1.2; }
.stat span { font-size: 12.6px; color: var(--pale); text-transform: uppercase; letter-spacing: .05em; }

.sources { font-size: 13.6px; color: var(--faint); }
.sources a { color: var(--muted); }

/* ---------------------------------------------- footer */
footer.site { background: var(--deep); color: var(--pale); padding: 46px 0 30px; font-size: 14.4px; }
footer.site .fgrid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 30px; }
footer.site img { height: 28px; margin-bottom: 12px; }
footer.site h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; margin: 0 0 12px; }
footer.site a { color: var(--pale); text-decoration: none; display: block; margin-bottom: 8px; }
footer.site a:hover { color: #fff; }
footer.site .legal {
  border-top: 1px solid rgba(255,255,255,.14); margin-top: 32px; padding-top: 18px;
  font-size: 13px; color: #90a2bd; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

@media (max-width: 860px) {
  footer.site .fgrid { grid-template-columns: 1fr 1fr; }
  .bar { height: auto; padding: 14px 0; flex-wrap: wrap; gap: 14px; }
  nav.main { gap: 16px; }
  section { padding: 42px 0; }
}

/* ---- repository documents and tools ---- */
.stat-row.light .stat b { color: var(--ink); }
.stat-row.light .stat span { color: var(--muted); }
.ph { background: #fff4b8; border-bottom: 1px dashed #c9a400; padding: 0 3px; border-radius: 3px; }
.paper { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 38px; max-width: 820px;
         box-shadow: 0 6px 24px rgba(15,23,42,.05); line-height: 1.65; font-size: 15px; }
.paper h3 { margin: 22px 0 8px; font-size: 16.5px; }
.paper p, .paper li { color: var(--ink); }
.paper ul, .paper ol { padding-left: 22px; }
.paper .note { margin: 0 0 18px; }
table.fields { margin: 10px 0 16px; }
table.fields th { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); width: 38%;
                  font-weight: 600; text-align: left; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.fields td { border-bottom: 1px dotted #9aa6ba; min-height: 22px; }
table.doc th { text-align: left; }
.sigs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; margin: 34px 0 10px; }
.sig .line { border-bottom: 1px solid #0f172a; height: 38px; margin-bottom: 6px; }
.sig .muted { font-size: 12.5px; }
.calc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; max-width: 720px; display: grid; gap: 12px; }
.calc label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; color: var(--ink); }
.calc label:has(input[type=checkbox]) { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.calc input:not([type=checkbox]), .calc select, .calc textarea { font: inherit; font-weight: 400; padding: 9px 11px;
         border: 1px solid var(--line); border-radius: 8px; max-width: 320px; }
.calc textarea { max-width: 100%; }
.calc .out { margin-top: 6px; }
.warn { color: #9a3412; font-weight: 600; }
@media print {
  header.site, footer.site, .crumb, .phead .cta, .noprint { display: none !important; }
  .phead { padding: 0 !important; background: none !important; }
  .paper { border: 0; box-shadow: none; padding: 0; max-width: none; }
  .ph { background: none; border-bottom: 1px dotted #000; }
  section { padding: 10px 0 !important; }
}

/* ---- accounts, the free trial, and locked documents ---- */
.acct { display: flex; align-items: center; gap: 14px; }
.acct .signin { font-size: 14.5px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; }
.acct .signin:hover { color: var(--navy); }
.btn.small { padding: 6px 12px; font-size: 13.5px; }
.btn.danger { background: #b3261e; border-color: #b3261e; }

.trialband { background: linear-gradient(135deg, #eaf7f6 0%, #eef3fb 100%); border-bottom: 1px solid var(--line); }
.trialband .kicker { color: var(--teal); }
.trialgrid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center; }
.trialgrid .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: 10px;
            padding: 12px 14px 12px 50px; position: relative; color: var(--muted); font-size: 14.5px; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 11px; width: 24px; height: 24px; border-radius: 50%;
                    background: var(--teal); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.steps li strong { color: var(--ink); }

.paper.preview { max-height: 380px; overflow: hidden; position: relative; }
.paper.preview::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px;
                        background: linear-gradient(rgba(255,255,255,0), #fff); }
.lockbox { border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: var(--radius); background: #fff;
           padding: 24px; margin-top: 18px; max-width: 760px; box-shadow: 0 8px 24px rgba(19,44,85,.06); }
.lockbox .ic { font-size: 22px; margin-bottom: 6px; }
.lockbox p, .lockbox div#lockmsg { color: var(--muted); }
.lockbox div#lockmsg strong { color: var(--ink); }
.lockbox .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.wrap.narrow { max-width: 760px; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 5px; align-content: start; font-size: 14px; font-weight: 500; color: var(--ink); }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea, .row input, .card textarea, .card form input[name]:not([type=checkbox]):not([type=hidden]) {
  font: inherit; font-size: 15px; padding: 9px 11px; border: 1px solid #cfd8e6; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid rgba(4,159,156,.35); border-color: var(--teal); }
.form small { font-weight: 400; color: var(--faint); font-size: 12.8px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0; }
.form legend { font-size: 14px; font-weight: 600; padding: 0 6px; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 6px 14px; }
.checks label, .form label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: 14.2px; }
.form button.btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flash { padding: 11px 14px; border-radius: 9px; margin-bottom: 14px; font-size: 14.5px; }
.flash.ok { background: #e7f6f0; color: #145c43; border: 1px solid #bfe6d6; }
.flash.err { background: #fdecea; color: #8a1f17; border: 1px solid #f4c7c2; }
button.btn { cursor: pointer; font-family: inherit; line-height: inherit; }

.acct-cards .card .d form { margin: 0; }
details.pack { border: 1px solid var(--line); border-radius: 10px; margin: 0 0 10px; background: #fff; }
details.pack summary { padding: 12px 16px; cursor: pointer; }
details.pack .tbl-wrap { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs a { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 14px; color: var(--muted); background: #fff; }
.tabs a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.tabs a b { font-weight: 600; margin-left: 4px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row input { width: auto; }
table.kv { width: 100%; font-size: 14px; border-collapse: collapse; margin-top: 8px; }
table.kv td { overflow-wrap: anywhere; padding: 5px 6px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
table.kv td:first-child { color: var(--faint); width: 36%; white-space: nowrap; }

@media (max-width: 860px) {
  .trialgrid { grid-template-columns: 1fr; gap: 22px; }
  .form .two { grid-template-columns: 1fr; }
  .acct { width: 100%; justify-content: flex-end; }
}
.form select { min-height: 45px; }

/* September 2026: floating WhatsApp button, shown only when a number is set */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 50; background: #25D366; color: #fff;
            font-weight: 600; padding: 12px 18px; border-radius: 999px; text-decoration: none;
            box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.wa-float:hover { filter: brightness(.95); }
