/* Subh Warrior site. Colors and type come from the app (app_colors.dart,
   PlusJakartaSans). No third-party requests: the font is self-hosted. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/PlusJakartaSans-var.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #eaead9;
  --surface: #f4f5eb;
  --text: #1d2621;
  --muted: #4f564b;
  --rule: #c9cab6;
  --brand: #0f5233;
  --on-brand: #f4f5eb;
  --link: #0f5233;
  --accent: #c97b2e;
  --focus: #0b5cad;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121710;
    --surface: #1b2118;
    --text: #eaead9;
    --muted: #a9b1a4;
    --rule: #2c3428;
    --brand: #0d4a2e;
    --on-brand: #eaead9;
    --link: #5fb98a;
    --accent: #e0ac4a;
    --focus: #7db7f5;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 20px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 "Plus Jakarta Sans", system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  /* The face's word space is narrow; open it slightly for running text. */
  word-spacing: 0.05em;
  overflow-wrap: break-word;
}

.wrap {
  max-width: 66rem;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

/* Header band: deep forest with a small sun on the horizon. */
.band {
  position: relative;
  overflow: hidden;
  background: var(--brand);
  color: var(--on-brand);
}

.band::after {
  content: "";
  position: absolute;
  right: max(20px, calc((100vw - 66rem) / 2 + 20px));
  bottom: -38px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--accent);
}

.band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.brand img {
  display: block;
  border-radius: 8px;
}

.band nav {
  display: flex;
  gap: 20px;
  /* keep clear of the sun */
  padding-right: 96px;
}

.band nav a {
  color: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.band nav a:hover,
.band nav a[aria-current="page"] {
  border-bottom-color: currentColor;
}

.band a:focus-visible {
  outline-color: var(--on-brand);
}

/* `main.wrap`, not `main`: `.wrap` sets padding too and would win. */
main.wrap {
  padding-bottom: 64px;
}

@media (max-width: 40rem) {
  /* No room for the sun beside the nav on a phone. */
  .band::after {
    display: none;
  }

  .band nav {
    gap: 14px;
    padding-right: 0;
  }

  .band nav a {
    font-size: 0.9rem;
  }

  .brand span {
    display: none;
  }
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 1.2rem + 3vw, 2.9rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  margin: 0 0 10px;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h3 {
  margin: 26px 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
}

p {
  margin: 0 0 14px;
}

ul,
ol {
  margin: 0 0 14px;
  padding-left: 1.3rem;
}

li {
  margin: 5px 0;
}

.prose {
  max-width: 42rem;
}

.hero {
  padding: 52px 0 28px;
}

.lead {
  max-width: 38rem;
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--muted);
}

.cta {
  margin: 32px 0 0;
}

.updated {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
  text-decoration: none;
}

.button-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.button-play svg {
  flex: none;
}

.button:hover {
  filter: brightness(1.12);
}

.button:focus-visible {
  outline-color: var(--focus);
}

/* ---- Home ---- */
.hero-home {
  display: flex;
  gap: 24px;
  align-items: center;
}

.hero-logo {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  background: var(--surface);
  padding: 8px;
  border: 1px solid var(--rule);
}

@media (max-width: 40rem) {
  .hero-home {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }
}

.about {
  padding: 28px 0 8px;
  border-top: 1px solid var(--rule);
}

/* Feature list beside a compact 2×2 of screenshots; stacked on a phone. */
.showcase {
  display: grid;
  gap: 28px 56px;
  align-items: start;
}

@media (min-width: 52rem) {
  .showcase {
    grid-template-columns: minmax(0, 1fr) 24rem;
  }
}

.features {
  max-width: 34rem;
}

.features h3 {
  margin-top: 14px;
}

.features > div:first-child h3 {
  margin-top: 4px;
}

.features p {
  color: var(--muted);
}

/* Captioned store screenshots, 2×2 at a modest size. */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 24rem;
  margin-bottom: 24px;
}

.gallery figure {
  margin: 0;
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--rule);
}

/* Promo film: a forest card with the vertical Short beside its caption. */
.film {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 28px;
  align-items: center;
  margin: 4px 0 24px;
  padding: 32px 24px;
  border-radius: 20px;
  background: var(--brand);
  color: var(--on-brand);
}

/* the same sun as the header band, rising behind the text */
.film::before {
  content: "";
  position: absolute;
  left: -48px;
  bottom: -64px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.9;
}

.film-text {
  position: relative;
  max-width: 30rem;
}

.film-tag {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f2c46d;
}

.film h2 {
  margin: 0 0 12px;
  font-size: 2rem;
  line-height: 1.2;
  color: inherit;
}

.film p {
  color: inherit;
}

.film .cta {
  margin-top: 24px;
}

.button-light {
  background: var(--on-brand);
  color: var(--brand);
}

.button-light:focus-visible {
  outline-color: var(--on-brand);
}

.film-player {
  position: relative;
  width: 100%;
  max-width: 17rem;
  justify-self: center;
}

.film-player iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border: 0;
  border-radius: 16px;
  background: #0a3a24;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

@media (min-width: 52rem) {
  .film {
    grid-template-columns: minmax(0, 1fr) 17rem;
    gap: 56px;
    padding: 40px 48px;
  }
}

.about + .links {
  margin-top: 28px;
}

.links {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  max-width: 38rem;
}

.links li {
  margin: 0;
  border-top: 1px solid var(--rule);
}

.links li:last-child {
  border-bottom: 1px solid var(--rule);
}

.links a {
  display: block;
  padding: 18px 2px;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}

.links a:hover {
  text-decoration: underline;
}

.links small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
}

/* ---- Privacy policy ---- */
.layout {
  display: grid;
  gap: 8px 56px;
  align-items: start;
}

@media (min-width: 58rem) {
  .layout {
    grid-template-columns: 14rem minmax(0, 1fr);
  }

  .toc {
    position: sticky;
    top: 24px;
  }

  .toc summary {
    display: none;
  }
}

.toc {
  margin: 0 0 20px;
  font-size: 0.95rem;
}

.toc summary {
  cursor: pointer;
  font-weight: 600;
  padding: 8px 0;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc li {
  margin: 0;
}

.toc a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--link);
  text-decoration: underline;
}

.doc section {
  max-width: 42rem;
  padding: 30px 0 10px;
  border-top: 1px solid var(--rule);
}

.doc section:first-child {
  border-top: 0;
  padding-top: 0;
}

.glance {
  max-width: 42rem;
  margin: 0 0 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

caption {
  text-align: left;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding-bottom: 10px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 11px 14px 11px 0;
  border-top: 1px solid var(--rule);
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 1px solid var(--rule);
}

th {
  font-weight: 600;
}

td strong {
  font-weight: 700;
}

/* ---- Delete account ---- */
.paths {
  display: grid;
  gap: 28px 48px;
  align-items: start;
  margin-top: 8px;
}

@media (min-width: 52rem) {
  .paths {
    grid-template-columns: 1.25fr 1fr;
  }
}

.path-main {
  padding: 26px 26px 14px;
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--rule);
}

.path-main ol {
  padding-left: 1.4rem;
}

.path-main li::marker {
  font-weight: 700;
  color: var(--link);
}

.path-side {
  padding-top: 26px;
  border-top: 1px solid var(--rule);
}

@media (min-width: 52rem) {
  .path-side {
    border-top: 0;
    border-left: 1px solid var(--rule);
    padding: 4px 0 0 36px;
  }
}

.split {
  display: grid;
  gap: 8px 48px;
  margin-top: 40px;
}

@media (min-width: 52rem) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.split > div {
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.warning {
  max-width: 42rem;
  margin: 36px 0 0;
  padding: 14px 18px;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: 0 12px 12px 0;
}

.warning p {
  margin: 0;
}

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 22px;
  padding-bottom: 40px;
}

footer a {
  color: var(--muted);
}

@media print {
  .band,
  .toc,
  .skip,
  .button {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  a {
    color: #000;
  }
}
