/* Collaris website: the colors, font and calm look of the app (Theme.swift, Sand and Blue). */

@font-face { font-family: "Sora"; font-weight: 400; font-display: swap; src: url("fonts/Sora-Regular.ttf") format("truetype"); }
@font-face { font-family: "Sora"; font-weight: 600; font-display: swap; src: url("fonts/Sora-SemiBold.ttf") format("truetype"); }

:root {
  --canvas: #F9F5EE;      /* BrandBackground */
  --surface: #F3EADE;     /* BrandSurface */
  --sand: #E7D6BF;        /* BrandElevated, the brand sand */
  --ink: #0F2539;         /* Dark Blue */
  --muted: #55606C;       /* BrandMuted */
  --line: rgba(15, 37, 57, .1);
  --accent: #0F2539;
  --on-accent: #FFFFFF;
  --night-ink: #F3EADE;   /* text on dark blue */
  --night-muted: #CDBFAB;
  --todo: #FFF3C4;
  --radius-card: 24px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Sora", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; }
a { color: inherit; text-decoration-color: var(--sand); text-decoration-thickness: 2px; text-underline-offset: 4px; transition: text-decoration-color 160ms ease; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 8px; }

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

/* Header: the star and the name in capitals, as in the app */
.site-header { padding: 20px 0; }
.site-header .wrap { max-width: 1120px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.wordmark { font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: 15px; }
.site-nav { display: flex; gap: 24px; font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--muted); transition: color 160ms ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
/* On phones the star alone stands for the brand, so the menu fits on one line */
@media (max-width: 440px) {
  .site-header .wordmark { display: none; }
  .site-nav { gap: 16px; }
}
@media (max-width: 700px) { .site-nav a { padding: 12px 0; } }

/* Text pages */
.page { padding-top: 40px; padding-bottom: 96px; }
.page h1 { font-size: clamp(36px, 6vw, 52px); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 16px; text-wrap: balance; }
.page h1::before { content: ""; display: block; width: 20px; height: 20px; margin-bottom: 24px; background: url("img/stern.svg") center / contain no-repeat; }
.page h2 { font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; margin: 56px 0 12px; }
.page h3 { font-size: 17px; font-weight: 600; margin: 24px 0 4px; }
.page p, .page li { max-width: 680px; text-wrap: pretty; }
.page ul { padding-left: 22px; }
.page strong { font-weight: 600; }
.meta { color: var(--muted); font-size: clamp(17px, 2vw, 19px); margin: 0 0 40px; }

.card, .contact, .summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); }
.card { padding: 4px 24px; margin: 16px 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: none; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 8px 0 0; }
.faq details p + p { margin-top: 8px; }

.contact { padding: 24px; margin: 0 0 8px; }
.contact p { margin: 0; }
.contact p + p { margin-top: 8px; color: var(--muted); }
.contact a { font-weight: 600; }
.contact .hint { font-size: 14px; line-height: 1.5; }

/* "In short" box on the privacy pages */
.summary { padding: 24px 24px 20px; margin: 0 0 8px; }
.summary h2 { margin-top: 0; }
.summary ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }

/* List bullets: the small star */
.summary li, .plan li { position: relative; padding-left: 28px; }
.summary li::before, .plan li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; background: url("img/stern.svg") center / contain no-repeat; }

/* Highlighted legal notes (right to object, binding language) */
.notice { background: var(--surface); border-left: 3px solid var(--sand); border-radius: 0 12px 12px 0; padding: 12px 16px; margin: 20px 0; }
.notice p { margin: 0; }

/* Placeholders that must be filled in before the page goes live */
.todo { background: var(--todo); border-radius: 4px; padding: 0 4px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { max-width: 1120px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .tm { flex-basis: 100%; margin: 8px 0 0; font-size: 13px; line-height: 1.5; max-width: 640px; }
