/* Layout: opens like the app does, with the splash mark centred on white and the wordmark beneath it; then left-aligned
   sections (about 62ch): the Today screen beside the day's routine, privacy, and how to leave a tip in the app. */
:root {
  --bg: #ffffff;
  --ink: #17131f;
  --muted: #5a5466;
  --rule: #e7e2ef;
  --purple: #5b24a3;      /* brand purple, from the logo and the app theme */
  --green: #2e7d32;       /* brand green, darkened for text on white */
  --green-line: #4db450;  /* brand green for lines */
  --mark-disc: #ffffff;
  --purple-btn: #5b24a3;
  --error: #b3261e;   /* the mark is drawn for white, as on the app's splash */
  --display: "Lexend", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #16121d; --ink: #f1edf7; --muted: #b5adc3; --rule: #2e2739; --purple: #cdb8ff; --purple-btn: #6b3bb5; --error: #f2b8b5; --green: #86cc89;
  --green-line: #6cc070; color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #16121d; --ink: #f1edf7; --muted: #b5adc3; --rule: #2e2739; --purple: #cdb8ff; --purple-btn: #6b3bb5; --error: #f2b8b5; --green: #86cc89;
  --green-line: #6cc070; color-scheme: dark; }

body { background: var(--bg); color: var(--ink); font: 1.0625rem/1.6 var(--body); }
.wrap { max-width: 66rem; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }

/* The wordmark: Coop in ink, Sense in purple, as in the logo */
.word { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; }
.word .sense { color: var(--purple); }

header.top { display: flex; justify-content: space-between; align-items: center; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 1.3rem; text-decoration: none; }
.disc { background: var(--mark-disc); border-radius: 50%; display: grid; place-items: center; }
.brand .disc { width: 2.4rem; height: 2.4rem; }
.brand .disc img { width: 76%; }
.lang { display: flex; gap: 0.25rem; }
.lang button { font: 700 0.95rem var(--body); color: var(--muted); background: none; border: 1px solid transparent; border-radius: 999px; padding: 0.35rem 0.85rem; cursor: pointer; min-height: 44px; }
.lang button[aria-pressed="true"] { color: var(--ink); border-color: var(--rule); }

/* Splash hero */
.splash { text-align: center; padding-block: clamp(2rem, 6vw, 4rem) clamp(2.75rem, 7vw, 5rem); display: grid; justify-items: center; }
.splash .disc { width: clamp(11rem, 26vw, 15rem); aspect-ratio: 1; max-width: 100%; animation: reveal 700ms cubic-bezier(.2,.9,.3,1.15) both; }
.splash .disc img { width: 74%; }
.splash .word { font-size: clamp(3rem, 9vw, 5.6rem); line-height: 1; margin: 1.25rem 0 0.6rem; animation: rise 600ms 250ms ease-out both; }
.tagline { font: 600 clamp(1.05rem, 2.2vw, 1.35rem) var(--display); letter-spacing: 0.04em; margin: 0 0 2rem; display: flex; gap: 0.6em; justify-content: center; flex-wrap: wrap; }
.tagline .t1 { color: var(--purple); } .tagline .t2 { color: var(--green); } .tagline .t3 { color: var(--ink); }
.splash h1 { font: 500 clamp(1.4rem, 3vw, 1.9rem)/1.3 var(--display); margin: 0 auto 0.9rem; max-width: 26ch; text-wrap: balance; }
.splash .lede { color: var(--muted); max-width: 46ch; margin: 0 auto 1.75rem; }
.store { display: inline-block; border: 2px solid var(--ink); border-radius: 14px; padding: 0.7rem 1.2rem; font-weight: 700; text-align: left; }
.store small { display: block; font-weight: 400; color: var(--muted); font-size: 0.85rem; }
@keyframes reveal { from { transform: scale(0.82); } to { transform: none; } }
@keyframes rise { from { transform: translateY(0.6rem); } to { transform: none; } }

section { padding-block: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--rule); }
section h2 { font: 600 clamp(1.7rem, 3.4vw, 2.3rem)/1.15 var(--display); letter-spacing: -0.015em; margin: 0 0 1.75rem; max-width: 24ch; text-wrap: balance; }

/* The day: the Today screen beside the routine */
.daygrid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }

.day { list-style: none; margin: 0; padding: 0; }
.day li { display: grid; grid-template-columns: 4.75rem minmax(0, 1fr); gap: 1rem; padding-block: 1.05rem; border-bottom: 1px solid var(--rule); }
.day li:first-child { padding-top: 0; }
.day time { font: 600 1.1rem/1.45 var(--display); color: var(--purple); font-variant-numeric: tabular-nums; }
.day h3 { font: 700 1.08rem/1.45 var(--body); margin: 0 0 0.15rem; }
.day p { margin: 0; color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem 2.5rem; }
.facts > div { border-top: 3px solid var(--green-line); padding-top: 0.9rem; }
.facts h3 { font: 700 1.08rem/1.45 var(--body); margin: 0 0 0.3rem; }
.facts p { margin: 0; color: var(--muted); }

.support h2 { max-width: none; }
.support p { max-width: 52ch; margin: 0; }
.support .note { color: var(--muted); font-size: 0.95rem; margin-top: 0.75rem; }

footer { border-top: 1px solid var(--rule); padding-block: 2rem 3rem; color: var(--muted); font-size: 0.95rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 760px) {
  .daygrid { grid-template-columns: 1fr; }
  .today-fig { position: static; max-width: 18rem; }
  .day li { grid-template-columns: 4rem minmax(0, 1fr); gap: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) { .splash .disc, .splash .word { animation: none; } }

/* Site navigation, shared by every page */
.nav { display: flex; align-items: center; gap: 0.25rem 1.25rem; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 700; padding-block: 0.6rem; }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--purple); }
header.top { flex-wrap: wrap; gap: 0.5rem 1.5rem; }
footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* One language block at a time, chosen by <html lang>: English shows even when the script doesn't run. */
html:not([lang="pl"]) [data-lang-block="pl"], html[lang="pl"] [data-lang-block="en"] { display: none; }

/* Document pages: about and privacy */
.doc { max-width: 44rem; padding-block: clamp(2rem, 5vw, 3.5rem) 3rem; }
.doc h1 { font: 600 clamp(2rem, 5vw, 3rem)/1.1 var(--display); letter-spacing: -0.02em; margin: 0 0 0.5rem; text-wrap: balance; }
.doc .updated { color: var(--muted); margin: 0 0 2rem; }
.doc h2 { font: 600 1.35rem/1.3 var(--display); margin: 2.25rem 0 0.6rem; }
.doc p, .doc li { max-width: 66ch; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-block: 0.35rem; }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.98rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--rule); }
.doc th { font-weight: 700; }
.tablewrap { overflow-x: auto; }

/* Screenshot strip on the about page */
.shots { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 1.75rem 1.25rem; }
.shots figure { margin: 0; }
.phone { aspect-ratio: 9 / 20; border-radius: 1.2rem; border: 6px solid var(--ink); overflow: hidden; background: var(--rule); display: grid; place-items: center; max-width: 100%; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.phone .soon { color: var(--muted); font-size: 0.9rem; padding: 1rem; text-align: center; }
.shots figcaption { margin-top: 0.7rem; }
.shots figcaption b { display: block; font-family: var(--display); font-weight: 600; }
.shots figcaption span { color: var(--muted); font-size: 0.95rem; }

/* Base, for the hosted pages (the artifact preview adds the same) */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; }

.doc.wide { max-width: 66rem; }

/* The maker's badge in the footer, linking to clouderwebtech.com */
.maker { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.maker img { width: 2rem; height: 2rem; }
.maker:hover span { text-decoration: underline; }

/* Home page: the Today screen beside the day's routine */
.today-fig { margin: 0; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 1.5rem); max-width: 20rem; }
.today-fig figcaption { color: var(--muted); font-size: 0.95rem; margin-top: 0.8rem; }

/* Help page: getting-started steps (a real sequence), guides beside their screen, FAQ, contact form */
.steps { padding-left: 1.4rem; max-width: 62ch; }
.steps li { margin-block: 0.6rem; padding-left: 0.3rem; }
.steps li::marker { font: 600 1.05rem var(--display); color: var(--purple); }
.guides { display: grid; gap: 0; margin-top: 1rem; }
.guide { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 2rem; align-items: start; padding-block: 2rem; border-top: 1px solid var(--rule); }
.guide .phone { border-width: 5px; border-radius: 1rem; }
.guide h2 { margin-top: 0; }
.guide p { max-width: 60ch; }
.faq { max-width: 46rem; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); padding-block: 0.2rem; }
.faq summary { cursor: pointer; font-weight: 700; padding-block: 0.85rem; min-height: 44px; list-style-position: outside; }
.faq details p { margin: 0 0 1rem; color: var(--muted); max-width: 62ch; }
.contact { display: grid; gap: 0.45rem; max-width: 34rem; margin-top: 1rem; }
.contact-row { display: flex; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.contact-row .contact { flex: 1 1 20rem; }
.mascot { width: 12rem; height: auto; }
@media (max-width: 640px) { .mascot { width: 8rem; margin: 0 auto; } }
.contact label { font-weight: 700; margin-top: 0.6rem; }
.contact .opt { font-weight: 400; color: var(--muted); }
.contact input, .contact select, .contact textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--rule); border-radius: 10px; padding: 0.7rem 0.8rem; min-height: 44px; }
.contact textarea { resize: vertical; }
.contact input:focus-visible, .contact select:focus-visible, .contact textarea:focus-visible { border-color: var(--purple); outline-offset: 1px; }
.contact button { justify-self: start; margin-top: 1rem; font: 700 1.05rem var(--body); color: #fff; background: var(--purple-btn); border: 0; border-radius: 999px; padding: 0.85rem 1.5rem; min-height: 48px; cursor: pointer; }
.contact .form-error { color: var(--error); margin: 0.3rem 0 0; font-weight: 700; }
.contact .note, .guide .note { color: var(--muted); font-size: 0.95rem; }
.contact-address { user-select: all; color: var(--ink); font-weight: 700; }
@media (max-width: 640px) { .guide { grid-template-columns: 1fr; } .guide .phone { max-width: 13rem; } }
