/*!
 * Log Price Guide — shared tokens + header/footer chrome
 * Colour kit locked: Inter / slate #102A43 / teal #0E7C7B / orange #E76F35 / gold #F4B400
 */

:root {
  --ink: #102A43;
  --slate: #102A43;
  --muted: #5C6F7B;
  --line: #D8E6EA;
  --panel: #F8FAFC;
  --paper: #ffffff;
  --teal: #0E7C7B;
  --orange: #E76F35;
  --gold: #F4B400;
  --gold-empty: #E8E0C8;
  --rating-border: #B7E0DF;
  --rating-bg: #F2FBFA;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text-body: 16px;
  --text-small: 14px;
  --text-xs: 12px;
  --leading: 1.5;
  --leading-tight: 1.25;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --radius: 6px;
  --radius-lg: 8px;
  --ease-header: 0.2s ease;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--leading);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--ink);
}

h1 { font-size: 34px; line-height: 1.15; }
h2 { font-size: 22px; line-height: var(--leading-tight); }
h3 { font-size: 16px; line-height: var(--leading-tight); }

a { color: var(--teal); }
a:hover { color: #0a6362; }

.price,
.price-figure {
  color: var(--ink);
  font-weight: 700;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}
.logo img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 220px;
}
.logo--footer img {
  height: 33px;
  max-width: 180px;
}

.utility-bar {
  background: var(--orange);
  color: #fff;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.35;
  padding: 7px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.utility-bar .hint {
  color: #fff;
  font-weight: 400;
}
.utility-bar a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.utility-bar a:hover {
  color: #fff;
  text-decoration-thickness: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  transition: transform var(--ease-header);
  will-change: transform;
}
.site-header.is-hidden {
  transform: translateY(-100%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--slate);
}

.nav {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
}
.topbar .nav a,
.topbar .nav span {
  color: #F8FAFC;
  text-decoration: none;
}
.topbar .nav a:hover { color: #fff; }

.btn-orange,
.nav .cta {
  display: inline-block;
  background: var(--orange);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  line-height: 1.3;
}
.btn-orange:hover,
.nav .cta:hover {
  filter: brightness(1.05);
  color: #fff !important;
}

.topbar .nav a:not(.cta) {
  color: #F8FAFC;
  text-decoration: none;
  font-weight: 500;
}
.topbar .nav a:not(.cta):hover { color: #fff; }
.topbar .nav a.cta,
.topbar .nav .cta {
  background: var(--orange);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.trust {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 0;
  background: linear-gradient(180deg, #FFF8F2 0%, #F4FBFA 100%);
  border-top: 1px solid #F0E0D4;
  border-bottom: 1px solid #C9E4E3;
}
.trust .item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  text-align: center;
  padding: 22px 14px;
  font-size: 13px;
  border-right: 1px solid rgba(14, 124, 123, 0.12);
}
.trust .item:last-child { border-right: 0; }
.trust .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 0 2px 6px rgba(16, 42, 67, 0.12);
}
.trust .item:nth-child(odd) .icon { background: var(--teal); }
.trust .item:nth-child(even) .icon { background: var(--orange); }
.trust .icon svg { width: 20px; height: 20px; display: block; }
.trust .item strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.trust .item span {
  display: block;
  color: #4A5F73;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.35;
  max-width: 140px;
}

@media (max-width: 800px) {
  .trust { grid-template-columns: 1fr 1fr; }
  .trust .item {
    border-right: 0;
    border-bottom: 1px solid rgba(14, 124, 123, 0.12);
  }
}

.rating-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 0;
  padding: 10px 12px;
  width: fit-content;
  min-width: 88px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rating-border);
  background: var(--rating-bg);
  box-shadow: inset 0 0 0 1px rgba(14, 124, 123, 0.06);
}
.rating-box .stars {
  display: flex;
  align-items: center;
  gap: 1px;
  line-height: 1;
  margin-bottom: 2px;
}
.rating-box .star {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  font-size: 14px;
  line-height: 14px;
}
.rating-box .star-empty { color: var(--gold-empty); }
.rating-box .star-fill {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--gold);
}
.rating-box .rating-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.rating-box .rating-score {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--teal);
  letter-spacing: -0.02em;
}
.rating-box .rating-count {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.3;
}
.rating-box.muted {
  border-color: var(--line);
  background: var(--panel);
  box-shadow: none;
}
.rating-box.muted .rating-score { color: var(--muted); }

.card .rating-box {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
}

.footer {
  background: var(--slate);
  color: rgba(255, 255, 255, 0.78);
  padding: 40px 32px 28px;
  font-size: 13px;
  line-height: 1.5;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.footer h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer .footer-logo {
  display: inline-block;
  margin: 0 0 12px;
  line-height: 0;
  border-bottom: none !important;
}
.footer .footer-logo img {
  display: block;
  height: 33px;
  width: auto;
}
.footer .footer-logo:hover { opacity: 0.92; }
.footer .quiet {
  color: rgba(255, 255, 255, 0.58);
  max-width: 260px;
  margin: 0 0 14px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0 0 8px; }
.footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.footer a:hover {
  color: #fff;
  border-bottom-color: var(--teal);
}
.footer .contact a { color: #B7E0DF; }
.footer .contact a:hover {
  color: #fff;
  border-bottom-color: #B7E0DF;
}
.footer-bottom {
  max-width: 1100px;
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}
.footer .rk {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
}
.footer .rk a {
  color: var(--orange);
  font-weight: 500;
  border-bottom: 1px solid rgba(231, 111, 53, 0.35);
}
.footer .rk a:hover {
  color: #F4A261;
  border-bottom-color: #F4A261;
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .topbar {
    flex-wrap: wrap;
    padding: 14px 16px;
  }
  .nav {
    flex-wrap: wrap;
    gap: 12px 16px;
    font-size: 14px;
  }
  .utility-bar { padding: 7px 16px; font-size: 12px; }
}

@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
}
