/* secluse.app: one stylesheet, no framework, nothing loaded from elsewhere.
   Colors come from the Secluse icon: navy #092241 and teal #4C8E9A. */

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/AtkinsonHyperlegible-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/AtkinsonHyperlegible-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #092241;
  --navy-2: #12325c;
  --teal: #4c8e9a;
  --teal-strong: #2f6f7b;
  --teal-soft: #e3f0f2;
  --bg: #ffffff;
  --bg-alt: #f4f7f9;
  --text: #1b2733;
  --muted: #55636f;
  --line: #dde4ea;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(9, 34, 65, 0.06), 0 6px 20px rgba(9, 34, 65, 0.07);
  --radius: 14px;
  --max: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1724;
    --bg-alt: #111e2e;
    --text: #e6edf3;
    --muted: #a3b1bd;
    --line: #22344a;
    --card: #142336;
    --teal-soft: #16323a;
    --teal-strong: #7fbcc6;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; }

a { color: var(--teal-strong); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

code {
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 0.92em;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.05em 0.35em;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--teal); color: #fff; padding: 0.5rem 1rem; z-index: 10;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
.site-header {
  background: var(--navy);
  color: #fff;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem 1.5rem;
  padding-top: 0.8rem; padding-bottom: 0.8rem;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  color: #fff; text-decoration: none; font-weight: 700; font-size: 1.25rem;
}
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand .tagline { font-weight: 400; font-size: 1rem; color: #a9bccd; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; align-items: center; }
.site-nav a { color: #d7e4ee; text-decoration: none; font-weight: 700; font-size: 0.98rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; text-decoration: underline; }
.site-nav .nav-download {
  background: var(--teal); color: #fff; padding: 0.35rem 0.9rem; border-radius: 999px;
}
.site-nav .nav-download:hover { background: #5aa1ad; text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 3.5rem 0 4rem;
}
.hero .wrap {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center;
}
.hero p.lead { font-size: 1.25rem; color: #d7e4ee; max-width: 36em; }
.hero .mark { justify-self: center; width: min(280px, 70%); border-radius: 22%; filter: drop-shadow(0 12px 30px rgba(0,0,0,0.35)); }
.hero small { display: block; color: #a9bccd; margin-top: 0.9rem; }
.page-hero { padding: 2.75rem 0 2.5rem; }
.page-hero .wrap { display: block; }

.buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.3rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 1.02rem;
  border: 2px solid transparent;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: #5aa1ad; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-ghost:hover { border-color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }

/* Sections */
section { padding: 4rem 0; }
section.alt { background: var(--bg-alt); }
.section-head { max-width: 46em; margin-bottom: 2rem; }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.eyebrow {
  display: inline-block; font-weight: 700; color: var(--teal-strong);
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; margin-bottom: 0.4rem;
}

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0.6rem; }
.card p:last-child { margin-bottom: 0; }
.icon-dot {
  width: 44px; height: 44px; border-radius: 12px; background: var(--teal-soft);
  display: grid; place-items: center;
}
.icon-dot svg { width: 24px; height: 24px; stroke: var(--teal-strong); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Feature rows: text beside a screenshot, alternating sides */
.feature {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 2.5rem; align-items: center;
  padding: 2.25rem 0;
}
.feature + .feature { border-top: 1px solid var(--line); }
.feature:nth-child(even) .feature-text { order: 2; }
.feature ul { padding-left: 1.2rem; margin: 0; }
.feature li { margin-bottom: 0.3rem; }

.shot {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card);
}
.shot img { display: block; width: 100%; }
.shot-missing {
  aspect-ratio: 16 / 10; display: grid; place-items: center; text-align: center;
  padding: 1.5rem; color: var(--muted); font-size: 0.95rem;
  background: repeating-linear-gradient(45deg, var(--bg-alt), var(--bg-alt) 12px, var(--card) 12px, var(--card) 24px);
}
.shot-missing strong { display: block; color: var(--text); margin-bottom: 0.25rem; }

/* Hub diagram */
.diagram { max-width: 760px; margin: 0 auto; }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram .box { fill: var(--card); stroke: var(--teal); stroke-width: 2; }
.diagram .hub { fill: var(--navy); }
.diagram .lan { stroke: var(--teal); stroke-width: 3; fill: none; }
.diagram text { fill: var(--text); font-family: inherit; font-size: 15px; }
.diagram .hub-text { fill: #fff; font-weight: 700; }
.diagram .label { fill: var(--muted); font-size: 13px; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.checks li { padding-left: 1.9rem; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 1.25rem; height: 1.25rem;
  border-radius: 50%; background: var(--teal-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234c8e9a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
  background-size: 70%; background-position: center; background-repeat: no-repeat;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.cta {
  background: var(--navy); color: #fff; text-align: center; padding: 3.5rem 0;
}
.cta p { color: #d7e4ee; }
.cta .buttons { justify-content: center; }

.note {
  border-left: 4px solid var(--teal); background: var(--teal-soft);
  padding: 0.9rem 1.1rem; border-radius: 0 10px 10px 0; margin: 1.25rem 0;
}
.note p:last-child { margin-bottom: 0; }

table { border-collapse: collapse; width: 100%; margin: 1rem 0 1.5rem; }
th, td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 0.92rem; }

.prose h2 { margin-top: 2.25rem; font-size: 1.55rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.35rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line); background: var(--bg-alt);
  padding: 2.5rem 0; color: var(--muted); font-size: 0.95rem;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 1.5rem; }
.site-footer h4 { color: var(--text); margin: 0 0 0.5rem; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.3rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.fineprint { margin-top: 2rem; font-size: 0.88rem; }

@media (max-width: 860px) {
  .hero .wrap, .feature, .two-col { grid-template-columns: 1fr; }
  .hero .mark { width: 160px; order: -1; justify-self: start; }
  .feature:nth-child(even) .feature-text { order: 0; }
  .pillars { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 3rem 0; }
}

.mt { margin-top: 1.5rem; }
.mt-lg { margin-top: 2rem; }
.mt-sm { margin-top: 0.6rem; }
.site-footer .brand-footer { color: var(--text); }

/* The User Guide (guide/): topics on the left, the page on the right. */
.guide { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 2.5rem; padding-top: 2rem; padding-bottom: 3rem; }
.guide-toc { position: sticky; top: 1rem; align-self: start; max-height: calc(100vh - 2rem); overflow-y: auto; font-size: 0.95rem; }
.guide-toc-title { font-weight: 700; margin: 0 0 0.5rem; }
.guide-toc-title a { color: var(--text); }
.guide-toc ul { list-style: none; padding: 0; margin: 0; }
.guide-toc li a { text-decoration: none; display: block; padding: 0.25rem 0.6rem; border-radius: 8px; color: var(--muted); }
.guide-toc li a:hover { color: var(--text); background: var(--bg-alt); }
.guide-toc li a[aria-current="page"] { color: var(--teal-strong); background: var(--teal-soft); font-weight: 700; }
.guide-page { max-width: 780px; }
.guide-page h1 { margin-top: 0; }
.guide-page img { max-width: 100%; height: auto; }
.guide-page img[width="22"] { vertical-align: middle; }
.guide-page code { background: var(--bg-alt); padding: 0.1em 0.35em; border-radius: 5px; font-size: 0.92em; }
.guide-page pre { background: var(--bg-alt); padding: 0.9rem 1rem; border-radius: 10px; overflow-x: auto; }
.guide-page pre code { background: none; padding: 0; }
.guide-page table { display: block; overflow-x: auto; }
.guide-page blockquote { border-left: 4px solid var(--teal); margin: 1rem 0; padding: 0.2rem 1rem; color: var(--muted); }
.guide-contents-link { display: none; font-size: 0.95rem; }
.guide-source { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.92rem; }
.guide-source a { color: var(--muted); }
@media (max-width: 860px) {
  .guide { grid-template-columns: 1fr; gap: 0; }
  .guide-toc { display: none; }
  .guide-contents-link { display: block; }
}
