/* Eltipset — design C “Appigt”
   Edit colors, radius and type here. Copy lives in the HTML pages. */

:root {
  --teal: #1a9b8c;
  --teal-hover: #15897c;
  --teal-ink: #0f6f64;
  --teal-soft: #e6f5f2;
  --teal-mist: #f4fbf9;
  --ink: #2b3236;
  --ink-soft: #5e6a70;
  --line: #e3ebe9;
  --white: #ffffff;
  --bg: #ffffff;
  --shadow: 0 14px 40px rgba(28, 64, 58, 0.09);
  --shadow-sm: 0 6px 18px rgba(28, 64, 58, 0.06);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --header-h: 76px;
  --max: 1120px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

button,
input {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid rgba(26, 155, 140, 0.45);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(28, 64, 58, 0.04);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  justify-self: start;
}

.logo img {
  width: 28px;
  height: 28px;
}

.logo-word {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  gap: 28px;
  justify-content: center;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.is-active {
  color: var(--teal-ink);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1.5px solid #cfd8d6;
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  position: relative;
  border-radius: 2px;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 280px at 50% 0%, #eaf7f4 0%, transparent 70%),
    linear-gradient(#f7fcfb, #ffffff 78%);
  padding: 36px 0 28px;
}

.hero-art {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 340px;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
  opacity: 0.95;
}

.hero-copy {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.hero h1 .accent {
  display: block;
  color: var(--teal);
}

.lede {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 540px;
  margin-inline: auto;
}

/* Finder card */

.finder {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr auto;
  gap: 22px;
  align-items: center;
  background: var(--white);
  border: 1px solid #edf2f1;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 22px 24px 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.info-btn {
  width: 18px;
  height: 18px;
  border: 1.5px solid #b7c4c1;
  border-radius: 50%;
  background: var(--white);
  color: #7b8884;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.hint {
  font-size: 0.8rem;
  color: var(--ink-soft);
  min-height: 1.2em;
}

.field-error {
  font-size: 0.8rem;
  color: #b42318;
  min-height: 1.2em;
}

.tooltip {
  display: none;
  position: absolute;
  z-index: 4;
  max-width: 280px;
  margin-top: 6px;
  padding: 10px 12px;
  background: var(--ink);
  color: var(--white);
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.4;
}

.tooltip.is-open {
  display: block;
}

.stepper {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  height: 52px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fbfdfd;
  overflow: hidden;
}

.stepper button {
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.35rem;
  cursor: pointer;
}

.stepper button:hover {
  background: var(--teal-soft);
  color: var(--teal-ink);
}

.field-error:empty {
  display: none;
}

.stepper-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  width: 100%;
}

.stepper-value:focus {
  outline: none;
}

.unit {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.pn-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fbfdfd;
}

.pn-wrap:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(26, 155, 140, 0.12);
}

.pn-wrap svg {
  flex: none;
  color: var(--teal);
}

.pn-wrap input {
  border: 0;
  background: transparent;
  width: 100%;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.pn-wrap input::placeholder {
  color: #b0bbb8;
  font-weight: 500;
}

.pn-wrap input:focus {
  outline: none;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--teal-hover);
  color: var(--white);
}

.finder .btn-primary {
  min-width: 168px;
  margin-top: 4px;
}

.trust {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.trust svg {
  color: var(--teal);
  flex: none;
}

/* ---------- Tips ---------- */

.tips {
  padding: 56px 0 28px;
}

.tips h2,
.page-hero h1 {
  letter-spacing: -0.03em;
}

.tips h2 {
  text-align: center;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  margin-bottom: 28px;
}

.result-banner {
  display: none;
  max-width: 760px;
  margin: 0 auto 24px;
  padding: 14px 18px;
  background: var(--teal-soft);
  border-radius: 14px;
  color: var(--teal-ink);
  text-align: center;
  font-size: 0.95rem;
}

.result-banner.is-visible {
  display: block;
}

.tip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tip-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 26px 24px 20px;
  background: var(--white);
  border: 1px solid #edf2f1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.tip-card:hover {
  border-color: #d5e8e3;
  box-shadow: var(--shadow);
}

.tip-icon {
  width: 40px;
  height: 40px;
  color: var(--teal);
  margin-bottom: 12px;
}

.tip-card h3 {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.tip-lead {
  margin: 8px 0 16px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.tip-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink);
  font-size: 0.95rem;
}

.tip-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.tip-card li svg {
  flex: none;
  margin-top: 2px;
  color: var(--teal);
}

.tip-card-foot {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.coming {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-ink);
  background: var(--teal-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.card-go {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  text-decoration: none;
}

.card-go:hover {
  background: var(--teal-hover);
  color: var(--white);
}

/* ---------- Features ribbon ---------- */

.features {
  margin-top: 48px;
  background: #f6f8f8;
  border-top: 1px solid #eef2f1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 28px 0;
}

.feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feature-icon {
  flex: none;
  width: 36px;
  height: 36px;
  color: var(--teal);
}

.feature strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature p {
  margin-top: 2px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

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

.site-footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-meta {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.footer-meta a {
  color: inherit;
}

/* ---------- Inner pages ---------- */

.page-hero {
  background:
    radial-gradient(700px 220px at 80% 0%, #eaf7f4, transparent 70%),
    var(--teal-mist);
  padding: 48px 0 40px;
  border-bottom: 1px solid #e7f0ee;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
}

.page-hero .lede {
  margin-left: 0;
  max-width: 640px;
}

.page-body {
  padding: 40px 0 64px;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  margin: 32px 0 10px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose p + p {
  margin-top: 12px;
}

.prose ul {
  padding-left: 1.15rem;
}

.prose a {
  font-weight: 600;
}

.panel {
  background: var(--white);
  border: 1px solid #edf2f1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.contact-card p {
  color: var(--ink-soft);
  max-width: 420px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.guide-card {
  padding: 22px;
  background: var(--white);
  border: 1px solid #edf2f1;
  border-radius: var(--radius-md);
}

.guide-card h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.guide-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.path-block {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid #edf2f1;
  border-radius: var(--radius-md);
  background: var(--white);
}

.path-block h2 {
  margin: 0 0 8px;
}

.path-block:target,
.tip-card:target {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(26, 155, 140, 0.12);
}

#tips,
.path-block,
.tip-card {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.muted {
  color: var(--ink-soft);
}

.not-found {
  text-align: center;
  padding: 80px 0;
}

.not-found h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .finder {
    grid-template-columns: 1fr 1fr;
  }

  .finder .btn-primary {
    grid-column: 1 / -1;
    margin-top: 4px;
    width: 100%;
  }

  .tip-grid,
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--max), calc(100% - 28px));
  }

  .finder,
  .tip-grid,
  .features-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-art {
    height: 160px;
    opacity: 0.4;
  }

  .features-grid {
    padding: 20px 0 8px;
  }

  .feature {
    padding-bottom: 12px;
  }
}

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