/* forethos.ai. Outdoor Connect colours (navy #0D3B66, sky #47B5FF), serif for headings, system fonts only:
   the site loads nothing from elsewhere, apart from the spam check on the request form. */
:root {
  --paper: #F6F4EF; --paper-2: #FBFAF7; --surface: #FFFFFF; --ink: #17212C; --text: #3E4A57; --muted: #4A5562;
  --faint: #5E6976; --line: #E3DED3; --line-2: #C9C2B4; --navy: #0D3B66; --accent: #1F5E96; --deep: #0B2A47;
  --on-deep: #C3D1DF; --sky: #8EC9F5; --wash: #EEF3F8; --sand: #F3EFE6;
  --serif: "Iowan Old Style", Charter, "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:hover { color: var(--navy); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 900px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 10px 14px; z-index: 10; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { margin-right: auto; display: flex; }
.brand img { height: 44px; width: auto; display: block; }
.menu { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.menu a { color: var(--ink); text-decoration: none; }
.menu a:hover { color: var(--accent); }
.ext::after { content: " ↗"; font-size: 12px; }
.menu-toggle { display: none; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 12px 24px; border-radius: 8px;
       font-weight: 600; text-decoration: none; border: 1px solid transparent; font-size: 15px; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }

/* Sections */
section { padding: 88px 0; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 16px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 600; line-height: 1.4; }
.display { margin: 0 0 24px; font-family: var(--serif); font-weight: 500; font-size: 56px; line-height: 1.08; color: var(--navy); }
.lede { margin: 0 0 36px; font-size: 19px; color: var(--text); max-width: 560px; }
h2 { margin: 0 0 12px; font-family: var(--serif); font-weight: 500; font-size: 38px; color: var(--navy); }
.intro { margin: 0 0 44px; font-size: 18px; color: var(--text); max-width: 700px; }
h3 { margin: 0 0 8px; font-size: 19px; }
p { margin: 0; }
.muted { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.grid-2, .grid-3 { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
.card h3 { color: var(--navy); }
.card p { color: var(--muted); font-size: 15px; }
.pill { display: inline-block; border-radius: 99px; padding: 4px 12px; font-size: 13px; background: var(--wash); color: var(--navy); }
.pill.sand { background: var(--sand); color: var(--muted); }
.pill.solid { background: var(--navy); color: #fff; }

/* Hero */
.hero { padding: 88px 0 80px; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-text, .shot { flex: 1 1 480px; min-width: 0; }
.shot { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; min-height: 420px;
        box-shadow: 0 1px 2px rgba(16,32,48,.05), 0 18px 48px rgba(16,32,48,.10); }
.shot-side { width: 150px; flex: none; background: var(--deep); padding: 18px 14px; display: flex; flex-direction: column; gap: 10px; font-size: 12px; color: #8EA4BA; }
.shot-side .logo { background: #fff; border-radius: 8px; padding: 8px; display: flex; justify-content: center; }
.shot-side .logo img { height: 22px; width: auto; }
.shot-side .new { border: 1px solid rgba(71,181,255,.35); background: rgba(71,181,255,.08); color: #fff; border-radius: 8px; padding: 7px 10px; }
.shot-side .label { font-size: 11px; margin-top: 8px; text-transform: uppercase; letter-spacing: .08em; }
.shot-side .on { color: #E9EFF5; }
.shot-main { flex: 1; min-width: 0; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.shot-main .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.shot-main .tags span { border-radius: 99px; padding: 4px 10px; font-size: 12px; background: var(--wash); color: var(--navy); }
.shot-main .tags span + span { background: var(--sand); color: var(--faint); }
.shot-main .trail { font-size: 12px; color: var(--faint); border-left: 2px solid var(--line); padding-left: 10px; line-height: 1.7; }
.shot-main .title { font-family: var(--serif); font-size: 20px; color: var(--navy); }
.shot-main .line { height: 9px; background: #ECE8DF; border-radius: 4px; }
.shot-main .w94 { width: 94%; } .shot-main .w88 { width: 88%; } .shot-main .w70 { width: 70%; }
.shot-main .files { margin-top: auto; display: flex; gap: 8px; font-size: 12px; }
.shot-main .files span { border: 1px solid var(--line-2); border-radius: 6px; padding: 5px 10px; }
.shot-main .files span:last-child { background: var(--navy); color: #fff; border-color: var(--navy); }

.oc { background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 26px 0; }
.oc .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; color: var(--text); font-size: 15px; }
.oc strong { color: var(--navy); }
.oc span { flex: 1 1 420px; }
.oc a { font-weight: 600; }

.steps .num { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.steps h3 { font-size: 20px; }
.steps p { color: var(--muted); }

/* Protection */
.dark { background: var(--deep); color: #E9EFF5; padding: 104px 0 96px; }
.dark h2 { color: #fff; font-size: 44px; line-height: 1.12; margin-bottom: 20px; }
.dark .eyebrow { color: var(--sky); }
.dark .intro { color: var(--on-deep); max-width: 820px; margin-bottom: 56px; }
.layers { display: flex; flex-direction: column; gap: 14px; }
.layer { display: flex; flex-wrap: wrap; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); }
.layer-head { flex: 1 1 260px; padding: 24px 26px; display: flex; flex-direction: column; gap: 6px; }
.layer-head .n { font-size: 13px; color: var(--sky); font-weight: 600; letter-spacing: .08em; }
.layer-head h3 { margin: 0; font-size: 21px; color: #fff; }
.layer-head .sub { font-size: 14px; color: var(--on-deep); }
.layer ul { flex: 3 1 520px; margin: 0; padding: 24px 28px 16px 46px; background: rgba(255,255,255,.03); color: #D5E0EA; font-size: 15px; }
.layer li { margin: 0 0 8px; }
.l1 .layer-head { background: #16406A; } .l2 .layer-head { background: #13385D; } .l3 .layer-head { background: #103050; }
.l4 .layer-head { background: #0D2844; } .l5 .layer-head { background: #0A2038; }
.soon { display: inline-block; margin-left: 10px; background: #F3C87A; color: #3A2A08; border-radius: 99px; padding: 2px 10px; font-size: 12px; font-weight: 600; vertical-align: middle; }
.dark-foot { margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.14); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; color: var(--on-deep); font-size: 15px; }
.dark a { color: #A9D2FF; }

/* Deployment */
.deploy .card { display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.deploy .card .pill { align-self: flex-start; }
.deploy h3 { font-size: 20px; margin: 0; }
.diagram { background: var(--paper); border-radius: 10px; padding: 18px; height: 150px; display: flex; }
.machine { flex: 1; border: 2px solid #8A939D; border-radius: 8px; padding: 10px; display: flex; gap: 8px; }
.machine.own { border-color: var(--navy); }
.runtime { flex: 1; border: 2px dashed var(--accent); border-radius: 6px; padding: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-content: center; justify-content: center; align-items: center; }
.runtime.other { border-color: var(--line-2); }
.org { width: 34px; height: 34px; border-radius: 6px; background: var(--navy); }
.org.other { background: var(--line-2); }
.legend { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; width: 18px; height: 12px; border-radius: 3px; }
.legend .m { border: 2px solid #8A939D; } .legend .r { border: 2px dashed var(--accent); }
.legend .y { width: 12px; background: var(--navy); } .legend .o { width: 12px; background: var(--line-2); }
.after { margin-top: 18px; font-size: 15px; color: var(--muted); }

/* Manuals, FAQ */
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--accent); }
.card .meta { font-size: 13px; color: var(--faint); margin-bottom: 6px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-size: 18px; font-weight: 600; cursor: pointer; }
.faq details p { margin-top: 12px; color: var(--muted); }

/* Request form */
.contact .wrap { display: flex; flex-wrap: wrap; gap: 48px; }
.contact-text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-text p { font-size: 17px; color: var(--text); }
form.request { flex: 2 1 560px; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 32px;
               display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.wide, .form-foot, .form-note, .form-result { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field label span { font-weight: 400; color: var(--faint); }
.field input, .field select, .field textarea { min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); }
.field textarea { resize: vertical; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form-note { font-size: 13px; color: var(--faint); }
.form-result { font-size: 15px; font-weight: 600; }
.form-result.ok { color: #1E6B3A; } .form-result.err { color: #9A2B1F; }

/* Footer */
footer { border-top: 1px solid var(--line); background: var(--paper); }
footer .wrap { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; font-size: 14px; color: var(--faint); }
footer .who { display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
footer .who strong { color: var(--ink); }
footer nav { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
footer .copy { width: 100%; }

/* Inner pages */
.page { padding: 72px 0 96px; }
.page .wrap { display: flex; flex-wrap: wrap; gap: 48px; }
.page aside { flex: 1 1 240px; min-width: 0; }
.page aside h1 { margin: 0 0 14px; font-family: var(--serif); font-weight: 500; font-size: 44px; color: var(--navy); }
.page aside p { margin-bottom: 24px; color: var(--text); }
.page aside nav { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.page .content { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.page article { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.page article h2 { font-family: var(--sans); font-weight: 600; font-size: 24px; margin: 0; }
.page article.locked { background: var(--paper-2); border-style: dashed; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
table.subs { width: 100%; border-collapse: collapse; font-size: 15px; }
table.subs th, table.subs td { text-align: left; padding: 10px 14px; border: 1px solid var(--line); }
table.subs th { background: var(--paper); }
.table-box { overflow-x: auto; }
.signin { padding: 80px 0; }
.signin .wrap { max-width: 960px; }
.signin h1 { margin: 0 0 12px; font-family: var(--serif); font-weight: 500; font-size: 44px; color: var(--navy); text-align: center; }
.signin .intro { text-align: center; margin: 0 auto 48px; }
.choice { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; background: var(--surface);
          border: 1px solid var(--line); border-radius: 14px; padding: 34px; }
.choice.main { border: 2px solid var(--accent); }
.choice:hover { border-color: var(--navy); }
.choice .name { font-size: 23px; font-weight: 600; color: var(--navy); }
.choice .go { margin-top: 6px; align-self: flex-start; }
.choice small { font-size: 13px; color: var(--faint); }
.center-note { margin-top: 40px; text-align: center; font-size: 14px; color: var(--faint); }

/* Phone and small tablets */
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .menu-toggle { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line);
                 border-radius: 8px; background: #fff; cursor: pointer; order: 3; }
  .top .btn-primary { order: 2; padding: 10px 14px; }
  .menu { display: none; order: 4; width: 100%; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 0; }
  .menu a { padding: 10px 0; }
  .top.open .menu { display: flex; }
  .brand img { height: 34px; }
  section { padding: 56px 0; }
  .hero { padding: 48px 0 40px; }
  .display { font-size: 36px; }
  h2, .dark h2 { font-size: 30px; }
  .grid-2, .grid-3, form.request, .dark-foot { grid-template-columns: minmax(0, 1fr); }
  .shot { display: none; }
  .layer ul { padding-left: 38px; }
}
