/* PageSaver home: the same private-capture ledger used by the pricing page. */
#page-saver-main {
  --ph-ink: #11170f;
  --ph-body: #4c584a;
  --ph-muted: #7e897d;
  --ph-paper: #fff;
  --ph-surface: #f3f6f1;
  --ph-rule: #dfe5dc;
  --ph-green: #28a745;
  --ph-green-dark: #176c2a;
  --ph-green-soft: #edf8ef;
  --ph-display: "Oswald", "Helvetica Neue", sans-serif;
  --ph-text: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  --ph-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  color: var(--ph-body);
  background: var(--ph-paper);
  font-family: var(--ph-text);
}

#page-saver-main .container {
  width: 100%;
  max-width: 1180px;
  padding-inline: 30px;
}

#page-saver-main section {
  padding: 76px 0;
}

#page-saver-main .section-title {
  margin: 0 0 44px;
  color: var(--ph-ink);
  font-family: var(--ph-display);
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.05;
  text-align: left;
}

#page-saver-main .section-title::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 16px;
  background: var(--ph-green);
}

#page-saver-main .section-title::after {
  width: 86px;
  height: 2px;
  margin: 17px 0 0;
  border-radius: 0;
  background: var(--ph-green);
}

#page-saver-main .hero-section {
  position: relative;
  margin: 0;
  padding: 68px 0 56px;
  overflow: hidden;
  border-bottom: 1px solid var(--ph-rule);
  color: var(--ph-body);
  background:
    radial-gradient(circle at 78% 22%, rgba(40, 167, 69, .08), transparent 28%),
    linear-gradient(180deg, #fbfdfb, #fff);
  text-align: left;
}

#page-saver-main .hero-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--ph-green) 0 22%, transparent 22%);
}

#page-saver-main .hero-section::after {
  display: none;
}

#page-saver-main .hero-content {
  max-width: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

#page-saver-main .hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(350px, .72fr);
  gap: clamp(50px, 7vw, 86px);
  align-items: center;
}

#page-saver-main .hero-copy {
  max-width: 720px;
  min-width: 0;
  padding: 12px 0 6px;
}

#page-saver-main .hero-title {
  max-width: none;
  margin: 0;
  color: var(--ph-ink);
  font-family: var(--ph-display);
  font-size: clamp(58px, 5.5vw, 78px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: .98;
  text-shadow: none;
}

#page-saver-main .hero-subtitle {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--ph-body);
  font-size: 16px;
  line-height: 1.65;
  opacity: 1;
}

#page-saver-main .cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  max-width: 760px;
  margin: 30px 0 0;
}

#page-saver-main .cta-btn {
  display: inline-flex;
  min-height: 46px;
  gap: 9px;
  align-items: center;
  justify-content: center;
  padding: 11px 13px;
  border: 1px solid #d6dfd4;
  border-radius: 7px;
  color: var(--ph-body);
  background: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: none;
  backdrop-filter: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

#page-saver-main .cta-btn i {
  margin: 0;
  color: var(--ph-green-dark);
  font-size: 18px;
  -webkit-text-fill-color: currentColor;
}

#page-saver-main .cta-btn span {
  color: inherit;
}

#page-saver-main .cta-btn-primary {
  padding-inline: 18px;
  border-color: var(--ph-green-dark);
  color: #fff;
  background: var(--ph-green-dark);
  box-shadow: 0 8px 20px rgba(23, 108, 42, .18);
}

#page-saver-main .cta-btn-primary i {
  color: #fff;
}

#page-saver-main .cta-btn:hover,
#page-saver-main .cta-btn:focus-visible {
  border-color: var(--ph-green);
  color: var(--ph-ink);
  background: var(--ph-green-soft);
  box-shadow: none;
  transform: translateY(-1px);
}

#page-saver-main .cta-btn:hover i {
  color: var(--ph-green);
}

#page-saver-main .cta-btn-primary:hover,
#page-saver-main .cta-btn-primary:focus-visible {
  border-color: #0f541f;
  color: #fff;
  background: #0f541f;
}

#page-saver-main .cta-btn-primary:hover i {
  color: #fff;
}

#page-saver-main .hero-aside {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding-left: 34px;
  border-left: 1px solid #cfd9cd;
}

#page-saver-main .partner-section,
#page-saver-main .hero-lifetime-card {
  min-width: 0;
  margin: 0;
  padding: 22px;
  border: 1px solid #e0e6df;
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  box-shadow: none;
  backdrop-filter: none;
}

#page-saver-main .partner-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

#page-saver-main .partner-content,
#page-saver-main .partner-cta-wrapper {
  min-width: 0;
}

#page-saver-main .partner-description {
  margin: 0;
  color: var(--ph-body);
  font-size: 11px;
  line-height: 1.55;
}

#page-saver-main .partner-cta {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #c8d8c6;
  border-radius: 6px;
  color: var(--ph-green-dark);
  background: var(--ph-green-soft);
  box-shadow: none;
  font-family: var(--ph-mono);
}

#page-saver-main .partner-cta img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

#page-saver-main .partner-cta span {
  font-size: 9px;
}

#page-saver-main .hero-lifetime-card {
  display: grid;
  gap: 20px;
  align-items: start;
  border-color: #bbd8c0;
  background: var(--ph-green-soft);
  box-shadow: none;
}

#page-saver-main .hero-lifetime-card p {
  margin: 0 0 5px;
  color: var(--ph-green-dark);
  font-family: var(--ph-mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#page-saver-main .hero-lifetime-card strong {
  display: block;
  color: var(--ph-ink);
  font-size: 12px;
  line-height: 1.35;
}

#page-saver-main .hero-lifetime-card > a {
  justify-self: start;
  padding: 10px 12px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: var(--ph-green-dark);
  font-family: var(--ph-mono);
  font-size: 9px;
  text-decoration: none;
}

#page-saver-main .hero-lifetime-card > a span {
  margin-left: 7px;
}

#page-saver-main .hero-lifetime-card > a:hover,
#page-saver-main .hero-lifetime-card > a:focus-visible {
  color: #fff;
  background: #0f541f;
  text-decoration: none;
}

#page-saver-main .stats-section {
  position: relative;
  padding: 58px 0;
  border-bottom: 1px solid var(--ph-rule);
  color: var(--ph-body);
  background: #fff;
}

#page-saver-main .stats-section .container {
  display: grid;
  max-width: 1100px;
  grid-template-areas: "copy metric";
  grid-template-columns: minmax(340px, auto) max-content;
  column-gap: 64px;
  align-items: center;
  justify-content: center;
}

#page-saver-main .stats-copy {
  grid-area: copy;
  padding-right: 40px;
  border-right: 1px solid var(--ph-rule);
}

#page-saver-main .stats-section .section-title {
  margin: 0;
  color: var(--ph-ink);
  white-space: nowrap;
}

#page-saver-main .stats-section .section-title::before {
  background: var(--ph-green);
}

#page-saver-main .stats-metric {
  grid-area: metric;
  min-width: 0;
  width: max-content;
}

#page-saver-main .stats-section h3 {
  margin: 0;
  color: var(--ph-muted);
  font-family: var(--ph-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

#page-saver-main .counter-container {
  justify-content: flex-start;
  margin: 12px 0 10px;
  padding: 0;
  font-size: 36px;
}

#page-saver-main .counter-digit {
  width: 42px;
  height: 90px;
  margin: 0 3px 0 0;
  border: 1px solid #d7e1d5;
  border-radius: 6px;
  color: var(--ph-ink);
  background: #f7faf6;
  box-shadow: none;
  animation: none;
}

/* No trailing gutter, so the row centers exactly when the section stacks. */
#page-saver-main .counter-container > *:last-child {
  margin-right: 0;
}

#page-saver-main .counter-digit-inner {
  background: repeating-linear-gradient(0deg, #f7faf6 0, #f7faf6 89px, #edf3ec 89px, #edf3ec 90px);
}

#page-saver-main .counter-digit-inner span {
  color: var(--ph-ink);
  text-shadow: none;
}

#page-saver-main .counter-digit::before,
#page-saver-main .counter-digit::after {
  display: none;
}

#page-saver-main .counter-separator {
  width: 17px;
  color: var(--ph-green);
}

#page-saver-main .features-section {
  border-bottom: 1px solid var(--ph-rule);
  background: var(--ph-surface);
}

#page-saver-main .features-container {
  display: grid;
  max-width: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border: 0;
}

#page-saver-main .feature-card {
  display: grid;
  min-width: 0;
  max-width: none;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 17px;
  align-content: start;
  align-items: start;
  padding: 28px 25px;
  border: 1px solid var(--ph-rule);
  border-radius: 9px;
  background: var(--ph-paper);
  box-shadow: none;
  text-align: left;
}

#page-saver-main .feature-card:hover {
  z-index: 1;
  border-color: #9ccca6;
  box-shadow: 0 12px 28px rgba(29, 73, 36, .08);
  transform: translateY(-3px);
}

#page-saver-main .feature-icon {
  display: grid;
  width: 45px;
  height: 45px;
  grid-row: span 2;
  place-items: center;
  margin: 0;
  border: 1px solid #c8dccb;
  border-radius: 7px;
  color: var(--ph-green-dark);
  background: var(--ph-green-soft);
  font-size: 19px;
  -webkit-text-fill-color: currentColor;
}

#page-saver-main .feature-title {
  margin: 0 0 8px;
  color: var(--ph-ink);
  font-family: var(--ph-display);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.1;
}

#page-saver-main .feature-description {
  margin: 0;
  color: var(--ph-muted);
  font-size: 12px;
  line-height: 1.6;
}

/* Mac app: a single compact row that links to the dedicated page. Kept
   deliberately small — the long-form pitch lives on mac.php. */
#page-saver-main .mac-app-strip-section {
  padding: 34px 0;
  border-bottom: 1px solid var(--ph-rule);
  background: var(--ph-surface);
}

#page-saver-main .mac-app-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border: 1px solid #cfdccd;
  border-radius: 10px;
  color: inherit;
  background: var(--ph-paper);
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

#page-saver-main .mac-app-strip:hover,
#page-saver-main .mac-app-strip:focus-visible {
  border-color: var(--ph-green);
  color: inherit;
  box-shadow: 0 10px 24px rgba(29, 73, 36, .1);
  text-decoration: none;
  transform: translateY(-1px);
}

#page-saver-main .mac-app-strip-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  color: var(--ph-green-dark);
  background: var(--ph-green-soft);
  font-size: 19px;
}

#page-saver-main .mac-app-strip-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

#page-saver-main .mac-app-strip-title {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  color: var(--ph-ink);
  font-size: 15px;
  font-weight: 700;
}

#page-saver-main .mac-app-strip-badge {
  padding: 3px 8px;
  border-radius: 4px;
  color: #6b4c12;
  background: #f4e3c1;
  font-family: var(--ph-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#page-saver-main .mac-app-strip-desc {
  color: var(--ph-body);
  font-size: 12.5px;
  line-height: 1.55;
}

#page-saver-main .mac-app-strip-cta {
  flex: none;
  color: var(--ph-green-dark);
  font-family: var(--ph-mono);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 620px) {
  #page-saver-main .mac-app-strip {
    grid-template-columns: auto minmax(0, 1fr);
  }

  #page-saver-main .mac-app-strip-cta {
    grid-column: 1 / -1;
  }
}

#page-saver-main .demo-section {
  border-bottom: 1px solid var(--ph-rule);
  background: #fff;
}

#page-saver-main .demo-type-switch {
  display: grid;
  max-width: 980px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto 28px;
  padding: 5px;
  border: 1px solid var(--ph-rule);
  border-radius: 10px;
  background: var(--ph-surface);
}

#page-saver-main .demo-type-button {
  display: flex;
  min-width: 0;
  min-height: 58px;
  gap: 11px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--ph-muted);
  background: transparent;
  font-family: var(--ph-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

#page-saver-main .demo-type-button i {
  color: var(--ph-green);
  font-size: 14px;
}

#page-saver-main .demo-type-button:hover {
  color: var(--ph-green-dark);
  background: #f4f9f4;
}

#page-saver-main .demo-type-button.is-active {
  border-color: #b8d2bd;
  color: var(--ph-ink);
  background: var(--ph-paper);
  box-shadow: 0 4px 12px rgba(29, 73, 36, .08);
}

#page-saver-main .demo-type-button:focus-visible {
  outline: 2px solid var(--ph-green);
  outline-offset: 2px;
}

#page-saver-main .demo-type-panel {
  max-width: 980px;
  margin-inline: auto;
}

#page-saver-main .demo-type-panel[hidden] {
  display: none !important;
}

#page-saver-main .demo-tabs {
  max-width: 980px;
  margin-inline: auto;
}

#page-saver-main .nav-tabs {
  justify-content: flex-start;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--ph-rule);
}

#page-saver-main .nav-tabs > li > a {
  padding: 13px 18px;
  border-bottom-width: 2px;
  color: var(--ph-muted);
  font-family: var(--ph-mono);
  font-size: 11px;
}

#page-saver-main .nav-tabs > li.active > a,
#page-saver-main .nav-tabs > li.active > a:focus,
#page-saver-main .nav-tabs > li.active > a:hover {
  border-bottom: 2px solid var(--ph-green);
  color: var(--ph-green-dark);
}

#page-saver-main .video-container {
  border: 1px solid #cbd6c9;
  border-radius: 10px;
  background: var(--ph-surface);
  box-shadow: 0 18px 38px rgba(25, 45, 29, .1);
}

#page-saver-main .video-container iframe,
#page-saver-main .video-container video {
  border-radius: 10px;
}

#page-saver-main .community-section {
  padding: 58px 0;
  border-bottom: 1px solid var(--ph-rule);
  background: var(--ph-surface);
}

#page-saver-main .community-grid {
  display: grid;
  width: 100%;
  grid-template-columns: .9fr 1.35fr .9fr;
  gap: 14px;
}

#page-saver-main .community-block {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 24px;
  border: 1px solid var(--ph-rule);
  border-radius: 9px;
  background: var(--ph-paper);
  text-align: left;
}

#page-saver-main .community-block h2 {
  position: relative;
  margin: 0 0 18px;
  padding-top: 12px;
  color: var(--ph-ink);
  font-family: var(--ph-display);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.12;
}

#page-saver-main .community-block h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--ph-green);
}

#page-saver-main .community-block > p,
#page-saver-main .feedback-copy > p {
  position: static;
  display: block;
  width: auto;
  max-width: none;
  margin: 0 0 13px;
  padding: 0;
  color: var(--ph-body);
  background: transparent;
  font-size: 12px;
  line-height: 1.65;
  white-space: normal;
  transform: none;
}

#page-saver-main .feedback-copy {
  position: static;
  display: grid;
  gap: 9px;
  width: 100%;
  margin: 0;
  padding: 0;
}

#page-saver-main .feedback-copy > p {
  margin: 0;
}

#page-saver-main .social-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin-top: auto;
  padding-top: 15px;
}

#page-saver-main .social-btn,
#page-saver-main .donation-btn {
  display: inline-flex;
  min-width: 0;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 14px 19px;
  border: 1px solid var(--ph-ink);
  border-radius: 7px;
  color: var(--ph-ink) !important;
  background: var(--ph-paper);
  box-shadow: none;
  font-family: var(--ph-mono);
  font-size: 11px;
}

#page-saver-main .social-btn:hover,
#page-saver-main .donation-btn:hover {
  border-color: var(--ph-green-dark);
  color: #fff !important;
  background: var(--ph-green-dark);
  box-shadow: 4px 4px 0 #c6d9c8;
  transform: translate(-2px, -2px);
}

#page-saver-main .contact-info {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 14px 16px;
  border: 1px solid var(--ph-rule);
  border-left: 3px solid var(--ph-green);
  border-radius: 6px;
  background: var(--ph-surface);
  color: var(--ph-body);
  font-size: 12px;
  line-height: 1.55;
  text-align: left;
}

#page-saver-main .contact-email {
  color: var(--ph-green-dark);
  font-size: inherit;
}

#page-saver-main .donation-btn {
  margin-top: auto;
  border-color: var(--ph-green-dark);
  color: #fff !important;
  background: var(--ph-green-dark);
}

@media (max-width: 900px) {
  #page-saver-main .hero-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  #page-saver-main .hero-aside {
    grid-template-columns: 1fr 1fr;
    padding: 24px 0 0;
    border-top: 1px solid #cfd9cd;
    border-left: 0;
  }

  #page-saver-main .stats-section .container {
    grid-template-areas:
      "copy"
      "metric";
    grid-template-columns: 1fr;
    gap: 28px;
    justify-content: stretch;
  }

  #page-saver-main .stats-copy {
    padding: 0 0 28px;
    border-right: 0;
    border-bottom: 1px solid var(--ph-rule);
  }

  /* Stacked layout: shrink-wrap the metric so the centered labels line up
     with the digit row instead of floating over a full-width block. */
  #page-saver-main .stats-metric {
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
  }

  /* One card per row once the page stacks — a two-up grid squeezes the
     description into a 7-character column on phones, including landscape. */
  #page-saver-main .features-container {
    grid-template-columns: 1fr;
  }

  #page-saver-main .community-grid {
    grid-template-columns: 1fr 1fr;
  }

  #page-saver-main .community-feedback {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

@media (max-width: 620px) {
  #page-saver-main .container {
    padding-inline: 16px;
  }

  #page-saver-main section {
    padding: 52px 0;
  }

  #page-saver-main .hero-section {
    padding-top: 45px;
  }

  #page-saver-main .hero-section::before,
  #page-saver-main .hero-section::after {
    display: none;
  }

  #page-saver-main .hero-title {
    font-size: 48px;
  }

  #page-saver-main .hero-subtitle {
    font-size: 15px;
  }

  #page-saver-main .stats-section .section-title {
    white-space: normal;
  }

  #page-saver-main .cta-btn {
    min-height: 44px;
  }

  #page-saver-main .cta-btn-primary {
    flex-basis: 100%;
  }

  /* Edge and Firefox split the second row evenly instead of hugging their
     label and leaving a ragged gap under the full-width primary button. */
  #page-saver-main .cta-buttons .cta-btn:not(.cta-btn-primary) {
    flex: 1 1 0;
    min-width: 0;
  }

  #page-saver-main .partner-section,
  #page-saver-main .hero-lifetime-card {
    align-items: flex-start;
  }

  #page-saver-main .hero-aside {
    grid-template-columns: 1fr;
  }

  #page-saver-main .partner-section {
    grid-template-columns: 1fr;
  }

  #page-saver-main .hero-lifetime-card {
    gap: 16px;
  }

  #page-saver-main .counter-container {
    overflow-x: auto;
    font-size: 34px;
  }

  #page-saver-main .counter-digit {
    min-width: 36px;
    width: 36px;
  }

  #page-saver-main .demo-type-switch,
  #page-saver-main .community-grid {
    grid-template-columns: 1fr;
  }

  #page-saver-main .demo-type-button {
    justify-content: flex-start;
    text-align: left;
  }

  #page-saver-main .community-feedback {
    grid-column: auto;
    grid-row: auto;
  }

  #page-saver-main .social-btn,
  #page-saver-main .donation-btn {
    width: 100%;
    max-width: none;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  #page-saver-main .cta-btn,
  #page-saver-main .feature-card,
  #page-saver-main .demo-type-button,
  #page-saver-main .social-btn,
  #page-saver-main .donation-btn {
    transition: none;
  }
}
