/* Sortido website — shared by every language's home page (/, /de/, /pt-br/).
   Colours are the app's own tokens (Sortido/DesignSystem/Theme.swift, colour system of 2026-09-29):
   blue = Similar and the next step, lime = Keep, pink = Bin, the category colours mark each feature.
   privacy.html still carries its own inline copy of the base styles. */
:root {
  --ink: #14121A;
  --ink2: #4A4640;
  --ink3: #6B6660;           /* ≥4.5:1 on every light surface (was #85807A) */
  --bg: #F5F3EE;
  --backdrop: #EDE8DA;
  --card: #FFFFFF;
  --card-active: #ECE6D6;
  --accent: #2B4CFF;
  --keep: #B9F227;
  --pink: #FF3D8A;
  --yellow: #FFE347;
  --teal: #0E9E96;
  --purple: #7C5CFC;
  --plum: #86198F;
  --slate: #64748B;
  --brand: #04A574;
  --radius: 18px;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --border: 2.5px solid var(--ink);
  --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,243,238,0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: var(--border);
}
nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1080px; margin: 0 auto; padding: 12px 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 20px; letter-spacing: -0.02em;
  text-decoration: none; color: var(--ink);
}
/* The app's own logo mark (PWLogoMark), as an image — its hard shadow is drawn inside the SVG. */
.logo-mark { width: 34px; height: 34px; display: block; flex: none; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink2); }
.nav-links a:hover { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 14px; }
/* Language menu: one entry per language, so it grows with the list (header + footer). */
.lang-picker { position: relative; }
.lang-picker summary {
  display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--card);
  padding: 5px 10px 5px 8px; font-size: 13px; font-weight: 700; color: var(--ink2);
  white-space: nowrap;
}
.lang-picker summary::-webkit-details-marker { display: none; }
.lang-picker summary:hover { color: var(--accent); }
.lang-picker summary svg { width: 16px; height: 16px; flex: none; }
.lang-picker .chev { width: 14px; height: 14px; transition: transform .15s; }
.lang-picker[open] .chev { transform: rotate(180deg); }
.lang-picker .lp-code { display: none; }
.lang-picker ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  list-style: none; min-width: 200px; max-height: 60vh; overflow-y: auto; padding: 6px;
  background: var(--card); border: 2px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow-sm);
}
.lang-picker.up ul { top: auto; bottom: calc(100% + 8px); right: auto; left: 0; }
/* In the desktop footer the menu sits at the right edge, so it opens leftwards. */
.foot-right .lang-picker.up ul { left: auto; right: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lang-picker li a {
  display: block; padding: 8px 12px; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink);
}
.lang-picker li a:hover { background: var(--card-active); color: var(--ink); }
.lang-picker li a[aria-current] { background: var(--ink); color: #fff; }
.badge-link { display: inline-block; line-height: 0; border-radius: 9px; }
.badge-link img { height: 40px; width: auto; }
.nav-right .badge-link img { height: 36px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--ink2); margin-bottom: 22px;
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 6px 14px; background: var(--card);
  box-shadow: var(--shadow-sm);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--keep); border: 1.5px solid var(--ink); }
h1 {
  font-size: clamp(38px, 6.4vw, 66px);
  line-height: 1.02; letter-spacing: -0.03em; font-weight: 700;
  max-width: 13ch; margin-bottom: 22px;
  hyphens: manual;
}
h1 .hl { color: var(--accent); }
.sub {
  font-size: clamp(17px, 2.1vw, 20px);
  color: var(--ink2); max-width: 44ch; margin-bottom: 30px;
}
.sub2 { display: block; margin-top: 8px; font-size: 0.85em; color: var(--ink3); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.cta-row .badge-link img { height: 52px; }
.text-link { font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 2.5px solid var(--keep); }
.text-link:hover { color: var(--accent); }
/* What a visitor can trust, right under the download button. */
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; }
.trust li { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600; }
.trust svg {
  width: 20px; height: 20px; padding: 3px; flex: none;
  background: var(--keep); border: 1.5px solid var(--ink); border-radius: 50%;
}
.fine { margin-top: 14px; font-size: 13.5px; color: var(--ink3); }

/* App Store screenshot cards (caption + phone are baked into the image). */
.shot {
  border: var(--border); border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow); background: var(--card-active);
}
.shot img { width: 100%; height: auto; aspect-ratio: 600 / 1298; object-fit: cover; }
.hero-shot { max-width: 330px; margin: 0 auto; transform: rotate(1.5deg); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-head { max-width: 44ch; margin-bottom: 40px; }
.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
h2 { font-size: clamp(28px, 4.5vw, 42px); letter-spacing: -0.02em; line-height: 1.08; }
.section-head p { color: var(--ink2); font-size: 18px; margin-top: 14px; }

/* ---------- The three steps ---------- */
.loop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.loop-card {
  background: var(--card); border: var(--border); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
}
.loop-num {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  border: 2px solid var(--ink); font-weight: 700; font-size: 18px;
  margin-bottom: 18px; box-shadow: 2px 2px 0 var(--ink);
}
.loop-card:nth-child(1) .loop-num { background: var(--accent); color: #fff; }
.loop-card:nth-child(2) .loop-num { background: var(--yellow); }
.loop-card:nth-child(3) .loop-num { background: var(--keep); }
.loop-card h3 { font-size: 21px; letter-spacing: -0.01em; margin-bottom: 10px; }
.loop-card p { color: var(--ink2); font-size: 15.5px; }

/* ---------- Feature tiles ---------- */
/* Features in three groups, one per job the visitor came for. */
.fgroup + .fgroup { margin-top: 44px; }
.fgroup-h {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; letter-spacing: -0.01em; margin-bottom: 18px;
}
.fgroup-h::before {
  content: ""; width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 4px; flex: none;
}
.fg-control .fgroup-h::before { background: var(--accent); }
.fg-space .fgroup-h::before { background: var(--keep); }
.fg-organise .fgroup-h::before { background: var(--teal); }
.bento {
  display: grid; grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(150px, auto); gap: 18px;
}
.cell {
  border: var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  background: var(--card);
}
.cell h4 { font-size: 20px; letter-spacing: -0.01em; margin-bottom: 8px; }
.cell p { color: var(--ink2); font-size: 15px; }
.c-wide { grid-column: span 4; }
.c-mid  { grid-column: span 2; }
.c-half { grid-column: span 3; }
.c-full { grid-column: span 6; flex-direction: row; align-items: center; justify-content: flex-start; gap: 20px; }
.cell.accent { background: var(--accent); color: #fff; }
.cell.accent p { color: rgba(255,255,255,0.88); }
.cell.accent .ic { background: #fff; color: var(--accent); }
/* Icon chip: the feature's category colour from the app, ink border, white glyph. */
.ic {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  color: #fff; background: var(--ink);
}
.ic svg { width: 24px; height: 24px; }
.ic.slate { background: var(--slate); }
.ic.plum { background: var(--plum); }
.ic.keep { background: var(--keep); color: var(--ink); }
.ic.purple { background: var(--purple); }
.ic.teal { background: var(--teal); }
.ic.cyan { background: #35CEE0; color: var(--ink); }
.ic.brand { background: var(--brand); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tags span {
  font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  border: 1.5px solid currentColor; opacity: 0.9;
}

/* ---------- Screenshots ---------- */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr);
  gap: 20px; overflow-x: auto; padding: 4px 12px 22px 4px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.shots-head { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.shots-head > div:first-child { max-width: 44ch; }
.shots-nav { display: flex; gap: 10px; flex: none; }
.shots-nav button {
  width: 46px; height: 46px; border-radius: 12px; cursor: pointer;
  border: 2px solid var(--ink); background: var(--card); box-shadow: var(--shadow-sm);
  font: 700 20px/1 var(--font); color: var(--ink);
}
.shots-nav button:hover { background: var(--keep); }
.shots-nav button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.shots .shot { scroll-snap-align: start; border-radius: 20px; box-shadow: var(--shadow-sm); }

/* ---------- Privacy ---------- */
.privacy {
  background: var(--ink); color: var(--bg);
  border-radius: 24px; padding: 52px 44px;
  border: var(--border); box-shadow: var(--shadow);
}
.privacy .kicker { color: var(--keep); }
.privacy h2 { color: #fff; max-width: 22ch; }
.privacy .plist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 32px; margin-top: 36px; }
.privacy .plist div { border-top: 2px solid rgba(255,255,255,0.25); padding-top: 16px; }
.privacy .plist h3 { font-size: 16px; margin-bottom: 6px; color: #fff; }
.privacy .plist p { font-size: 15px; color: rgba(245,243,238,0.78); }
.privacy .plist a { color: var(--keep); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; display: grid; gap: 12px; }
.faq details {
  background: var(--card); border: var(--border); border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; position: relative;
  font-weight: 700; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border: 2px solid var(--ink); border-radius: 8px;
  display: grid; place-items: center; font-size: 18px; line-height: 1; background: var(--yellow);
}
.faq details[open] summary::after { content: "–"; background: var(--keep); }
.faq details p { padding: 0 20px 18px; color: var(--ink2); font-size: 15.5px; }
.faq details p + p { margin-top: -6px; }
.faq a { color: var(--accent); font-weight: 600; }

/* ---------- Closing call to action ---------- */
.closing {
  background: var(--keep); border: var(--border); border-radius: 24px; box-shadow: var(--shadow);
  padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.closing h2 { max-width: 16ch; }
.closing .badge-link img { height: 52px; }

/* ---------- Footer ---------- */
footer { padding: 48px 0 40px; border-top: var(--border); margin-top: 56px; }
.foot { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; }
.foot p { color: var(--ink3); font-size: 14px; }
.foot-right { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot a { color: var(--ink2); text-decoration: none; font-weight: 600; font-size: 14px; }
.foot a:hover { color: var(--accent); }
.legal { margin-top: 22px; color: var(--ink3); font-size: 13px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-shot { max-width: 270px; }
}
@media (max-width: 780px) {
  .loop { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .c-wide, .c-mid, .c-half, .c-full { grid-column: span 1; }
  .c-full { flex-direction: column; align-items: stretch; }
  .foot-right { align-items: flex-start; }
  .foot-right .lang-picker.up ul { left: 0; right: auto; }
  .privacy .plist { grid-template-columns: 1fr; }
  .privacy { padding: 40px 24px; }
  .closing { padding: 32px 24px; }
  .section { padding: 48px 0; }
}
@media (max-width: 520px) {
  .wrap, nav { padding-left: 16px; padding-right: 16px; }
  .nav-right .badge-link { display: none; }
  nav .lang-picker .lp-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  nav .lang-picker .lp-code { display: inline; }
  .hero { padding: 44px 0 40px; }
  .shots { grid-auto-columns: 72%; }
  .shots-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
