/* LETTER2SCAN visual refinement — shared across all pages */
:root {
  --font-body: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --lime: #dcffa1;
  --surface-dark: #1f4855;
  --surface-dark-light: #2c5a65;
  --shadow-soft: 0 16px 38px rgba(30, 24, 19, .08);
  --shadow-lift: 0 20px 44px rgba(30, 24, 19, .13);
}

body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .title, .section-title, .cta h2 {
  font-family: var(--font-display);
}

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

.header {
  box-shadow: 0 8px 25px rgba(43, 33, 27, .045);
}

.brand::after { letter-spacing: .035em; }

/* Keep the wordmark in the visual gap between the counter mascot and nav. */
@media (min-width: 1081px) {
  .header .brand::after {
    left: 293px;
    transform: translateX(-50%);
  }
}

.login {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid rgba(43, 33, 27, .18);
  border-radius: 11px;
  color: var(--text);
  white-space: nowrap;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.login:hover {
  border-color: rgba(255, 113, 77, .8);
  background: #fffdf9;
  transform: translateY(-1px);
}

.links a {
  position: relative;
  padding: 8px 0;
}

.links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.links a:hover::after, .links a.active::after { transform: scaleX(1); }

.button {
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 18px rgba(43, 33, 27, .14);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 100px;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 113, 77, .07), transparent 23%),
    linear-gradient(118deg, #fffdf8 0%, var(--paper) 60%, #f3f7f5 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -190px;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(255, 113, 77, .17);
  border-radius: 50%;
}

.hero-grid { position: relative; z-index: 1; }

.hero .lead { max-width: 530px; }

.skyline-hero {
  border: 1px solid rgba(43, 33, 27, .1);
  box-shadow: 0 26px 50px rgba(30, 24, 19, .18);
}

.section { padding: 96px 0; }

.section.alt {
  background: linear-gradient(135deg, #fff 0%, #fffdf9 55%, #f7faf8 100%);
}

.section-title { max-width: 810px; }

.grid3 { gap: 20px; }

.card, .service, .plan {
  border-color: rgba(43, 33, 27, .12);
  box-shadow: 0 10px 26px rgba(30, 24, 19, .045);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.card:hover, .service:hover, .plan:not(.featured):hover {
  transform: translateY(-5px);
  border-color: rgba(255, 113, 77, .42);
  box-shadow: var(--shadow-lift);
}

.card b, .service b { letter-spacing: .075em; }

.split { gap: 24px; }

.dark-card,
.plan.featured {
  background: linear-gradient(135deg, var(--surface-dark) 0%, var(--surface-dark-light) 100%);
  color: #fffdf8;
}

.button.dark {
  background: var(--surface-dark);
}

.dark-card .button.primary,
.plan.featured .button.primary {
  color: var(--text);
}

/* Customer tags: warm lime surface with readable dark lettering. */
.dark-card .pill {
  background: #dff7a7;
  border: 1px solid rgba(255, 255, 255, .24);
  color: var(--text);
  font-weight: 850;
}

.dark-card, .orange-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  border: 1px solid rgba(43, 33, 27, .1);
  box-shadow: var(--shadow-soft);
}

.dark-card .button, .orange-card .button { align-self: flex-start; margin-top: auto; }

.page-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 78px 0 72px;
  background:
    radial-gradient(circle at 88% 28%, rgba(220, 255, 161, .56) 0 7%, rgba(220, 255, 161, .2) 28%, transparent 53%),
    linear-gradient(118deg, var(--surface-dark) 0%, var(--surface-dark) 62%, var(--surface-dark-light) 100%);
}

.page-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -220px;
  right: 9%;
  width: 530px;
  height: 530px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  box-shadow: 0 0 0 62px rgba(255, 255, 255, .035), 0 0 0 126px rgba(255, 255, 255, .02);
}

.page-head .title { max-width: 1030px; }

.page-head .lead { max-width: 620px; }

.header .button.primary {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 42px;
  min-width: 112px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid rgba(43, 33, 27, .18);
  border-radius: 11px;
  box-shadow: none;
  white-space: nowrap;
}

/* Compact, accessible language selector. Country flags are a visual cue; the
   adjacent language code remains the clear, readable control label. */
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
  padding: 4px;
  border: 1px solid rgba(43, 33, 27, .13);
  border-radius: 10px;
  background: rgba(255, 255, 255, .68);
}

.language-option {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 31px;
  padding: 0 6px;
  border-radius: 7px;
  color: #63736f;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.language-option:hover {
  background: #fff7ef;
  color: var(--text);
  transform: translateY(-1px);
}

.language-option.is-current {
  background: var(--lime);
  color: var(--text);
}

.language-flag { font-size: .78rem; line-height: 1; }

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

.mobile-language-switcher { display: none; }

.list { gap: 16px; }

.service { min-height: 118px; }

.plans { align-items: stretch; gap: 20px; }

.plan {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.plan.featured {
  position: relative;
  transform: translateY(-10px);
  box-shadow: 0 24px 48px rgba(17, 43, 57, .24);
}

.plan.featured::before {
  content: "MOST POPULAR";
  position: absolute;
  top: -13px;
  left: 25px;
  padding: 5px 10px;
  border-radius: 99px;
  background: var(--lime);
  color: var(--text);
  font-size: .62rem;
  font-weight: 950;
  letter-spacing: .09em;
}

.plan .button { align-self: flex-start; margin-top: auto; }

.pricing-wrap { max-width: 1120px; }

.pricing-lead { margin: 0 0 34px; }

.package-price-note {
  max-width: 760px;
  margin: 0 0 26px;
  padding: 14px 17px;
  border-left: 3px solid var(--orange);
  border-radius: 0 12px 12px 0;
  background: #fff7ef;
  color: #596b65;
  font-size: .9rem;
  line-height: 1.55;
}

.package-price-note b {
  color: var(--text);
  font-size: .76rem;
  letter-spacing: .08em;
}

.pricing-group {
  margin: 18px 0;
  scroll-margin-top: 165px;
  overflow: hidden;
  border: 1px solid rgba(43, 33, 27, .13);
  border-radius: 20px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 12px 30px rgba(30, 24, 19, .05);
}

.pricing-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding: 19px 26px;
  cursor: pointer;
  list-style: none;
}

.pricing-group summary::-webkit-details-marker { display: none; }

.pricing-group summary b,
.pricing-group summary small { display: block; }

.pricing-group summary b {
  font-size: 1.18rem;
  letter-spacing: .08em;
}

.pricing-group summary small { color: var(--muted); }

.pricing-group summary i {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--text);
  font-style: normal;
  font-size: 1.35rem;
  line-height: 1;
  transition: transform .2s ease;
}

.pricing-group[open] summary i { transform: rotate(45deg); }

.pricing-content {
  padding: 7px 20px 24px;
  border-top: 1px solid rgba(43, 33, 27, .1);
}

.pricing-content .plans { margin-top: 26px; }

.business-intro {
  margin: 24px 6px 0;
  padding: 18px 20px;
  border-radius: 14px;
  background: #edf4ec;
}

.business-intro b,
.registration-callout b {
  font-size: .78rem;
  letter-spacing: .08em;
}

.business-intro p,
.registration-callout p { margin: 5px 0 0; }

.registration-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 22px 6px 0;
  padding: 20px;
  border-radius: 14px;
  background: var(--orange);
}

.registration-callout p { flex: 1; }

.registration-callout a {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(43, 33, 27, .25);
  border-radius: 11px;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
}

.mascot-smile {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-left: 4px;
  object-fit: contain;
  vertical-align: -7px;
}

.cocco-section {
  background: linear-gradient(120deg, #fff7ee 0%, #fffdf9 58%, #eef6ed 100%);
}

.cocco-grid {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  max-width: 900px;
}

.cocco-face {
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(43, 33, 27, .16));
}

.cocco-grid .lead { max-width: 650px; }

.tax {
  display: table;
  margin: 38px auto 0;
  padding: 8px 13px;
  border-radius: 99px;
  background: #edf4ec;
}

.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(118deg, #ff714d 0%, #ff825e 100%);
}

.cta::before {
  content: "";
  position: absolute;
  top: -180px;
  left: -100px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 50%;
}

.cta .wrap { position: relative; }

.footer {
  background: linear-gradient(120deg, var(--surface-dark) 0%, var(--surface-dark-light) 100%);
}

.footer p,
.footer a { color: #d6e0dc; }

.fine {
  border-top-color: rgba(255, 253, 248, .22);
  color: #c6d3d0;
}

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

.wan-profile { background: linear-gradient(135deg, #fff 0%, #fffdf9 70%, #f2f7f4 100%); }

.wan-photo {
  box-shadow: 0 22px 44px rgba(30, 24, 19, .13);
}

.wan-profile-copy { align-self: center; }

.wan-profile-body {
  padding: 28px 32px 30px;
  border: 1px solid rgba(43, 33, 27, .1);
  border-radius: 20px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 14px 30px rgba(30, 24, 19, .05);
}

@media (max-width: 820px) {
  .header .nav { gap: 12px; }
  .hero { padding: 76px 0 82px; }
  .section { padding: 76px 0; }
  .page-head { padding: 66px 0 62px; }
  .plan.featured { transform: none; }
  .dark-card, .orange-card { min-height: 0; }
  .pricing-group summary { min-height: 76px; padding: 16px 20px; }
  .registration-callout { align-items: flex-start; flex-direction: column; }
  .cocco-grid { grid-template-columns: 112px minmax(0, 1fr); gap: 24px; }
  .cocco-face { width: 108px; height: 108px; }
}

@media (max-width: 580px) {
  .hero { padding: 64px 0 70px; }
  .section { padding: 64px 0; }
  .page-head { padding: 56px 0 54px; }
  .card, .service, .plan { box-shadow: 0 8px 20px rgba(30, 24, 19, .04); }
  .wan-profile-body { padding: 22px; }
  .cocco-grid { grid-template-columns: 1fr; gap: 14px; }
  .cocco-face { width: 100px; height: 100px; }
  .language-switcher { display: none; }
  .links.open .mobile-language-switcher {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 13px 12px 7px;
    border-top: 1px solid rgba(43, 33, 27, .1);
  }
  .mobile-language-switcher > span {
    width: 100%;
    color: var(--muted);
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .1em;
  }
  .links.open .mobile-language-switcher .language-option {
    padding: 0 8px;
    background: #f2f6f0;
  }
  .links.open .mobile-language-switcher .language-option.is-current { background: var(--lime); }
}
