/* SHIFT by Relivital — site styles. Tokens = the app's brand tokens (docs/DESIGN_SYSTEM.md), which follow relivital.pl:
   Manrope for text, Cormorant Garamond for headings, deep navy + teal on a warm cream. */
@font-face { font-family: 'Manrope'; src: url('/assets/fonts/Manrope.ttf') format('truetype'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('/assets/fonts/CormorantGaramond.ttf') format('truetype'); font-weight: 300 700; font-display: swap; }

:root {
  --bg: #fbf8f3; --surface: #ffffff; --card: #f7f3ec; --blue: #dfedef;
  --navy: #1d2759; --navy-2: #3b4577; --text: #2b3359; --muted: #5d6585;
  --accent: #15707f; --accent-dark: #0f5866; --accent-soft: #d7eaed;
  --gold: #d9a441; --gold-ink: #8a6314; --gold-soft: #fdf3dd;
  --line: #e6dfd2; --radius: 20px;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-family: var(--serif); font-weight: 700; font-size: 1.5rem; letter-spacing: .02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand small { font: 600 .8rem var(--sans); color: var(--muted); letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--navy-2); }
.nav a:hover { color: var(--accent); }
.lang { display: flex; gap: 4px; padding: 3px; background: var(--card); border-radius: 999px; }
.lang a { padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.lang a[aria-current] { background: var(--navy); color: #fff; }
@media (max-width: 720px) { .nav .links { display: none; } .brand small { display: none; } }

/* hero */
.hero { padding: 56px 0 72px; background: radial-gradient(1200px 500px at 85% 0, var(--blue), transparent 60%); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 14px; }
.lead { font-size: 1.2rem; color: var(--navy-2); max-width: 34em; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 14px; background: var(--navy); color: #fff; text-decoration: none; font-weight: 700; line-height: 1.15; min-height: 52px; }
.store span { display: block; font-size: .68rem; font-weight: 500; opacity: .8; }
.store svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.store:hover { background: var(--accent-dark); }
.fine { font-size: .85rem; color: var(--muted); }
.portrait { position: relative; justify-self: center; width: min(360px, 78vw); }
.portrait .frame { border-radius: 36px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(29, 39, 89, .35); border: 8px solid var(--surface); aspect-ratio: 9/14; }
.portrait .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.portrait .tag { position: absolute; left: -28px; bottom: 36px; background: var(--surface); border-radius: 16px; padding: 12px 16px; box-shadow: 0 14px 30px -12px rgba(29, 39, 89, .3); font-weight: 700; color: var(--navy); font-size: .95rem; }
.portrait .tag b { color: var(--gold-ink); font-family: var(--serif); font-size: 1.6rem; display: block; line-height: 1; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 36px; } .portrait .tag { left: 8px; } .hero { padding-top: 32px; } }

/* sections */
section.block { padding: 72px 0; }
section.alt { background: var(--card); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: 0 1px 0 var(--line), 0 18px 30px -24px rgba(29, 39, 89, .25); }
.card h3 { font-size: 1.45rem; margin-bottom: .3em; }
.card p { color: var(--muted); margin: 0; }
.num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-weight: 800; margin-bottom: 14px; }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr; } section.block { padding: 52px 0; } }

/* the ladder: SHIFT's object — 10 … 60 credited days, points on each rung */
.ladder { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; position: relative; }
.ladder li { background: var(--surface); border-radius: 18px; padding: 18px 8px 16px; text-align: center; border: 1px solid var(--line); transition: transform .3s, background .3s; }
.ladder li:hover { transform: translateY(-6px); background: var(--gold-soft); }
.ladder .d { font-family: var(--serif); font-size: 2.3rem; font-weight: 700; color: var(--navy); line-height: 1; }
.ladder .u { font-size: .75rem; color: var(--muted); font-weight: 600; }
.ladder .p { margin-top: 10px; display: inline-block; background: var(--gold-soft); color: var(--gold-ink); font-weight: 800; font-size: .85rem; padding: 3px 10px; border-radius: 999px; }
.ladder li:nth-child(1) { margin-top: 90px; } .ladder li:nth-child(2) { margin-top: 72px; } .ladder li:nth-child(3) { margin-top: 54px; }
.ladder li:nth-child(4) { margin-top: 36px; } .ladder li:nth-child(5) { margin-top: 18px; }
@media (max-width: 720px) { .ladder { grid-template-columns: repeat(3, 1fr); } .ladder li { margin-top: 0 !important; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.dist { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.dist span { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 700; color: var(--navy-2); font-size: .95rem; }

/* content pages */
.page { padding: 56px 0 80px; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.page h2 { font-size: 1.9rem; margin-top: 1.6em; }
.page ul, .page ol { padding-left: 1.3em; } .page li { margin-bottom: .45em; }
.page table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; font-size: .95rem; }
.page th, .page td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.page th { background: var(--card); }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin: 24px 0; }
.box.gold { background: var(--gold-soft); border-color: #ecd9a8; }
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; padding: 13px 24px; border-radius: 999px; }
.btn:hover { background: var(--accent-dark); }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; margin-bottom: 18px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-weight: 800; display: grid; place-items: center; }
.crumb { font-size: .9rem; margin-bottom: 18px; }

/* footer */
.foot { background: var(--navy); color: #cfd5ee; padding: 52px 0 40px; margin-top: 0; font-size: .95rem; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot h4 { margin: 0 0 12px; font: 800 .75rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #9fb0e8; }
.foot ul { list-style: none; padding: 0; margin: 0; } .foot li { margin-bottom: 8px; }
.foot .logo { font-family: var(--serif); font-size: 1.8rem; color: #fff; font-weight: 700; margin-bottom: 8px; }
.foot .legal { border-top: 1px solid #36407a; margin-top: 32px; padding-top: 20px; font-size: .85rem; color: #aab4e0; }
@media (max-width: 720px) { .foot .cols { grid-template-columns: 1fr; } }
