/* MasloTrip landing page — hand-written CSS, no build step.
   Design tokens are copied from the app so both look like one product. */

:root {
  /* Brand */
  --color-accent: #ebae34;
  --color-accent-hover: #d2971d;
  --color-accent-soft: #fdf2dd;
  --color-accent-on: #201a13; /* ink written ON the gold */
  --color-accent-ink: #6b4a09; /* ink written on the soft tint */

  /* Surfaces and ink */
  --color-canvas: #f4f5f7;
  --color-surface: #ffffff;
  --color-text: #22262f;
  --color-text-muted: #6b7280;
  --color-border: #e7e9ee;

  /* Shape */
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-full: 999px;
  --shadow-md: 0 4px 16px rgb(34 38 47 / 8%);
  --shadow-lg: 0 18px 40px rgb(34 38 47 / 12%);

  /* Rhythm */
  --space-section: clamp(3.5rem, 8vw, 6rem);
  --measure: 68ch;
  --page-max: 68rem;

  font-family: system-ui, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

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

a:hover {
  color: var(--color-accent-ink);
}

/* Visible focus ring everywhere, keyboard-first. */
:focus-visible {
  outline: 3px solid var(--color-accent-ink);
  outline-offset: 2px;
  border-radius: 2px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1rem;
  max-width: var(--measure);
  text-wrap: pretty;
}

/* ---------- Icons ---------- */

/* The sprite itself is markup only — it must never take up space. */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Layout helpers ---------- */

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section {
  padding-block: var(--space-section);
}

/* The header is sticky, so an anchor jump must stop below it. */
[id] {
  scroll-margin-top: 5rem;
}

.section--tinted {
  background: var(--color-canvas);
  border-block: 1px solid var(--color-border);
}

.section__kicker {
  margin: 0 0 0.5rem;
  color: var(--color-accent-ink);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section__lead {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

/* A closing aside under a section's own device, not a second lead. */
.section__note {
  margin: 1.5rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.5rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease, box-shadow 0.15s ease;
}

/* Gold is a fill, never type — the label uses the ink meant for gold. */
.btn--primary {
  background: var(--color-accent);
  color: var(--color-accent-on);
  box-shadow: 0 6px 18px rgb(235 174 52 / 35%);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-accent-on);
  transform: translateY(-1px);
}

.btn--ghost {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
}

.btn--sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.9375rem;
}

.btn--lg {
  padding: 0.9rem 1.9rem;
  font-size: 1.0625rem;
  word-break: break-word;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--color-border);
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-block: 0.875rem;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
}

.site-header__logo img {
  display: block;
  width: auto;
  height: 2.25rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem 1.25rem;
}

.site-nav__link {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__link:hover {
  color: var(--color-text);
}

/* No JS menu toggle and no wrapping bar: on a narrow screen the in-page
   anchors step aside and the logo keeps the login button company. Every one
   of those links is repeated in the footer. */
@media (max-width: 52rem) {
  .site-nav__link {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(60rem 22rem at 82% -8%, var(--color-accent-soft), transparent 70%),
    var(--color-surface);
  padding-block: clamp(3rem, 8vw, 5.5rem);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

@media (min-width: 60rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--color-accent-soft);
  color: var(--color-accent-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Gold is a fill, never type: the emphasis is a highlight behind the words. */
.hero h1 em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--color-accent) 62%);
  padding-inline: 0.1em;
}

.hero__lead {
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero__note {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  max-width: 46ch;
}

/* Decorative trip-list illustration next to the hero copy. */
.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

@media (min-width: 60rem) {
  .panel {
    transform: rotate(-1deg);
  }
}

.panel__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: var(--color-canvas);
  border-bottom: 1px solid var(--color-border);
}

.panel__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-full);
  background: var(--color-border);
}

.panel__title {
  margin-left: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

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

.panel__rows li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
}

.panel__rows li:last-child {
  border-bottom: 0;
}

.panel__name {
  font-weight: 600;
  flex: 1 1 auto;
  min-width: 0;
}

.panel__meta {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  white-space: nowrap;
}

.tag {
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--color-canvas);
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.tag--live {
  background: var(--color-accent-soft);
  color: var(--color-accent-ink);
}

/* ---------- Trip types ---------- */

/* The one visual device of the "Dla kogo" band: the reader should find their
   own kind of trip in it at a glance, so the row is wide and plain rather than
   a grid of cards competing with the sections below. */
.chips {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.chips li {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Reads as an opening, not as one more category: no border or fill, so the eye
   takes it as the row trailing off rather than as the last item. */
.chips__more {
  padding-inline: 0.25rem;
  border-color: transparent;
  background: none;
  color: var(--color-text-muted);
  font-weight: 500;
  font-style: italic;
}

/* ---------- Problem ---------- */

.pain-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
}

.pain-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

/* Decorative marker; the text next to it carries the meaning. */
.pain-list__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
  color: var(--color-accent-ink);
}

.pain-list__icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* ---------- Feature cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
  color: var(--color-accent-ink);
}

.card h3 {
  margin-bottom: 0.35rem;
}

.card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0 0;
  padding: 0;
}

.step {
  position: relative;
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.85rem;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: var(--color-accent-on);
  font-weight: 700;
}

.step p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* ---------- Security ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 1.5rem 2rem;
  margin: 2rem 0 0;
  padding: 0;
}

.fact {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.fact__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
  color: var(--color-accent-ink);
}

.facts dt {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.facts dd {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* ---------- Contact ---------- */

.contact-box {
  background: var(--color-accent-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 5vw, 3rem);
  text-align: center;
}

.contact-box__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto 0.75rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-accent-ink);
  font-size: 0.8125rem;
  font-weight: 600;
}

.contact-box__icon {
  width: 1rem;
  height: 1rem;
}

.contact-box h2 {
  color: var(--color-accent-ink);
}

.contact-box p {
  color: var(--color-accent-ink);
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

/* Centred ragged text turns into a comb on a narrow screen. */
@media (max-width: 40rem) {
  .contact-box {
    text-align: left;
  }

  .contact-box__kicker {
    margin-inline: 0;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-canvas);
  padding-block: 2.5rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  justify-content: space-between;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.site-footer__brand img {
  width: auto;
  height: 2rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.site-footer a {
  color: var(--color-text-muted);
  text-decoration: underline;
}

.site-footer a:hover {
  color: var(--color-text);
}

/* ---------- Legal pages ---------- */

.legal {
  padding-block: var(--space-section);
}

.legal h2 {
  margin-top: 2.5rem;
  font-size: 1.375rem;
}

.legal ul {
  max-width: var(--measure);
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.5rem;
}

.legal__updated {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}
