/* SafeLeaf Official Site — 1:1 PictureThis Skeleton Replica (Base & Header & Hero) */
:root {
  --pt-green: #00a362;
  --pt-green-hover: #009557;
  --pt-green-outline-hover: #00a65b;
  --pt-teal: #1bb38d;
  --pt-dark-green: #005324;
  --pt-hero-bg: #daf0e5;
  --pt-mint-bg: #f0f9f4;
  --pt-mint-bg-alt: #f0f9f5;
  --pt-faq-bg: #f2f7f6;
  --pt-foot-drawer: #edfaf7;
  --pt-card-border: #c1e0d8;
  --pt-cta-border: #c2e0d9;
  --pt-ink-900: #1a1a1a;
  --pt-ink-800: #222222;
  --pt-ink-700: #333333;
  --pt-ink-600: #555555;
  --pt-ink-500: #666666;
  --pt-ink-400: #949494;
  --pt-danger: #d92d20;
  --pt-danger-bg: #fef3f2;
  --pt-warn: #d97706;
  --pt-warn-bg: #fffbeb;
  --pt-safe-bg: #e2f4eb;
  --container-w: 1200px;
}

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

html {
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  color: var(--pt-ink-500);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: #ffffff;
  color: var(--pt-ink-800);
  overflow-x: hidden;
  line-height: 1.45;
}

section[id] {
  scroll-margin-top: 148px;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

ul, ol {
  list-style: none;
}

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

:focus-visible {
  outline: 2.5px solid var(--pt-green);
  outline-offset: 2px;
}

.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;
}

.container-1200 {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 1241px) {
  .container-1200 { padding-inline: 0; }
}

/* ==================== 0. FIXED TOP HEADER (137px Desktop) ==================== */
.header-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 137px;
  z-index: 998;
  background: #ffffff;
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.10);
}

.header-wrap-top {
  height: 87.5px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
}

.header-wrap-top-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  flex-shrink: 0;
}

.brand-logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex-shrink: 0;
}

.brand-logo-wordmark {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #163a28;
  line-height: 1;
}

.brand-logo-wordmark span {
  color: var(--pt-green);
}

.header-top-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-search-trigger {
  min-width: 323px;
  height: 44px;
  padding: 10px 24px;
  border-radius: 40px;
  border: 1px solid var(--pt-green);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pt-ink-400);
  font-size: 18px;
  font-weight: 400;
  line-height: 22px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search-trigger:hover {
  border-color: var(--pt-green-hover);
  box-shadow: 0 4px 14px rgba(0, 163, 98, 0.12);
}

.header-try-btn {
  min-width: 186px;
  height: 44px;
  padding: 10px 24px;
  border-radius: 40px;
  background: var(--pt-green);
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  line-height: 22px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.header-try-btn:hover {
  background: var(--pt-green-hover);
}

.lang-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #6c6c6c;
  font-size: 18px;
  font-weight: 500;
  line-height: 22px;
  padding: 6px 8px;
  border-radius: 8px;
}

.lang-trigger-btn:hover {
  color: var(--pt-teal);
}

.chevron-icon {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.2s ease;
}

button[aria-expanded="true"] .chevron-icon {
  transform: rotate(-135deg);
  margin-top: 3px;
}

/* Row 2 Navigation (48px) */
.header-wrap-navs {
  height: 48px;
  display: flex;
  align-items: center;
}

.site-nav-list {
  display: flex;
  align-items: center;
  gap: 52px;
}

.site-nav-item {
  position: relative;
}

.site-nav-link,
.site-nav-dropdown-btn {
  font-size: 18px;
  line-height: 24px;
  color: var(--pt-ink-800);
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 0;
  position: relative;
  transition: color 0.18s ease;
}
.site-nav-link:hover,
.site-nav-dropdown-btn:hover {
  color: var(--pt-teal);
}

.site-nav-link[aria-current="page"] {
  color: var(--pt-green);
  font-weight: 600;
}

.site-nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--pt-green);
}

/* Popover Dropdown Lists (Header Nav & Language) */
.nav-popover-panel {
  border: 0;
  border-radius: 12px;
  padding: 12px 20px;
  background: #ffffff;
  box-shadow: 0 10px 43px rgba(0, 0, 0, 0.10);
  min-width: 220px;
  z-index: 1005;
}

.nav-popover-panel:not(:is(:popover-open, .\:popover-open)) {
  display: none;
}

.nav-popover-panel:is(:popover-open, .\:popover-open) {
  display: block;
}

@supports (position-area: block-end) {
  .nav-popover-panel[popover] {
    position: fixed;
    inset: auto;
    position-area: block-end span-inline-end;
    position-try-fallbacks: flip-block, flip-inline;
    margin-block-start: 8px;
  }
}

@supports not (position-area: block-end) {
  .nav-popover-panel[popover] {
    position: fixed;
    margin: 0;
  }
}

.nav-popover-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-popover-link,
.lang-option-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 9px 6px;
  font-size: 16px;
  line-height: 22px;
  color: var(--pt-ink-800);
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-popover-link:hover,
.lang-option-btn:hover {
  color: var(--pt-teal);
  background: #f5fbf8;
}

.nav-popover-link.see-all {
  color: var(--pt-teal);
  font-weight: 600;
  margin-top: 4px;
  border-top: 1px solid #eef3f0;
  padding-top: 10px;
}

.lang-option-btn[aria-pressed="true"] {
  color: var(--pt-green);
  font-weight: 700;
}

/* Header Search Expanded Bar & Backdrop */
.top-search-bar {
  display: none;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  position: relative;
  align-items: center;
  gap: 12px;
  border-bottom: 1.5px solid #e3e3e3;
  padding-bottom: 8px;
}

.header-wrap.search-active .header-wrap-top-main {
  display: none;
}

.header-wrap.search-active .top-search-bar {
  display: flex;
}

.top-search-input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 20px;
  font-weight: 500;
  color: var(--pt-ink-900);
  background: transparent;
}

.top-search-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #777;
  font-size: 20px;
}

.top-search-close:hover {
  background: #f2f7f6;
  color: #111;
}

.top-mask {
  display: none;
  position: fixed;
  top: 137px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(120, 130, 126, 0.38);
  z-index: 990;
}

.header-wrap.search-active ~ .top-mask {
  display: block;
}
.search-autocomplete-panel {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 20px;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 8px 35px rgba(184, 204, 199, 0.35);
  border: 1px solid #e3efea;
  z-index: 1010;
}

.search-autocomplete-panel.open {
  display: block;
}

.autocomplete-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 10px;
  border-radius: 10px;
  transition: background-color 0.15s ease;
}

.autocomplete-row:hover {
  background: #f2faf6;
}

.autocomplete-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.autocomplete-thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.autocomplete-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--pt-ink-700);
}

.autocomplete-name mark {
  background: transparent;
  color: var(--pt-teal);
  font-weight: 700;
}

.autocomplete-latin {
  font-size: 13.5px;
  font-style: italic;
  color: #8c9692;
}

.risk-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.risk-pill.sev-3 { background: #fee4e2; color: #b42318; }
.risk-pill.sev-2 { background: #ffedd5; color: #c2410c; }
.risk-pill.sev-1 { background: #fef3c7; color: #b45309; }
.risk-pill.sev-0 { background: #dcfce7; color: #047857; }

/* ==================== 1. HERO SECTION (600px, #daf0e5) ==================== */
.page-main {
  padding-top: 137px;
}

.hero-section {
  background: var(--pt-hero-bg);
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: visible;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 600px;
  position: relative;
  gap: 36px;
}

.hero-left {
  width: 568px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 44px;
  padding-block: 44px;
  z-index: 2;
}

.hero-h1 {
  font-size: 46px;
  font-weight: 700;
  line-height: 58px;
  color: var(--pt-ink-900);
  letter-spacing: -0.015em;
}

.hero-h1 .brand-accent {
  color: var(--pt-green);
  display: block;
}

.hero-download-row {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}

.hero-qr-box {
  width: 127px;
  height: 127px;
  background: #ffffff;
  border-radius: 12px;
  padding: 9px;
  box-shadow: 0 6px 18px rgba(0, 83, 36, 0.08);
  flex-shrink: 0;
}
.hero-store-stack {
  display: flex;
  flex-direction: column;
  gap: 17px;
  width: 172px;
}

.store-badge-btn {
  width: 168px;
  height: 55px;
  background: #111111;
  color: #ffffff;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  transition: transform 0.16s ease, background-color 0.16s ease;
}

.store-badge-btn:hover {
  background: #222222;
  transform: translateY(-1px);
}

.store-badge-sub {
  display: block;
  font-size: 10px;
  line-height: 11px;
  letter-spacing: 0.02em;
  color: #d6d6d6;
}

.store-badge-main {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 19px;
  white-space: nowrap;
  color: #ffffff;
}

.hero-laurels-row {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.laurel-award {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 80px;
}

.laurel-wreath-svg {
  width: 34px;
  height: 78px;
  flex-shrink: 0;
}

.laurel-metric-col {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.laurel-metric-num {
  font-size: 32px;
  font-weight: 700;
  line-height: 36px;
  color: var(--pt-green);
}

.laurel-metric-label {
  font-size: 18px;
  font-weight: 400;
  line-height: 22px;
  color: var(--pt-ink-800);
}

/* Dual Overlapping iPhone Mockup (Full-Bleed iOS 18 Camera + Zero Text Overlap) */
.hero-visual-stage {
  width: 596px;
  height: 576px;
  position: relative;
  flex-shrink: 0;
  margin-bottom: -24px;
}

.mockup-phone {
  position: absolute;
  background: #141917;
  border-radius: 40px;
  padding: 9px;
  box-shadow: 0 24px 54px rgba(9, 44, 28, 0.22);
  border: 2px solid #2d3833;
}

.mockup-phone-back {
  width: 274px;
  height: 514px;
  right: 0;
  top: 40px;
  z-index: 1;
}

.mockup-phone-front {
  width: 282px;
  height: 548px;
  left: 64px;
  top: 10px;
  z-index: 3;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 31px;
  overflow: hidden;
  position: relative;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  width: 78px;
  height: 20px;
  background: #0d110f;
  border-radius: 999px;
  margin: 8px auto 6px;
  flex-shrink: 0;
  z-index: 5;
}

.hero-floating-verdict {
  position: absolute;
  left: -34px;
  bottom: 108px;
  z-index: 6;
  width: 228px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 14px 34px rgba(0, 42, 24, 0.22);
  border: 1.5px solid #fecdd3;
  display: flex;
  align-items: center;
  gap: 10px;
}
